:root { --carbon: #171C1B; --green: #447A69; --green-ink: #355F52; --chalk: #F4F3EF; --line: #C9CFCB; --mute: #4F5A56; --paper: #fff; --ink: var(--carbon); --ground: var(--chalk); --err: #8A2B1F; color-scheme: light dark }
@media (prefers-color-scheme: dark) { :root { --ground: #171C1B; --ink: #E9EAE5; --paper: #1F2523; --line: #36403C; --mute: #A8B8B0; --green-ink: #6FA592; --err: #E89A8C } }
* { box-sizing: border-box }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif }
body { min-height: 100vh; display: flex; flex-direction: column }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); background: var(--paper) }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none }
.swallow { width: 34px; height: 20px; fill: currentColor; flex: none }
.mark { font-weight: 700; letter-spacing: .12em; font-size: 15px }
.sub { color: var(--mute); font-size: 14px }
.tag { color: var(--mute); font-size: 14px }
main { width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; position: relative; flex: 1 }
.foot { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 22px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--mute) }
.home main { display: grid; align-content: center; max-width: 720px }
.panel { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--green); padding: clamp(24px, 5vw, 44px) }
.panel h1 { font-size: clamp(26px, 4vw, 32px); margin: 0 0 10px }
.panel .lede { color: var(--mute); margin: 0 0 28px; font-size: 16px }
.open label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px }
.open .row { display: flex; gap: 0 }
.open input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-right: 0; border-radius: 0; background: var(--ground); color: var(--ink) }
.open input:focus-visible { outline: 2px solid var(--green); outline-offset: -2px }
.open button { justify-self: auto }
.open .err { margin: 10px 0 0; font-size: 14px }
.facts3 { display: flex; align-items: flex-start; gap: 10px; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute) }
.facts3 svg { width: 18px; height: 18px; fill: none; stroke: var(--green-ink); stroke-width: 1.5; stroke-linecap: square; flex: none }
.terms.full { max-height: none; overflow: visible }
@media (max-width: 560px) { .tag, .sub { display: none } .open .row { flex-direction: column; gap: 10px } .open input { border-right: 1px solid var(--line) } .open button { width: 100% } }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 20px }
h2 { font-size: 18px; margin: 28px 0 8px }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 28px; font-size: 15px }
.facts dt { color: var(--mute) }
.facts dd { margin: 0 }
.mono, code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em }
.terms { background: var(--paper); padding: 8px 28px 24px; border-left: 3px solid var(--green); max-height: 55vh; overflow: auto }
.terms h1 { font-size: 22px; margin-top: 18px }
.accept { display: grid; gap: 14px; margin-top: 24px }
.accept label { display: grid; gap: 6px; font-size: 15px }
.accept .tick { grid-template-columns: auto 1fr; align-items: start }
input[type=text], input[type=email], input[type=date], textarea, input:not([type]), input[type=password] { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink) }
input:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px }
button, .btn { justify-self: start; font: inherit; font-weight: 600; padding: 11px 20px; border: 0; border-radius: 0; background: var(--ink); color: var(--ground); cursor: pointer; text-decoration: none; display: inline-block; transition: background .15s }
button:hover, .btn:hover { background: var(--green-ink) }
button:disabled { opacity: .5; cursor: default }
.err { color: var(--err) }
.note { color: var(--mute) }
#doc { display: grid; gap: 16px; user-select: none; -webkit-user-select: none }
.sheet { width: 100%; height: auto; background: #fff; box-shadow: 0 0 0 1px var(--line) }
.wm { position: fixed; inset: auto 12px 12px auto; font-size: 12px; color: var(--mute); pointer-events: none }
.out { margin-top: 32px }
button.quiet { background: none; color: var(--mute); padding: 0; font-weight: 500; border-bottom: 1px solid var(--line); transition: color .15s, border-color .15s }
button.quiet:hover { background: none; color: var(--ink); border-color: var(--green) }
.land { min-height: 60vh; display: grid; align-content: center; gap: 4px }
.word { font-size: clamp(44px, 10vw, 88px); font-weight: 700; letter-spacing: .06em; line-height: 1; margin: 0 }
.lede { font-size: 19px; max-width: 34em; margin: 20px 0 8px; color: var(--ink) }
.foot .link, .link { color: var(--green-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s }
.link:hover, .link:focus-visible { background-size: 100% 1px }
/* Terms: the agreement as a readable document, with the summary and acceptance beside it. */
.doc main { max-width: 1180px }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start }
.terms.doc { max-height: none; overflow: visible; background: var(--paper); border: 1px solid var(--line); padding: 44px clamp(20px, 5vw, 64px) 52px; font-size: 15.5px; line-height: 1.7 }
.terms.doc > * { max-width: 70ch }
.terms.doc h1 { font-size: 28px; margin: 0 0 4px }
.terms.doc h1 + p { color: var(--mute); font-size: 14px; margin-top: 0 }
.terms.doc h2 { font-size: 17px; margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid var(--line) }
.terms.doc p { margin: 0 0 12px }
.cl { font-weight: 600; color: var(--green-ink); font-variant-numeric: tabular-nums; margin-right: 4px }
.side { position: sticky; top: 24px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--green); padding: 28px }
.side h1 { font-size: 22px; margin: 0 0 18px }
.kicker { margin: 0 0 6px; font-size: 14px; color: var(--green-ink); font-weight: 600 }
.side .facts { grid-template-columns: 1fr; gap: 2px; font-size: 14px; margin-bottom: 22px }
.side .facts dd { margin-bottom: 10px; overflow-wrap: anywhere }
.side .accept { margin-top: 0; padding-top: 20px; border-top: 1px solid var(--line) }
.side .accept button { width: 100% }
.side .out { margin-top: 18px }
.opt { color: var(--mute); font-weight: 400; font-size: 13px }
.accept .tick { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.5 }
input[type=checkbox] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green) }
.panel .accept { margin-top: 20px }
.panel .accept button { width: 100% }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr } .side { position: static } }

/* Viewer: the file first, its details and download beside it. */
.viewer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start }
.stage { background: var(--paper); border: 1px solid var(--line); min-height: 60vh; padding: clamp(16px, 3vw, 28px); display: grid; align-content: start }
.unlock { display: grid; gap: 14px; max-width: 420px; margin: 12vh auto; width: 100% }
.unlock label { display: grid; gap: 6px; font-weight: 600; font-size: 15px }
.unlock .hint, .hint { font-weight: 400; color: var(--mute); font-size: 13px }
.unlock input[type=file] { font: inherit; font-size: 14px; color: var(--ink) }
.unlock button { width: 100% }
button.wide { width: 100% }
#doc:empty { display: none }
.table-wrap { overflow: auto; max-height: 75vh; border: 1px solid var(--line) }
.table-wrap table { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 100% }
.table-wrap th, .table-wrap td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap }
.table-wrap th { position: sticky; top: 0; background: var(--paper); font-weight: 600; border-bottom: 2px solid var(--line) }
pre.text { margin: 0; white-space: pre-wrap; font: 13px/1.6 ui-monospace, "SF Mono", Menlo, monospace; max-height: 75vh; overflow: auto }
@media (max-width: 900px) { .viewer-layout { grid-template-columns: 1fr } .stage { min-height: 0 } .unlock { margin: 24px auto } }

/* Skeletons: tinted blocks with a slow sheen; static under reduced motion. */
.skel { display: block; background: color-mix(in srgb, var(--line) 65%, var(--ground)); position: relative; overflow: hidden }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--paper) 55%, transparent), transparent); animation: sheen 1.4s ease-in-out infinite }
@keyframes sheen { to { transform: translateX(100%) } }
.loading main > :not(.skel-page) { display: none }
.skel-page { display: grid; gap: 14px; padding-top: 4px }
.skel-h { height: 30px; width: 55% } .skel-l { height: 14px; width: 92% } .skel-l.short { width: 64% }
.skel-block { height: 160px; margin-top: 10px } .skel-btn { height: 44px; width: 160px; margin-top: 6px }
.home .skel-page { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--green); padding: clamp(24px, 5vw, 44px) }
.skel-sheet { width: 100%; aspect-ratio: 1 / 1.414 }
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; display: none } }
@media print { body { display: none } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important } }
