/* The public homepage. Same dark, square look and faces as the users' site;
   nothing is loaded from other servers. */
:root {
  --bg: #000;
  --panel: #0c0d0e;
  --line: rgba(255, 255, 255, .16);
  --line-strong: rgba(255, 255, 255, .42);
  --text: #f5f6f7;
  --muted: #a3a7ac;
  --amber: #ffc04d;
  --concrete: #e6e4de;
  --concrete-text: #17181a;
  --concrete-muted: #54575b;
  --num: "DIN Alternate", "Bahnschrift", "DIN Condensed", "D-DIN", "Roboto Condensed", "Arial Narrow", sans-serif;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--jp); font-size: 16px; line-height: 1.8; overflow-x: hidden; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.defs { position: absolute; }
.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }

h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2 { font-weight: 800; line-height: 1.3; letter-spacing: .01em; word-break: keep-all; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.6rem, 6.4vw, 2.75rem); }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.5; }

/* ---- buttons, square as on the users' site ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 28px;
  border: 1px solid transparent; border-radius: 0; background: none; color: inherit; font: inherit; font-weight: 700;
  letter-spacing: .06em; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.button.solid { background: var(--amber); color: #000; }
.button.solid:hover { background: #fff; }
.button.ghost { border-color: var(--line-strong); }
.button.ghost:hover { border-color: #fff; background: #fff; color: #000; }
.button.dark { background: #000; color: #fff; }
.button.dark:hover { background: #2a2b2d; }
.button.small { min-height: 42px; padding: 6px 16px; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.spaced { margin-top: 28px; }

/* ---- header ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 46px; height: 45px; flex: none; color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.125rem; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.brand-text i { font-family: var(--num); font-style: normal; letter-spacing: .06em; margin-left: .1em; }
.brand-word { width: 96px; height: 11px; margin-top: 4px; color: var(--muted); }
.brand.small .brand-mark { width: 30px; height: 29px; }
.brand.small .brand-text strong { font-size: .9375rem; }
.top-nav { display: flex; align-items: center; gap: 28px; }
.top-nav a:not(.button) { font-size: .875rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.top-nav a:not(.button):hover { color: var(--text); }
.only-wide { display: none; }

/* ---- hero ---- */
.hero { display: grid; gap: 36px; padding-block: clamp(20px, 5vw, 56px) clamp(56px, 9vw, 104px); }
.kicker { font-size: .9375rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
h1 { margin-top: 14px; font-size: clamp(2.3rem, 11.4vw, 3.75rem); line-height: 1.2; }
h1 span { display: block; }
h1 em { font-style: normal; color: var(--amber); }
.lead { margin-top: 22px; font-size: 1.0625rem; max-width: 34em; }
.hero .actions { margin-top: 28px; }
.hero .actions .button { flex: 1 1 auto; }
.note { margin-top: 14px; font-size: .875rem; color: var(--muted); }

.proof { margin: 0; min-width: 0; }
.tabs { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; border: 1px solid var(--line-strong); border-bottom: 0; }
.tabs button {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 6px 4px;
  border: 0; border-left: 1px solid var(--line-strong); background: none; color: var(--muted);
  font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.tabs button:first-child { border-left: 0; }
.tabs button[aria-selected=true] { background: var(--text); color: #000; }
.tabs b { font-family: var(--num); font-size: .9375rem; }
.sheet { position: relative; aspect-ratio: 1440 / 1326; background: #fff; overflow: hidden; }
.sheet img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s; }
.sheet img.on { opacity: 1; }
.sheet-note { min-height: 3.6em; padding-block: 12px; font-size: .9375rem; }
.tally { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tally > div { padding: 12px 14px; background: var(--bg); }
.tally dt { font-size: .8125rem; color: var(--muted); }
.tally dd { font-family: var(--num); font-size: clamp(1.75rem, 8vw, 2.25rem); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tally small { margin-left: .15em; font-size: .5em; font-weight: 400; }
.tally .strong dd { color: var(--amber); }
.proof figcaption { margin-top: 12px; font-size: .8125rem; line-height: 1.7; color: var(--muted); }

/* ---- a section label drawn as a dimension line ---- */
.dim { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(24px, 4vw, 40px); font-size: .875rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.dim::before, .dim::after { content: ""; flex: 1; height: 11px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
.dim::before { border-left: 1px solid; }
.dim::after { border-right: 1px solid; }

/* ---- how to use ---- */
.band { padding-block: clamp(56px, 9vw, 104px); background: var(--panel); border-block: 1px solid var(--line); }
.steps { display: grid; gap: 44px; margin-top: clamp(28px, 4vw, 48px); }
.steps li { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.step-no { font-family: var(--num); font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--amber); }
.step-text h3 { margin-top: 10px; font-size: 1.25rem; }
.step-text p:last-child { margin-top: 8px; color: #d4d6d9; }
.shot { display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--bg); border: 1px solid var(--line); }
.shot.tall img { width: min(100%, 300px); }

/* ---- points ---- */
.points { display: grid; gap: 28px; padding-block: clamp(48px, 7vw, 80px); }
.points > div { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.points p { margin-top: 8px; color: #d4d6d9; }

/* ---- unread drawings ---- */
.amber { padding-block: clamp(48px, 8vw, 88px); background: var(--amber); color: #000; }
.amber-inner { display: grid; gap: 20px; }
.amber h2 span { display: block; }
.amber p { font-weight: 500; }
.amber p + p { margin-top: 12px; }
.amber .button { margin-top: 24px; }

/* ---- what comes next ---- */
.next { padding-block: clamp(56px, 9vw, 104px); }
.next-lead { margin-top: 16px; max-width: 34em; }
.road { display: grid; gap: 1px; margin-top: clamp(28px, 4vw, 44px); background: var(--line); border: 1px solid var(--line); }
.road li { padding: 20px; background: var(--bg); }
.road h3 { margin-top: 12px; font-size: 1.25rem; }
.road p { margin-top: 6px; color: #d4d6d9; }
.tag { display: inline-block; padding: 1px 10px; border: 1px solid var(--line-strong); font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.road .now { background: var(--panel); }
.road .now .tag { border-color: var(--amber); background: var(--amber); color: #000; }
.next .note { margin-top: 18px; }

/* ---- how drawings are handled ---- */
.concrete { padding-block: clamp(56px, 9vw, 104px); background: var(--concrete); color: var(--concrete-text); }
.concrete .dim { color: var(--concrete-muted); }
.split { display: grid; gap: 24px; }
.rules { border-top: 1px solid var(--concrete-text); }
.rules li { display: grid; gap: 4px; padding-block: 16px; border-bottom: 1px solid rgba(23, 24, 26, .28); }
.rules b { font-size: .875rem; color: var(--concrete-muted); }

/* ---- questions ---- */
.faq { padding-block: clamp(56px, 9vw, 104px); }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--num); font-size: 1.5rem; line-height: 1; color: var(--amber); }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 20px; color: #d4d6d9; max-width: 44em; }

/* ---- contact ---- */
.contact { padding-block: clamp(56px, 9vw, 112px); border-top: 1px solid var(--line); }
.contact-lead { margin-top: 14px; max-width: 34em; }
.mail { margin-top: 26px; font-family: var(--num); font-size: clamp(1.25rem, 6.1vw, 3.25rem); font-weight: 700; line-height: 1.2; }
.mail a { text-decoration: none; border-bottom: 2px solid var(--amber); }
.contact .actions { margin-top: 26px; }
.contact .actions .button { flex: 1 1 auto; }
.contact .note a { color: var(--text); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px 96px; border-top: 1px solid var(--line); color: var(--muted); }
.foot small { font-family: var(--num); letter-spacing: .08em; }
.foot-note { flex: 1 0 100%; font-size: .75rem; }

/* ---- the button that stays at the bottom on a phone ---- */
.dock {
  position: fixed; inset: auto 0 0; z-index: 10; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .86); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .2s;
}
.dock.on { transform: none; }
.dock .button { width: 100%; }

@media (min-width: 560px) {
  .tally { grid-template-columns: repeat(4, 1fr); }
  .hero .actions .button, .contact .actions .button { flex: 0 0 auto; }
}
@media (min-width: 760px) {
  .dock { display: none; }
  .foot { padding-bottom: 24px; }
  .only-wide { display: inline; }
  .points { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); }
  .rules li { grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; }
  .amber-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
  .road { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .road .now { grid-column: 1 / -1; }
  .road .now h3 { font-size: 1.5rem; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
  .step-text { min-height: 13.5em; }
  .shot { position: relative; aspect-ratio: 4 / 5; }
  .shot img, .shot.tall img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet img, .dock, .button { transition: none; }
}
