/* ============================================================
   Atelier design system — canonical tokens + public site styles
   Self-hosted fonts, light + dark themes via [data-theme].
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --bg: #F6F2E9;
  --paper: #FCFAF4;
  --ink: #20201C;
  --ink2: #57564E;
  --hint: #8E8C80;
  --line: #E4DECF;
  --line2: #D6CFBB;
  --green: #1E5B41;
  --green-bg: #EAF0E9;
  --gold: #B08D4F;
  --gold-bg: #F3ECDA;
  --wine: #7A2E39;
  --wine-bg: #F3E7E7;
  --stripe: #EFE7D5;
  --goldink: #20201C;
  --radius: 4px;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 1px 3px rgba(20,20,18,.06), 0 8px 30px rgba(20,20,18,.05);
}

[data-theme="dark"] {
  --bg: #17140D;
  --paper: #211D14;
  --ink: #ECE6D5;
  --ink2: #B4AD98;
  --hint: #7C765F;
  --line: #302B1F;
  --line2: #433C2A;
  --green: #63B48B;
  --green-bg: #1B2820;
  --gold: #CBA45E;
  --gold-bg: #2A2416;
  --wine: #CE8E92;
  --wine-bg: #2C1E1E;
  --stripe: #2A2416;
  --goldink: #1B1508;
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 12px 40px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
.serif { font-family: var(--font-serif); }
a { color: var(--green); }

/* ---- containers ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }

/* ---- site header ---- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--gold-bg); color: var(--green);
  display: grid; place-items: center;
}
.brand .mark svg { width: 20px; height: 20px; }
.brand .name { font-family: var(--font-serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.brand .name b { color: var(--gold); font-weight: 600; }
.nav-links { display: flex; gap: 26px; margin-left: 20px; }
.nav-links a { color: var(--ink2); text-decoration: none; font-size: 14.5px; }
.nav-links a:hover { color: var(--green); }
.header-controls { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---- toggles ---- */
.pillset { display: flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; background: var(--paper); }
.pillset button, .pillset a {
  border: 0; background: transparent; padding: 7px 13px; font: inherit; font-size: 12.5px;
  color: var(--ink2); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.pillset .on { background: var(--green); color: #fff; }
.pillset .on.gold { background: var(--gold); color: var(--goldink); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2);
  background: var(--paper); color: var(--ink2); cursor: pointer; display: grid; place-items: center;
}
.icon-btn svg { width: 18px; height: 18px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff; border: 0; border-radius: var(--radius);
  padding: 13px 22px; font: inherit; font-size: 14.5px; font-weight: 500; letter-spacing: .01em;
  cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.05); }
.btn.line { background: transparent; color: var(--green); border: 1px solid var(--green); }
.btn.gold { background: var(--gold); color: var(--goldink); }
.btn svg { width: 18px; height: 18px; }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding: 68px 0 40px; }
.hero .eyebrow { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(30px, 5vw, 46px); line-height: 1.12; margin: 0 0 18px; font-weight: 600; letter-spacing: -.01em; }
.hero p.lead { color: var(--ink2); font-size: 16px; max-width: 460px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { color: var(--hint); font-size: 12.5px; margin-top: 16px; }
.hero-art {
  border: 1px solid var(--line2); border-radius: 8px; min-height: 300px; display: grid; place-items: center;
  color: var(--green);
  background: repeating-linear-gradient(45deg, transparent, transparent 13px, var(--stripe) 13px, var(--stripe) 14px), var(--green-bg);
}
.hero-art .glyph { text-align: center; }
.hero-art .glyph svg { width: 64px; height: 64px; }
.hero-art .glyph .t { font-family: var(--font-serif); font-size: 22px; margin-top: 10px; }

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.feature { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature .ic { color: var(--gold); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-serif); font-size: 17px; margin: 12px 0 6px; font-weight: 600; }
.feature p { margin: 0; font-size: 13.5px; color: var(--ink2); }

/* ---- pricing ---- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 720px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 26px; background: var(--paper); }
.plan.paid { background: var(--green); color: #fff; border-color: var(--green); }
.plan h3 { font-family: var(--font-serif); margin: 0 0 4px; font-size: 18px; }
.plan .amt { font-family: var(--font-serif); font-size: 30px; font-weight: 600; margin: 8px 0 14px; }
.plan ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 2; }
.plan.free ul { color: var(--ink2); }

/* ---- section heading ---- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.section-head h2 { font-family: var(--font-serif); font-size: 30px; font-weight: 600; margin: 10px 0 0; }

/* ---- guide ---- */
.guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.guide-nav { position: sticky; top: 88px; align-self: start; }
.guide-nav a { display: block; padding: 8px 12px; border-radius: var(--radius); color: var(--ink2); text-decoration: none; font-size: 14px; border-left: 2px solid transparent; }
.guide-nav a.active, .guide-nav a:hover { background: var(--paper); color: var(--green); border-left-color: var(--gold); }
.guide-step { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 22px 24px; margin-bottom: 16px; }
.guide-step .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-bg); color: var(--gold); font-family: var(--font-serif); font-weight: 600; margin-bottom: 10px; }
.guide-step h3 { font-family: var(--font-serif); margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.guide-step p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.guide-lang-note { font-size: 12.5px; color: var(--hint); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--ink2); font-size: 13px; }
.site-footer .inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .header-controls .lang-full { display: none; }
}
