/* =================================================================
   Self-hosted Ogg (Sharp Type): Display cut for headings, Text cut for body
   ================================================================= */
/* One typeface: Ogg (Sharp Type). Display cut for headings and the artist's
   name, Text cut — drawn for small sizes — for body, navigation and labels.
   One weight each. Hierarchy comes from size and from which cut is used, not
   from stacking weights. */
@font-face {
  font-family: "Ogg";
  src: url("../fonts/Ogg-Medium.woff2") format("woff2");
  font-weight: 400;   /* the display cut ships one weight; swap the file to
                         Ogg-Bold.woff2 for a heavier setting, nothing else
                         needs to change */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ogg Text";
  src: url("../fonts/OggText-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ogg Text";
  src: url("../fonts/OggText-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =================================================================
   Tokens — gallery white, black text, no accent hue. Only neutrals.
   ================================================================= */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #767676;      /* neutral grey for secondary text */
  --hairline: #e4e4e4;   /* faint rules */

  --measure: 62ch;
  --page-pad: clamp(1.25rem, 4vw, 4rem);
  --gap: clamp(1rem, 2.4vw, 2.25rem);
  --section-space: clamp(3.5rem, 9vw, 8rem);

  --font: "Ogg Text", Iowan Old Style, Georgia, serif;
  --font-display: "Ogg", Iowan Old Style, Georgia, serif;
}

/* =================================================================
   Reset
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.02rem, 0.97rem + 0.2vw, 1.12rem);
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }

/* Available to screen readers, absent from the page. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* =================================================================
   Header / nav
   ================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 1.1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--page-pad);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-logo {
  font-family: var(--font-display);
  font-weight: 400;     /* Light is too fragile at wordmark size */
  font-size: 1.3rem;
  letter-spacing: 0;
}
/* Nav and phone travel together, so the bar wraps to two rows on a narrow
   screen (name, then everything else) instead of three. This gap is wider than
   the one between nav items, so the phone reads as its own affordance rather
   than a fifth destination. */
.site-header__right {
  display: flex;
  align-items: baseline;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.site-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.site-nav a:hover { border-color: var(--ink); }
.site-nav a[aria-current="page"] { border-color: var(--ink); font-weight: 500; }

/* The only permanent booking affordance on the site. Weight and a standing
   rule separate it from the nav without adding a hue. */
.site-email {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.15s ease;
}
.site-email:hover { opacity: 0.55; }
/* Comfortable thumb target without moving the rule off the baseline. */
.site-email::after {
  content: "";
  position: absolute;
  inset: -0.7rem -0.5rem;
}
/* On a narrow screen the number would push the bar to a third row, and it is
   not needed: tapping "Call" dials it. On a desktop it cannot be tapped, so
   the digits have to be readable there. */
@media (max-width: 700px) {
  .site-email__address { display: none; }
}

/* =================================================================
   Hero
   ================================================================= */
.hero {
  position: relative;
  min-height: 50vh;
  background: #f2f2f2;
}
.hero__img {
  display: block;
  width: 100%;
  height: auto;      /* show the whole band — the crop is decided in the file,
                        not re-cut by the viewport */
  max-height: 82vh;
  object-fit: cover;
  object-position: 62% center;   /* if it ever is clipped, keep the group */
}
@media (max-width: 700px) {
  /* A 2:1 band is a letterbox strip on a phone, so here it does crop —
     anchored right of centre, where the work sits. */
  .hero__img { height: 62vh; max-height: none; }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  max-width: 1400px;
  margin-inline: auto;
  padding: 0 var(--page-pad) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__name {
  max-width: 15ch;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.005em;   /* Ogg is already tightly fitted */
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  text-wrap: balance;
}
.hero__intro {
  margin-top: 0.5rem;
  max-width: 44ch;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.25rem);
}
/* The next block, in the first viewport. Sized to sit under the name without
   competing with it: this is the answer, the name is the identity. */
/* One line, not a stack: the date, the slot and the action read as a single
   sentence so the hero holds three blocks of type rather than five. */
.hero__next {
  margin-top: clamp(1rem, 2.4vw, 1.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.7rem;
  font-size: clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
  line-height: 1.4;
}
.hero__next .sep { opacity: 0.45; }
.hero__next a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.hero__next a:hover { opacity: 0.65; }


/* Name colour is chosen per opening image (home.yml). The gradient below is
   the safety net that choice needs now that booking text lives down here:
   it is keyed to the same modifier, so a Light name gets a dark floor and a
   Dark name gets a light one, and either survives a bright upload. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero--light::before {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.28) 34%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.22) 24%, rgba(0, 0, 0, 0) 50%);
}
.hero--dark::before {
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.34) 34%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(to right, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.28) 24%, rgba(255, 255, 255, 0) 50%);
}
.hero--light .hero__name { color: #fff; }
.hero--light .hero__intro { color: #fff; }
.hero--light .hero__next { color: #fff; }
/* The default ink focus ring would be black on a dark opening image. */
.hero--light :focus-visible { outline-color: #fff; }
.hero--dark .hero__name { color: var(--ink); }
.hero--dark .hero__intro { color: var(--ink); }
.hero--dark .hero__next { color: var(--ink); }

/* =================================================================
   Sections (home long-scroll + generic)
   ================================================================= */
.site-main { display: block; }
.section {
  max-width: 1400px;
  margin-inline: auto;
  padding: var(--section-space) var(--page-pad);
}
.section + .section { padding-top: 0; }
.section__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
}
/* The classes band's heading only. It carries more weight than the shared
   section titles because the band outranks them, and it drops the hairline —
   the band already has its own boundary. */
.section__title--lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0;
  padding-bottom: 0;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 0;
}

.section__more { margin-top: 2rem; }
.section__more a {
  font-size: 0.9rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.section__more a:hover { opacity: 0.55; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  padding: var(--section-space) var(--page-pad) 0;
  max-width: 1400px;
  margin-inline: auto;
}

/* Long-form text */
.text { max-width: var(--measure); line-height: 1.65; }
.text > * + * { margin-top: 1em; }
.text a { border-bottom: 1px solid var(--ink); }
.section--bio .bio-text { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem); }

/* =================================================================
   Masonry grid — natural aspect ratios, never cropped
   ================================================================= */
.masonry {
  column-count: 3;
  column-gap: var(--gap);
}
.masonry__item {
  break-inside: avoid;
  margin-bottom: var(--gap);
}
.masonry__link { display: block; }
.artwork-img {
  width: 100%;
  height: auto;      /* natural ratio preserved */
  background: #f2f2f2;
}
.masonry__link:hover .artwork-img { opacity: 0.82; transition: opacity 0.2s ease; }

@media (max-width: 1100px) { .masonry { column-count: 2; } }
@media (max-width: 640px)  { .masonry { column-count: 1; } }

/* =================================================================
   Work page: filters + grid items
   ================================================================= */
.work { padding: var(--section-space) var(--page-pad); max-width: 1400px; margin-inline: auto; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.filter {
  font-size: 0.95rem;
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); font-weight: 500; border-color: var(--ink); }

.work-item[hidden] { display: none; }

/* -----------------------------------------------------------------
   Grid tile + rollover panel
   The panel is a pointer-only enhancement: `hover: hover` keeps it off
   touch screens, where a tap goes straight to the piece's own page and
   nothing is hidden behind a gesture that does not exist.
   ----------------------------------------------------------------- */
.work-tile { position: relative; display: block; line-height: 0; }

.work-tile__veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.15rem;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  line-height: 1.45;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.work-tile__veil .tomb__title {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  text-wrap: balance;
}
.work-tile__veil .tomb__line { font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); }

@media (hover: hover) and (pointer: fine) {
  .work-tile:hover .work-tile__veil,
  .work-tile:focus-visible .work-tile__veil { opacity: 1; }
}

/* -----------------------------------------------------------------
   Artwork detail page
   ----------------------------------------------------------------- */
.artwork { padding: var(--section-space) var(--page-pad); max-width: 1400px; margin-inline: auto; }
.artwork__crumb { font-size: 0.85rem; color: var(--muted); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.artwork__crumb a { color: var(--muted); }
.artwork__crumb a:hover { color: var(--ink); }

.artwork__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.artwork__figure { margin: 0; }
.artwork__figure img {
  display: block;
  width: 100%;
  height: auto;       /* natural ratio, never cropped */
  background: #f2f2f2;
}

.tomb { display: flex; flex-direction: column; gap: 1.4rem; }
.tomb__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; line-height: 1.25; margin: 0; text-wrap: balance; }
.tomb__facts { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.tomb__row { display: flex; flex-direction: column; gap: 0.05rem; }
.tomb__row dt {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.tomb__row dd { margin: 0; font-size: 0.9rem; }
.tomb__about {
  font-size: 0.92rem;
  line-height: 1.65;
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem;
}

.artwork__pager {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.88rem;
  border-top: 1px solid var(--hairline);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.1rem;
  color: var(--muted);
}
.artwork__pager a { color: var(--muted); }
.artwork__pager a:hover { color: var(--ink); }
.artwork__pager-next { text-align: right; margin-left: auto; }

@media (max-width: 900px) {
  .artwork__body { grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 2rem); }
}

.empty { color: var(--muted); padding: 4rem var(--page-pad); text-align: center; }

/* =================================================================
   Exhibition list (Home upcoming, About, News upcoming)
   ================================================================= */
.exhibition-list { border-top: 1px solid var(--hairline); }
.exhibition {
  display: grid;
  grid-template-columns: 12rem 1fr auto;
  gap: 0.4rem 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
}
.exhibition__date { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.exhibition__title { font-weight: 500; }
.exhibition__venue { color: var(--muted); }
.exhibition__venue a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.exhibition__venue a:hover { opacity: 0.55; }

@media (max-width: 700px) {
  .exhibition { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* =================================================================
   Classes — homepage band + Classes page
   ================================================================= */
/* Full-bleed so the band reads as its own territory rather than one more
   entry in the section stack. One hairline at the foot is the whole boundary:
   the hero supplies the top edge. */
.classes-band {
  padding-block: var(--section-space);
  border-bottom: 1px solid var(--hairline);
}
.classes-band__inner {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--page-pad);
}
/* The band leads with its answer; the schedule below it is supporting
   material, so the two get deliberately different intervals. */
.next-block { max-width: 34ch; }
.next-block__when {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.45rem + 2.1vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.next-block__what {
  margin-top: 0.75rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.45;
}
.next-block__spaces { font-weight: 500; white-space: nowrap; }
.next-block__book {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.next-block__book a {
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.15s ease;
}
.next-block__book a:hover { opacity: 0.55; }

.classes-band__grid {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.classes-band__photo img { width: 100%; height: auto; background: #f2f2f2; }
.classes-band__body > * + * { margin-top: 1.75rem; }
.classes-band__text {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem);
}
.classes-band__subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.classes-band__subtitle + .class-list { margin-top: 0.75rem; }

@media (max-width: 800px) {
  .classes-band__grid { grid-template-columns: 1fr; }
}

/* Course-block list — shared by the band and the Classes page */
.class-list { border-top: 1px solid var(--hairline); }
.class-block {
  display: grid;
  grid-template-columns: 12rem 1fr auto;
  grid-template-areas:
    "level when   status"
    "level start  status";
  gap: 0.15rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
}
.class-block__level  { grid-area: level; font-weight: 500; align-self: start; }
.class-block__when   { grid-area: when; }
.class-block__start  {
  grid-area: start;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.class-block__status {
  grid-area: status;
  align-self: start;
  text-align: right;
  font-size: 0.9rem;
  color: var(--muted);
}
.class-block__status--open { color: var(--ink); }

@media (max-width: 700px) {
  .class-block {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "level status"
      "when  status"
      "start status";
    gap: 0.1rem 1rem;
  }
  .class-block__status { align-self: center; }
}

/* Classes page */
.classes { max-width: 1400px; margin-inline: auto; }
.classes__lede {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem) var(--page-pad) 0;
  align-items: start;
}
.classes__photo img { width: 100%; height: auto; background: #f2f2f2; }
.classes__intro { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem); max-width: var(--measure); }

@media (max-width: 800px) {
  .classes__lede { grid-template-columns: 1fr; }
}

.classes-section { padding: var(--section-space) var(--page-pad) 0; }
.classes-section:last-child { padding-bottom: var(--section-space); }
.classes-section__note { color: var(--muted); font-size: 0.9rem; margin: -1rem 0 1.75rem; }
.classes-booking { max-width: var(--measure); }
.classes-booking > * + * { margin-top: 1.25rem; }
.classes-booking .contact-list { margin: 0.25rem 0; }

/* =================================================================
   About
   ================================================================= */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 1400px;
  margin-inline: auto;
  padding: var(--section-space) var(--page-pad);
  align-items: start;
}
.about__portrait { position: sticky; top: 6rem; }
.about__body > * + * { margin-top: clamp(2.5rem, 6vw, 4rem); }
.about__bio { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem); max-width: var(--measure); }
.contact-list { display: grid; grid-template-columns: 8rem 1fr; gap: 0.6rem 1.5rem; }
.contact-list dt { color: var(--muted); font-size: 0.9rem; }
.contact-list dd a { border-bottom: 1px solid var(--ink); }
.contact-list dd a:hover { opacity: 0.55; }

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 22rem; }
}

/* =================================================================
   News stream
   ================================================================= */
.news { max-width: 1400px; margin-inline: auto; }
.news-section { padding: 0 var(--page-pad) var(--section-space); }
.stream { border-top: 1px solid var(--hairline); }
.stream__item {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.5rem 2rem;
  padding: clamp(1.75rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--hairline);
}
.stream__date { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; padding-top: 0.35rem; }
.stream__body { max-width: var(--measure); }
.stream__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.stream__venue { color: var(--muted); margin-top: 0.25rem; }
.stream__venue a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.stream__venue a:hover { opacity: 0.55; }
.stream__img { margin-top: 1.25rem; width: 100%; height: auto; }
.stream__text { margin-top: 1rem; }

@media (max-width: 700px) {
  .stream__item { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* =================================================================
   Footer / contact
   ================================================================= */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(3rem, 7vw, 6rem);
  margin-top: var(--section-space);
}
.site-footer__inner {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 4.4vw, 2.9rem); letter-spacing: -0.005em; }
.site-footer__contact { display: flex; flex-direction: column; gap: 0.35rem; font-style: normal; text-align: right; }
.site-footer__contact a { border-bottom: 1px solid transparent; }
.site-footer__contact a:hover { border-color: var(--ink); }
/* Territorial acknowledgement — full weight, same colour as the footer text */
.site-footer__ack {
  max-width: 1400px;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding-inline: var(--page-pad);
  color: var(--ink);
}

@media (max-width: 600px) {
  .site-footer__contact { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}


/* =================================================================
   Booking enquiry form
   The mailto: route is unreliable for anyone on webmail, so this is
   the primary way to reach Kathleen. Kept deliberately plain: labels
   above fields, one column, no placeholder-as-label.
   ================================================================= */
.form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 34rem; margin-top: 2rem; }
.form__row { display: flex; flex-direction: column; gap: 0.35rem; }
.form__row label { font-size: 0.9rem; }
.form__optional { color: var(--muted); }
.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.6rem 0.7rem;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form select { background-image: none; }
.form textarea { resize: vertical; line-height: 1.5; }
.form :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.form [aria-invalid="true"] { border-width: 2px; }

.form__error { font-size: 0.85rem; color: #8e2f14; }
.form__error--summary { margin-bottom: 0.5rem; font-size: 0.95rem; }
.form__sent {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--ink);
  background: #f4f4f2;
  max-width: 34rem;
}

/* Out of sight and out of the tab order, but still in the DOM where a bot
   will find it. display:none is skipped by the better ones. */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit {
  align-self: flex-start;
  font: inherit;
  cursor: pointer;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.7rem 1.4rem;
  transition: opacity 0.15s ease;
}
.form__submit:hover { opacity: 0.8; }
