/* ==========================================================================
   aaronhnatiw.music
   Dark, quiet, editorial: midnight field, ivory type, violet wave accents.
   Sections: tokens · base · type · layout · header · footer · buttons & links ·
   hero · series · cards & lists · performance page · forms · page specifics ·
   utilities · motion
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  --midnight: #0C1122;
  --indigo: #242747;
  --violet: #6A6088;
  --mist: #AFA6C2;
  --ivory: #F3F0EA;
  --lavender: #D3BCE9;
  --error: #D6BFEA;

  --hairline: rgb(175 166 194 / 0.22);
  --surface: rgb(36 39 71 / 0.72);

  --font-display: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --font-body: 'EB Garamond', Georgia, 'Times New Roman', serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --content: 72rem;
  --narrow: 42rem;
  --measure: 65ch;
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  color-scheme: dark;
}

/* --- Base ----------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--midnight);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

img,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--violet);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }
}

/* --- Type ----------------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 12;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 4.25rem);
  letter-spacing: -0.005em;
}

h2 {
  font-size: clamp(1.65rem, 1.35rem + 1.3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
}

p,
ul,
dl {
  margin: 0 0 1em;
}

strong {
  font-weight: 600;
}

.lede {
  font-size: 1.2em;
  line-height: 1.55;
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--mist);
  font-size: 0.8125rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow a {
  text-decoration: none;
}

.note,
.empty {
  color: var(--mist);
}

.empty {
  font-style: italic;
  text-align: center;
}

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2 * var(--gutter), var(--narrow));
}

.prose {
  max-width: var(--measure);
}

.prose--center,
.center .prose {
  margin-inline: auto;
}

.center {
  text-align: center;
}

.section {
  padding-block: var(--section);
}

.section--tight {
  padding-block: calc(var(--section) / 2);
}

.page-head {
  padding-top: clamp(2.5rem, 2rem + 4vw, 5.5rem);
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
}

/* Short centred ivory rule between quiet blocks, as on the poster. */
.rule {
  width: 4rem;
  height: 0;
  margin: 0 auto clamp(2.5rem, 2rem + 2vw, 4rem);
  border: 0;
  border-top: 1px solid rgb(243 240 234 / 0.5);
}

.rule--short {
  width: 3rem;
  margin-block: 2rem;
}

/* Decorative section art: text-free, faded into the page at the edges. */
.art img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}

.art--wave-accent img {
  max-height: 10rem;
  object-fit: cover;
}

.art--about img,
.art--bookings img {
  height: clamp(8rem, 16vw, 14rem);
  object-fit: cover;
  object-position: 50% 50%;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  width: min(100% - 2 * var(--gutter), 80rem);
  margin-inline: auto;
  padding-block: 1.25rem;
}

.site-header__brand {
  display: block;
  padding-block: 0.6rem;
}

.site-header__brand img {
  width: auto;
  height: 1.35rem;
}

@media (max-width: 47.99rem) {
  .site-header__brand img {
    height: 1.25rem;
  }
}

.site-nav {
  max-width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding-block: 0.6rem;
  color: var(--mist);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 30rem) {
  .site-nav ul {
    gap: 0 0.9rem;
  }

  .site-nav a {
    letter-spacing: 0.08em;
  }
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--ivory);
}

.site-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--violet);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5em;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ivory);
  color: var(--midnight);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 0.35rem;
  margin-top: var(--section);
  padding: 3rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--mist);
  font-size: 0.9375rem;
  text-align: center;
}

.site-footer p,
.site-footer ul {
  margin: 0;
}

.site-footer__glyph {
  width: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.site-footer__email a {
  color: var(--ivory);
  font-size: 1.125rem;
}

.site-footer__email {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  display: block;
  padding-block: 0.4rem;
}

.site-footer__domains {
  margin-top: 0.5rem !important;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.site-footer__copy {
  font-size: 0.875rem;
}

/* --- Buttons and links ---------------------------------------------------- */

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--violet);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--lavender);
  text-decoration-color: currentColor;
}

.text-link {
  color: var(--mist);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--violet);
  padding-bottom: 0.2em;
}

.text-link:hover {
  color: var(--lavender);
  border-color: var(--lavender);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 3rem;
  padding: 0.65rem 1.6rem;
  border: 1px solid rgb(243 240 234 / 0.8);
  border-radius: 0;
  background: rgb(12 17 34 / 0.35);
  color: var(--ivory);
  font: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.button--secondary {
  border-color: var(--mist);
  background: transparent;
  color: var(--mist);
}

@media (max-width: 30rem) {
  .button {
    letter-spacing: .10em;
    padding-inline: 1rem;
  }
}

.button:hover,
.button:focus-visible {
  border-color: var(--lavender);
  background: rgb(211 188 233 / 0.1);
  color: var(--lavender);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.875rem;
}

.actions--center {
  justify-content: center;
}

/* --- Hero ----------------------------------------------------------------- */
/* Live HTML over text-free art. Mobile, tablet, and desktop compositions follow
   the hero's aspect ratios; the art fades into the page at top and bottom. */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent);
}

.hero__art picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__art canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 47.99rem), (prefers-reduced-motion: reduce) {
  .hero__art canvas {
    display: none;
  }
}

.hero__intro,
.hero__actions {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}

.hero__intro {
  padding-top: clamp(2rem, 1rem + 4vw, 5rem);
}

.hero h1 {
  margin-bottom: 0.4em;
}

.hero__sub {
  max-width: 40rem;
  color: var(--mist);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
  font-style: italic;
  line-height: 1.35;
}

/* Artist hero, composed like the poster: title above the wave, actions in the dark band below it. */
.hero--artist {
  width: 100%;
  min-width: 0;
  container-type: inline-size;
  aspect-ratio: 9 / 16;
  grid-template-rows: auto 1fr auto;
}

.hero--artist .hero__intro {
  padding-top: 1.25rem;
}

.hero__artist {
  margin: 0 0 0.75rem;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 12;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.hero--artist h1 {
  max-width: 13ch;
}

.hero--artist .hero__actions {
  grid-row: 3;
  padding-bottom: 2rem;
}

.hero--artist .hero__actions .button {
  flex: 1 1 14rem;
}

@media (min-width: 48rem) {
  .hero--artist {
    aspect-ratio: auto;
    min-height: 75vw;
  }

  .hero--artist .hero__intro {
    padding-top: 2rem;
  }

  .hero--artist .hero__art img {
    object-position: 68% 50%;
  }

  .hero--artist .hero__actions .button {
    flex: 0 0 auto;
  }
}

/* Enlarged text needs the art's space for live copy and actions. */
@container (max-width: 24rem) {
  .hero--artist .hero__art {
    display: none;
  }
}

@media (min-width: 48rem) and (max-width: 74.99rem) {
  @container (max-width: 38rem) {
    .hero--artist .hero__art {
      display: none;
    }
  }
}

@media (min-width: 75rem) {
  .hero--artist {
    min-height: max(40rem, 50vw);
  }

  .hero--artist .hero__intro {
    padding-top: clamp(2rem, 4vw, 4rem);
  }

  .hero--artist h1 {
    font-size: min(3.5rem, 1.6rem + 3vw);
  }

  .hero--artist .hero__actions {
    padding-bottom: 3rem;
  }
}

/* Dreaming hero: centred, poster-like title in the upper third. */
.hero--dreaming {
  aspect-ratio: 9 / 14;
  grid-template-rows: auto 1fr auto;
  text-align: center;
}

.hero--dreaming .hero__actions {
  grid-row: 3;
  justify-content: center;
  padding-bottom: 2rem;
}

.hero--dreaming .hero__art img {
  object-position: 50% 30%;
}

.hero--dreaming h1 {
  margin-bottom: 0;
}

.hero--dreaming .series__line {
  line-height: 1.3;
}

.hero--dreaming .hero__intro {
  padding-top: clamp(2.5rem, 1rem + 5vw, 4.5rem);
}

@media (max-width: 47.99rem) {
  .hero--dreaming .hero__art img {
    object-position: 50% 10%;
  }
}

/* No aspect-ratio here: a min-height would transfer through it into a min-width wider than the screen. */
@media (min-width: 48rem) {
  .hero--dreaming {
    aspect-ratio: auto;
    min-height: clamp(36rem, 56.25vw, 52rem);
  }
}

.home-intro {
  padding-top: clamp(1rem, 4vw, 3rem);
}

/* --- Series identity ------------------------------------------------------ */

.dreaming-title {
  margin: 0 0 0.3em;
  margin-right: -0.16em; /* balances the tracking after the last letter */
  font-size: clamp(2.75rem, 0.6rem + 10vw, 8rem);
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.series__title {
  font-size: clamp(2.25rem, 1rem + 5vw, 4.5rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-right: -0.16em;
}

.series__line {
  margin-bottom: 0.25em;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  letter-spacing: 0.04em;
}

.series__line strong {
  font-weight: 400;
}

.series__accent {
  color: var(--lavender);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-style: italic;
  letter-spacing: 0.04em;
}

.series .art {
  margin-bottom: 1rem;
}

.series .text-link {
  display: inline-block;
  margin-top: 1rem;
}

.series .series__link {
  position: relative;
  margin-bottom: 12px;
}

.series__link-motif {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 48px;
  height: 10px;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.series__link:is(:hover, :focus-visible) .series__link-motif {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .series__link-motif {
    transition: opacity 0.18s ease;
  }
}

.next-performance {
  max-width: 34rem;
  margin: clamp(3rem, 2rem + 4vw, 5rem) auto 0;
}

/* --- Cards and lists ------------------------------------------------------ */

.card {
  padding: clamp(1.5rem, 1rem + 3vw, 2.75rem);
  border: 1px solid var(--hairline);
  background: var(--surface);
}

.event-list {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}

.event-card {
  position: relative;
  padding: 1.5rem clamp(1.25rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--hairline);
  background: var(--surface);
  text-align: left;
}

.event-card:hover,
.event-card:focus-within {
  border-color: rgb(211 188 233 / 0.5);
}

.event-card:focus-within {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
}

.event-card p {
  margin: 0;
}

.event-card__date {
  color: var(--mist);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.event-card__title {
  margin: 0.35rem 0 0.25rem;
}

.event-card__title a {
  text-decoration: none;
}

/* The whole card is the link's hit area. */
.event-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.event-card__status {
  margin-top: 0.5rem !important;
  color: var(--lavender);
  font-style: italic;
}

.event-card__cue {
  display: block;
  margin-top: 0.75rem;
  color: var(--mist);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 52rem;
  gap: 2.5rem 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 40rem) {
  .release-grid {
    column-gap: 3rem;
  }
}

.release-grid--selected {
  max-width: 30rem;
}

.release {
  min-width: 0;
}

.release__art,
.album-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--hairline);
}

.album-art {
  max-width: 22rem;
  margin: 0 auto 2rem;
}

.release__art {
  margin-bottom: 1rem;
}

.release__title {
  margin-bottom: 0.25rem;
}

.release__title a {
  text-decoration: none;
}

.release__meta {
  color: var(--mist);
  font-size: 0.9375rem;
}

.release__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0;
  list-style: none;
}

.release__links li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.release-grid--selected .release__links {
  display: block;
}

.release-grid--selected .release__links li + li {
  margin-top: 0.25rem;
}

/* --- Performance page ----------------------------------------------------- */

.event__head {
  padding-top: clamp(2.5rem, 2rem + 4vw, 5rem);
}

.event__facts {
  margin-bottom: 2rem;
  text-wrap: balance;
  color: var(--mist);
  font-size: 1.2em;
}

.event__body {
  display: grid;
  gap: 1.5rem;
}

.event__body > * {
  width: min(100%, var(--narrow));
  margin-inline: auto;
}

@media (min-width: 70rem) {
  .event__body {
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
    gap: 3rem;
    align-items: start;
  }

  .event__body > * {
    width: 100%;
  }
}

#rsvp {
  scroll-margin-top: 1.5rem;
}

/* The approved announcement, set as live text like the poster. */
.announcement {
  container-type: inline-size;
  margin-top: 1.5rem;
  padding: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(1.25rem, 1rem + 4vw, 4rem);
  border: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse at 68% 45%, rgb(106 96 136 / 0.35), transparent 60%),
    linear-gradient(var(--indigo), var(--midnight));
}

.announcement p {
  max-width: 34rem;
  margin-inline: auto;
}

.announcement__presents,
.announcement__date,
.announcement__caps {
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.announcement__presents {
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Sized to the card, not the viewport, so the tracked word always fits on one line. */
.announcement__title {
  font-size: min(12.5cqi, 5.5rem);
}

.announcement strong {
  font-weight: 500;
}

.announcement__date {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  margin-bottom: 0.25em;
}

.announcement__muted {
  color: var(--mist);
}

.announcement__wave {
  display: block;
  max-width: none;
  aspect-ratio: 12 / 5;
  overflow: clip;
  margin: 1.5rem calc(-1 * clamp(1.25rem, 1rem + 4vw, 4rem)) 2rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15% 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 15% 85%, transparent);
}

.announcement__wave img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.details {
  display: grid;
  margin-inline: auto;
  border-top: 1px solid var(--hairline);
}

.details > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem 2rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}

.details dt {
  color: var(--mist);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
}

@media (min-width: 36rem) {
  .details > div {
    grid-template-columns: 9rem 1fr;
    align-items: baseline;
  }
}

.back {
  margin-top: 3rem;
}

/* --- Forms ---------------------------------------------------------------- */

.form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
}

.form > :last-child {
  margin-bottom: 0;
}

.form .button {
  justify-self: start;
}

.form--center .button {
  justify-self: center;
}

.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 0.4rem;
}

.field label {
  font-size: 1rem;
}

.field__optional,
.field__hint,
.form__note,
.form__privacy {
  color: var(--mist);
}

.field__hint,
.form__privacy {
  margin: 0;
  font-size: 0.9375rem;
}

.form__note {
  margin: 0;
}

input[type='text'],
input[type='email'],
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgb(175 166 194 / 0.6);
  border-radius: 0;
  background: rgb(12 17 34 / 0.7);
  color: var(--ivory);
  font: inherit;
  font-size: 1.0625rem; /* at least 16px so phones do not zoom */
}

select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(-45deg, transparent 50%, var(--mist) 50%);
  background-position: right 1.25rem top 55%, right 0.9rem top 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
}

select option {
  background: var(--midnight);
  color: var(--ivory);
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

::placeholder {
  color: var(--mist);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--mist);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--lavender);
  outline-offset: 1px;
}

[aria-invalid='true'] {
  border-color: var(--error) !important;
}

.field__error {
  margin: 0;
  color: var(--error);
  font-size: 0.9375rem;
}

.field__error::before {
  content: 'Error: ';
  font-weight: 600;
}

.form__alert {
  margin: 0;
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--error);
  background: rgb(214 191 234 / 0.075);
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
}

.field--check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--lavender);
}

.field__row {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 0.75rem;
}

.field__row input {
  flex: 1 1 16rem;
  min-width: 0;
  width: auto;
}

.form-success {
  padding: 1.5rem;
  border-left: 2px solid var(--lavender);
  background: rgb(211 188 233 / 0.07);
  text-align: left;
}

.form-success p:last-child {
  margin-bottom: 0;
}

.form-success__message {
  font-size: 1.2em;
}

/* Honeypot: present for bots, absent for people and assistive technology. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Page specifics ------------------------------------------------------- */

.home-bio {
  padding-block: 0;
}

.work-with-me__title {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
}

.pronunciation {
  color: var(--mist);
  font-size: 0.9375rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

.pull {
  margin-block: 2em;
  font-size: 1.3em;
  line-height: 1.4;
}

.pull strong {
  font-weight: 500;
}

.about__next {
  margin-top: 2.5rem;
}

.offerings {
  display: grid;
  gap: 2.5rem;
}

.offering {
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

/* h2 for the outline, sized as h3: the offerings sit under the page title. */
.offering h2 {
  font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
}

@media (min-width: 60rem) {
  .offerings {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.big-email {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
}

.big-email strong {
  font-weight: 400;
}

.selector {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
}

.selector .field {
  flex: 1 1 18rem;
}

.recording {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.recording__meta {
  color: var(--mist);
}

.contact > .section {
  padding-top: 1rem;
}

.newsletter {
  padding-top: 1rem;
}

.takehome__release {
  margin-top: 2rem;
  color: var(--mist);
}

.takehome__thanks {
  margin-top: 2.5rem;
  color: var(--lavender);
}

.privacy h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
}

.privacy h3 {
  margin-top: 1.75rem;
  font-size: 1.2rem;
}

.privacy ul {
  padding-left: 1.25rem;
}

.privacy li {
  margin-bottom: 0.6em;
}

/* Unknown facts the owner must supply; impossible to miss on review. */
.owner-review {
  padding: 0.05em 0.35em;
  border: 1px dashed var(--error);
  background: rgb(214 191 234 / 0.14);
  color: var(--ivory);
}

/* --- Utilities ------------------------------------------------------------ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Motion --------------------------------------------------------------- */
/* Colour changes only, and none when reduced motion is requested. */

@media (prefers-reduced-motion: no-preference) {
  a,
  .button,
  .event-card,
  input,
  select,
  textarea {
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  }
}

/* === design pass 1: form flow and recovery === */

/* The chooser's select may shrink below its label width; the Show button keeps its size and wraps below. */
.selector .field {
  min-width: 0;
}

.selector .button {
  flex: 0 0 auto;
}

.recording__meta {
  overflow-wrap: anywhere;
}

/* Error summary: the message, then a link to each invalid field. */
.form__alert p,
.form__alert ul {
  margin: 0;
}

.form__alert ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}
