/* Layout: a left-aligned reading column with a narrow label rail beside it.
   Each section names itself in the rail; the three-ring mark carries the model. */
:root {
  --bg: #edf0eb;        /* lichen stone */
  --surface: #e1e7de;   /* a shade into the stone */
  --ink: #14261f;       /* deep spruce */
  --muted: #4d5f57;     /* weathered spruce */
  --line: #c3cdc2;      /* hairline */
  --accent: #8a5a1f;    /* bronze, from the tree logo */
  --display: "Spectral", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rail: 13rem;
  --measure: 39rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1b17; --surface: #172721; --ink: #e3eae2; --muted: #9bada3;
    --line: #2a3e36; --accent: #d8b26a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1b17; --surface: #172721; --ink: #e3eae2; --muted: #9bada3;
  --line: #2a3e36; --accent: #d8b26a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }

.wrap { max-width: 68rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }

/* draft strip */
.draftbar { background: var(--surface); color: var(--muted); font-size: 0.8125rem; border-bottom: 1px solid var(--line); }
.draftbar .wrap { padding-block: 0.45rem; }

/* header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 1.9rem; height: 1.9rem; flex: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.5rem; font-size: 0.95rem; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* buttons */
.btn { display: inline-block; background: var(--ink); color: var(--bg); padding: 0.8rem 1.35rem; border: 1px solid var(--ink); border-radius: 2px; font: 600 0.95rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.small { padding: 0.55rem 0.95rem; font-size: 0.875rem; }
.more { font-weight: 600; white-space: nowrap; }

/* hero with photo */
.hero.photo { position: relative; color: #f4f1ea; background: linear-gradient(rgba(10,14,10,var(--shade,.55)), rgba(10,14,10,var(--shade2,.62))), var(--hero-img) var(--hero-pos, center) / cover no-repeat; }
.hero.photo h1, .hero.photo .lede, .hero.photo .eyebrow, .hero.photo .hero-mark, .hero.photo blockquote, .hero.photo figcaption { color: #f4f1ea; }
.hero.photo figcaption { opacity: .85; }
.hero.photo h1 em, .hero.photo .gold { color: #d8b26a; }
.hero.photo .wrap { padding-block: clamp(4rem, 12vw, 8rem); }
.hero.photo.plain .hero-text { max-width: 34rem; }
.model-row { display: flex; align-items: center; gap: 1.5rem; }
.model-copy { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.model-mark { flex: 0 0 auto; width: 6rem; height: 6rem; color: #d8b26a; }
@media (max-width: 520px) { .model-row { gap: 1rem; } .model-mark { width: 4rem; height: 4rem; } }
.model-mark svg { display: block; width: 100%; height: 100%; }
/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: 2rem 3rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.hero.plain .wrap { grid-template-columns: minmax(0, 1fr); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-text { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 300; line-height: 1.04; letter-spacing: -0.012em; }
.hero.plain h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 34rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; }
.hero-mark { color: var(--ink); width: 100%; max-width: 17rem; justify-self: end; }
.hero-mark svg { display: block; width: 100%; height: auto; }

/* sections */
.band { border-top: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: minmax(0, var(--rail)) minmax(0, var(--measure)); gap: 1.25rem 4rem; padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.band h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.15; }
.band.tint { background: var(--surface); }
.prose { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.prose h3 { font-size: 1.35rem; line-height: 1.2; margin-top: 0.6rem; }
.prose ul { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 0.45rem; }
.prose li::marker { color: var(--accent); }
.pull { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.3; font-style: italic; }

/* the three movements */
.prose .moves { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.moves li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0.25rem 1.25rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.moves li:last-child { border-bottom: 1px solid var(--line); }
.moves svg { width: 3.5rem; height: 3.5rem; grid-row: span 2; color: var(--line); }
.moves h3 { font-size: 1.35rem; margin: 0; align-self: end; }
.moves p { grid-column: 2; }

/* rows of links */
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rows li { border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1.5rem; align-items: baseline; padding-block: 1.15rem; text-decoration: none; }
.rows .t { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.rows .d { grid-column: 1; color: var(--muted); font-size: 0.98rem; }
.rows .go { grid-row: 1; grid-column: 2; color: var(--accent); font-size: 1.2rem; }
.rows a:hover .t { color: var(--accent); }

/* terms */
.terms { margin: 0; display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); }
.terms dt, .terms dd { margin: 0; padding-block: 0.95rem; border-top: 1px solid var(--line); }
.terms dt { font-weight: 600; font-size: 0.95rem; padding-right: 1rem; }
.terms dt:last-of-type, .terms dd:last-of-type { border-bottom: 1px solid var(--line); }
.terms .fig { font-variant-numeric: tabular-nums; font-weight: 600; }

/* table */
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 1px solid var(--line); }
tbody th { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }

/* forms */
form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
label { font-weight: 600; font-size: 0.92rem; }
.hint { color: var(--muted); font-size: 0.875rem; }
input, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 2px; padding: 0.7rem 0.8rem; width: 100%; }
.band.tint input, .band.tint textarea { background: var(--bg); }
textarea { min-height: 7.5rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.formnote { border-left: 2px solid var(--accent); padding: 0.4rem 0 0.4rem 0.9rem; color: var(--muted); font-size: 0.95rem; }
.copyline { font-family: var(--display); font-size: 1.35rem; user-select: all; }

/* notes to Ori that will not ship */
.todo { display: block; border: 1px dashed var(--muted); padding: 0.6rem 0.8rem; font-size: 0.875rem; color: var(--muted); background: transparent; }
.todo b { color: var(--ink); }

/* home: who I am, text wraps around the photo */
.who-photo { float: right; width: 40%; max-width: 240px; height: auto; margin: 0.35rem 0 1rem 1.25rem; border-radius: 4px; }
.who .prose { display: block; }
.who .prose p { margin: 0 0 1.1rem; }
.who .prose::after { content: ""; display: block; clear: both; }
@media (min-width: 760px) { .who-photo { margin-left: 2rem; } }
/* portrait */
.portrait-img { display: block; width: 100%; height: auto; aspect-ratio: 750 / 1082; object-fit: cover; border-radius: 4px; }
/* portrait placeholder */
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border: 1px dashed var(--muted); display: grid; place-items: center; color: var(--muted); font-size: 0.875rem; text-align: center; padding: 1rem; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); font-size: 0.92rem; color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, var(--rail)) minmax(0, var(--measure)); gap: 1.25rem 4rem; padding-block: 2.5rem; }
.site-foot .brand { color: var(--ink); font-size: 1.15rem; }
.foot-body { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; color: var(--ink); }

@media (max-width: 760px) {
  .band .wrap, .site-foot .wrap { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { max-width: 7rem; justify-self: start; order: -1; }
  .terms { grid-template-columns: minmax(0, 1fr); }
  .terms dd { border-top: 0; padding-top: 0; }
  .terms dt { padding-bottom: 0.2rem; }
  .terms dt:last-of-type { border-bottom: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, a { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
}

/* Life Awake tree logo placeholders (until the real file arrives) */
.tree-mini { width: 2.1rem; height: auto; flex: none; }
.tree-logo { display: block; width: 100%; max-width: 17rem; height: auto; }
.tree-slot { aspect-ratio: 1; display: grid; place-items: center; border: 1px dashed var(--muted); color: var(--muted); font-size: 0.875rem; text-align: center; padding: 1rem; }

/* quotation */
.quote { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; max-width: 36rem; border-left: 2px solid var(--accent); padding-left: 1.25rem; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.3; }
.quote figcaption { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }

.gold { color: var(--accent); }

.episodes td.num { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; width: 1%; }
.episodes th { font-size: 1.05rem; }
.episodes th a { text-decoration: none; }
.episodes th a:hover { text-decoration: underline; }
.prose h3 .hint { font-family: var(--body); font-size: 0.85rem; margin-left: 0.5rem; }
@media (max-width: 700px) { .hero.photo { --shade: .5 !important; --shade2: .6 !important; } }

/* home: picture cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.15rem 1.25rem; }
.card .t { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.card .go { color: var(--accent); }
.card .d { color: var(--muted); }
