@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700&family=Instrument+Sans:ital,wght@0,400;0,500;1,400&family=DM+Mono:wght@400&display=swap');

/* ── TOKENS ── */
:root {
  --white:       #ffffff;
  --black:       #0a0a0a;
  --grey-100:    #f5f5f5;
  --grey-200:    #e8e8e8;
  --grey-400:    #999999;
  --grey-600:    #555555;
  --grey-800:    #222222;
  --accent:      #d4a843;
  --accent-text: #000000;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Instrument Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  --nav-h:       56px;
  --page-pad:    clamp(1.25rem, 4vw, 3rem);
  --max-w:       1140px;
  --radius:      6px;

  /* Ghost font variables — required by GScan */
  --gh-font-heading: var(--font-display);
  --gh-font-body:    var(--font-body);
}

/* ── DARK MODE ── */
html.dark-mode {
  --white:    #0a0a0a;
  --black:    #f0f0f0;
  --grey-100: #161616;
  --grey-200: #222222;
  --grey-400: #555555;
  --grey-600: #999999;
  --grey-800: #cccccc;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--grey-600);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--black);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  padding-inline: var(--page-pad);
}

.nav__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  gap: 2rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  margin-right: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--grey-400);
  transition: color 0.15s;
}

.nav__link:hover { color: var(--black); }

.nav__toggle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--grey-400);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  background: none;
  transition: border-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__toggle:hover { border-color: var(--grey-400); color: var(--black); }

@media (max-width: 600px) {
  .nav__links .nav__link:not(:last-child) { display: none; }
  .nav__toggle-label { display: none; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border-color: var(--grey-200);
}

.btn--outline:hover { border-color: var(--black); }

/* ── HERO ── */
.hero {
  padding: clamp(5rem, 12vw, 9rem) var(--page-pad) clamp(4rem, 10vw, 7rem);
  text-align: center;
  border-bottom: 1px solid var(--grey-200);
}

.hero__inner {
  max-width: 640px;
  margin-inline: auto;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.25rem;
  line-height: 1.05;
}

.hero__headline em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-body);
}

.hero__sub {
  font-size: 1.0625rem;
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 46ch;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── THEME SHOWCASE ── */
.showcase {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.theme-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--grey-200);
}

.theme-row--reverse { direction: rtl; }
.theme-row--reverse > * { direction: ltr; }

.theme-row--dim { opacity: 0.7; }

.theme-row__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.theme-row__badge--shipped { background: #e8f5e9; color: #2e7d32; }
.theme-row__badge--dev     { background: #fff8e1; color: #e65100; }
.theme-row__badge--coming  { background: var(--grey-100); color: var(--grey-400); }

.theme-row__name {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.875rem;
}

.theme-row__desc {
  font-size: 1rem;
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 42ch;
}

.theme-row__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.theme-row__preview {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--grey-200);
  background: var(--grey-100);
  aspect-ratio: 16/10;
}

.theme-row__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-row__preview--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey-400);
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .theme-row {
    grid-template-columns: 1fr;
    direction: ltr !important;
  }

  .theme-row__preview { order: -1; }
}

/* ── TRUST STRIP ── */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 1.5rem var(--page-pad);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  background: var(--grey-100);
}

.trust-strip__item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey-400);
  letter-spacing: 0.04em;
}

.trust-strip__dot {
  color: var(--grey-200);
  font-size: 0.7rem;
}

/* ── FOOTER ── */
.footer {
  padding: 2.5rem var(--page-pad);
  border-top: 1px solid var(--grey-200);
}

.footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 600px) {
  .footer__inner { grid-template-columns: 1fr; }
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 0.4rem;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: var(--grey-400);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 0.8125rem;
  color: var(--grey-400);
  transition: color 0.15s;
}

.footer__link:hover { color: var(--black); }

/* ── GHOST CONTENT CARDS (required) ── */
.gh-content .kg-width-wide {
  max-width: 960px;
  margin-inline: auto;
}

.gh-content .kg-width-full {
  margin-inline: calc(50% - 50vw);
  width: 100vw;
}

.gh-content .kg-image { max-width: 100%; height: auto; }
.gh-content figure { margin-block: 2rem; }
.gh-content figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--grey-400);
  text-align: center;
  margin-top: 0.5rem;
}

/* ── POST / PAGE CONTENT ── */
.post-content {
  max-width: 680px;
  margin-inline: auto;
  padding: 4rem var(--page-pad);
}

.post-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1.25rem;
  color: var(--grey-600);
  line-height: 1.75;
}

/* ── SPEC TABLE ── */
.spec-table {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: 1.5rem;
}

.spec-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--grey-200);
}

.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(even) { background: var(--grey-100); }

.spec-row__key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--grey-400);
  padding: 0.875rem 1rem;
  border-right: 1px solid var(--grey-200);
}

.spec-row__val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--black);
  padding: 0.875rem 1rem;
}

.spec-row__val .good { color: #2e7d32; }

/* ── PULL QUOTE ── */
.pull-quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin-block: 2rem;
}

.pull-quote p {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--black);
  line-height: 1.65;
}
