/* Hanzi Forge marketing site — shared styles */

:root {
  --bamboo-cream:   #f6e9c9;
  --bamboo-light:   #f9efd6;
  --bamboo-dark:    #c9a96a;
  --ink:            #2a1a0e;
  --ink-muted:      #5e4832;
  --paper:          #fffaf0;
  --accent-orange:  #e87a2e;
  --accent-red:     #c03322;
  --accent-teal:    #197e6a;
  --accent-gold:    #b98522;
  --shadow-soft:    0 8px 28px rgba(60, 30, 8, 0.14);
  --shadow-hard:    0 16px 48px rgba(60, 30, 8, 0.28);
  --max-width:      1100px;
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 100%),
    repeating-linear-gradient(
      90deg,
      #eddcb1 0px,
      #e8d4a4 2px,
      #efdfb6 4px,
      #e8d4a4 6px,
      #f1e3bb 9px
    );
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  color: var(--ink);
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink); }

a { color: var(--accent-red); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 120ms; }
a:hover, a:focus { border-bottom-color: currentColor; }

.cn { font-family: "Noto Serif SC", "Songti SC", "Source Han Serif", serif; }

/* ---------- layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.section {
  padding: clamp(48px, 8vw, 96px) 0;
  position: relative;
}

.section--paper {
  background: linear-gradient(180deg, rgba(255,250,240,0.85), rgba(255,250,240,0.95));
  border-top: 1px solid rgba(185, 133, 34, 0.18);
  border-bottom: 1px solid rgba(185, 133, 34, 0.18);
}

.eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-red);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ---------- site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(8px) saturate(140%);
  background: linear-gradient(180deg, rgba(246, 233, 201, 0.85), rgba(246, 233, 201, 0.65));
  border-bottom: 1px solid rgba(185, 133, 34, 0.25);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  border: 0;
}
.brand__logo {
  width: 34px; height: 34px; border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  object-fit: cover;
}
.nav { display: flex; gap: clamp(14px, 3vw, 28px); align-items: center; }
.nav a { color: var(--ink-muted); border: 0; font-size: 0.95rem; white-space: nowrap; }
.nav a:hover { color: var(--accent-red); }
@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 0.85rem; }
  .nav a { font-size: 0.85rem; }
  .nav .nav--hide-sm { display: none; }
}
@media (max-width: 420px) {
  .nav .nav--hide-xs { display: none; }
  .site-header__row { gap: 8px; }
  .brand span { font-size: 0.95rem; }
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(32px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__art { order: -1; }
}
.hero__kicker {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--accent-orange);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.hero h1 { margin-bottom: 18px; }
.hero p.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  color: var(--ink-muted);
  max-width: 46ch;
  margin-bottom: 28px;
}
@media (max-width: 820px) {
  .hero p.lead { margin-inline: auto; }
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .hero__cta { justify-content: center; }
}
.hero__art img {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: var(--shadow-hard);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
  box-shadow: var(--shadow-soft);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-hard); }
.btn--primary {
  background: linear-gradient(180deg, #ef8538, var(--accent-orange));
  color: white;
  border-bottom: 0;
}
.btn--primary:hover { border-bottom: 0; color: white; }
.btn--ghost {
  background: rgba(255,250,240,0.75);
  color: var(--ink);
  border: 1px solid rgba(185, 133, 34, 0.4);
}
.btn--ghost:hover { border: 1px solid rgba(185, 133, 34, 0.4); color: var(--ink); }
.btn__badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.feature {
  background: var(--paper);
  border: 1px solid rgba(185, 133, 34, 0.2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease-out;
}
.feature:hover { transform: translateY(-3px); }
.feature__icon {
  display: inline-flex;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, #fdd392, #f5a851);
  align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 1.4rem;
  color: var(--ink);
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--ink-muted); font-size: 0.96rem; margin: 0; }

/* ---------- screenshot gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.shot {
  display: flex; flex-direction: column; gap: 10px;
  margin: 0;
  transition: transform 220ms ease-out;
}
.shot:hover { transform: translateY(-4px); }
.shot__phone {
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow-hard);
  aspect-ratio: 9 / 19.5;
}
.shot__phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot__caption {
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  padding: 0 8px;
}

/* ---------- about / copy layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}
.split__art img {
  width: 100%; max-width: 360px;
  display: block; margin: 0 auto;
}

/* ---------- prose (privacy, terms, support) ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 40px);
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  margin-top: 40px; margin-bottom: 60px;
}
.prose h1 { margin-bottom: 8px; }
.prose h2 { margin-top: 2em; }
.prose .updated { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 2em; }
.prose ul { padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- footer ---------- */
.site-footer {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, rgba(42, 26, 14, 0.04), rgba(42, 26, 14, 0.10));
  border-top: 1px solid rgba(185, 133, 34, 0.25);
  margin-top: 60px;
}
.site-footer__row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
}
.site-footer small { color: var(--ink-muted); font-size: 0.85rem; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-muted); font-size: 0.9rem; border: 0; }
.footer-nav a:hover { color: var(--accent-red); }
