/* archil.artgto.com: the Obi Band brand on the web. Tokens mirror ../../DESIGN.md. */
:root {
  --white: #FFFFFF;
  --ink: #121212;
  --ink-2: #45454F;
  --ink-3: #66666F;
  --rule: rgba(18, 18, 18, 0.13);
  --orange: #FF5F1F;
  --orange-deep: #E84A0C;
  --orange-ink-2: #4A1C08;
  --blue: #3A35FF;
  --blue-ink-2: #DCDBFF;
  --pink: #FF7AB8;
  --sun: #FFC933;
  --f-xc: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --f-sc: 'Sofia Sans Semi Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --page: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f-body); font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; }
.skip:focus { left: 12px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- The mark: the nine-dot puzzle, solved ---------- */
.mark { overflow: visible; flex: none; }
.mark-box { fill: none; stroke: var(--ink); stroke-width: 0.03; stroke-dasharray: 0.09 0.09; opacity: 0.4; }
.mark-line { stroke-width: 0.22; stroke-linecap: round; }
.mark-dot { fill: var(--ink); }
.mark--mono .mark-line { stroke: currentColor !important; stroke-width: 0.34; }
.mark--mono .mark-dot { fill: currentColor; }
.mark--mono .mark-box { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  border: 1.5px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink);
  font-family: var(--f-sc); font-weight: 700; font-size: 15px; letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn--primary { background: var(--orange); border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 34px; }
.brand b { font-family: var(--f-xc); font-weight: 800; font-size: 23px; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) {
  font-family: var(--f-sc); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); padding: 10px 0;
}
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--orange); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } .brand b { font-size: 20px; } }

/* ---------- Hero: the claim, and the puzzle that proves it ---------- */
.hero { padding: clamp(28px, 4vh, 56px) 0 clamp(24px, 3.5vh, 44px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 3.5vh, 44px) clamp(32px, 5vw, 88px); align-items: center; }
.statement {
  font-family: var(--f-xc); font-weight: 800; font-size: clamp(68px, 10.5vw, 164px); line-height: 0.84;
  letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance;
}
.lede { margin-top: 28px; max-width: 32ch; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.42; color: var(--ink-2); }
.byline { margin-top: 22px; font-family: var(--f-sc); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.byline span { color: var(--ink-3); }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.puzzle { grid-column: 2; grid-row: 1; align-self: center; border: 1.5px solid var(--ink); border-radius: 2px; padding: clamp(16px, 1.6vw, 22px); }
.puzzle-task { font-family: var(--f-xc); font-weight: 800; font-size: clamp(25px, 2.3vw, 32px); line-height: 0.96; text-transform: uppercase; text-wrap: balance; }
.puzzle-rules { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.board { margin: 6px auto 0; width: 100%; max-width: min(360px, 40vh); aspect-ratio: 1; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.board .grid-pt { fill: var(--ink); opacity: 0.12; }
.board .box { fill: none; stroke: var(--ink); stroke-width: 0.03; stroke-dasharray: 0.09 0.09; opacity: 0.45; }
.board .seg { fill: none; stroke-width: 0.2; stroke-linecap: round; }
.board .ghost { stroke: var(--ink-3); stroke-width: 0.05; stroke-dasharray: 0.12 0.1; stroke-linecap: round; }
.board .dot { fill: var(--ink); transition: r 0.2s var(--ease-out); }
.board .start { fill: none; stroke: var(--ink); stroke-width: 0.05; }
.puzzle-foot { margin-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.puzzle-status { flex: 1 1 240px; min-height: 2.9em; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.puzzle-status b { color: var(--ink); }
.puzzle-actions { display: flex; gap: 8px; }
.puzzle.is-solved { border-color: var(--orange); box-shadow: inset 0 0 0 1.5px var(--orange); }
html:not(.js) .puzzle-actions { display: none; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .puzzle { grid-column: 1; grid-row: auto; }
  .board { max-width: 340px; }
}

/* ---------- The band: every hard fact ---------- */
.band { background: var(--orange); color: var(--ink); padding: clamp(36px, 4vw, 56px) 0 clamp(40px, 6vw, 68px); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 4vw, 56px); row-gap: clamp(30px, 4vw, 52px); }
.band-name { font-family: var(--f-xc); font-weight: 800; font-size: clamp(60px, 11.5vw, 178px); line-height: 0.84; letter-spacing: -0.01em; text-transform: uppercase; }
.band-name span { display: block; }
.band-title { margin-top: 18px; font-family: var(--f-sc); font-weight: 700; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: 0.07em; text-transform: uppercase; }
.band-sub { margin-top: 4px; font-family: var(--f-sc); font-weight: 600; font-size: 14px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--orange-ink-2); }
.band-contact { margin-top: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 4px; font-size: 17px; }
.band-contact dt { padding-top: 4px; font-family: var(--f-sc); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-ink-2); }
.band-contact a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.band-contact a:hover { text-decoration-thickness: 3px; }
.spine { grid-column: 2; grid-row: 1 / span 2; width: 128px; display: flex; flex-direction: column; gap: 18px; }
.code { align-self: flex-start; font-family: var(--f-xc); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: 0.02em; border: 2px solid currentColor; padding: 6px 8px 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fact { font-family: var(--f-sc); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.fact small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--orange-ink-2); }
.barcode { position: relative; flex: 1; display: block; min-height: 260px; background: var(--white); text-decoration: none; }
/* The bars are positioned, so their 1:300 drawing can never set the band's height. */
.barcode svg { fill: var(--ink); }
.barcode .bc-v { position: absolute; top: 12px; bottom: 12px; left: 14px; width: 48px; height: calc(100% - 24px); }
.barcode .bc-h { display: none; }
.barcode span { position: absolute; top: 12px; right: 12px; writing-mode: vertical-rl; font-family: var(--f-sc); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; }
.cols { grid-column: 1; align-self: end; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 0.9fr); column-gap: clamp(20px, 3vw, 40px); }
.col { border-top: 3px solid var(--ink); padding-top: 14px; min-width: 0; }
.col h2 { margin-bottom: 6px; font-family: var(--f-sc); font-weight: 700; font-size: 12px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--orange-ink-2); }
.track { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(18, 18, 18, 0.22); }
.track:last-child { border-bottom: 0; }
.col--plain .track { grid-template-columns: minmax(0, 1fr); }
.track-no { font-family: var(--f-xc); font-weight: 800; font-size: 30px; line-height: 0.9; font-variant-numeric: tabular-nums; }
.track b { display: block; font-size: 16px; line-height: 1.3; }
.track span { display: block; font-size: 15px; line-height: 1.35; color: var(--orange-ink-2); }
.track .when { margin-top: 3px; color: var(--ink); }
.when { font-family: var(--f-sc); font-weight: 700; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.lang { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(18, 18, 18, 0.22); }
.lang:last-child { border-bottom: 0; }
.lang b { font-size: 16px; }
.lang span { font-family: var(--f-sc); font-weight: 700; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--orange-ink-2); }
@media (max-width: 900px) {
  .band .wrap { grid-template-columns: minmax(0, 1fr); }
  .spine { grid-column: 1; grid-row: auto; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
  .barcode { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: 12px; }
  .barcode .bc-v { display: none; }
  .barcode .bc-h { display: block; width: 100%; height: 56px; }
  .barcode span { position: static; writing-mode: horizontal-tb; text-align: center; }
  .cols { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
}

/* ---------- Liner notes ---------- */
.liner { padding: clamp(56px, 8vw, 112px) 0 clamp(32px, 5vw, 72px); }
.sec { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: clamp(24px, 5vw, 80px); padding: 34px 0 52px; border-top: 5px solid var(--sec-c, var(--ink)); }
.sec > h2 { font-family: var(--f-xc); font-weight: 800; font-size: clamp(38px, 4.2vw, 58px); line-height: 0.9; text-transform: uppercase; text-wrap: balance; }
.sec-body { min-width: 0; max-width: 70ch; }
.prose { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.58; }
.entry + .entry { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--rule); }
.entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 18px; flex-wrap: wrap; }
.entry h3 { font-family: var(--f-sc); font-weight: 700; font-size: 22px; line-height: 1.22; }
.entry-head .when { color: var(--ink-3); font-size: 13px; }
.org { margin-top: 4px; font-size: 18px; }
.org .dim { color: var(--ink-3); }
.org a { color: var(--blue); font-weight: 600; text-decoration: none; }
.org a:hover { text-decoration: underline; text-underline-offset: 3px; }
.desc { margin-top: 10px; font-size: 18px; line-height: 1.58; color: var(--ink-2); }
.claims { display: grid; gap: 18px; }
.claim { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: baseline; }
.claim-no { font-family: var(--f-xc); font-weight: 800; font-size: 36px; line-height: 0.9; color: var(--blue); font-variant-numeric: tabular-nums; }
.claim p { font-size: 20px; line-height: 1.45; color: var(--ink-2); }
.claim strong { color: var(--ink); }
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 40px; }
.level { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.level b { font-size: 19px; }
.level span { font-family: var(--f-sc); font-weight: 700; font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue); }
.sec-body h3.minor { margin: 34px 0 10px; font-family: var(--f-xc); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; }
.credit { font-size: 19px; line-height: 1.7; }
.credit .slash { color: var(--blue); font-weight: 700; padding: 0 0.35em; }
@media (max-width: 760px) {
  .sec { grid-template-columns: minmax(0, 1fr); row-gap: 18px; padding: 26px 0 40px; }
  .claim { grid-template-columns: 48px minmax(0, 1fr); }
}

/* ---------- Contact ---------- */
.contact { background: var(--blue); color: var(--white); padding: clamp(56px, 8vw, 108px) 0; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px 56px; align-items: end; }
.contact h2 { font-family: var(--f-xc); font-weight: 800; font-size: clamp(68px, 10vw, 156px); line-height: 0.84; text-transform: uppercase; }
.contact p { margin-top: 20px; max-width: 34ch; font-size: 20px; line-height: 1.45; color: var(--blue-ink-2); }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact .mail {
  font-family: var(--f-xc); font-weight: 800; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; color: var(--white);
  text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 4px; text-underline-offset: 8px;
}
.contact .mail:hover { text-decoration-color: var(--white); }
.contact .btn { border-color: var(--white); color: var(--white); }
.contact .btn:hover { background: var(--white); color: var(--blue); }
.contact .where { font-family: var(--f-sc); font-weight: 700; font-size: 14px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue-ink-2); }
.contact :focus-visible { outline-color: var(--white); }
@media (max-width: 760px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.foot { padding: 26px 0 40px; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; font-family: var(--f-sc); font-weight: 700; font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.foot .id { display: inline-flex; align-items: center; gap: 12px; }
.foot .mark { width: 26px; color: var(--ink-3); }
.foot a { color: var(--ink-2); text-underline-offset: 3px; }

/* ---------- Legal page ---------- */
.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-family: var(--f-xc); font-weight: 800; font-size: clamp(52px, 7vw, 96px); line-height: 0.88; text-transform: uppercase; }
.legal .intro { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 60ch; }
.legal section { margin-top: 40px; padding-top: 22px; border-top: 5px solid var(--sec-c, var(--ink)); }
.legal h2 { font-family: var(--f-xc); font-weight: 800; font-size: 32px; line-height: 0.95; text-transform: uppercase; }
.legal h3 { margin-top: 22px; font-family: var(--f-sc); font-weight: 700; font-size: 18px; }
.legal p, .legal address { margin-top: 10px; font-style: normal; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 68ch; }
.legal a { color: var(--blue); }

/* The one authored moment: the band wraps on as it scrolls in. */
@keyframes wrap-on { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.js .band.is-in .band-name { animation: wrap-on 0.7s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
