/* QLOCK · signal white on black. Schibsted Grotesk + IBM Plex Mono. */
@font-face { font-family: 'Schibsted'; src: url('/fonts/schibsted-grotesk.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }

:root {
  --bg: #000; --ink: #F4F4F2; --ink2: #D6D6D2; --muted: #9A9A95; --dim: #64645F;
  --line: #1D1D1C; --line2: #2B2B29; --surface: #0A0A0A; --surface2: #111110; --surface3: #181817;
  --good: #F4F4F2; --bad: #FF6B6B;
  --display: 'Schibsted', 'Inter Tight', system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --r: 14px; --r-sm: 9px; --wrap: 1240px; --pad: clamp(18px, 3vw, 32px); --side: clamp(420px, 34vw, 540px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--display); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #000; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.kicker { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 7px; height: 7px; background: var(--ink); border-radius: 50%; }
.display { font: 850 clamp(44px, 7.6vw, 116px)/.86 var(--display); letter-spacing: -.035em; text-transform: uppercase; margin: 0; }
.h1 { font: 850 clamp(40px, 6.4vw, 96px)/.88 var(--display); letter-spacing: -.032em; text-transform: uppercase; margin: 0; }
.h2 { font: 850 clamp(32px, 4.6vw, 64px)/.9 var(--display); letter-spacing: -.028em; text-transform: uppercase; margin: 0; }
.h3 { font: 800 clamp(20px, 2vw, 26px)/1.05 var(--display); letter-spacing: -.015em; text-transform: uppercase; margin: 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink2); max-width: 46ch; margin: 0; }
.body-l { font-size: 18px; line-height: 1.6; color: var(--ink2); max-width: 60ch; }
.hollow { color: #5A5A55; }
.section { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section-head .kicker { margin-bottom: 18px; }

/* ---------- buttons ---------- */
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 20px; border-radius: 11px; border: 1px solid transparent; font: 700 15px/1 var(--display); letter-spacing: -.01em; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s; white-space: nowrap; user-select: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #000; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: var(--surface3); color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { border-color: #444441; background: #1e1e1d; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { --h: 38px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { --h: 56px; padding: 0 26px; font-size: 17px; border-radius: 13px; }
.btn[disabled], .btn.is-disabled { opacity: .38; cursor: not-allowed; pointer-events: none; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
/* ---------- the ledger layout: a fixed left panel, the page scrolls on the right as numbered entries ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 24px clamp(26px, 2.6vw, 42px) 22px; border-right: 1px solid var(--line2); overflow-y: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.pane { min-width: 0; }
[id] { scroll-margin-top: 24px; }

.site-head .bar { display: flex; align-items: center; gap: 10px; height: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 850 19px/1 var(--display); letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: #000; border: 1px solid var(--line2); display: grid; place-items: center; }
.brand-mark svg { width: 22px; height: 22px; }
.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); transition: color .15s, background .15s; }
.icon-btn:hover { color: var(--ink); background: var(--surface3); }
.icon-btn svg { width: 16px; height: 16px; }
.menu-btn { display: none; }
.nav { display: grid; margin-top: 26px; border-top: 1px solid var(--line); }
.nav a { display: flex; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font: 600 15px/1.25 var(--display); color: var(--muted); transition: color .15s, padding .15s; }
.nav a span { width: 22px; font: 500 12px/1 var(--mono); color: var(--dim); }
.nav a:hover { color: var(--ink); padding-left: 4px; }
.nav a.on { color: var(--ink); }
.nav a.on span { color: var(--ink); }
.nav a.on::after { content: ''; width: 7px; height: 7px; margin-left: auto; align-self: center; border-radius: 50%; background: var(--ink); }

.side-hero { margin-top: auto; padding-top: 34px; }
.side-hero .kicker { margin-bottom: 20px; }
.side-hero .display, .side-hero .h1 { font-size: clamp(44px, 4.5vw, 74px); line-height: .88; }
.side-hero .lede { font-size: 16.5px; margin-top: 20px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.side-hero .btn-lg { --h: 50px; padding: 0 18px; font-size: 15.5px; }
/* narrow laptops: a compact top bar so both buttons fit beside the logo */
@media (min-width: 1000px) and (max-width: 1239px) {
  .site-head .brand { font-size: 17px; gap: 8px; }
  .site-head .brand-mark { width: 28px; height: 28px; }
  .head-actions { gap: 6px; }
  .head-actions .btn-sm { --h: 34px; padding: 0 10px; font-size: 13px; }
}
/* short laptop screens: tighten the panel so the stats row stays in view */
@media (min-width: 1000px) and (max-height: 860px) {
  .side { padding-top: 18px; padding-bottom: 16px; }
  .nav { margin-top: 18px; }
  .nav a { padding: 7px 0; }
  .side-hero { padding-top: 24px; }
  .side-hero .display, .side-hero .h1 { font-size: clamp(40px, 3.9vw, 62px); }
  .side-hero .lede { font-size: 15.5px; margin-top: 14px; }
  .hero-ctas { margin-top: 18px; }
  .side-foot { margin-top: 18px; }
}
.side-foot { margin-top: 26px; }
.side-foot .ca-chip { margin-bottom: 14px; }
.side-stats { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-stats b { color: var(--ink); font-weight: 500; }
.side-stats a:hover { color: var(--ink); }

/* entries: each .section in the pane is a numbered ledger row (§01, §02 …) */
.pane main { counter-reset: entry; }
.pane .section { display: grid; grid-template-columns: 92px minmax(0, 1fr); padding: 0; border-top: 0; border-bottom: 1px solid var(--line2); counter-increment: entry; container: entry / inline-size; }
.pane .section::before { content: '§' counter(entry, decimal-leading-zero); padding: 36px 0 0 28px; border-right: 1px solid var(--line); font: 500 13px/1 var(--mono); letter-spacing: .04em; color: var(--dim); }
.pane .section > .wrap { max-width: none; margin: 0; padding: clamp(34px, 3.6vw, 52px) clamp(26px, 3.4vw, 54px) clamp(46px, 4.6vw, 68px); }
.pane .section.plain { grid-template-columns: minmax(0, 1fr); counter-increment: none; }
.pane .section.plain::before { display: none; }

/* home §01: the hourglass and three facts */
.art-box { position: relative; height: clamp(260px, 30vw, 420px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.art-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-top: 1px solid var(--line); }
.facts > span { padding: 14px 16px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 500; }

@media (max-width: 999px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line2); padding: 92px var(--pad) 22px; }
  .site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 12px var(--pad); background: rgba(0, 0, 0, .82); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .menu-btn { display: grid; }
  .head-actions .wallet-btn { display: none; }
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: var(--pad); right: var(--pad); margin: 0; padding: 6px 16px; background: rgba(12, 12, 12, .97); border: 1px solid var(--line2); border-radius: 14px; }
  .nav.open { display: grid; }
  .nav a { padding: 14px 0; font-size: 17px; }
  .nav a:last-child { border-bottom: 0; }
  .side-hero { margin-top: 0; padding-top: 30px; }
  .side-hero .display, .side-hero .h1 { font-size: clamp(42px, 11vw, 74px); }
  [id] { scroll-margin-top: 84px; }
}
@media (max-width: 640px) {
  .pane .section { grid-template-columns: minmax(0, 1fr); }
  .pane .section::before { padding: 22px var(--pad) 0; border-right: 0; }
  .pane .section > .wrap { padding: 20px var(--pad) 52px; }
  .facts { grid-template-columns: 1fr; }
  .facts > span { padding: 10px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) { .head-actions .btn-primary { display: none; } }

.ca-chip { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; background: rgba(17, 17, 16, .88); border: 1px solid var(--line2); border-radius: 11px; font: 500 13px/1 var(--mono); cursor: pointer; max-width: 100%; transition: border-color .15s; }
.ca-chip:hover { border-color: #4a4a47; }
.ca-chip .t { color: var(--muted); }
.ca-chip .a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-chip .c { background: var(--ink); color: #000; padding: 7px 10px; border-radius: 7px; font: 700 12px/1 var(--display); flex: none; }
.ca-chip[hidden] { display: none; }

/* ---------- cards / grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.6vw, 32px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.num { font: 500 13px var(--mono); color: var(--dim); letter-spacing: .08em; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--surface3); color: var(--ink2); border: 1px solid var(--line2); }
.tag.solid { background: var(--ink); color: #000; border-color: var(--ink); }

/* manifesto */
.manifesto .h1 { max-width: 15ch; }
.manifesto .cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 96px); margin-top: clamp(40px, 6vw, 80px); }
.manifesto .cols p { margin: 0 0 18px; color: var(--ink2); font-size: 18px; }
.manifesto .big { font: 750 clamp(22px, 2.3vw, 30px)/1.25 var(--display); letter-spacing: -.015em; color: var(--ink); }
@media (max-width: 900px) { .manifesto .cols { grid-template-columns: 1fr; } }

/* three frames */
.frame { display: flex; flex-direction: column; gap: 16px; min-height: 420px; }
.frame .art { height: 150px; border-radius: 10px; background: #050505; border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 6px; overflow: hidden; }
.frame .art svg { width: 100%; height: 100%; }
.frame .label { font: 500 12px var(--mono); letter-spacing: .14em; color: var(--muted); }
.frame p { margin: 0; color: var(--ink2); }
.frame .foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font: 500 12px var(--mono); letter-spacing: .1em; color: var(--dim); }

/* steps */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 70px 1fr auto; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.step .h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink2); max-width: 52ch; }
.step .time { font: 500 12px var(--mono); color: var(--dim); letter-spacing: .1em; }

/* the slip (record receipt) */
.slip { position: relative; background: var(--ink); color: #000; border-radius: 16px; padding: 26px 26px 22px; font-family: var(--mono); box-shadow: 0 40px 80px -40px rgba(255, 255, 255, .15); }
.slip::before, .slip::after { content: ''; position: absolute; top: 132px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.slip::before { left: -11px; } .slip::after { right: -11px; }
.slip .top { display: flex; justify-content: space-between; align-items: center; font: 700 12px var(--mono); letter-spacing: .12em; padding-bottom: 18px; border-bottom: 2px solid #000; }
.slip .top .brand-mark { background: #000; border: 0; width: 34px; height: 34px; }
.slip .rows { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; padding: 26px 0 22px; border-bottom: 2px dashed rgba(0, 0, 0, .35); }
.slip .k { font-size: 10.5px; letter-spacing: .14em; color: #55554f; text-transform: uppercase; }
.slip .v { font: 800 22px/1.1 var(--display); letter-spacing: -.01em; margin-top: 6px; text-transform: uppercase; }
.slip .s { font-size: 11.5px; color: #4b4b46; margin-top: 4px; }
.slip .memo { padding-top: 18px; font-size: 11.5px; word-break: break-all; line-height: 1.5; }
.slip .memo b { display: block; font-size: 10.5px; letter-spacing: .14em; color: #55554f; margin-bottom: 6px; font-weight: 500; }
.slip .bars { display: flex; gap: 2px; height: 34px; margin-top: 16px; }
.slip .bars i { flex: 1; background: #000; }

/* sizes */
.sizes { display: grid; gap: 14px; }
.size-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.size-row .n { font: 800 22px var(--display); letter-spacing: -.01em; }
.size-row .bar { height: 40px; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; position: relative; overflow: hidden; }
.size-row .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 7px; }
.size-row .bar.limit i { background: repeating-linear-gradient(135deg, #8a8a86 0 6px, #5b5b58 6px 12px); }
.size-row .bar span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font: 500 12.5px var(--mono); color: #000; mix-blend-mode: normal; z-index: 1; }
.size-row .bar.ghost span { color: var(--muted); }
.size-row .bar.tiny span { left: auto; position: absolute; left: calc(var(--w) + 10px); color: var(--muted); }

/* registry teaser / lookup */
.lookup { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line2); border-radius: 13px; padding: 6px; max-width: 640px; }
.lookup input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: 500 14px var(--mono); padding: 0 12px; }
.lookup input::placeholder { color: var(--dim); }
.counter { font: 850 clamp(80px, 14vw, 200px)/.8 var(--display); letter-spacing: -.05em; }
.feed { display: grid; gap: 8px; }
.feed-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; font: 500 13.5px var(--mono); }
.feed-row .n { color: var(--muted); }
.empty { border: 1px dashed var(--line2); border-radius: var(--r); padding: clamp(32px, 5vw, 56px); text-align: center; }
.empty .h3 { margin-bottom: 10px; }

/* tables */
.table { width: 100%; border-collapse: collapse; font: 500 13.5px var(--mono); }
.table th { text-align: left; font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--line2); }
.table td { padding: 15px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: var(--surface); }
.table a:hover { text-decoration: underline; text-underline-offset: 3px; }
.scroll-x { overflow-x: auto; }

/* footer (bottom of the right-hand pane) */
.site-foot { padding: 56px 0 40px; margin-top: 0; }
.site-foot > .wrap { max-width: none; padding: 0 clamp(26px, 3.4vw, 54px); }
.site-foot .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.site-foot h4 { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot li a { color: var(--muted); font-size: 15px; }
.site-foot li a:hover { color: var(--ink); }
.site-foot .small { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 12px var(--mono); color: var(--dim); }
.foot-word { font: 850 clamp(60px, 11vw, 200px)/.78 var(--display); letter-spacing: -.055em; color: #121211; margin: 40px 0 0; user-select: none; white-space: nowrap; overflow: hidden; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal .box { width: min(420px, 100%); background: var(--surface2); border: 1px solid var(--line2); border-radius: 18px; padding: 22px; }
.modal .box h3 { margin: 0 0 6px; font: 800 20px var(--display); }
.modal .box p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.wallet-list { display: grid; gap: 8px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; background: var(--surface3); border: 1px solid var(--line2); cursor: pointer; text-align: left; width: 100%; transition: border-color .15s; }
.wallet-opt:hover { border-color: #555552; }
.wallet-opt .ic { width: 30px; height: 30px; border-radius: 8px; background: #000; display: grid; place-items: center; font: 800 13px var(--display); border: 1px solid var(--line2); }
.wallet-opt .nm { font-weight: 700; }
.wallet-opt .st { margin-left: auto; font: 500 11.5px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; z-index: 120; background: var(--ink); color: #000; padding: 12px 16px; border-radius: 11px; font: 600 14px var(--display); transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #2a0f0f; color: #ffd6d6; border: 1px solid #5c2020; }

/* reveal on scroll */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* inside a ledger entry the column is narrower than the window: stack by the entry's own width (kept last so it wins) */
@container entry (max-width: 1060px) {
  .grid-2, .grid-3, .manifesto .cols { grid-template-columns: 1fr; }
  .frame { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 10px 26px; min-height: 0; align-content: start; }
  .frame .art { grid-row: 1 / span 4; height: 100%; min-height: 150px; margin: 0; }
  .frame > :not(.art) { grid-column: 2; }
  .frame .foot { margin-top: 6px; }
}
@container entry (max-width: 560px) {
  .frame { grid-template-columns: 1fr; }
  .frame .art { grid-row: auto; height: 150px; }
  .frame > :not(.art) { grid-column: 1; }
}
