/* SISU — shared styles. Tokens and rules live in SISU_Brand.md. */
@font-face { font-family: 'Optician Sans'; src: url('brand/Optician-Sans.ttf') format('truetype'); font-display: swap; }

/* Dark, graded like the photos: pure white for what matters, soft white for reading, grey for labels only. */
:root {
  --bg: #0b0b0c;
  --bg-2: #161617;
  --fg: #ffffff;          /* headings, facts, numbers, buttons */
  --text: #c8c8c5;        /* paragraphs */
  --mute: #8a8a88;        /* labels and captions only */
  --line: rgba(255,255,255,.14);
  --rule: #ffffff;        /* heavy rule under table heads */
  --btn-bg: #ffffff; --btn-fg: #0b0b0c;
  --gold: #c9a84c;        /* SISU gold. Only ever as foil, below. */
  --foil: linear-gradient(115deg, #8b6b22 0%, #c9a84c 22%, #f2dfa2 40%, #c9a84c 56%, #a6832f 76%, #e0c674 92%, #b8963f 100%); /* static sheen, never animated */
  --display: 'ironstrike', system-ui, sans-serif;  /* Adobe Fonts kit ccu5clg, shared with Grouse */
  --small: 'Optician Sans', system-ui, sans-serif; /* labels only */
  --body: 'Helvetica Neue', HelveticaNeue, Helvetica, Arial, sans-serif;
  /* type scale, in rem so it follows the visitor's browser text size. Nothing below --fs-label. */
  --fs-label: 1.125rem;                         /* 18px, Optician Sans only: its capitals are small for its size, so this reads like 13px Helvetica caps */
  --fs-small: 1rem;                             /* 16px: nav, buttons, table text, footer */
  --fs-body: 1.125rem;                          /* 18px: paragraphs, quotes, facts */
  --fs-lead: clamp(1.1875rem, 1.6vw, 1.375rem); /* 19–22px: intro paragraphs */
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* Headings: Ironstrike 900 italic, capitals, two to four words. Same cut as the logo. */
h1, h2, h3 { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .95; letter-spacing: .01em; color: var(--fg); }
h1 { font-size: clamp(46px, 7vw, 100px); }
h2 { font-size: clamp(34px, 4.6vw, 64px); }
h3 { font-size: 1.5rem; }
p { max-width: 60ch; }
strong, .fact { color: var(--fg); font-weight: 500; }
.label { line-height: 1.35; font-family: var(--small); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.mute { color: var(--mute); }
.num { font-variant-numeric: tabular-nums; }
.foil { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foil-logo { display: block; background: var(--foil); aspect-ratio: 640 / 168;
  -webkit-mask: url('brand/wordmark.png') left center / contain no-repeat; mask: url('brand/wordmark.png') left center / contain no-repeat; }
.foil-rule { border-left: 3px solid; border-image: var(--foil) 1; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(72px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.head { margin-bottom: clamp(36px, 5vw, 64px); }
.head .label { margin-bottom: 18px; }
.head p { margin-top: 18px; }

/* buttons */
.btn {
  display: inline-block; background: var(--btn-bg); color: var(--btn-fg);
  font: 500 var(--fs-small)/1 var(--body); text-decoration: none;
  padding: 17px 26px; border: 0; cursor: pointer;
  transition: opacity .25s var(--ease);
}
.btn:hover { opacity: .85; }
.link { color: var(--fg); text-decoration: none; font-size: var(--fs-small); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .25s; }
.link:hover { border-color: var(--fg); }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.site-head .logo img { height: 22px; width: auto; }
.site-head nav { display: flex; gap: 28px; margin-left: auto; }
.site-head nav a { text-decoration: none; font-size: var(--fs-small); color: var(--text); transition: color .2s; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--fg); }
.site-head .btn { padding: 11px 18px; font-size: var(--fs-small); }
@media (max-width: 760px) {
  .site-head .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px 20px; }
  .site-head .btn { margin-left: auto; }
  .site-head nav { order: 3; width: 100%; margin: 0; gap: 22px; overflow-x: auto; }
}

/* ledger: the results table */
.ledger { width: 100%; border-collapse: collapse; }
.ledger caption { text-align: left; padding-bottom: 14px; }
.ledger th { font-weight: 400; text-align: left; }
.ledger thead th { font-family: var(--small); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 0 0 12px; border-bottom: 2px solid var(--rule); }
.ledger tbody th { font-size: var(--fs-body); color: var(--fg); padding: 18px 16px 18px 0; }
.ledger td { font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(26px, 2.8vw, 36px); line-height: 1; color: var(--fg); padding: 16px 0; white-space: nowrap; text-align: right; }
.ledger td small { font-size: var(--fs-small); color: var(--mute); margin-left: 4px; }
.ledger tbody tr { border-bottom: 1px solid var(--line); }
.ledger thead th:not(:first-child) { text-align: right; }

/* program table: the facts a parent scans for, in columns */
.table { list-style: none; }
.table .row {
  display: grid; grid-template-columns: minmax(0, 2.4fr) 1.3fr .7fr 1fr 1fr 24px; gap: 8px 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg);
}
.table .thead { padding: 0 0 12px; border-bottom: 2px solid var(--rule); font-family: var(--small); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.table a.row { transition: background .25s var(--ease); }
.table a.row:hover { background: var(--bg-2); }
.table .row p { color: var(--text); font-size: var(--fs-small); margin-top: 6px; max-width: 46ch; }
.table .row > span { font-size: var(--fs-body); }
.table .price { font-weight: 500; }
.table .arrow { color: var(--mute); transition: transform .25s var(--ease), color .25s; }
.table a.row:hover .arrow { transform: translateX(4px); color: var(--fg); }
.table .k { display: none; }
@media (max-width: 800px) {
  .table .thead { display: none; }
  .table .row { grid-template-columns: 1fr 1fr; gap: 6px 20px; }
  .table .row > div { grid-column: 1 / -1; margin-bottom: 10px; }
  .table .arrow { display: none; }
  .table .k { display: block; font-family: var(--small); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
}

/* page header for inner pages */
.page-head { border-top: 0; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 90px); }
.page-head .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: end; }
.page-head h1 { margin: 20px 0 28px; }
.page-head .sub { font-size: var(--fs-lead); }
.page-head .cta { margin-top: 36px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) { .page-head .wrap { grid-template-columns: 1fr; } }

/* facts: label and value pairs, the program at a glance */
.facts { display: grid; grid-template-columns: auto 1fr; border-top: 2px solid var(--rule); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--small); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding-right: 28px; align-self: center; }
.facts dd { color: var(--fg); font-size: var(--fs-body); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .facts dt { padding-right: 16px; } }

/* plain list with rules (what's included, who it's for) */
.ruled { list-style: none; border-top: 2px solid var(--rule); }
.ruled li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ruled .n { font-family: var(--small); font-size: var(--fs-label); color: var(--mute); padding-top: 4px; }
.ruled strong { display: block; margin-bottom: 2px; }
.ruled p { font-size: var(--fs-body); }

/* two-column section: heading left, content right */
.split .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.split .head { margin: 0; }
@media (max-width: 900px) { .split .wrap { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; color: var(--fg); font-size: var(--fs-body); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; }
.faq details > div p + p, .faq details > div p + ul { margin-top: 12px; }
.faq ul { padding-left: 1.2em; }

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-family: var(--small); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); border-radius: 0;
  font: 1.0625rem/1.4 var(--body); padding: 14px 16px; -webkit-appearance: none; appearance: none;
}
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--fg); }
.form textarea { min-height: 120px; resize: vertical; }
.form .actions { grid-column: 1 / -1; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form .note { font-size: var(--fs-small); color: var(--mute); max-width: 52ch; }
.form-error { grid-column: 1 / -1; color: var(--fg); font-size: var(--fs-small); }
.form-done { border-top: 2px solid var(--rule); padding-top: 24px; }
.form-done h3 { margin-bottom: 10px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* closing call to action and one-line asides */
.close .wrap { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.close p { margin-top: 18px; }
.close .cta { display: flex; gap: 28px; align-items: center; }
.aside { margin-top: 28px; font-size: var(--fs-small); }

/* photo strip: two or three portrait shots side by side */
.strip { padding: 0; border-top: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.strip img { aspect-ratio: 4 / 5; height: 100%; }
.strip.two img { aspect-ratio: 1; }
@media (max-width: 560px) { .strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } .strip img:nth-child(3) { display: none; } }

/* coming up: a season planner, one lane per program. The grid is decoration; the agenda list underneath carries the content. */
.planner { --lw: 140px; --weeks: 13; position: relative; display: grid; grid-template-columns: var(--lw) repeat(var(--weeks), 1fr); row-gap: 10px; padding-top: 4px; margin-bottom: 36px; }
.planner::before { content: ''; position: absolute; top: 0; bottom: 0; left: var(--lw); right: 0; pointer-events: none;
  background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / var(--weeks))); border-right: 1px solid var(--line); }
.planner .m { grid-row: 1; font-family: var(--small); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding-left: 8px; }
.planner .name { grid-column: 1; align-self: center; color: var(--fg); font-weight: 500; }
.planner .bar { height: 34px; background: var(--fg); align-self: center; position: relative; }
.planner .notch { align-self: center; height: 34px; border-left: 2px solid var(--bg); border-right: 2px solid var(--bg); position: relative; z-index: 1; background: transparent; }
.planner .tag { font-family: var(--small); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); white-space: nowrap; }
.planner .tag.end { justify-self: end; }
.planner .now { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--foil); left: calc(var(--lw) + (100% - var(--lw)) * var(--at)); }
.planner .now b { position: absolute; bottom: 100%; left: 0; transform: translateX(-50%); font: 400 var(--fs-label)/1 var(--small); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; padding-bottom: 6px; }
.agenda { list-style: none; border-top: 2px solid var(--rule); }
.agenda a { display: grid; grid-template-columns: 1.1fr 2.4fr auto; gap: 8px 28px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); transition: background .25s var(--ease); }
.agenda a:hover { background: var(--bg-2); }
.agenda .what { color: var(--text); }
.agenda .what strong { margin-right: 10px; }
@media (max-width: 760px) { .planner { display: none; } .agenda a { grid-template-columns: 1fr; } }

/* photos: black and white, high contrast. Contrast is baked in by _tools/bw.py; the filter only catches untreated files. */
.photo { filter: grayscale(1); object-fit: cover; width: 100%; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: var(--fs-small); color: var(--text); }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.site-foot img { height: 40px; width: auto; margin-bottom: 16px; }
.site-foot ul { list-style: none; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--fg); }
.site-foot .fine { margin-top: 56px; font-family: var(--small); font-size: var(--fs-label); letter-spacing: .08em; color: var(--mute); }

/* motion: one fade, once */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
