/* ============================================================
   LagomPrep — shared styles
   Palette pulled from the app's Forest theme. Aesthetic: Nordic
   restraint — lagom means "not too much, not too little."
   ============================================================ */

:root {
  --bg:       #1a2d24;
  --surface:  #243d30;
  --border:   #345c45;
  --accent:   #8fd5b0;
  --text:     #eaf2ed;
  --subtext:  #7a9e8a;
  --maxw:     1000px;
}

.brand-logo {
  height: 50px; 
  width: auto;
  display: block;
  /* Add this to prevent jumping */
  content-visibility: auto;
}

.accent-link {
  color: var(--accent) !important;
  font-weight: 600;
  border: 1px solid var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
}
.accent-link:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

.brand {
  display: flex;
  align-items: center; 
  text-decoration: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Layout shell ---------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.site-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }
.nav a {
  color: var(--subtext);
  text-decoration: none;
  font-size: 15px;
  margin-left: 22px;
  transition: color 0.2s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--accent); }

/* ---- Hero ------------------------------------------------ */
.hero { padding: 88px 0 64px; text-align: center; }

.define {
  font-family: 'Schibsted Grotesk', sans-serif;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}
.define .word {
  font-size: clamp(40px, 9vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.define .ipa {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 3vw, 19px);
  color: var(--subtext);
  font-style: italic;
}
.gloss {
  font-size: clamp(17px, 3.4vw, 21px);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}
.origin { color: var(--subtext); font-size: 14px; letter-spacing: 0.04em; }

/* The balance line — the page's signature motif. A measured rule
   weighted slightly off true center: deliberate, not decorative. */
.balance {
  width: 120px;
  height: 1px;
  background: var(--border);
  margin: 40px auto;
  position: relative;
}
.balance::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
}

.lede {
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: clamp(18px, 3.6vw, 22px);
  line-height: 1.5;
  color: var(--text);
}

/* ---- Buttons --------------------------------------------- */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--accent); color: var(--accent); }
.btn-note { display: block; margin-top: 12px; font-size: 13px; color: var(--subtext); }

/* ---- Sections -------------------------------------------- */
.section { padding: 56px 0; border-top: 1px solid var(--border); }
.eyebrow {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section h2 {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section p { color: var(--text); margin-bottom: 16px; }
.section p.muted { color: var(--subtext); }

/* Feature list — plain, honest, no icons-as-decoration */
.features { list-style: none; margin-top: 8px; }
.features li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.features li:last-child { border-bottom: none; }
.features .f-name {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}
.features .f-desc { color: var(--subtext); font-size: 15px; }

/* ---- Privacy / long-form prose --------------------------- */
.doc { padding: 56px 0 32px; }
.doc h1 {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.doc .updated { color: var(--subtext); font-size: 14px; margin-bottom: 36px; }
.doc h2 {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.doc h3 {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px;
  color: var(--accent);
}
.doc p, .doc li { color: var(--text); margin-bottom: 14px; }
.doc ul { padding-left: 22px; margin-bottom: 16px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); }
.doc .summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 32px;
}
.doc .summary p:last-child { margin-bottom: 0; }

/* ---- Footer ---------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  color: var(--subtext);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--subtext); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); }
.foot-links a { margin-left: 22px; }
.foot-links a:first-child { margin-left: 0; }
.foot-tagline { font-style: italic; }

/* ---- Load reveal (respects reduced-motion via block above) */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise 0.6s ease both; }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .foot-links a { margin-left: 0; margin-right: 18px; }
}
