/* ============================================================
   HOCKET — spec-sheet design system (global)
   ink on warm paper · hairline grids · one crimson accent
   Component styles are imported below, scoped by tag name.
   (@import must precede all other rules.)
   ============================================================ */

@import './components/hocket-staff/staff.css';
@import './components/choreo-player/player.css';
@import './components/contract-anatomy/anatomy.css';
@import './components/hello-handshake/handshake.css';

:root {
  --paper:      #f2efe6;
  --paper-2:    #eae6d9;
  --paper-3:    #e0dbcc;
  --ink:        #1a1712;
  --ink-70:     rgba(26,23,18,.7);
  --ink-50:     rgba(26,23,18,.5);
  --ink-30:     rgba(26,23,18,.3);
  --line:       rgba(26,23,18,.18);
  --line-soft:  rgba(26,23,18,.1);
  --accent:     #c22f4e;
  --accent-soft:rgba(194,47,78,.12);
  --amber:      #b07d2b;
  --serif:      'Fraunces', Georgia, serif;
  --mono:       'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --pad:        clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--paper-2);
  padding: .08em .35em;
  border: 1px solid var(--line-soft);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

.noscript-note {
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 12px;
}

/* ============ header ============ */

.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: baseline; gap: 28px;
  padding: 14px var(--pad);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--ink); text-decoration: none; letter-spacing: .01em;
  white-space: nowrap;
}
.wordmark-ver { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--ink-70); text-decoration: none;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.site-nav a:hover { color: var(--accent); }
.head-status {
  font-size: 10px; letter-spacing: .14em; color: var(--ink-50);
  border: 1px solid var(--line); padding: 3px 8px;
}

/* ============ buttons ============ */

.btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  padding: 10px 18px; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  text-decoration: none; display: inline-block;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.btn-line:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-choice { border-color: var(--accent); color: var(--accent); }
.btn-choice:hover { background: var(--accent); color: var(--paper); }

.kicker {
  font-size: 11px; letter-spacing: .18em; color: var(--accent);
  margin-bottom: 18px;
}

/* ============ hero ============ */

.hero { border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(48px, 8vh, 96px) var(--pad) clamp(32px, 5vh, 64px);
  align-items: center;
}
.hero-title {
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: .98; letter-spacing: -.015em;
  margin-bottom: 26px;
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--accent); }
.hero-lede {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55;
  max-width: 34em;
  margin-bottom: 28px;
}
.hero-lede a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hero-lede a:hover { color: var(--accent); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note {
  font-size: 12px; color: var(--ink-50); max-width: 40em;
  border-left: 2px solid var(--accent); padding-left: 12px;
}
.hero-note em { font-family: var(--serif); font-style: italic; font-size: 1.15em; color: var(--ink-70); }

.hero-rule {
  border-top: 1px solid var(--line);
  padding: 12px var(--pad);
  font-size: 10.5px; letter-spacing: .14em; color: var(--ink-50);
  text-align: center;
}

/* ============ pitch ============ */

.pitch { border-bottom: 1px solid var(--line); }
.pitch-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pitch-cell {
  padding: clamp(28px, 4vw, 48px) clamp(18px, 2.2vw, 32px);
  border-left: 1px solid var(--line);
}
.pitch-cell:first-child { border-left: none; }
.cell-num { font-size: 11px; color: var(--accent); letter-spacing: .1em; }
.pitch-cell h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  margin: 12px 0; letter-spacing: -.01em;
}
.pitch-cell p { font-size: 12.5px; color: var(--ink-70); }

/* ============ section heads ============ */

.sec-head { padding: clamp(48px, 7vh, 80px) var(--pad) 28px; max-width: 900px; }
.sec-num {
  font-size: 11px; letter-spacing: .16em; color: var(--accent);
  display: block; margin-bottom: 10px;
}
.sec-head h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: -.015em; line-height: 1.05; margin-bottom: 14px;
}
.sec-sub { font-family: var(--serif); font-weight: 300; font-size: 16.5px; color: var(--ink-70); max-width: 40em; }
.sec-sub code { font-size: .85em; }

/* ============ section shells ============ */

.playground { border-bottom: 1px solid var(--line); }
.anatomy    { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.handshake  { background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--line); padding-bottom: 72px; }
.handshake .sec-sub { color: rgba(242,239,230,.65); }
.handshake code { background: rgba(242,239,230,.12); border-color: transparent; }

/* ============ encoding + transports ============ */

.encoding { border-bottom: 1px solid var(--line); padding-bottom: 72px; }
.enc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  margin: 48px var(--pad) 0;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.enc-cell { padding: clamp(24px, 3vw, 40px); }
.enc-cell + .enc-cell { border-left: 1px solid var(--line); }
.enc-cell h3 { font-size: clamp(21px, 2vw, 28px); margin: 10px 0 14px; letter-spacing: -.01em; }
.enc-cell p { font-size: 12.5px; color: var(--ink-70); margin-bottom: 10px; }

.transports { margin: 0 var(--pad); border: 1px solid var(--line); border-top: none; }
.tp-head { padding: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.tp-head h3 { font-size: clamp(21px, 2vw, 28px); margin: 10px 0; }
.tp-head p { font-size: 12.5px; color: var(--ink-70); max-width: 48em; }
.tp-row {
  display: grid; grid-template-columns: minmax(140px, .9fr) minmax(120px, .7fr) minmax(0, 1.6fr);
  gap: 16px; padding: 12px clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px; align-items: baseline;
}
.tp-row:last-child { border-bottom: none; }
.tp-row.ref { background: var(--paper-2); }
.tp-name { font-weight: 500; }
.tp-profile { color: var(--accent); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.tp-use { color: var(--ink-70); }

/* ============ footer ============ */

.site-foot { border-top: 1px solid var(--line); }
.foot-line {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px var(--pad);
  font-size: 10.5px; letter-spacing: .1em; color: var(--ink-50);
}
.foot-credit { padding-top: 0; }
.foot-credit a {
  color: var(--ink-70); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px;
}
.foot-credit a:hover { color: var(--accent); }

/* ============ responsive ============ */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .pitch-grid { grid-template-columns: 1fr 1fr; }
  .pitch-cell:nth-child(odd) { border-left: none; }
  .pitch-cell { border-top: 1px solid var(--line); }
  .pitch-cell:nth-child(-n+2) { border-top: none; }
  .enc-grid { grid-template-columns: 1fr; }
  .enc-cell + .enc-cell { border-left: none; border-top: 1px solid var(--line); }
  .tp-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 620px) {
  .site-nav { display: none; }
  .head-status { margin-left: auto; }
  .pitch-grid { grid-template-columns: 1fr; }
  .pitch-cell { border-left: none !important; border-top: 1px solid var(--line) !important; }
  .pitch-cell:first-child { border-top: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
