:root {
  color-scheme: light dark;
  --bg: #f5f0e6; --ink: #1f1a15; --muted: #6a6055; --line: #ddd4c3;
  --accent: #a8452f; --teal: #1d4651; --teal-ink: #f1e9da;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --bg: #191511; --ink: #efe7d8; --muted: #a79d8e; --line: #322b23; --accent: #e3896c; }
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #191511; --ink: #efe7d8; --muted: #a79d8e; --line: #322b23; --accent: #e3896c; }
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--bg); }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
em { font-style: italic; color: var(--accent); }
.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.5rem; }

header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { color: var(--ink); text-decoration: none; font: 1.45rem/1 var(--serif); letter-spacing: -.01em; }
.brand { display: block; }
.brand a { color: inherit; text-decoration: none; }
.brand small a { color: var(--muted); }
.brand small a:hover { color: var(--accent); text-decoration: underline; }
.brand small { display: block; margin-top: .35rem; font: .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
nav { display: flex; align-items: center; gap: 1.5rem; font-size: .95rem; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--accent); }
nav a[aria-current] { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.btn { white-space: nowrap; display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; line-height: 1.2; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
nav .btn { padding: .6rem 1.1rem; }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: center; padding: 5rem 0 4.5rem; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 1.5rem; }
.lead { font: 1.35rem/1.5 var(--serif); color: var(--muted); max-width: 30rem; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; color: var(--muted); }
.facts li::before { content: ""; display: inline-block; width: .4rem; height: .4rem; margin-right: .5rem; border-radius: 50%; background: var(--accent); vertical-align: .12em; }

.mock { margin: 0; border-radius: 6px; overflow: hidden; color: var(--teal-ink); background: linear-gradient(165deg, #2c5a4e 0%, #17382f 100%); box-shadow: 0 1px 2px rgba(31,26,21,.12), 0 24px 48px -16px rgba(31,26,21,.35); }
.menubar { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; background: rgba(0,0,0,.22); font-size: .8rem; }
.menubar .spacer { flex: 1; }
.rec { display: inline-flex; align-items: center; gap: .45rem; color: #ffb4a3; }
.rec svg { width: 1.1rem; height: 1.1rem; }
.lines { list-style: none; margin: 0; padding: 1.5rem 1.4rem 1rem; display: grid; gap: 1.1rem; font: 1.1rem/1.45 var(--serif); }
.lines li { display: grid; grid-template-columns: 3.2rem 1fr; gap: .75rem; animation: rise .9s var(--ease) both; }
.lines li:nth-child(2) { animation-delay: .5s; }
.lines li:nth-child(3) { animation-delay: 1s; }
.lines b { font: 600 .75rem/1.9 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #e8d6b4; }
.mock figcaption { padding: .9rem 1.4rem 1.2rem; font: italic .9rem var(--serif); color: #e3dccd; border-top: 1px solid rgba(255,255,255,.1); }
@keyframes rise { from { opacity: 0; transform: translateY(.6rem); } }
@media (prefers-reduced-motion: reduce) { .lines li { animation: none; } html { scroll-behavior: auto; } }

.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.row h2 { margin: 0; font-size: 1.9rem; line-height: 1.15; letter-spacing: -.015em; }
.row p { text-wrap: pretty; margin: 0; max-width: 38rem; }
.note { padding: 5rem 0 3rem; text-align: center; }
.note h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; letter-spacing: -.02em; max-width: 40rem; margin: 0 auto 2rem; }

main.doc { max-width: 36rem; padding: 4rem 0 2rem; }
main.doc h1 { font-size: 2.8rem; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 1.5rem; }
main.doc li { margin-bottom: .85rem; }
code { background: color-mix(in srgb, var(--ink) 8%, transparent); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

.theme { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.theme:hover { border-color: var(--ink); }
.theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.75rem 0 2.5rem; font-size: .85rem; color: var(--muted); }
footer .wrap { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; }
footer .tram { height: 1.05em; width: auto; vertical-align: baseline; margin-left: .25em; }
footer .tram .b { fill: #8e8e93; }
footer .tram .c { fill: #fff; }
.signoff { margin: 0; font: italic 1rem/1.3 var(--serif); color: var(--muted); }
footer .small { margin: .75rem 0 0; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0; }
  .row { grid-template-columns: 1fr; gap: .75rem; padding: 2rem 0; }
  nav { gap: 1rem; }
  nav .hide-sm { display: none; }
}
@media (max-width: 34rem) {
  .brand { display: block; }
.brand a { color: inherit; text-decoration: none; }
.brand small a { color: var(--muted); }
.brand small a:hover { color: var(--accent); text-decoration: underline; }
.brand small { display: none; }
  nav a:not(.btn) { font-size: .9rem; }
  nav .btn { padding: .5rem .9rem; }
}
