/* Sydney Standard: base, layout and page sections.
   Components built on glass live in glass.css. */

@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-latin-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-latin-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  /* Brand tokens: Ink + Harbour (confirmed 18 Oct 2026). Harbour is the one accent. */
  --ground: #F6F7F8;       /* Paper */
  --ink: #14171C;
  --ink-2: #2B2F36;        /* Graphite, body copy on plain ground only */
  --ink-3: #565C65;        /* quiet text on Paper, 6:1 */
  --rule: #D9DBDF;
  --harbour: #0E5A52;      /* the one accent: primary action, datum, links */
  --harbour-light: #7CC4B8; /* on Ink only */
  --signal: #B3261E;       /* errors only, never decoration */
  --line: rgb(20 23 28 / .10);

  --font: "Archivo", system-ui, sans-serif;           /* headings, UI */
  --font-text: "Newsreader", Georgia, serif;          /* reading text */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --r-card: 28px;
  --r-field: 14px;
  color-scheme: light;
}

*, *::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;
  min-height: 100vh;
  min-height: 100dvh;
  font: 400 1.125rem/1.55 var(--font-text);
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fixed backdrop: soft washes plus a 12-column hairline measure.
   Glass panels blur these as the page scrolls past. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(880px 620px at 92% -8%, rgb(14 90 82 / .13), transparent 62%),
    radial-gradient(760px 760px at -8% 64%, rgb(217 219 223 / .85), transparent 62%),
    var(--ground);
}
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: min(var(--max), 100% - 2 * var(--gutter));
  transform: translateX(-50%);
  background:
    linear-gradient(to right, rgb(20 23 28 / .075) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%,
    linear-gradient(to left, rgb(20 23 28 / .075) 1px, transparent 1px) 100% 0 / 1px 100% no-repeat;
}
@media (min-width: 900px) {
  .backdrop::before {
    background:
      linear-gradient(to right, rgb(20 23 28 / .075) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%,
      linear-gradient(to left, rgb(20 23 28 / .075) 1px, transparent 1px) 100% 0 / 1px 100% no-repeat;
  }
}

/* Type */
h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1rem + 2.9vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }

.lede {
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 34em;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--harbour-light); }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.skip:focus { top: 12px; }

/* Placeholder content Nick still has to supply */
.todo {
  padding: 0 0.3em;
  border-radius: 4px;
  background: rgb(124 196 184 / .45);
  outline: 1px dashed rgb(20 23 28 / .45);
  color: var(--ink);
}

/* Layout */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { font-weight: 600; }

main { overflow-x: clip; } /* the portrait glow bleeds past the edge on phones */

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 50; padding: 22px 0 10px; }
.nav-wrap { position: relative; }
.nav {
  --r: 999px;
  --glass-blur: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 60px;
  padding: 8px 10px 8px 22px;
}
.wordmark {
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: 1.1875rem;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.nav-links a:hover {
  background: rgb(255 255 255 / .7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), 0 0 0 1px rgb(20 23 28 / .08);
}
.nav-links a[aria-current="page"] {
  background: rgb(255 255 255 / .85);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(20 23 28 / .14);
  font-weight: 600;
}
.nav-links .nav-book { margin-left: 6px; }

.nav .menu-btn { display: none; }
@media (max-width: 760px) {
  .nav { border-radius: 28px; padding-left: 20px; }
  .js .nav .menu-btn { display: inline-flex; }
  .js .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 4px; }
  .js .nav[data-open="true"] .nav-links { display: flex; }
  .nav-links a { min-height: 48px; }
  .nav-links .nav-book { margin: 6px 0 0; }
}

/* Hero: a stage of hard geometry for the glass to sit across */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 128px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-copy { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.hero-copy .actions { margin-top: 8px; }

.stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(150px, 24vw, 250px) 0 clamp(20px, 4vw, 44px);
}
.stage__art { position: absolute; inset: 0; pointer-events: none; }
.stage__slab { position: absolute; inset: 0 0 0 24%; background: var(--ink); }
.stage__disc {
  position: absolute;
  top: -5%;
  left: 3%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--harbour);
}
.stage__ring {
  position: absolute;
  top: -14%;
  left: -9%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgb(120 120 120 / .85);
}
.hero-card {
  --glass-blur: 24px;
  position: relative;
  width: 100%;
  margin-left: -5%;
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.hero-card .card-title { font-size: 1.625rem; }
.hero-card p { font-size: 1rem; line-height: 1.5; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { padding: clamp(120px, 34vw, 220px) 0 40px; overflow: clip; }
  .hero-card { margin-left: 0; }
}

/* Fact lists inside cards */
.facts { display: grid; gap: 6px; margin: 0; width: 100%; }
.facts > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; }
.glass--dark .facts dt { color: rgb(255 255 255 / .78); }

/* Problem statements: type and hairlines, not cards */
.statements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.statement { padding-top: 22px; border-top: 1px solid var(--ink); }
.statement p {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
@media (max-width: 760px) {
  .statements { grid-template-columns: 1fr; gap: 28px; }
}

/* Offers */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.offer { padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.offer p { color: var(--ink); }
.offer .facts { margin-top: auto; }
.offer .link { align-self: flex-start; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.section-foot { margin-top: 32px; }

/* Steps: a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(step); font-weight: 600; font-size: 1.0625rem; color: var(--ink-3); }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Point of view */
.pov { display: grid; gap: 28px; }
.pov blockquote { margin: 0; }
.pov blockquote p {
  max-width: 20ch;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

/* About snippet and About page */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-copy { display: grid; gap: 18px; }
.experience { padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; }
.experience ul { list-style: none; display: grid; gap: 12px; }
.experience li { padding-top: 12px; border-top: 1px solid rgb(20 23 28 / .14); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

.portrait-wrap { position: relative; isolation: isolate; }
.portrait {
  /* Swap --portrait for url(...) when the photo exists; the glow follows it. */
  --portrait: linear-gradient(160deg, #D9DBDF, #8D939B 62%, #2B2F36);
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  background: var(--portrait) center / cover;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq { --r: 20px; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
  transition: transform .25s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq .faq-body { padding: 0 24px 24px; display: grid; gap: 10px; }

/* Closing call to action on dark ground */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-block: clamp(72px, 10vw, 140px); }
.cta-band .stage__disc { top: auto; bottom: -40%; left: auto; right: 12%; width: min(560px, 76vw); }
.cta-band .stage__ring { top: auto; bottom: -56%; left: auto; right: 0; width: min(820px, 112vw); border-color: rgb(255 255 255 / .35); }
.cta-band .wrap { position: relative; }
.cta-panel { --glass-blur: 28px; position: relative; max-width: 720px; padding: clamp(26px, 4vw, 48px); display: grid; gap: 24px; justify-items: start; }
.cta-panel p { color: rgb(255 255 255 / .9); }
.cta-panel .actions { margin-top: 4px; }

/* Footer */
.site-footer { padding-block: clamp(40px, 6vw, 72px) 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-bottom: 36px; }
.footer-grid h2 { font-size: 1.0625rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.9375rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Inner pages */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 5vw, 56px); display: grid; gap: 22px; }
.service { margin-bottom: 20px; padding: clamp(24px, 3.4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); scroll-margin-top: 96px; }
.service h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); }
.service-main { display: grid; gap: 18px; align-content: start; justify-items: start; }
.service-list { list-style: none; display: grid; gap: 0; align-content: start; }
.service-list li { padding: 14px 0; border-top: 1px solid rgb(20 23 28 / .16); }
.service-list li:last-child { border-bottom: 1px solid rgb(20 23 28 / .16); }
.service-list h3 { font-size: 1.0625rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.note { font-size: 0.9375rem; color: var(--ink-3); }
.glass .note { color: var(--ink-2); }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.panel { padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 20px; justify-items: start; }
.panel form { width: 100%; }
.details { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 36px; color: var(--ink-2); }
.details span, .details a { white-space: nowrap; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.prose { max-width: 68ch; display: grid; gap: 14px; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.875rem); margin-top: 28px; }
.prose ul { padding-left: 1.25em; display: grid; gap: 8px; }

/* Toast for links that are not set yet */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  transform: translateX(-50%);
  max-width: min(92vw, 480px);
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* Meniscus nav (desktop). A bead rides in a socket cut into the top edge of the glass bar.
   site.js draws the socket (clip-path on .nav, rim in .nav-rim) and moves bead and glow. */
.nav-bead, .nav-rim, .nav-glow { display: none; }
@media (min-width: 761px) {
  .js .nav-bead, .js .nav-rim, .js .nav-glow { display: block; }
}
.nav-glow {
  position: absolute;
  top: 26px;
  left: 0;
  width: 200px;
  height: 64px;
  margin-left: -100px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(14 90 82 / .5), rgb(14 90 82 / 0));
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}
.nav-rim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.nav-rim path { fill: none; stroke-linecap: round; }
.nav-rim .rim-dark { stroke: rgb(20 23 28 / .16); stroke-width: 1.5; }
.nav-rim .rim-lit { stroke: rgb(255 255 255 / .95); stroke-width: 1; transform: translateY(1.25px); }
.nav-bead {
  position: absolute;
  top: -6px;
  left: 0;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0, var(--harbour-light) 38%, var(--harbour) 100%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .75), 0 0 18px 4px rgb(14 90 82 / .45), 0 2px 5px rgb(20 23 28 / .28);
  cursor: grab;
  touch-action: none;
  will-change: transform;
}
.nav-bead:active { cursor: grabbing; }

/* Download card (Tide button) */
.tide-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 3.4vw, 44px); }
.tide-copy { display: grid; gap: 14px; justify-items: start; }
@media (max-width: 640px) { .tide-card { grid-template-columns: 1fr; justify-items: start; } }
