/* Deck for T3 Code: static site styles. No build step, no external requests. */
:root {
  color-scheme: dark;
  --bg: #000;
  --card: #0d0d0d;
  --line: #ffffff14;
  --line-strong: #ffffff29;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #6a96f5;
  --accent-strong: #3566d6; /* white text on this is 5.3:1 */
  --radius: 12px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@supports (color: oklch(0.7 0.16 252)) {
  :root { --accent: oklch(0.72 0.15 252); --accent-strong: oklch(0.57 0.19 258); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .9em; padding: .12em .4em; border: 1px solid var(--line); border-radius: 6px; background: #ffffff0a; }
pre { margin: 0; padding: 16px 18px; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14.5px; line-height: 1.7; }
pre code { padding: 0; border: 0; background: none; font-size: inherit; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
.muted { color: var(--muted); }

.skip { position: absolute; left: 12px; top: -60px; background: var(--accent-strong); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 20; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0 0; }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-head { max-width: 780px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 44px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: #000000d9; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: #fff; }
.nav .gh { color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; }
.nav .gh:hover { border-color: #ffffff66; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid var(--line-strong); color: var(--text); background: transparent; transition: border-color .15s, background .15s; }
.btn:hover { border-color: #ffffff77; color: #fff; }
.btn.primary { background: var(--accent-strong); border-color: transparent; color: #fff; }
.btn.primary:hover { background: oklch(0.65 0.19 258); background: color-mix(in oklab, var(--accent-strong), white 12%); }

/* hero */
.hero { padding-top: 72px; text-align: center; position: relative; }
.hero::before { content: ""; position: absolute; inset: -80px 0 auto; height: 640px; background: radial-gradient(55% 60% at 50% 38%, #6a96f524, transparent 72%); pointer-events: none; z-index: -1; }
.pill { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--muted); background: var(--card); margin-bottom: 26px; }
.hero h1 { font-size: clamp(40px, 7.2vw, 80px); letter-spacing: -.035em; max-width: 14ch; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-shot { margin: 56px auto 0; max-width: 1040px; }
.hero-shot img { width: 100%; filter: drop-shadow(0 40px 80px #000); }
.hero-caption { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 20px; letter-spacing: -.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }

/* key legend */
.keys { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.key-card { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding: 18px; }
.key-card img { width: 112px; height: 112px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-strong); }
.key-card h3 { font-size: 18px; }
.key-card p { margin-top: 4px; font-size: 15px; line-height: 1.5; }
.note { margin-top: 20px; color: var(--muted); font-size: 16px; max-width: 760px; }

/* split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { font-size: clamp(30px, 4.6vw, 44px); }
.split > div > p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.checks { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; color: var(--text); font-size: 16.5px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 7px; height: 12px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: translateY(-3px) rotate(40deg); }
.checks span { color: var(--muted); }
.shot { margin-top: 40px; }
.shot img { width: 100%; filter: drop-shadow(0 30px 60px #000); }
.usage-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.usage-keys figure { margin: 0; }
.usage-keys img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-strong); }
.usage-keys figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

/* how it works */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 16px; }
.node { text-align: center; padding: 22px 16px; }
.node h3 { font-size: 19px; }
.node p { font-size: 15px; margin-top: 6px; }
.node.me { border-color: #6a96f566; }
.link { display: flex; flex-direction: column; align-items: center; font-size: 13px; color: var(--muted); font-family: var(--mono); gap: 4px; }
.link svg { width: 56px; height: 14px; }
.tokens .card h3 { font-size: 18px; }
.tokens .scope { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tokens .scope code { font-size: 12.5px; }
.tokens .life { margin-top: 12px; font-size: 14px; color: var(--muted); }
.tokens .tag { display: inline-block; margin-top: 10px; font: 600 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.promises { margin-top: 24px; }

/* install */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); font-weight: 650; }
.steps h3 { font-size: 19px; margin-top: 8px; }
.steps p { margin-top: 6px; color: var(--muted); }
.steps pre { margin-top: 12px; }
.reqs { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.reqs span { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; background: var(--card); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 22px 20px; color: var(--muted); }
details > div p + p { margin-top: 10px; }

/* support */
.support { grid-template-columns: repeat(2, 1fr); }
.support .btn { margin-top: 18px; }

/* footer */
footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.foot p + p { margin-top: 10px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot .brand { margin-bottom: 14px; }
.disclaimer { color: #c4c4c4; }

@media (max-width: 880px) {
  section { padding-top: 72px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid.three { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .link { flex-direction: row; justify-content: center; }
  .link svg { transform: rotate(90deg); width: 40px; }
  .support { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .nav a:not(.gh) { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero { padding-top: 48px; }
  .key-card { grid-template-columns: 88px 1fr; gap: 14px; }
  .key-card img { width: 88px; height: 88px; }
  .usage-keys { gap: 8px; }
  .usage-keys figcaption { font-size: 12.5px; }
  .brand span { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
.steps > li > div { min-width: 0; }

/* thread actions on other decks: same key size as each other, so decks compare by size */
.deck-shots { display: flex; flex-wrap: wrap; gap: 28px 32px; align-items: flex-end; justify-content: center; }
.deck-shots figure { margin: 0; max-width: 100%; }
.deck-shots img { width: 100%; height: auto; filter: drop-shadow(0 20px 40px #000); }
.deck-shots figure:nth-child(1) { width: 518px; }
.deck-shots figure:nth-child(2) { width: 422px; }
.deck-shots figure:nth-child(3) { width: 326px; }
.deck-shots figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
