/* Slide — shared styles for subpages */
:root {
  --ink: #0E0E0E;
  --body: #2A2722;
  --mute: #6B6459;
  --paper: #FAF8F4;
  --paper2: #F2EFE8;
  --line: #E4DFD4;
  --line2: #D9D3C5;
  --accent: #C75B1A;
  --accent-soft: rgba(199,91,26,0.08);
  --accent-deep: #9B3F1D;
  --good: #2E6B3E;

  --display: "Inter Tight", system-ui, sans-serif;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.mono { font-family: var(--mono); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center; gap: 0;
  padding: 6px 6px 6px 22px;
  background: rgba(250,248,244,0.85);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 8px 24px -12px rgba(0,0,0,0.12);
  max-width: calc(100vw - 32px);
  overflow: visible;
}
.nav .logo {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
  flex-shrink: 0;
}
.nav .logo svg { display: block; color: var(--ink); }
.nav .links {
  display: flex; gap: 2px; font-size: 13.5px; color: var(--body);
  margin-right: 12px;
  flex-wrap: nowrap;
}
.nav .links a {
  color: inherit; text-decoration: none; padding: 8px 14px;
  transition: color .2s, background .2s;
  font-weight: 500;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav .links a:hover { color: var(--accent); text-decoration: none; }
.nav .links a.active { color: var(--accent); }
.nav-cta {
  background: var(--ink); color: white; text-decoration: none;
  padding: 11px 18px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--display);
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .2s;
  flex-shrink: 0;
  min-height: 44px;
}
.nav-cta:hover { background: var(--accent); text-decoration: none; }
.nav-cta .arrow { display: inline-block; transition: transform .2s; }
.nav-cta:hover .arrow { transform: translateX(3px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  padding: 0;
}
.nav-hamburger svg { display: block; }

/* Mobile nav dropdown */
.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}

@media (max-width: 720px) {
  .nav {
    padding: 6px 8px 6px 14px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .nav-links-wrap {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: rgba(250,248,244,0.97);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    box-shadow: 0 8px 24px -12px rgba(0,0,0,0.15);
    z-index: 200;
  }
  .nav-links-wrap.open { display: flex; }
  .nav .links {
    flex-direction: column;
    margin-right: 0;
    gap: 0;
    width: 100%;
  }
  .nav .links a {
    padding: 12px 14px;
    font-size: 15px;
    min-height: 44px;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .nav .links a:last-child { border-bottom: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .page { padding: 130px 20px 60px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .prose ul, .prose ol { padding-left: 18px; }
}

/* ===== PAGE LAYOUT ===== */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 160px 32px 80px;
}
.page.wide { max-width: 1120px; }

.crumb {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  margin-bottom: 20px;
}
.crumb a { color: var(--mute); }
.crumb a:hover { color: var(--accent); text-decoration: none; }

.page-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
}
.page-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--mute);
  max-width: 640px;
  margin-bottom: 56px;
}

.rule {
  height: 1px; background: var(--line);
  margin: 48px 0;
}

/* ===== PROSE (privacy / terms) ===== */
.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 32px 0 10px;
}
.prose p { margin-bottom: 16px; color: var(--body); font-size: 16px; line-height: 1.6; }
.prose ul, .prose ol { margin: 12px 0 20px 22px; color: var(--body); }
.prose li { margin-bottom: 8px; font-size: 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  font-family: var(--mono); font-size: 13px;
  background: var(--paper2); padding: 2px 6px;
  border: 1px solid var(--line); border-radius: 3px;
}
.prose a { color: var(--accent); }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 32px;
  background: var(--paper2);
}
.foot-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.foot-brand {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  color: var(--ink);
}
.foot-brand svg { color: var(--ink); }
.foot-links { display: flex; gap: 24px; font-size: 13px; flex-wrap: wrap; }
.foot-links a { color: var(--body); text-decoration: none; }
.foot-links a:hover { color: var(--accent); text-decoration: none; }
.foot-copy {
  font-family: var(--mono); font-size: 11px;
  color: var(--mute); text-transform: uppercase; letter-spacing: 0.1em;
}

/* ===== CARDS ===== */
.card {
  background: white;
  border: 1px solid var(--line);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line2); }
.card-title {
  font-family: var(--display); font-weight: 700;
  font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 8px;
}
.card-body { font-size: 14px; color: var(--mute); line-height: 1.6; }

/* ===== UTILITIES ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ===== TAG / PILL ===== */
.tag {
  display: inline-block;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--body);
}
.tag.new { background: var(--accent); color: white; border-color: var(--accent); }
.tag.fix { background: white; }
.tag.improve { background: var(--paper2); }

/* Ensure images are responsive */
img { max-width: 100%; height: auto; }

/* Input minimum touch target */
input, textarea, select {
  min-height: 44px;
  font-size: 16px;
  padding: 10px 14px;
}

/* Button minimum touch target */
button, .btn {
  min-height: 44px;
  cursor: pointer;
}