/* Chainhand studio page. Same system as the tools: DESIGN.md (Refero → Slash). */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/assets/fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url('/assets/fonts/playfair-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --obsidian: #08080a; --onyx: #040406; --carbon: #121317; --graphite: #1c1d22; --slate: #2e3038;
  --smoke: #464853; --ash: #5e616e; --steel: #777a88; --fog: #9194a1; --mist: #acafb9;
  --silver: #c7c9d1; --bone: #e2e3e9; --paper: #ffffff; --copper: #cc9166; --sage: #7f9b7f;
  --serif: 'Playfair Display', 'Ivy Presto', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --page: 1216px; --r-full: 9999px;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--obsidian); color: var(--bone);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.014) 0 1px, transparent 1px 96px);
}
::selection { background: rgba(204,145,102,.35); color: var(--paper); }
html { scrollbar-color: var(--slate) var(--obsidian); scrollbar-width: thin; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: .01em; margin: 0; }
a { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

header.top { border-bottom: 1px solid var(--graphite); position: sticky; top: 0; z-index: 20; background: rgba(8,8,10,.86); backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { font-family: var(--serif); font-size: 22px; color: var(--paper); letter-spacing: .01em; }
.brand .tag { font-size: 12px; color: var(--steel); }
.top nav { display: flex; gap: 8px; }

.btn { font-size: 14px; font-weight: 500; border-radius: var(--r-full); padding: 10px 20px; border: 1px solid transparent; white-space: nowrap; display: inline-block; }
.btn:hover { text-decoration: none; }
.btn-ghost { color: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-quiet { color: var(--mist); border-color: var(--steel); font-size: 13px; padding: 6px 12px; }
.btn-quiet:hover { color: var(--paper); border-color: var(--fog); }

.hero { padding: 104px 0 24px; }
.hero h1 { font-size: clamp(40px, 7.2vw, 88px); line-height: 1.02; color: var(--paper); max-width: 14ch; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--copper); }
.hero .lede { font-size: 20px; line-height: 1.38; letter-spacing: -.02em; color: var(--fog); max-width: 56ch; margin: 0; }

section.band { padding: 104px 0 0; }
section.band h2 { font-size: clamp(30px, 4vw, 44px); color: var(--paper); max-width: 20ch; margin-bottom: 28px; }

/* The tool list is a ledger, not a card grid. */
ol.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--slate); }
ol.ledger li { border-bottom: 1px solid var(--graphite); }
.row { display: grid; grid-template-columns: 220px 1fr 220px; gap: 32px; padding: 26px 0; align-items: start; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; gap: 10px; } }
.name a { font-family: var(--serif); font-size: 28px; color: var(--paper); letter-spacing: .01em; }
.name .chain, .name .soon { display: block; font-size: 13px; color: var(--steel); margin-top: 6px; letter-spacing: -.01em; }
.name .soon { font-family: var(--serif); font-size: 28px; color: var(--smoke); margin: 0; }
.what { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: var(--mist); max-width: 62ch; }
li.next .what { color: var(--ash); }
.meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 8px; }
@media (min-width: 861px) { .meta { align-items: flex-end; } }
.status { font-size: 12px; font-weight: 500; border: 1px solid var(--slate); border-radius: var(--r-full); padding: 3px 10px; color: var(--fog); }
.status.live { color: var(--sage); border-color: rgba(127,155,127,.5); }
.fee { font-size: 13px; color: var(--fog); font-variant-numeric: tabular-nums; }

ul.refuse { list-style: none; margin: 0; padding: 0; max-width: 70ch; }
ul.refuse li { padding: 14px 0; border-bottom: 1px solid var(--graphite); font-size: 17px; line-height: 1.5; color: var(--silver); letter-spacing: -.01em; }
ul.refuse li:last-child { border-bottom: 0; }

footer.bottom { margin-top: 140px; border-top: 1px solid var(--graphite); padding: 32px 0 56px; }
footer.bottom .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.bottom p { font-size: 12px; color: var(--fog); margin: 0; max-width: 60ch; line-height: 1.6; }
footer.bottom a { color: var(--mist); }

@media (max-width: 640px) { .brand .tag { display: none; } .top nav .btn-quiet { display: none; } }
@media (pointer: coarse) { .btn { min-height: 44px; display: inline-flex; align-items: center; } }
@media (prefers-reduced-motion: reduce) { * { transition-duration: .001ms !important; } }
