/* Lading site. Tokens come from Lading-Brand/02-identity/palette.md */
:root {
  --primary: #0B7A57;
  --on-primary: #FFFFFF;
  --primary-container: #D8F4E7;
  --on-primary-container: #053B2A;
  --ink: #1D2F52;
  --bg: #F4F6FA;
  --text: #0E1A2E;
  --surface: #FFFFFF;
  --surface-2: #E8ECF4;
  --muted: #475569;
  --line: #CBD3E1;
  --warn: #9A5B00;
  --font: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #4FD6A0;
    --on-primary: #04271C;
    --primary-container: #0E5A41;
    --on-primary-container: #CDF6E4;
    --ink: #A9C1EE;
    --bg: #0A1222;
    --text: #EAF0FA;
    --surface: #121D34;
    --surface-2: #1B2A47;
    --muted: #A9B6CC;
    --line: #2C3D5E;
    --warn: #F2B24B;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1.0625rem/1.6 var(--font);
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--on-primary); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font: 800 1.35rem/1 var(--font-round); letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 8px; display: block; }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .975rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--primary); }

/* hero */
.hero { padding: 3.5rem 0 3rem; }
.hero h1 { font: 800 clamp(2.4rem, 6.2vw, 4.2rem)/1.04 var(--font-round); letter-spacing: -.025em; margin: 0 0 1.1rem; max-width: 14ch; color: var(--ink); }
.hero p.lede { font-size: 1.25rem; max-width: 38rem; color: var(--text); margin: 0 0 1.75rem; }
.cta-row { display: flex; gap: .75rem 1rem; align-items: center; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--primary); color: var(--on-primary); font-weight: 650; text-decoration: none; padding: .8rem 1.4rem; border-radius: 12px; }
.btn:hover { filter: brightness(1.06); }
.btn.quiet { background: transparent; color: var(--text); border: 1.5px solid var(--outline, #8591A6); }
.soon { display: inline-block; padding: .8rem 1.4rem; border-radius: 12px; background: var(--surface-2); color: var(--text); font-weight: 650; }
.fine { color: var(--muted); font-size: .95rem; margin: .9rem 0 0; }

/* the labels: drawn like the printed ones, so they stay white in dark mode */
.sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.75rem; }
.label { --room: #34C759; background: #fff; color: #0E1A2E; border-radius: 10px; overflow: hidden; border: 1px solid rgba(14,26,46,.18); box-shadow: 0 1px 0 rgba(14,26,46,.08); display: grid; grid-template-rows: auto 1fr; font-family: var(--font-round); }
.label .band { background: var(--room); padding: .7rem .9rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; border-bottom: 6px solid var(--room); }
.label .room { font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.1; color: #0E1A2E; background: #fff; padding: .15rem .55rem; border-radius: 6px; }
.label .code { font-weight: 800; font-size: 1.1rem; background: #fff; border-radius: 6px; padding: .15rem .5rem; color: #0E1A2E; }
.label .body { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center; padding: .9rem; }
.label .num { font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.label .num small { display: block; font-size: .95rem; font-weight: 600; letter-spacing: 0; color: #475569; margin-top: .35rem; }
.label .qr { width: clamp(64px, 11vw, 104px); aspect-ratio: 1; padding: 5px; background: #fff; border: 1px solid #CBD3E1; }
.label .qr svg { display: block; width: 100%; height: 100%; }
.label .flags { font: 650 .8rem var(--font); color: #0E1A2E; padding: 0 .9rem .8rem; }
.label .flags span { border: 1.5px solid #0E1A2E; border-radius: 5px; padding: .1rem .45rem; margin-right: .35rem; }
.sheet-note { color: var(--muted); font-size: .95rem; margin: .8rem 0 0; }

/* sections */
section { padding: 3rem 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font: 800 clamp(1.7rem, 3.6vw, 2.3rem)/1.15 var(--font-round); letter-spacing: -.015em; margin: 0 0 1.25rem; color: var(--ink); }
h3 { font: 700 1.2rem/1.3 var(--font-round); margin: 2rem 0 .4rem; color: var(--text); }
p { margin: 0 0 1rem; max-width: 42rem; }
.lead-in { color: var(--muted); max-width: 40rem; margin-bottom: 1.75rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 46rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(step); font: 800 1.6rem/1.1 var(--font-round); color: var(--primary); font-variant-numeric: tabular-nums; }
.steps strong { display: block; font-size: 1.1rem; }
.steps span { color: var(--muted); }

dl.features { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: 0 2rem; margin: 0; max-width: 54rem; }
dl.features dt { font-weight: 700; padding: 1rem 0; border-top: 1px solid var(--line); }
dl.features dd { margin: 0; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--text); }
dl.features dt:first-of-type, dl.features dt:first-of-type + dd { border-top: 0; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.shot { margin: 0; }
.shot .frame { aspect-ratio: 9 / 19.5; border-radius: 28px; border: 2px dashed var(--line); background: var(--surface); display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--muted); font-size: .9rem; overflow: hidden; position: relative; }
.shot .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.shot .frame:has(img) { border-color: transparent; background: none; }
.shot figcaption { margin-top: .6rem; font-size: .95rem; color: var(--muted); }

.private { background: var(--primary-container); color: var(--on-primary-container); border-radius: 18px; padding: 2rem; max-width: 54rem; }
.private h2 { color: var(--on-primary-container); }
.private ul { margin: 0; padding-left: 1.2rem; }
.private li { margin: .3rem 0; }
.private a { color: var(--on-primary-container); }

details { border-top: 1px solid var(--line); padding: .9rem 0; max-width: 46rem; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; }
details p { margin: .6rem 0 0; color: var(--text); }

.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; max-width: 36rem; }
.contact p { margin-bottom: .6rem; }

/* long-form pages */
.doc { padding: 2.5rem 0 3.5rem; }
.doc h1 { font: 800 clamp(2rem, 5vw, 3rem)/1.1 var(--font-round); letter-spacing: -.02em; margin: 0 0 .6rem; color: var(--ink); }
.doc .meta { color: var(--muted); margin-bottom: 2rem; }
.doc h2 { font-size: 1.6rem; margin: 2.5rem 0 .75rem; }
.doc ul, .doc ol { max-width: 42rem; padding-left: 1.3rem; margin: 0 0 1rem; }
.doc li { margin: .3rem 0; }
.doc table { border-collapse: collapse; width: 100%; max-width: 46rem; margin: 1rem 0 1.5rem; font-size: .975rem; }
.doc th, .doc td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 650; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; max-width: 36rem; margin-bottom: 1rem; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.toc li { margin: .25rem 0; break-inside: avoid; }
.callout { background: var(--surface-2); border-left: 4px solid var(--primary); padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; max-width: 42rem; margin: 1rem 0 1.5rem; }
.callout p { margin: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .sheet { grid-template-columns: 1fr; }
  .label .qr { width: 96px; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: .5rem; }
  .shots li { flex: 0 0 62%; scroll-snap-align: start; }
  dl.features { grid-template-columns: 1fr; }
  dl.features dt { padding-bottom: 0; border-top: 1px solid var(--line); }
  dl.features dd { border-top: 0; padding-top: .25rem; }
  dl.features dt:first-of-type { border-top: 0; }
  .toc ul { columns: 1; }
  .hero { padding-top: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .skip { display: none; } body { background: #fff; color: #000; } }
