/* Fieldhouse — shared styles */

/* Rethink Sans (SIL Open Font License, see assets/fonts/OFL-Rethink-Sans.txt), served from this site */
@font-face {
  font-family: "Rethink Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/rethink-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Rethink Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/rethink-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --oat: #FEFCF7;
  --oat-deep: #EEE3CD;
  --forest: #435B41;
  --wheat: #D2A44F;
  --soil: #8A4B32;
  --leaf: #6E8D49;
  --deep: #26352A;
  --cream: #F6F0E3;
  --bar: #FFFFFF;          /* top bar and footer */
  /* A soft paper grain on the bar, so the white never looks flat */
  --bar-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .32  0 0 0 0 .22  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* One light colour per tofu */
  --firm-tint: #F9D2BD;    /* light coral: heat and intensity, the one you sear and grill */
  --soft-tint: #E1EDC6;    /* pale pistachio: fresh, light and gentle */
  --silken-tint: #EAE3F7;  /* light lavender: rich and luxurious */
  --soy-tint: #FAF1D6;     /* soft soybean yellow: the "What's inside" panel */

  --ink: var(--deep);
  --ink-soft: color-mix(in srgb, var(--deep) 76%, transparent);
  --rule: color-mix(in srgb, var(--deep) 20%, transparent);

  --sans: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale: every section uses these, so sizes stay consistent down the page */
  --fs-title: clamp(2.25rem, 4.5vw, 3.5rem);    /* section titles */
  --fs-name: clamp(1.875rem, 2.8vw, 2.5rem);    /* product names on cards */
  --fs-lede: clamp(1.125rem, 1.6vw, 1.3rem);    /* the line under a title */
  --fs-body: 1.0625rem;                         /* all running text */
  --fs-small: .9375rem;                         /* footer, fine print */
  --fs-label: .75rem;                           /* texture scale, sticker */
  --art-w: clamp(5rem, 26%, 6.75rem);           /* picture beside the dishes */

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wrap: 75rem;
  --header-h: 4.5rem;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

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

/* Beyond the page (the bounce at either end) is the same grainy white as the top bar and footer */
html { background: var(--bar-texture), var(--bar); }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); overflow-anchor: none; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  /* Paper grain across the whole page, so the cream never looks flat */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .25  0 0 0 .176 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), var(--oat);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; display: block; }
img, svg, canvas {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--deep);
  color: var(--cream);
  border-radius: 999px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.svg-defs { position: absolute; width: 0; height: 0; }

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

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

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

/* Sticky rather than fixed, so the bar travels with the page when it bounces;
   the negative margin lets the page start underneath it, as before */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: calc(-1 * var(--header-h));
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  /* White with paper grain, slightly see-through so the page shows faintly beneath */
  background: var(--bar-texture), color-mix(in srgb, var(--bar) 82%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
          backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--forest) 18%, transparent);
}
/* The bar continues upward out of sight, so pulling down past the top shows more bar, all one piece */
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 100vh;
  background: var(--bar-texture), var(--bar);
  pointer-events: none;
}

.site-header .home { display: block; padding: .5rem 0; }
.site-header .home img { width: clamp(7.5rem, 13vw, 9.5rem); height: auto; }
.site-header .btn { font-weight: 500; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
}

.site-nav a:not(.btn) {
  font-weight: 500;
  text-decoration: none;
  padding: .6rem .25rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px;
  background-position: 0 85%;
  background-repeat: no-repeat;
  transition: background-size .3s var(--ease-out);
}
@media (max-width: 767px) { .site-nav .nav-extra { display: none; } }
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { background-size: 100% 1.5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: .7rem 1.35rem;
  border: 0;
  border-radius: .35rem;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  color: var(--cream);
  background: var(--forest);
  cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s;
  touch-action: manipulation;
}
.btn:hover { background: #3A5038; transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

/* Opening section: a normal full-screen section that simply scrolls away */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* At least one full screen, and taller if the words need it, so nothing is ever cut off.
     The photo starts right below the top bar. */
  min-height: 100vh;
  min-height: var(--app-h, 100svh);
  padding: calc(var(--header-h) + clamp(1.5rem, 5vh, 3rem)) var(--gutter) clamp(2rem, 6vh, 3.5rem);
  overflow: hidden;
}

/* The photo is the whole background of the opening.
   Behind it, a blurred, stretched copy of the same photo fills any space the photo doesn't reach,
   so the steel counter simply continues. A cream wash then keeps the words readable. */
.hero-photo { position: absolute; inset: var(--header-h) 0 0 0; overflow: hidden; background: #D9D4CB; }
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: url("assets/hero-tofu-1600.jpg") 30% 40% / cover no-repeat;
  filter: blur(40px) sepia(.08);
}
/* Laptops: the photo is shown a little smaller, anchored bottom right. Its left and top edges
   melt into a blurred copy of the same photo behind it, so the counter carries on to the edges */
.hero-photo img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 80%;
  width: auto;
  max-width: none;
  filter: sepia(.08) saturate(1.04);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 26%),
    linear-gradient(180deg, transparent 0%, rgb(0 0 0 / .35) 22%, #000 46%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(90deg, transparent 0%, #000 26%),
    linear-gradient(180deg, transparent 0%, rgb(0 0 0 / .35) 22%, #000 46%);
          mask-composite: intersect;
}
/* A soft cream wash on the left only, so the words stay easy to read over the counter */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--oat) 0%, transparent 8%),
    linear-gradient(90deg,
      color-mix(in srgb, var(--oat) 86%, transparent) 0%,
      color-mix(in srgb, var(--oat) 74%, transparent) 34%,
      color-mix(in srgb, var(--oat) 40%, transparent) 48%,
      transparent 62%);
}

/* Tall or narrow windows: the words sit at the top over the counter, the tofu below them */
@media (max-aspect-ratio: 1/1), (max-width: 767px) {
  .hero { justify-content: flex-start; padding-top: calc(var(--header-h) + clamp(1.25rem, 4vh, 2.5rem)); }
  .hero-photo img {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: cover;
    object-position: 50% 100%;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero-photo::after {
    background:
      linear-gradient(0deg, var(--oat) 0%, transparent 6%),
      linear-gradient(180deg,
        color-mix(in srgb, var(--oat) 78%, transparent) 0%,
        color-mix(in srgb, var(--oat) 60%, transparent) 32%,
        color-mix(in srgb, var(--oat) 20%, transparent) 46%,
        transparent 56%);
  }
}
/* Phones and upright tablets get the vertical photo. It is sized so it always reaches the top of the
   screen, with the front of the tofu block (27% up from the photo's bottom edge) just above the bottom */
@media (max-aspect-ratio: 1/1), (max-width: 767px) {
  .hero-photo::before { background-image: url("assets/hero-tofu-portrait.jpg"); background-position: 50% 0%; }
  /* A soft cream wash right behind the words, fading out just below the traits, so the text
     always reads cleanly even when the board sits behind it on shorter screens */
  .hero-copy { position: relative; }
  .hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: calc(-1 * (var(--header-h) + 4rem)) calc(-1 * var(--gutter)) -3rem;
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--oat) 55%, transparent) 0%,
      color-mix(in srgb, var(--oat) 78%, transparent) 50%,
      color-mix(in srgb, var(--oat) 82%, transparent) 82%,
      transparent 100%);
    pointer-events: none;
  }
  .hero-photo img {
    inset: auto auto 1rem 50%;
    width: auto;
    height: max(179.2vw, calc((100% - 1rem) / .73));
    object-fit: fill;
    transform: translate(-50%, 27%);
  }
}

/* Opening: headline and traits on the left, the range as three cards on the right */
.hero-grid {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), 100%);
  margin-inline: auto;
}
.hero-copy { max-width: 36rem; text-align: left; }
.hero-seal { display: block; width: clamp(5rem, 7vw, 6.5rem); height: auto; }
.headline {
  margin-top: clamp(1rem, 3vh, 1.75rem);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -0.04em;
}
.nowrap { white-space: nowrap; }

.hero-copy .usp {
  margin: clamp(1rem, 2.5vh, 1.5rem) 0 0;
  font-size: var(--fs-lede);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  max-width: 36ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* What every tofu shares, set as three short columns of words under the subtitle */
.facts {
  list-style: none;
  margin: clamp(1.25rem, 3vh, 2rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
}
.fact { padding: 0 1.5rem; }
/* A small line drawing above each trait, no background shape */
.fact-icon { display: block; margin-bottom: .3rem; }
.fact-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fact:first-child { padding-left: 0; }
.fact + .fact { border-left: 1px solid color-mix(in srgb, var(--deep) 20%, transparent); }
.fact-text strong { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.fact-text .sub { display: block; margin-top: .15rem; font-size: .8125rem; line-height: 1.4; color: var(--ink-soft); }
.fact-text .sub .l { display: block; white-space: nowrap; }

/* Tall or narrow windows: an even row of titles only, centred, with thin dividers */
@media (max-aspect-ratio: 1/1), (max-width: 767px) {
  .hero-copy { max-width: none; }
  .facts {
    margin-top: clamp(1rem, 3vh, 1.5rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .fact { padding: .1rem .5rem; text-align: center; }
  .fact:first-child { padding-left: .5rem; }
  .fact-text strong { font-size: .8125rem; line-height: 1.25; white-space: normal; }
  .fact-text .sub { display: none; }
  .fact-text strong .l { display: block; }
  .fact-icon { margin-bottom: .3rem; }
  .fact-icon svg { width: 1.25rem; height: 1.25rem; margin-inline: auto; }
}

/* ---------- The range: three full-width colour bands, one per tofu, like rows in a field ---------- */

.range { padding: clamp(3rem, 8vh, 5rem) 0 clamp(3rem, 7vw, 5rem); }
.range > .wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.range-title { font-size: var(--fs-title); }
.range-lede {
  margin: .5rem 0 clamp(1.5rem, 3.5vw, 2.5rem);
  font-size: var(--fs-lede);
  font-weight: 500;
}

/* Each band's contents line up with the page's text column above it */
.band {
  --band-inset: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  position: relative;
  display: grid;
  grid-template-columns: minmax(20.5rem, 1.2fr) minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 3rem) var(--band-inset);
  background: var(--tint);
}
.band.firm { --tint: var(--firm-tint); }
.band.soft { --tint: var(--soft-tint); }
.band.silken { --tint: var(--silken-tint); }

/* The FIELDHOUSE wordmark is drawn at the same letter height as the product name */
.band-mark { display: block; align-self: flex-start; width: auto; height: calc(var(--fs-name) * var(--cap, .7)); }
/* Wordmark and name on the left; the texture scale sits in the middle of them on the right */
.band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.band-title h3 { margin-top: .75rem; }
.band h3 { font-size: var(--fs-name); line-height: 1; }
.band p { margin: 0; line-height: 1.6; }

/* Texture scale, firm to softest, with this tofu's place marked */
.scale {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 3.4rem);
  flex: none;
  position: relative;
}
/* The line runs from the centre of the first point to the centre of the last */
.scale::before {
  content: "";
  position: absolute;
  left: 1.7rem;
  right: 1.7rem;
  top: .3rem;
  height: 1.5px;
  background: color-mix(in srgb, var(--deep) 30%, transparent);
}
.scale li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  font-size: var(--fs-label);
  font-weight: 500;
  color: color-mix(in srgb, var(--deep) 55%, transparent);
}
.scale .dot {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--tint);
  border: 1.5px solid color-mix(in srgb, var(--deep) 45%, transparent);
}
.scale li.on { color: var(--deep); font-weight: 600; }
.scale li.on .dot { background: var(--deep); border-color: var(--deep); transform: scale(1.35); }

/* "Coming soon": a small label right after the name Velvet. It hangs off the name,
   so the name and the texture scale stay exactly where they are on the other bands */
.name-anchor { position: relative; display: inline-block; }
.sticker {
  position: absolute;
  left: 100%;
  top: 50%;
  margin-left: .4rem;
  padding: .4em .55em .35em;
  border-radius: 2px;
  background: var(--deep);
  color: var(--cream);
  font-size: .65rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translateY(-50%) rotate(-4deg);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--deep) 30%, transparent);
  pointer-events: none;
}

/* A small picture with three dishes: the band's third column on laptops, under the description on phones */
.band-uses {
  display: grid;
  grid-template-columns: var(--art-w) minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
}
/* The picture's coloured backdrop is a box as tall as the three dishes beside it */
.art {
  align-self: stretch;
  margin: 0;
  border-radius: .35rem;
  overflow: hidden;
}
.art svg { display: block; width: 100%; height: 100%; overflow: visible; }

.uses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .3rem;
}
.uses li {
  position: relative;
  padding-left: .85rem;
  font-size: var(--fs-small);
  line-height: 1.35;
}
.uses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--forest);
  opacity: .55;
}


/* ---------- What's inside: the ingredients set large, the facts as a plain list ---------- */

.inside {
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  background: var(--soy-tint);
}
.inside-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: end;
}
.inside h2 { font-size: var(--fs-title); }
.inside-lede {
  margin-top: .5rem;
  font-size: var(--fs-lede);
  font-weight: 500;
}
/* The three ingredients, each under a small drawing in the style of the dish pictures */
.ingredients {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.15;
}
.ing-art { display: block; width: 100%; max-width: 9rem; height: auto; aspect-ratio: 4 / 3; margin: 0 auto .6rem; }
.inside-note { margin: 0; color: var(--ink-soft); }
.claims {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem 2rem;
  font-weight: 500;
}
.claims li { display: flex; align-items: center; gap: .7rem; }
.claim-icon {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Contact ---------- */

.contact {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  background: var(--oat-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.contact h2 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
.contact .intro-text {
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 30rem;
}
.contact .topics {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact .topics li {
  padding: .55rem 0;
  border-top: 1px solid var(--rule);
}
.contact .topics li:last-child { border-bottom: 1px solid var(--rule); }

.contact .direct {
  margin-top: 1rem;
  color: var(--ink-soft);
}
.contact .direct a { color: var(--ink); font-weight: 500; text-underline-offset: .2em; }

.btn-big {
  min-height: 3.75rem;
  margin-top: 2rem;
  padding-inline: 2.25rem;
  font-size: var(--fs-lede);
  letter-spacing: -0.01em;
}

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

.site-footer {
  padding: 3rem var(--gutter) 2rem;
  background: var(--bar-texture), var(--bar);
  border-top: 1px solid color-mix(in srgb, var(--forest) 18%, transparent);
}
.site-footer .footer-logo { width: 5.5rem; height: auto; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: 1.25rem;
  padding-top: .75rem;
  border-top: 1px solid var(--rule);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.75rem;
  font-size: var(--fs-small);
  text-underline-offset: .2em;
}
.site-footer .icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.site-footer .icon .dot { fill: currentColor; stroke: none; }
.site-footer small { font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- About page ---------- */

.about main { padding: calc(var(--header-h) + 3.5rem) var(--gutter) 4rem; }

/* Two matching sections: picture on the left, words on the right */
/* Heading across the top of the text column; the picture lines up with the first line below it */
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 36rem);
  justify-content: center;
  align-items: start;
  column-gap: clamp(2rem, 6vw, 5rem);
  row-gap: 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}
.about-section + .about-section {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--rule);
}

.about-media { width: 100%; }
.about-media img,
.logo-card {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: .5rem;
}
.founder-photo { height: auto; object-fit: cover; }
.logo-card {
  display: grid;
  place-items: center;
  background: var(--oat-deep);
}
.logo-card img { width: 72%; height: auto; aspect-ratio: auto; border-radius: 0; }

.about-head { grid-column: 2; font-size: var(--fs-title); }
.about-media { grid-column: 1; grid-row: 2; }
.about-text { grid-column: 2; grid-row: 2; }
.about-text p { margin-top: 1rem; max-width: 36rem; }
.about-text > p:first-child { margin-top: 0; }
.founder-name { font-size: 1.25rem; font-weight: 600; }
.founder-name span { display: block; font-size: var(--fs-body); font-weight: 400; color: var(--ink-soft); }

/* Text for the founder to replace. Visible on purpose. */
.placeholder {
  background: color-mix(in srgb, var(--wheat) 38%, transparent);
  border-radius: .3em;
  padding: 0 .2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.about-cta {
  max-width: 64rem;
  margin: clamp(4rem, 10vw, 7rem) auto 0;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.about-cta h2 { font-size: var(--fs-title); max-width: 20ch; }

/* ---------- Page not found ---------- */

.nf {
  min-height: 100vh;
  min-height: var(--app-h, 100svh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  text-align: center;
}
.nf-logo { width: clamp(9rem, 22vw, 13rem); height: auto; }
.nf-code {
  margin-top: 1.75rem;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.nf h1 { margin-top: .4rem; font-size: var(--fs-title); }
.nf-text { margin-top: .9rem; max-width: 34ch; color: var(--ink-soft); }
.nf .btn { margin-top: 1.75rem; }

/* ---------- Tablet ---------- */

@media (max-width: 1023px) {
  /* Bands stack their contents; kept to a comfortable reading width in the middle */
  .band {
    --band-inset: max(var(--gutter), calc((100% - 34rem) / 2));
    display: block;
  }
  .band p { margin-top: .9rem; }
  .band-uses { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
  .inside-grid { align-items: start; }
  .hero-grid { grid-template-columns: 1fr; }
  .inside-grid { grid-template-columns: 1fr; gap: 2rem; align-items: start; }

  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Phones ---------- */

@media (max-width: 767px) {
  :root { --header-h: 4rem; --fs-body: 1rem; --fs-small: .875rem; --fs-name: 2rem; }

  .site-nav a:not(.btn) { padding: .6rem .35rem; }
  .site-header .btn { padding-inline: 1rem; }


  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-seal { width: 4.75rem; }
  .headline { font-size: clamp(2.6rem, 12vw, 3.4rem); }

  .doodle-loop { left: -1.5rem; width: 6.5rem; top: calc(var(--header-h) + 1rem); }
  .doodle-squiggle { display: none; }
  .doodle-dots { right: 1.25rem; width: 3rem; top: calc(var(--header-h) + 5rem); }

  /* The opening only needs its own height on phones, so the products follow closely */
  .hero-seal { width: 4.5rem; }

  .band { padding-block: 1.75rem; }
  .claims { grid-template-columns: 1fr; }

  .about main { padding-top: calc(var(--header-h) + 2rem); }
  .about-section { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-head, .about-media, .about-text { grid-column: 1; grid-row: auto; }
  .about-media { max-width: 15rem; }
  .logo-card { aspect-ratio: 1 / 1; }

  /* Footer stacks: links, then copyright, all on one left edge */
  .footer-row { flex-direction: column; align-items: flex-start; gap: .25rem; }
}

@media (max-width: 400px) {
  .site-header .home img { width: 6.75rem; }
  .site-nav { gap: .6rem; }
  .site-header .btn { padding-inline: .9rem; font-size: .9375rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
