/* Shared FasTab site styles: tokens, type steps, buttons, header, closing band,
   footer, FAQ and entrance motion. Each page adds its own sections on top. */

:root {
  /* One ground, one ink, the brand blue for actions, marigold as the second colour. */
  --white: #ffffff;
  --ink: #0b0d11;
  --ink-2: #16191f;
  --ink-3: #23272f;
  --surface: #f2f2f0;      /* stone-grey cards and fields on the white ground */
  --surface-2: #e7e7e3;    /* their hover step */
  --blue: #008cff;
  --blue-hover: #33a3ff;
  --marigold: #ffb020;
  --marigold-2: #ffc24d;   /* its hover step */
  --soft-dark: #4a505a;    /* secondary text on light fields */
  --soft-light: #b4bac4;   /* secondary text on dark fields */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Five type steps */
  --t-display: clamp(46px, 6.6vw, 104px);
  --t-h2: clamp(36px, 4.4vw, 64px);
  --t-h3: clamp(22px, 1.9vw, 28px);
  --t-body: 18px;
  --t-small: 15px;

  --m: clamp(16px, 3.4vw, 48px);      /* the one pair of outer margins */
  --gap: clamp(24px, 3vw, 48px);
  --section: clamp(80px, 8vw, 120px);
  --r-lg: 24px;                        /* photographs and big panels */
  --r: 16px;                           /* cards */
  --r-sm: 10px;                        /* controls inside interface fragments */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--white); }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; font-optical-sizing: auto; }
h3 { font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
/* On the blue and marigold fields a blue ring disappears, so it turns ink there */
.f-blue :focus-visible, .f-marigold :focus-visible, .legal-prose .refer-band :focus-visible { outline-color: var(--ink); }
#main:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--m); }
.field { position: relative; }
.f-white { background: var(--white); color: var(--ink); }
.f-surface { background: var(--surface); color: var(--ink); }
.f-ink { background: var(--ink); color: var(--white); }
.f-blue { background: var(--blue); color: var(--ink); }
.f-marigold { background: var(--marigold); color: var(--ink); }

h2 { font-size: var(--t-h2); line-height: 1.02; }
h3 { font-size: var(--t-h3); line-height: 1.2; }
.lede { font-size: 20px; line-height: 1.5; max-width: 44ch; text-wrap: pretty; }
.on-dark .lede, .on-dark .soft { color: var(--soft-light); }
.small { font-size: var(--t-small); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ BUTTONS: one shape, fully round ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 500; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform 0.22s var(--ease); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn-blue { background: var(--blue); color: var(--ink); }
.btn-blue:hover { background: var(--blue-hover); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--surface); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; } /* taste-skill-ignore: a control's edge */
.btn-line:hover { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-dark .btn-line:hover { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--white); }
.text-link {
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 5px; transition: text-underline-offset 0.18s, color 0.18s;
}
.text-link:hover { text-underline-offset: 8px; }

/* ============ SKIP NAV ============ */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 300;
  padding: 12px 20px; background: var(--ink); color: var(--white); border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: var(--t-small); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ============ HEADER ============
   A plain bar: the mark, a few links, one action. On the homepage it sits over the
   hero photograph (.over) until the page scrolls, then turns solid white. */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); color: var(--ink);
  transition: background-color 0.25s, color 0.25s;
}
/* The see-through bar needs site.js to turn solid on scroll, so it only applies with scripting (html.js);
   without it the homepage keeps the plain white bar. */
.js .site-head.over { position: fixed; left: 0; right: 0; background: transparent; color: var(--white); }
.js .site-head.over.solid, .js .site-head.over.menu-open { background: var(--white); color: var(--ink); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 26px; width: auto; }
.brand .word { font-weight: 600; font-size: 21px; letter-spacing: -0.03em; }
.topnav { display: flex; align-items: center; gap: 30px; font-size: 16px; font-weight: 500; }
.topnav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.topnav a:not(.btn) { text-decoration: none; padding: 6px 0; }
.topnav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.head-actions { display: flex; align-items: center; gap: 22px; font-size: 16px; font-weight: 500; }
.head-actions .btn { min-height: 44px; padding: 0 20px; font-size: 16px; }
.head-actions a:not(.btn) { text-decoration: none; }
.head-actions a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.menu-btn {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: transparent; color: inherit; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; /* taste-skill-ignore: a control's edge */
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.menu-btn .bars { width: 16px; height: 10px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s var(--ease), top 0.2s var(--ease); }
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 8px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }

/* ============ CLOSING BAND ============ */
.closing { padding: var(--section) 0; }
.closing-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: center; }
.closing h2 { font-size: clamp(48px, 7vw, 112px); line-height: 0.98; letter-spacing: -0.035em; }
.closing p { margin-top: 24px; }
.closing-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.closing-pics { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 7 / 5; }
.closing-pics figure { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--ink-2); }
.closing-pics figure:first-child { grid-row: 1 / 3; }
.closing-pics img { width: 100%; height: 100%; object-fit: cover; }

/* ============ FOOTER ============ */
footer { background: var(--ink); color: var(--white); padding: 88px 0 32px; }
.foot-top { display: grid; grid-template-columns: 4fr 2fr 2fr 2fr 3fr; gap: var(--gap); }
.foot-statement p { font-size: 20px; line-height: 1.4; max-width: 28ch; }
.foot-statement .btn { margin-top: 28px; }
.foot-col h2 { font-family: var(--sans); font-size: var(--t-small); font-weight: 500; letter-spacing: 0; color: var(--soft-light); margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.foot-col a { display: inline-block; padding: 5px 0; font-size: 16px; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.foot-col p { font-size: 16px; line-height: 1.5; }
.foot-col .clock { display: block; color: var(--soft-light); font-size: var(--t-small); margin-top: 4px; }
.foot-refer {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: var(--marigold); color: var(--ink); border-radius: var(--r); padding: 24px; min-height: 200px;
  transition: background-color 0.2s;
}
.foot-refer:hover, .foot-refer:focus-within { background: var(--marigold-2); }
.foot-refer .foot-refer-title { font-family: var(--serif); font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; text-decoration: none; }
.foot-refer .foot-refer-title::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); } /* the whole tile is the link */
.foot-refer .foot-refer-title:focus-visible { outline: none; }
.foot-refer:has(.foot-refer-title:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.foot-refer p { font-size: 16px; max-width: 30ch; }
.foot-refer svg { width: 36px; height: 36px; align-self: flex-end; transition: transform 0.25s var(--ease); }
.foot-refer:hover svg { transform: translate(4px, -4px); }
.foot-word { margin: 72px 0 0; font-size: clamp(88px, 21vw, 340px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8; text-align: center; }
.foot-word b { color: var(--blue); font-weight: 600; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 40px; font-size: 14px; color: var(--soft-light); }
.foot-legal a { color: inherit; }

/* ============ FAQ ============ */
.faq { padding: var(--section) 0; }
.faq .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro { margin-top: 20px; color: var(--soft-dark); font-size: 17px; max-width: 34ch; }
.faq-intro a { color: var(--ink); font-weight: 500; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border-radius: var(--r); transition: background-color 0.15s; }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer; border-radius: var(--r);
  padding: 22px 64px 22px 24px; font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; background: var(--white)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M6 1v10M1 6h10' stroke='%230b0d11' stroke-width='1.6' fill='none'/></svg>") center no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item:hover { background: var(--surface-2); }
.faq-item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.faq-item p { margin: 0; padding: 0 64px 24px 24px; max-width: 64ch; color: var(--ink); }
.faq-more { margin-top: 16px; font-size: var(--t-small); }
.faq-more a { font-weight: 500; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.faq-item a { font-weight: 500; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ============ ENTRANCES ============ */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 75ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .btn .arrow, .foot-refer, .foot-refer svg, .text-link, .faq-item, .faq-item summary::after, .site-head, .menu-btn .bars::before, .menu-btn .bars::after { transition: none; }
  .btn:hover .arrow, .btn:focus-visible .arrow, .btn:active, .foot-refer:hover svg { transform: none; }
}

/* ============ NARROWER SCREENS ============ */
@media (max-width: 1100px) {
  .head-actions .head-link { display: none; }
  /* The links fold behind the Menu button only with scripting (html.js is set in <head> and removed if
     site.js fails to load). Without it they stay on a scrollable row under the bar, and the bar is not
     sticky, so its second row cannot cover anchor targets. */
  html:not(.js) .site-head { position: static; }
  html:not(.js) .topbar { flex-wrap: wrap; }
  html:not(.js) .topnav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 10px; }
  html:not(.js) .topnav ul { gap: 20px; white-space: nowrap; }
  .topnav .menu-extra { display: none; }
  .js .menu-btn { display: inline-flex; }
  .js .topnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); color: var(--ink); padding: 8px var(--m) 28px;
    flex-direction: column; align-items: stretch; gap: 0;
    box-shadow: 0 24px 40px -24px rgba(11, 13, 17, 0.35); /* taste-skill-ignore: an open menu floats */
  }
  .js .site-head.menu-open .topnav { display: flex; }
  .js .topnav ul { flex-direction: column; gap: 0; }
  .js .topnav ul a { display: block; padding: 14px 0; font-size: 22px; }
  .js .topnav .menu-extra { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
  .faq .wrap, .closing-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
  .foot-statement { grid-column: 1 / -1; }
  .foot-refer { grid-column: 1 / -1; min-height: 160px; }
}
@media (min-width: 1101px) {
  .topnav .menu-extra { display: none; }
  .topnav a, .head-link { white-space: nowrap; }
}
/* With About in it, the bar plus Refer needs a ~1130px viewport (measured: at 1200px ~58px is left between the
   links and the actions). Just above the fold, Refer leaves the bar; it stays in the footer and the menu. */
@media (min-width: 1101px) and (max-width: 1199px) {
  .head-actions .head-link { display: none; }
}
@media (max-width: 680px) {
  :root { --t-body: 17px; --header-h: 64px; }
  .lede { font-size: 18px; }
  .head-actions { gap: 10px; }
  .head-actions .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
  .brand .word { display: none; }
  .btn { min-height: 50px; font-size: 16px; }
  .faq-item summary { padding: 18px 56px 18px 18px; font-size: 17px; }
  .faq-item summary::after { right: 16px; }
  .faq-item p { padding: 0 18px 20px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .closing-pics { aspect-ratio: 1 / 1; }
}

.credits { margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--soft-light); max-width: 96ch; }
.credits a { color: inherit; text-underline-offset: 2px; }
