/* Grokey brand guidelines — self-hosted fonts + extracted layout */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-variable.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: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-italic-variable.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-variable.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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-variable.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 {
  --base: #faf6ef;
  --ink: #1a1714;
  --signal: #b8873a; /* Brass */
  --depth: #2e5d57;
  --panel: #f3ece0;
  --mono-bg: #efe7d9;
  --rule: rgba(26, 23, 20, 0.13);
  --rule-strong: rgba(26, 23, 20, 0.26);
  --muted: rgba(26, 23, 20, 0.58);
  /* Dense “before” type — ≥3:1 on --mono-bg (≈4.1:1), intentionally low-contrast */
  --mono-ink: rgba(26, 23, 20, 0.58);
}

[data-theme="dark"] {
  --base: #14110e;
  --ink: #f5efe5;
  --signal: #c9a055; /* Brass — 7.74:1 on #14110E */
  --depth: #3e7c74;
  --panel: #1b1713;
  --mono-bg: #1d1914;
  --rule: rgba(245, 239, 229, 0.14);
  --rule-strong: rgba(245, 239, 229, 0.3);
  --muted: rgba(245, 239, 229, 0.56);
  --mono-ink: rgba(245, 239, 229, 0.56); /* ≈5.6:1 on --mono-bg */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --base: #14110e;
    --ink: #f5efe5;
    --signal: #c9a055;
    --depth: #3e7c74;
    --panel: #1b1713;
    --mono-bg: #1d1914;
    --rule: rgba(245, 239, 229, 0.14);
    --rule-strong: rgba(245, 239, 229, 0.3);
    --muted: rgba(245, 239, 229, 0.56);
    --mono-ink: rgba(245, 239, 229, 0.56);
  }
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--signal);
}

@keyframes gk-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* —— Banner —— */
.banner {
  border-bottom: 1px solid var(--rule);
  background: var(--base);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(1.1);
}

.banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 9px clamp(18px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.banner-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  display: inline-block;
}

.banner-spacer {
  flex: 1 1 40px;
}

.btn-inquire {
  display: inline-flex;
  align-items: center;
  background: var(--signal);
  color: #14110e;
  font: inherit;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.btn-inquire:hover {
  background: var(--depth);
  color: #faf6ef;
}

.theme-toggle {
  font: inherit;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.theme-toggle:hover {
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}

/* —— Hero —— */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(56px, 11vw, 124px) clamp(18px, 5vw, 48px) clamp(48px, 8vw, 88px);
}

.hero-mark {
  animation: gk-fade 1.2s ease both;
}

.hero-mark svg {
  display: block;
  overflow: visible;
  max-width: 60vw;
}

.hero-eyebrow {
  margin-top: clamp(32px, 6vw, 60px);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}

.hero-title {
  margin: 14px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
  font-weight: 400;
  font-size: clamp(42px, 9.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  text-wrap: pretty;
  max-width: 16ch;
}

.hero-lede {
  margin: clamp(26px, 4vw, 38px) 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--muted);
}

.hero-pitch {
  margin: clamp(30px, 4.6vw, 46px) 0 0;
  max-width: 30ch;
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 96;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}

.hero-meta {
  margin-top: clamp(34px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-actions {
  margin-top: clamp(26px, 3.4vw, 38px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
}

.btn-offer {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--signal);
  color: #14110e;
  padding: 17px 30px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--signal);
  min-height: 48px;
}

.btn-offer:hover {
  background: var(--depth);
  border-color: var(--depth);
  color: #faf6ef;
}

.link-email {
  display: inline-flex;
  align-items: center;
  padding: 17px 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  min-height: 48px;
}

.link-email:hover {
  color: var(--ink);
}

/* —— Sections —— */
.section {
  border-top: 1px solid var(--rule);
}

.section--panel {
  background: var(--panel);
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 104px) clamp(18px, 5vw, 48px);
}

.section-inner--acquire {
  padding: clamp(62px, 10vw, 132px) clamp(18px, 5vw, 48px);
}

.section-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}

.section-title {
  margin: 18px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 26, "WONK" 1, "opsz" 120;
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.section-title--narrow { max-width: 22ch; }
.section-title--mid { max-width: 24ch; }
.section-title--wide { max-width: 26ch; }

.section-title--brand {
  margin: clamp(26px, 4vw, 40px) 0 0;
}

.section-title--acquire {
  margin: 20px 0 0;
  font-variation-settings: "SOFT" 34, "WONK" 1, "opsz" 144;
  font-size: clamp(38px, 7.4vw, 88px);
  line-height: 1;
  letter-spacing: -0.024em;
  max-width: 18ch;
}

.section-title--flush {
  margin: 0;
}

/* —— Demonstration —— */
.demo-stack {
  margin-top: clamp(44px, 7vw, 84px);
  display: grid;
  gap: clamp(28px, 5vw, 56px);
}

.demo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
  padding-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--rule);
}

.demo-row--last {
  padding-top: clamp(8px, 2vw, 20px);
  padding-bottom: 0;
  border-bottom: 0;
}

.demo-row-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
}

.demo-col--narrow {
  max-width: 420px;
}

.demo-col--out {
  padding-top: clamp(0px, 3vw, 34px);
}

.demo-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.demo-label--out {
  color: var(--signal);
}

.demo-label--out-lg {
  margin-bottom: 18px;
}

.mono-panel {
  background: var(--mono-bg);
  border: 1px solid var(--rule);
  padding: clamp(16px, 2.4vw, 22px);
}

.mono-panel--scroll {
  max-height: 260px;
  overflow: auto;
}

.mono-panel--x {
  overflow-x: auto;
}

.mono-text {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--mono-ink);
  overflow-wrap: break-word;
}

.mono-pre {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--mono-ink);
  white-space: pre;
}

.mono-pre--labs {
  font-size: 10.5px;
  line-height: 1.62;
}

.out-text {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 28, "WONK" 1, "opsz" 96;
  font-weight: 400;
  font-size: clamp(22px, 2.9vw, 33px);
  line-height: 1.34;
  letter-spacing: -0.014em;
  text-wrap: pretty;
}

.out-text--xl {
  font-variation-settings: "SOFT" 34, "WONK" 1, "opsz" 144;
  font-size: clamp(28px, 4.6vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.out-note {
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--muted);
  max-width: 34ch;
}

/* —— Surfaces —— */
.surface-list {
  margin-top: clamp(38px, 6vw, 64px);
  display: grid;
  gap: 0;
}

.surface-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px clamp(24px, 5vw, 60px);
  padding: clamp(22px, 3vw, 30px) 0;
  border-top: 1px solid var(--rule);
}

.surface-row--last {
  border-bottom: 1px solid var(--rule);
}

.surface-name {
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 24, "WONK" 0, "opsz" 72;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: -0.015em;
}

.surface-desc {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--muted);
  max-width: 44ch;
}

.surface-foot {
  margin: clamp(30px, 4vw, 44px) 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* —— Brand system —— */
.brand-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 24px;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 16px;
}

.brand-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-blocks {
  margin-top: clamp(40px, 6vw, 70px);
  display: grid;
  gap: clamp(36px, 5vw, 64px);
}

.spec-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.palette-grid--dark {
  margin-top: clamp(14px, 2vw, 20px);
}

.swatch-chip {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--rule-strong);
}

.swatch-chip--wide {
  aspect-ratio: 2.6 / 1;
}

.swatch-chip--base { background: #faf6ef; }
.swatch-chip--ink { background: #1a1714; }
.swatch-chip--signal { background: #b8873a; }
.swatch-chip--depth { background: #2e5d57; }
.swatch-chip--base-dark { background: #14110e; }
.swatch-chip--ink-dark { background: #f5efe5; }
.swatch-chip--signal-dark { background: #c9a055; }
.swatch-chip--depth-dark { background: #3e7c74; }

.swatch-meta {
  margin-top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.swatch-meta--compact {
  margin-top: 9px;
  line-height: normal;
}

.swatch-name {
  color: var(--ink);
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.type-hero {
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
  font-weight: 400;
  font-size: clamp(96px, 17vw, 190px);
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: var(--depth);
}

.type-meta {
  margin-top: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.type-rows {
  display: grid;
  gap: 14px;
}

.type-row {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.type-row--light {
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 96;
  font-weight: 300;
}

.type-row--regular {
  font-variation-settings: "SOFT" 28, "WONK" 1, "opsz" 96;
  font-weight: 400;
}

.type-row--semibold {
  font-variation-settings: "SOFT" 34, "WONK" 0, "opsz" 96;
  font-weight: 600;
}

.type-row--black {
  font-variation-settings: "SOFT" 48, "WONK" 1, "opsz" 144;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--signal);
}

.type-weight {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  vertical-align: middle;
}

.type-chars {
  margin-top: 10px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 24, "WONK" 0, "opsz" 40;
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.55;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

.type-notes {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.lockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
}

.lockup {
  background: var(--base);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  min-height: 190px;
}

.lockup--pine {
  background: #2e5d57;
}

.lockup-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lockup-row svg {
  flex: 0 0 auto;
}

.lockup-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.wordmark {
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 22, "WONK" 1, "opsz" 72;
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.01em;
}

.wordmark--on-pine {
  color: #faf6ef;
}

.lockup-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lockup-label--on-pine {
  color: rgba(250, 246, 239, 0.6);
}

.favicon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(18px, 3vw, 34px);
}

.favicon-sample {
  text-align: center;
}

.favicon-box {
  background: #2e5d57;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favicon-box--64 {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.favicon-box--32 {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.favicon-box--16 {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.favicon-size {
  margin-top: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--muted);
}

.favicon-note {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--muted);
  max-width: 38ch;
}

/* —— The name —— */
.name-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.name-copy {
  margin: 26px 0 0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  letter-spacing: -0.011em;
  color: var(--muted);
  max-width: 42ch;
}

.name-copy + .name-copy {
  margin-top: 18px;
}

.em-ink {
  font-style: normal;
  color: var(--ink);
}

.name-facts {
  display: grid;
  gap: 0;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--rule);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.fact-row--last {
  border-bottom: 1px solid var(--rule);
}

.fact-key {
  color: var(--muted);
}

.fact-val--signal {
  color: var(--signal);
}

/* —— Acquire —— */
.acquire-lede {
  margin: clamp(24px, 3vw, 32px) 0 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--muted);
}

.acquire-actions {
  margin-top: clamp(32px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--panel);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 60px) clamp(18px, 5vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px clamp(24px, 5vw, 60px);
  align-items: end;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand svg {
  flex: 0 0 auto;
}

.footer-wordmark {
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 22, "WONK" 1, "opsz" 72;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.footer-disclaimer {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 56ch;
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }

  .hero-mark {
    animation: none;
  }

  /* JS also skips reveal + removes SMIL animate; this is the CSS safety net */
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
