/* Yard & Field. Self-hosted fonts, no external requests. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f5f1e8;
  --paper-2: #ebe4d4;
  --ink: #1f2a22;
  --ink-soft: #4a5249;
  --green: #2f4a36;
  --green-deep: #1d3024;
  --clay: #874e2c;
  --line: #d6ccb6;
  --on-green: #f1ecdf;
  --mount: #fffdf8;
  --header: #ede7d9;
  --error: #a3322a;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  color-scheme: light;
}

/* Light on every device; dark only when the visitor picks it with the header switch, which
   theme.js records as data-theme on <html>. The component rules further down wrap it in
   :where() so they keep the specificity they had as media queries and the cascade is unchanged. */
:root[data-theme="dark"] {
  --paper: #151a16;
  --paper-2: #1d241e;
  --ink: #ece6d8;
  --ink-soft: #b4ad9d;
  --green: #2a3f2f;
  --green-deep: #0f1711;
  --clay: #d49064;
  --line: #333b33;
  --on-green: #ece6d8;
  --mount: #1d241e;
  --header: #0e120f;
  --error: #ec8a80;
  color-scheme: dark;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--clay);
}

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}

/* Headings balance their lines; body text avoids a lone last word. */

p,
li,
dd {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  text-wrap: balance;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.09);
}

html {
  scroll-padding-top: 5.5rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 7vw, 3.3rem);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  color: var(--green);
}

.wordmark .mark {
  height: 0.72em;
  width: auto;
  margin-left: 0.14em;
  vertical-align: -0.02em;
}

.wordmark .mark .stem {
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
}

.wordmark .mark .leaf-a {
  fill: var(--green);
}

.wordmark .mark .leaf-b {
  fill: var(--clay);
}

:where(:root[data-theme="dark"]) .wordmark {
  color: var(--ink);
}

:where(:root[data-theme="dark"]) .wordmark .mark .stem {
  stroke: var(--ink);
}

:where(:root[data-theme="dark"]) .wordmark .mark .leaf-a {
  fill: var(--ink);
}

.wordmark span {
  color: var(--clay);
  font-style: italic;
  font-weight: 400;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}

.site-nav a {
  text-decoration: none;
}

/* Phones get a menu button instead; <details> opens it without JavaScript. */
.menu {
  display: none;
  position: relative;
}

.menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu svg {
  width: 1.5rem;
  height: 1.5rem;
}

.menu .close-icon,
.menu[open] .open-icon {
  display: none;
}

.menu[open] .close-icon {
  display: block;
}

.menu nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 10;
  min-width: 14rem;
  padding: 0.5rem 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.14);
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}

/* The wordmark takes the spare width, so the nav, the theme switch and the menu sit together
   on the right. */
.site-header .wordmark {
  margin-right: auto;
}

/* Hidden until theme.js has set data-theme, so it shows from the first paint with JavaScript
   and never without it. */
.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

:root[data-theme] .theme-toggle {
  display: flex;
}

.theme-toggle:hover {
  color: var(--clay);
}

.theme-toggle svg {
  width: 1.375rem;
  height: 1.375rem;
}

.theme-toggle .sun,
:root[data-theme="dark"] .theme-toggle .moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .sun {
  display: block;
}

@media (max-width: 62rem) {
  .site-nav {
    display: none;
  }

  .menu {
    display: block;
  }
}

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 400;
}

.hero h1 em {
  font-style: italic;
  color: var(--green);
}

:where(:root[data-theme="dark"]) .hero h1 em {
  color: var(--clay);
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--clay);
}

.hero figure {
  margin: 0;
  position: relative;
}

.hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Photos sit in a light mount with a hairline edge, like a framed print. */
.hero img,
.mosaic img {
  padding: 0.5rem;
  background: var(--mount);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

@media (max-width: 52rem) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero img {
    aspect-ratio: 4 / 3;
  }
}

/* Sections */

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head h2,
.section-head .page-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 36rem;
}

@media (max-width: 52rem) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Ranges */

.ranges {
  border-top: 1px solid var(--line);
}

.range-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}

.range-list > li {
  padding: 1.75rem 1.5rem 2rem 0;
  border-right: 1px solid var(--line);
  padding-left: 1.5rem;
}

.range-list > li:first-child {
  padding-left: 0;
}

.range-list > li:last-child {
  border-right: 0;
}

.range-list svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--green);
  margin-bottom: 1.25rem;
}

:where(:root[data-theme="dark"]) .range-list svg {
  color: var(--clay);
}

.range-list h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.range-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

@media (max-width: 60rem) {
  .range-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .range-list > li:nth-child(2) {
    border-right: 0;
  }

  .range-list > li:nth-child(3) {
    padding-left: 0;
  }

  .range-list > li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 34rem) {
  .range-list {
    grid-template-columns: 1fr;
  }

  .range-list > li,
  .range-list > li:nth-child(3) {
    padding-left: 0;
    border-right: 0;
  }

  .range-list > li + li {
    border-top: 1px solid var(--line);
  }
}

/* Photo band */

.band {
  margin: 0;
}

.band img {
  width: 100%;
  border-block: 0.5rem solid var(--mount);
  outline: 1px solid var(--line);
  height: clamp(14rem, 36vw, 30rem);
  object-fit: cover;
}

/* Approach */

.approach {
  background: var(--paper-2);
}

.approach-note {
  align-items: start;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}

.approach-note h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 5vw, 5rem);
  list-style: none;
  counter-reset: point;
  margin: 0;
  padding: 0;
}

.approach-grid li {
  counter-increment: point;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1rem;
}

.approach-grid li::before {
  content: counter(point, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--clay);
  grid-row: span 2;
  line-height: 1.2;
}

.approach-grid h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.approach-grid p {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 60rem) {
  .approach-grid {
    grid-template-columns: 1fr;
  }
}

/* Mosaic */

.mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mosaic img {
  width: 100%;
  height: clamp(12rem, 28vw, 22rem);
  object-fit: cover;
}

@media (max-width: 40rem) {
  .mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .mosaic li:first-child {
    grid-column: span 2;
  }
}

/* Supplier band (home) */

.supplier-band {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
  padding-block: clamp(2rem, 5vw, 3rem);
}

.supplier-band .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
}

.supplier-band .eyebrow {
  margin-bottom: 0.5rem;
}

.supplier-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.supplier-band p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 52rem) {
  .supplier-band .wrap {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* Call to action band (home) and contact band (suppliers) */

.cta-band {
  background: var(--green-deep);
  color: var(--on-green);
}

.cta-band .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-band .eyebrow {
  color: #e0a47c;
}

.cta-band p {
  margin: 0 0 1rem;
  color: var(--on-green);
  opacity: 0.88;
}

.cta-band .contact {
  border-left: 1px solid rgba(241, 236, 223, 0.3);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
}

.cta-band .contact a:not(.btn):not(.inline) {
  color: var(--on-green);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.cta-band .contact a:not(.btn):not(.inline):hover {
  color: #e0a47c;
}

@media (max-width: 52rem) {
  .cta-band .wrap {
    grid-template-columns: 1fr;
  }

  .cta-band .contact {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(241, 236, 223, 0.3);
    padding-top: 1.5rem;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-grid .wordmark {
  font-size: 2rem;
  color: var(--ink);
}

.footer-grid .about-line {
  margin: 0.75rem 0 0;
  max-width: 20rem;
}

.footer-grid h2 {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.9rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 0.5rem;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.legal {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
}

.legal p {
  margin: 0;
  max-width: 52rem;
}

@media (max-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* Prose pages (privacy) */

.prose {
  max-width: 44rem;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.prose h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.prose h2 {
  font-size: 1.6rem;
  margin: 2.75rem 0 0.75rem;
}

.prose .updated {
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.prose .byline {
  color: var(--ink-soft);
  margin: 0 0 0.25rem;
}

.prose .disclaimer {
  background: var(--paper-2);
  border-left: 4px solid var(--clay);
  border-radius: 0.25rem;
  padding: 1rem 1.25rem;
  margin: 2.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.prose .sources {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

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

.prose li + li {
  margin-top: 0.4rem;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}

.prose .lede {
  margin-top: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.75rem 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.prose th {
  font-weight: 600;
}

.prose .table-scroll {
  overflow-x: auto;
}

.sum {
  font-family: var(--serif);
  font-size: 1.25rem;
  background: var(--mount);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

.crumbs {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

/* Opening-soon bar */

/* Whole-pixel heights above and in the pinned header, so its text never lands on a half pixel
   and shifts when the header repaints. */
.announce {
  background: var(--green-deep);
  color: var(--on-green);
  font-size: 0.875rem;
  line-height: 1.5rem;
  text-align: center;
  padding: 0.5rem 1.25rem;
}

.announce p {
  margin: 0;
}

.announce a {
  color: var(--on-green);
  font-weight: 600;
}

.announce a:hover {
  color: #e0a47c;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  background: var(--green);
  color: var(--on-green);
  border: 1px solid var(--green);
}

.btn:hover {
  background: var(--green-deep);
  color: var(--on-green);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.cta-band .btn {
  background: var(--on-green);
  color: var(--green-deep);
  border-color: var(--on-green);
}

.cta-band .btn:hover {
  background: #e0a47c;
  border-color: #e0a47c;
  color: var(--green-deep);
}

:where(:root[data-theme="dark"]) .btn {
  background: var(--clay);
  border-color: var(--clay);
  color: #151a16;
}

:where(:root[data-theme="dark"]) .btn:hover {
  background: #e0a47c;
  border-color: #e0a47c;
  color: #151a16;
}

:where(:root[data-theme="dark"]) .btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

:where(:root[data-theme="dark"]) .btn-ghost:hover {
  background: var(--paper-2);
  color: var(--ink);
}

/* Company details on the about page. */

.company-details {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 0.6rem 1.5rem;
  margin: 0;
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
}

.company-details dt {
  font-weight: 600;
}

.company-details dd {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 34rem) {
  .company-details {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .company-details dd + dt {
    margin-top: 0.75rem;
  }
}

/* Promise strip: each icon and its text centred as a unit in its column, left-aligned on phones. */

.promises {
  border-block: 1px solid var(--line);
  background: var(--mount);
}

.promises ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.promises li {
  display: grid;
  grid-template-columns: 2rem minmax(0, max-content);
  justify-content: center;
  align-content: center;
  gap: 0 0.85rem;
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line);
}

.promises li:last-child {
  border-right: 0;
}

.promises svg {
  width: 2rem;
  height: 2rem;
  color: var(--clay);
  grid-row: span 2;
  align-self: center;
}

.promises strong {
  font-size: 0.9375rem;
}

.promises span {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

@media (max-width: 60rem) {
  .promises ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .promises li:nth-child(2) {
    border-right: 0;
  }

  .promises li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 34rem) {
  .promises ul {
    grid-template-columns: 1fr;
  }

  .promises li {
    justify-content: start;
    padding-inline: 0;
    border-right: 0;
  }

  .promises li + li {
    border-top: 1px solid var(--line);
  }
}

/* Range cards: what each range will hold */

.range-list .items {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.9375rem;
}

.range-list .items li {
  padding: 0.35rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Advice cards */

.guides {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.guides a {
  display: block;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--mount);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  text-decoration: none;
}

.guides a:hover {
  border-color: var(--clay);
  color: inherit;
}

.guides .kind {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
}

.guides h2,
.guides h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  margin: 0.75rem 0 0.6rem;
}

.guides p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.guides .more {
  font-weight: 600;
  font-size: 0.9375rem;
}

.guide-group + .guide-group {
  margin-top: clamp(2rem, 5vw, 3rem);
}

.guide-group > h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

@media (max-width: 44rem) {
  .guides {
    grid-template-columns: 1fr;
  }
}

/* The dark green bands need their own shade in dark mode, or they vanish into the page. */
:where(:root[data-theme="dark"]) .cta-band,
:where(:root[data-theme="dark"]) .announce {
  background: #243a2c;
}

.about-line a {
  text-decoration: underline;
}

/* On phones the range cards keep their one-line summary; the item lists add three screens. */
@media (max-width: 34rem) {
  .range-list .items {
    display: none;
  }
}

.faq.prose {
  padding-block: 0;
}

.faq h3:first-child {
  margin-top: 0;
}

/* Supplier application form. */

.apply fieldset {
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
}

.apply legend {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  padding: 0;
}

.apply .field {
  margin-bottom: 1.1rem;
}

.apply .field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.apply .optional,
.apply .hint {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.apply .hint {
  margin: 0 0 0.35rem;
}

.apply input[type="text"],
.apply input[type="email"],
.apply textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--mount);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.apply textarea {
  resize: vertical;
}

.apply input:focus-visible,
.apply textarea:focus-visible {
  border-color: var(--clay);
}

/* The browser's own checks (required, pattern) mark a field once the person has left it or tried
   to send; :user-invalid waits for that, so an untouched form isn't red. */
.apply input:user-invalid,
.apply textarea:user-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.apply .error {
  display: none;
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--error);
}

.apply input:user-invalid + .error {
  display: block;
}

.apply button {
  cursor: pointer;
}

/* The problem page shows the one explanation its #anchor names. */
.why > p {
  display: none;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--error);
  background: var(--mount);
}

.why > p:target {
  display: block;
}

.apply .choices label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.25rem;
}

.apply input[type="checkbox"],
.apply input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--green);
}

.apply .cf-turnstile {
  margin: 0 0 1.25rem;
}

.apply .small {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Off-screen rather than display: none, which some form fillers skip. */
.apply .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

:where(:root[data-theme="dark"]) .apply input[type="checkbox"],
:where(:root[data-theme="dark"]) .apply input[type="radio"] {
  accent-color: var(--clay);
}
