/* Working Day One — design system and site styles.
   No build step, no external fonts or scripts.
   Reference page: design-system.html

   1. Tokens   2. Base   3. Layout   4. Components   5. Page pieces   6. Responsive
*/

/* ---------- 1. Tokens ---------- */

:root {
  /* Colour: neutrals */
  --canvas: #fbfaf6;        /* page background */
  --surface: #ffffff;       /* cards, nav, panels */
  --ink: #1b1b1f;           /* headings, primary buttons */
  --ink-2: #55555c;         /* body text */
  --ink-3: #6f6f78;         /* captions, hints */
  --line: #e6e3db;          /* borders, dividers */
  --night: #1b1b1f;         /* dark sections, footer */

  /* Colour: brand accent */
  --sun: #ffd84a;
  --sun-soft: #fff5cc;

  /* Colour: tints (card and chip backgrounds) with matching text colours */
  --mint: #dcf5e5;   --mint-ink: #1d6641;
  --peach: #ffe6cf;  --peach-ink: #94470f;
  --lilac: #e8e4ff;  --lilac-ink: #473ba8;
  --sky: #dcf0fb;    --sky-ink: #155e84;
  --rose: #ffe1e1;   --rose-ink: #9c2f2f;

  /* Type */
  --font: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --display-sm: clamp(1.75rem, 3vw, 2.25rem);
  --display-md: clamp(2.1rem, 4.2vw, 3rem);
  --display-lg: clamp(2.5rem, 5.6vw, 4rem);

  /* Space (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 32px; --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(27, 27, 31, 0.06);
  --shadow-md: 0 6px 20px -8px rgba(27, 27, 31, 0.16);
  --shadow-lg: 0 24px 48px -20px rgba(27, 27, 31, 0.22);

  /* Motion */
  --ease: 160ms cubic-bezier(0.2, 0, 0, 1);

  --wrap: 1140px;
}

/* ---------- 2. Base ---------- */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--lilac-ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  color: var(--ink); font-weight: 400; line-height: 1.12;
  letter-spacing: -0.02em; margin: 0 0 0.5em;
}
h1 { font-size: var(--display-lg); }
h2 { font-size: var(--display-sm); }
h3 { font-size: var(--text-lg); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); font-weight: 600; }

.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--ink-2); max-width: 34em; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- 3. Layout ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.narrow { max-width: 760px; }

section { padding: var(--s9) 0; }
section.tight { padding: var(--s5) 0 var(--s7); }

.section-head { max-width: 720px; margin-bottom: var(--s7); }

.grid { display: grid; gap: var(--s5); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s8); align-items: start; }

/* Panels: rounded full-width sections that sit on the canvas */
.band, .dark {
  margin: 0 var(--s4); border-radius: var(--r-xl);
}
.band { background: var(--surface); border: 1px solid var(--line); }
.dark { background: var(--night); color: #d3d3d9; }
.dark h2, .dark h3, .dark strong { color: #fff; }
.dark p { color: #c4c4cc; }

/* ---------- 4. Components ---------- */

/* Chip: small label above headings */
.eyebrow {
  display: inline-block; margin: 0 0 var(--s4);
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--sun); color: var(--ink);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.01em;
}
.dark .eyebrow { background: var(--sun); color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: var(--r-md);
  background: var(--ink); color: #fff !important; text-decoration: none;
  font: 600 1rem/1.2 var(--font); border: 1px solid var(--ink); cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.btn:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.ghost { background: var(--surface); color: var(--ink) !important; border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn.accent, .btn.light { background: var(--sun); color: var(--ink) !important; border-color: var(--sun); }
.btn.accent:hover, .btn.light:hover { background: #ffcf1f; border-color: #ffcf1f; }
.btn.small { padding: 9px 16px; font-size: var(--text-sm); border-radius: var(--r-sm); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

/* Header: floating rounded bar */
.site-header { position: sticky; top: 0; z-index: 10; padding: var(--s3) var(--s4) 0; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px;
  max-width: calc(var(--wrap) + 16px);
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 10px 12px 10px 20px; box-shadow: var(--shadow-sm);
}
.brand {
  font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand span {
  background: linear-gradient(transparent 55%, var(--sun) 55%);
  padding: 0 3px; margin-left: -1px;
}
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: var(--text-sm); font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-sm); transition: background var(--ease);
}
.site-nav a:not(.btn):hover { background: var(--canvas); }
.site-nav a:not(.btn)[aria-current="page"] { background: var(--sun-soft); }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s6);
}
.card p { color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; margin-bottom: var(--s4); padding: 4px 10px;
  border-radius: var(--r-pill); background: rgba(27, 27, 31, 0.08);
  color: var(--ink); font-size: var(--text-xs); font-weight: 600;
}
.card.mint { background: var(--mint); border-color: transparent; }
.card.peach { background: var(--peach); border-color: transparent; }
.card.lilac { background: var(--lilac); border-color: transparent; }
.card.sky { background: var(--sky); border-color: transparent; }
.card.sun { background: var(--sun-soft); border-color: transparent; }
.card.mint p, .card.peach p, .card.lilac p, .card.sky p, .card.sun p { color: #3a3a40; }
.card.mint .tag, .card.peach .tag, .card.lilac .tag, .card.sky .tag, .card.sun .tag { background: rgba(255, 255, 255, 0.7); }
.dark .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.dark .card p { color: #c4c4cc; }

/* Stats strip */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4);
}
.facts div { padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.facts div:nth-child(1) { background: var(--sun-soft); border-color: transparent; }
.facts div:nth-child(2) { background: var(--mint); border-color: transparent; }
.facts div:nth-child(3) { background: var(--lilac); border-color: transparent; }
.facts div:nth-child(4) { background: var(--sky); border-color: transparent; }
.facts strong { display: block; font-size: var(--text-xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 4px; }
.facts span { color: #3a3a40; font-size: var(--text-sm); }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--s3); }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: var(--s5);
  align-items: start; padding: var(--s5); border-radius: var(--r-lg);
  background: var(--canvas); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--sun);
  color: var(--ink); font-weight: 600; font-size: var(--text-lg);
}
.steps li:nth-child(5n+2)::before { background: var(--mint); }
.steps li:nth-child(5n+3)::before { background: var(--lilac); }
.steps li:nth-child(5n+4)::before { background: var(--peach); }
.steps li:nth-child(5n+5)::before { background: var(--sky); }
.steps h3 { margin-bottom: 0.25em; }
.steps p { margin: 0; }
section:not(.band) > .wrap > .steps li { background: var(--surface); }

/* Tick list */
ul.ticks { list-style: none; padding: 0; margin: 0 0 1.1em; }
ul.ticks li { padding: 8px 0 8px 36px; position: relative; color: var(--ink); }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--mint);
}
ul.ticks li::after {
  content: ""; position: absolute; left: 7px; top: 16px; width: 8px; height: 4px;
  border-left: 2px solid var(--mint-ink); border-bottom: 2px solid var(--mint-ink); transform: rotate(-45deg);
}

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 640px; }
th, td { text-align: left; padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; background: var(--canvas); font-size: var(--text-xs); font-weight: 600; color: var(--ink); }
thead th:nth-child(2) { background: var(--sun-soft); }
thead th:nth-child(3) { background: var(--lilac); }
tbody th { font-weight: 600; color: var(--ink); width: 22%; }

/* Price card */
.price-card { background: var(--sun-soft); border-radius: var(--r-xl); padding: var(--s7); }
.price { font-size: 3.25rem; line-height: 1; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 var(--s3); }
.price small { font-size: 1rem; letter-spacing: 0; color: var(--ink-2); }

/* Forms */
form { display: grid; gap: var(--s5); }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: var(--text-sm); color: var(--ink); }
label .opt { font-weight: 400; color: var(--ink-3); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #c9c6bd;
  border-radius: var(--r-md); padding: 12px 14px; width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sun); }
textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.form-note { font-size: var(--text-sm); color: var(--ink-3); margin: 0; }
.form-status { font-weight: 600; color: var(--ink); margin: 0; }

/* Placeholder marker: content the owner still has to supply */
.todo {
  background: var(--rose); border: 1px dashed var(--rose-ink); padding: 1px 6px; border-radius: 6px;
  font-family: var(--mono); font-size: 0.84em; color: var(--rose-ink);
}

/* ---------- 5. Page pieces ---------- */

/* Hero */
.hero { padding: var(--s8) 0 var(--s8); position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -80px 0 0; z-index: -1;
  background-image: radial-gradient(rgba(27, 27, 31, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s8); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }

.hero-art { position: relative; padding: var(--s5) var(--s4); }
.note {
  position: absolute; z-index: 2; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: var(--text-xs); font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-md); white-space: nowrap;
}
.note.n1 { top: -4px; right: 6%; background: var(--sun); transform: rotate(3deg); }
.note.n2 { top: 38%; left: -14px; background: var(--mint); transform: rotate(-4deg); }
.note.n3 { bottom: 2px; right: 0; background: var(--lilac); transform: rotate(-2deg); }

/* Agenda card */
.ledger {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: var(--s5); position: relative;
}
.ledger-title { font-size: var(--text-sm); font-weight: 600; color: var(--ink); margin: 0 0 var(--s3); }
.ledger ol { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: grid; grid-template-columns: 58px 1fr; gap: var(--s4); align-items: start;
  padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--ink); font-weight: 500;
}
.ledger time, .ledger .n {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 400; text-align: center;
  padding: 3px 0; border-radius: 6px; background: var(--sun-soft); color: var(--ink);
}
.ledger li:nth-child(6n+2) time, .ledger li:nth-child(6n+2) .n { background: var(--mint); }
.ledger li:nth-child(6n+3) time, .ledger li:nth-child(6n+3) .n { background: var(--lilac); }
.ledger li:nth-child(6n+4) time, .ledger li:nth-child(6n+4) .n { background: var(--peach); }
.ledger li:nth-child(6n+5) time, .ledger li:nth-child(6n+5) .n { background: var(--sky); }
.ledger li:nth-child(6n+6) time, .ledger li:nth-child(6n+6) .n { background: var(--rose); }
.ledger small { display: block; color: var(--ink-3); font-size: var(--text-xs); font-weight: 400; line-height: 1.45; }
.ledger-foot { font-size: var(--text-xs); color: var(--ink-3); margin: var(--s3) 0 0; }

/* Inner page intro */
.page-intro { padding: var(--s8) 0 var(--s6); }
.page-intro h1 { font-size: var(--display-md); max-width: 16em; }

/* About */
.portrait {
  aspect-ratio: 4 / 5; background: var(--lilac); border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px; color: var(--lilac-ink); font-family: var(--mono); font-size: var(--text-sm);
}

.prose h2 { font-size: var(--text-xl); margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Footer */
.site-footer {
  background: var(--night); color: #b9b9c2; font-size: var(--text-sm);
  margin: var(--s7) var(--s4) var(--s4); border-radius: var(--r-xl); padding: var(--s8) 0 var(--s6);
}
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
.site-footer .brand { color: #fff; }
.site-footer .brand span { background: none; color: var(--sun); padding: 0; margin: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer h3 { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; color: #8e8e99; margin-bottom: 0.9em; }
.legal { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: var(--s6); padding-top: var(--s5); font-size: var(--text-xs); color: #9a9aa5; }
.legal .todo { background: transparent; border-color: #9a9aa5; color: var(--sun); }

/* About “Who leads it”: square headshot, top-aligned with the bio.
   Source is 347 × 347, displayed at 300 × 300 on desktop (no upscaling).
   The generic .split 0.9fr/1.1fr is overridden here so the photo
   column is only as wide as the picture (the 200px square in a
   half-width column looked undersized). */
.about-lead {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: var(--s8);
  align-items: start;
}
.about-photo { width: 300px; max-width: 100%; }
.headshot {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: var(--r-xl);
  display: block;
  box-shadow: var(--shadow-sm);
}

/* Home hero: copy in two columns, the close visual full width below */
.hero.stacked .wrap { display: block; }
.hero-copy { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s5) var(--s8); align-items: center; }
.hero-copy h1 { margin-bottom: 0; }
.hero-copy .lede { margin-bottom: 0.7em; }
.hero-copy .actions { margin-top: var(--s5); }
.hero-visual { margin: var(--s7) auto 0; max-width: 1040px; }
.hero-visual img { width: 100%; height: auto; }

/* Pull quote */
.pull-quote {
  margin: var(--s6) 0 0; padding: var(--s6); border-radius: var(--r-lg);
  background: var(--sun-soft); color: var(--ink);
}
.pull-quote p { font-size: var(--text-lg); line-height: 1.5; margin: 0 0 var(--s4); color: var(--ink); }
.pull-quote footer, .pull-quote cite { font-size: var(--text-sm); color: var(--ink-2); font-style: normal; }

/* Module menu */
.module-group { margin-top: var(--s7); }
.module-group > h3 { margin-bottom: var(--s2); }
.module-group > p { margin-bottom: var(--s5); }
.card h3 { margin-bottom: 0.4em; }

/* FAQ */
.faq { display: grid; gap: var(--s3); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s5); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: var(--text-md); list-style: none; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.3em; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 4px; }
.faq details p { margin: var(--s3) 0 0; color: var(--ink-2); }

/* ---------- 6. Responsive ---------- */

@media (max-width: 900px) {
  section { padding: var(--s8) 0; }
  .hero .wrap, .split, .hero-copy { grid-template-columns: 1fr; gap: var(--s7); }
  .hero-copy { gap: var(--s5); }
  .about-lead { gap: var(--s6); }
  .about-photo { width: min(280px, 72vw); }
  .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .note.n2 { left: -4px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 18px; }
  .about-photo { width: min(240px, 74vw); }
  section { padding: var(--s7) 0; }
  .band, .dark, .site-footer { margin-left: var(--s2); margin-right: var(--s2); border-radius: var(--r-lg); }
  .site-header { padding: var(--s2) var(--s2) 0; }
  .site-header .wrap { padding: 8px 8px 8px 14px; border-radius: var(--r-md); }
  .site-nav a:not(.btn) { padding: 6px 8px; }
  .hero { padding: var(--s7) 0; }
  .grid.two, .grid.three, .grid.four, .form-row, .site-footer .cols { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 36px 1fr; gap: var(--s4); padding: var(--s4); }
  .steps li::before { width: 36px; height: 36px; font-size: 1rem; }
  .card, .price-card { padding: var(--s5); }
  .hero-art { padding: var(--s5) 0; }
  .hero-visual { margin-top: var(--s6); }
  .pull-quote { padding: var(--s5); }
  .note.n2 { display: none; }
  tbody th { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .actions, .note { display: none; }
  body { background: #fff; }
}
