/* ============================================================
   SHRUMS IO — shrums.io
   Static stylesheet. No external imports, no web fonts, no
   remote assets of any kind. Everything here is self-contained
   so the page can run under a `default-src 'none'` CSP.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --ink:        #0C0F0D;
  --ink-1:      #121714;
  --ink-2:      #19201C;
  --line:       #263029;
  --line-soft:  #1E2621;

  --cream:      #F2EFE6;
  --cream-dim:  #C6C9BF;
  --muted:      #8D948A;

  --gold:       #C9A15A;
  --gold-soft:  #E0C088;
  --sage:       #7FA08B;

  --maxw: 1140px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --f-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

/* ---------- base ---------- */
body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.65;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* fine paper grain — inline SVG turbulence, no network request */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- focus & skip ---------- */
:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #17120A;
  padding: .7rem 1.1rem;
  font-weight: 650;
  z-index: 999;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-mark { width: 26px; height: 26px; fill: var(--gold); flex: 0 0 auto; }
.brand-mark.sm { width: 20px; height: 20px; }
.brand-text {
  font-family: var(--f-body);
  font-weight: 700;
  letter-spacing: .14em;
  font-size: .93rem;
}
.brand-name { color: var(--cream); }
.brand-tld { color: var(--gold); letter-spacing: .04em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 2.4vw, 1.9rem);
  font-size: .875rem;
  letter-spacing: .02em;
}
.site-nav a {
  text-decoration: none;
  color: var(--cream-dim);
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--cream); }
.nav-cta {
  border: 1px solid var(--line);
  padding: .42rem .95rem;
  border-radius: 100px;
  color: var(--cream) !important;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { border-color: var(--gold); background: rgba(201,161,90,.09); }

@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(4.5rem, 12vw, 9rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -28%;
  left: 50%;
  translate: -50% 0;
  width: min(1200px, 145vw);
  aspect-ratio: 1.5;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 44% 40% at 32% 42%, rgba(201,161,90,.16), transparent 68%),
    radial-gradient(ellipse 40% 38% at 70% 55%, rgba(127,160,139,.13), transparent 70%);
  filter: blur(14px);
}
.hero-inner { position: relative; z-index: 1; max-width: 940px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .74rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.022);
  padding: .42rem .95rem;
  border-radius: 100px;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(127,160,139,.18);
  flex: 0 0 auto;
}

h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.05rem, 6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -.022em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hl {
  color: var(--gold-soft);
  font-style: italic;
}

.lede {
  margin-top: clamp(1.35rem, 3vw, 1.9rem);
  max-width: 62ch;
  font-size: clamp(1.03rem, .98rem + .35vw, 1.22rem);
  color: var(--cream-dim);
  line-height: 1.72;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .015em;
  padding: .82rem 1.6rem;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #16110A; }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream-dim); background: rgba(255,255,255,.035); }

/* ---------- stat strip ---------- */
.strip {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.017), transparent);
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(2rem, 4vw, 2.9rem);
}
.stat { display: flex; flex-direction: column; gap: .35rem; }
.stat-n {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.6vw, 2.05rem);
  line-height: 1.1;
  color: var(--gold-soft);
  letter-spacing: -.01em;
}
.stat-l {
  font-size: .855rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 26ch;
}

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-alt {
  background:
    linear-gradient(180deg, var(--ink-1), var(--ink));
  border-block: 1px solid var(--line-soft);
}

.sec-head { max-width: 66ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.kicker {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.9vw, 2.85rem);
  line-height: 1.16;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.sec-sub {
  margin-top: 1.05rem;
  color: var(--cream-dim);
  font-size: clamp(.99rem, .96rem + .2vw, 1.09rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.4rem); }

/* ---------- mix cards ---------- */
.mix-grid { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
/* 5 cards: 3 across, then 2 wider — no orphaned gap in the last row. */
@media (min-width: 900px) {
  .mix-grid { grid-template-columns: repeat(6, 1fr); }
  .mix-grid > .card { grid-column: span 2; }
  .mix-grid > .card:nth-child(4),
  .mix-grid > .card:nth-child(5) { grid-column: span 3; }
}

.card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.6vw, 1.95rem);
  background: linear-gradient(165deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 55% at 82% 6%, rgba(201,161,90,.11), transparent 70%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }

.card-art { width: 46px; height: 46px; margin-bottom: 1.15rem; }
.card-art svg { width: 100%; height: 100%; fill: var(--gold); }
.card-art .mane,
.card-art .cracks {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3.4;
  stroke-linecap: round;
}
.card-art .cracks { stroke-width: 2.6; }

.card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: -.012em;
  line-height: 1.25;
}
.card-role {
  font-size: .715rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage);
  margin: .5rem 0 .85rem;
}
.card p:last-child {
  color: var(--cream-dim);
  font-size: .935rem;
  line-height: 1.68;
}
.card-soon { border-style: dashed; }
.tag {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--f-body);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sage);
  padding: .2rem .5rem;
  border-radius: 4px;
  margin-left: .45rem;
  position: relative;
  top: -2px;
}

/* ---------- buyer panels ---------- */
.buyer-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (min-width: 760px) {
  .buyer-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(1.9rem, 3.4vw, 2.75rem); }
}
.panel {
  border-left: 2px solid var(--line);
  padding: .3rem 0 .3rem 1.5rem;
}
.panel h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.24rem;
  letter-spacing: -.01em;
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin-bottom: .65rem;
}
.num {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--gold);
  letter-spacing: .08em;
  flex: 0 0 auto;
}
.panel p {
  color: var(--cream-dim);
  font-size: .945rem;
  line-height: 1.7;
}

/* ---------- channels ---------- */
.channels {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line-soft);
}
.channels-label {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.35rem;
}
.chan-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .55rem;
  counter-reset: chan;
}
.chan-list li {
  counter-increment: chan;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: .5rem 1.1rem .5rem .75rem;
  font-size: .885rem;
  color: var(--cream-dim);
  background: rgba(255,255,255,.02);
}
.chan-list li::before {
  content: counter(chan);
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--ink);
  background: var(--gold);
  width: 19px; height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.chan-future { opacity: .58; border-style: dashed; }
.chan-future::before { background: var(--muted); }

/* ---------- about ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 800px) {
  .about-wrap { grid-template-columns: 1fr; }
}
.about-main h2 { margin-bottom: 1.35rem; }
.about-main p {
  color: var(--cream-dim);
  max-width: 60ch;
  line-height: 1.75;
  text-wrap: pretty;
}
.about-main p + p { margin-top: 1.1rem; }

.note {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 2.6vw, 1.8rem);
  background: rgba(127,160,139,.05);
  position: sticky;
  top: 92px;
}
@media (max-width: 800px) { .note { position: static; } }
.note h3 {
  font-family: var(--f-body);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .9rem;
}
.note p {
  font-size: .91rem;
  color: var(--cream-dim);
  line-height: 1.68;
}
.note p + p { margin-top: .8rem; }
.note strong { color: var(--cream); font-weight: 650; }

/* ---------- contact ---------- */
.section-contact {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(201,161,90,.075), transparent 62%),
    var(--ink);
  text-align: center;
}
.contact-inner { max-width: 720px; }
.section-contact .sec-sub { margin-inline: auto; max-width: 56ch; }
.section-contact h2 { margin-bottom: 0; }

.mail-wrap { margin-top: clamp(2rem, 4vw, 2.6rem); }
.mail {
  display: inline-block;
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 3.6vw, 2.05rem);
  letter-spacing: -.015em;
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(224,192,136,.34);
  padding-bottom: .18rem;
  transition: color .2s var(--ease), border-color .2s var(--ease);
  overflow-wrap: anywhere;
}
.mail:hover { color: #F0D9A8; border-color: #F0D9A8; }

.contact-foot {
  margin-top: 1.6rem;
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .03em;
}

/* ---------- 404 ---------- */
.err-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.err-page main { flex: 1 0 auto; display: flex; align-items: center; }
.err-page .section-contact { width: 100%; border-top: 0; }
.err-mark { width: 36px; height: 36px; fill: var(--gold); margin: 0 auto 1.6rem; }
.cta-center { justify-content: center; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line-soft);
  background: var(--ink-1);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.foot-inner { display: flex; flex-direction: column; gap: .8rem; }
.foot-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--cream);
}
.foot-meta, .foot-priv, .foot-legal {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 68ch;
}
.foot-priv a { color: var(--cream-dim); text-decoration: underline; text-underline-offset: 3px; }
.foot-priv a:hover { color: var(--gold-soft); }
.foot-legal { font-size: .755rem; opacity: .78; margin-top: .35rem; }

/* ---------- light mode ---------- */
@media (prefers-color-scheme: light) {
  :root {
    --ink:        #FAF8F2;
    --ink-1:      #F3F0E6;
    --ink-2:      #EDE9DD;
    --line:       #D3CDBC;
    --line-soft:  #E2DCCC;

    --cream:      #191C18;
    --cream-dim:  #4A5049;
    --muted:      #737A70;

    --gold:       #8A6520;
    --gold-soft:  #6E4F17;
    --sage:       #46644F;
  }
  body::before { opacity: .028; }
  .card { background: linear-gradient(165deg, rgba(0,0,0,.022), rgba(0,0,0,.006)); }
  .card::after { background: radial-gradient(70% 55% at 82% 6%, rgba(138,101,32,.09), transparent 70%); }
  .btn-primary { background: #8A6520; color: #FFFCF4; }
  .btn-primary:hover { background: #6E4F17; }
  .btn-ghost:hover { background: rgba(0,0,0,.035); }
  .eyebrow { background: rgba(0,0,0,.018); }
  .tag { color: #FFFCF4; }
  .chan-list li { background: rgba(0,0,0,.018); }
  .chan-list li::before { color: #FFFCF4; }
  .note { background: rgba(70,100,79,.06); }
  .hero-glow {
    background:
      radial-gradient(ellipse 44% 40% at 32% 42%, rgba(201,161,90,.2), transparent 68%),
      radial-gradient(ellipse 40% 38% at 70% 55%, rgba(127,160,139,.16), transparent 70%);
  }
  .mail { border-color: rgba(110,79,23,.4); }
  .mail:hover { color: #503A11; border-color: #503A11; }
  .skip { color: #FFFCF4; }
}

/* ---------- print ---------- */
@media print {
  body::before, .hero-glow, .site-head { display: none; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}
