/* ============================================================
   Lumen Studio — design system
   Claude warm-paper palette × Studio Ghibli dreamy pastels.
   No emojis. All ornaments are hand-drawn SVG.
   ============================================================ */

:root {
  /* Claude paper */
  --cream:        #FAF4EC;
  --cream-deep:   #F2E8D8;
  --paper:        #FFFBF4;
  --ink:          #2A1F17;
  --ink-soft:     #5B4A3A;
  --ink-muted:    #8C7A66;
  --ink-faint:    #BFAE96;
  --hairline:     #EADFCB;
  --border-strong:#D9CAB1;

  /* Claude accent */
  --terracotta:       #C96442;
  --terracotta-soft:  #E89478;
  --terracotta-tint:  #FBE5DA;
  --terracotta-deep:  #9A4B2E;
  --amber:            #E0A458;
  --amber-tint:       #FAEAD2;

  /* Ghibli pastels */
  --sky:        #A8D5E5;
  --sky-deep:   #6DB7CE;
  --sky-tint:   #E4F2F7;
  --meadow:     #B6D7A8;
  --meadow-deep:#7FB069;
  --meadow-tint:#E6F0DC;
  --peach:      #F6C6A7;
  --peach-deep: #F19F73;
  --peach-tint: #FCEADD;
  --lavender:   #C7B8E0;
  --lavender-deep:#9B85C6;
  --lavender-tint:#EEE7F7;
  --rose:       #F4B6C2;
  --rose-tint:  #FBE2E8;

  /* Type */
  --serif: "Iowan Old Style", Georgia, "Apple Garamond", "Constantia", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Geometry */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-xxl: 28px;
  --radius-pill: 999px;

  /* Shadows — always warm brown, never blue */
  --shadow-soft:   0  6px 18px rgba(122, 90, 46, 0.08);
  --shadow-card:   0 12px 28px rgba(122, 90, 46, 0.12);
  --shadow-raised: 0 24px 50px rgba(92,  62, 26, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream:        #1B1612;
    --cream-deep:   #241D17;
    --paper:        #241D17;
    --ink:          #F4ECDE;
    --ink-soft:     #D5C8B0;
    --ink-muted:    #A99980;
    --ink-faint:    #6F614E;
    --hairline:     #3A2E23;
    --border-strong:#4A3B2C;
    --terracotta-tint: #3A271F;
    --shadow-soft:   0 6px 18px rgba(0,0,0,0.30);
    --shadow-card:   0 12px 28px rgba(0,0,0,0.40);
    --shadow-raised: 0 24px 50px rgba(0,0,0,0.55);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--terracotta); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta-deep); }
img, svg, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Type scale ---------- */
.display, h1.display {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.7px;
  line-height: 1.04;
  font-size: clamp(40px, 7vw, 78px);
  margin: 0 0 18px;
}
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.4px; margin: 0 0 16px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -0.3px; margin: 0 0 14px; }
h3 { font-family: var(--sans);  font-weight: 600; font-size: 20px; line-height: 1.3;  margin: 0 0 10px; }
h4 { font-family: var(--sans);  font-weight: 600; font-size: 17px; line-height: 1.35; margin: 0 0 8px;  }
p  { margin: 0 0 14px; color: var(--ink-soft); }
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--terracotta-tint); color: var(--terracotta-deep);
  font-weight: 600; font-size: 11px; letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); display: inline-block; }
.subtle { color: var(--ink-muted); font-size: 14px; }

/* ---------- Layout ---------- */
.wrap   { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.row    { display: flex; gap: 16px; align-items: center; }
.col    { display: flex; flex-direction: column; gap: 16px; }
section { padding: 96px 0; position: relative; }
section.tight { padding: 56px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 50%, transparent);
}
.site-header .inner {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink) !important; font-size: 17px;
}
.brand:hover { color: var(--ink) !important; }
.site-header .brand-mark { display: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-block;
  background-image: url('/assets/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -9999px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(122, 90, 46, 0.18);
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { margin-left: 6px; }

@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 8px; }
  .nav-links .btn { padding: 10px 14px; font-size: 14px; }
  .brand span:last-child { font-size: 15px; }
}
@media (max-width: 760px) {
  /* Hide the floating mascot on phones so it never fights the hero text */
  .hero-mascot { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  text-decoration: none !important; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  background: transparent; color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--terracotta-soft), var(--terracotta));
  color: #fff !important; box-shadow: var(--shadow-soft);
}
.btn-primary:hover { box-shadow: var(--shadow-card); }
.btn-secondary {
  background: var(--paper); color: var(--ink) !important;
  border-color: var(--hairline); box-shadow: var(--shadow-soft);
}
.btn-secondary:hover { border-color: var(--border-strong); }
.btn-ghost { color: var(--ink) !important; }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--border-strong); }
.card .icon-badge {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--peach), var(--terracotta));
  color: #fff;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}
.card .icon-badge.sky    { background: linear-gradient(135deg, var(--sky), var(--sky-deep)); }
.card .icon-badge.meadow { background: linear-gradient(135deg, var(--meadow), var(--meadow-deep)); }
.card .icon-badge.peach  { background: linear-gradient(135deg, var(--peach), var(--peach-deep)); }
.card .icon-badge.lavender{background: linear-gradient(135deg, var(--lavender), var(--lavender-deep)); }
.card .icon-badge.amber  { background: linear-gradient(135deg, var(--amber), #C58A3C); }
.card .icon-badge.rose   { background: linear-gradient(135deg, var(--rose), #E48BA0); }
.card .icon-badge.terra  { background: linear-gradient(135deg, var(--terracotta-soft), var(--terracotta)); }

/* ---------- Grids ---------- */
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Chip / Tag ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
}
.chip.dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--meadow-deep);
}

/* ---------- Inputs ---------- */
.input-field {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px;
}
.input-field label {
  font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-left: 2px;
}
.input-field input, .input-field textarea, .input-field select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.input-field input:focus, .input-field textarea:focus, .input-field select:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-tint);
}
.input-field .hint { font-size: 12px; color: var(--ink-muted); margin-left: 2px; }
.input-field .error { font-size: 12px; color: var(--terracotta); margin-left: 2px; }

/* ---------- Article styles ---------- */
.article-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-muted); flex-wrap: wrap; }
.article-body { font-size: 17px; line-height: 1.75; }
.article-body p { color: var(--ink-soft); }
.article-body h2 { margin-top: 48px; }
.article-body h3 { margin-top: 32px; font-size: 22px; font-family: var(--serif); font-weight: 600; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 24px; color: var(--ink-soft); }
.article-body li { margin-bottom: 8px; }
.article-body code { background: var(--cream-deep); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; font-family: var(--mono); color: var(--ink); }
.article-body pre { background: var(--cream-deep); padding: 18px; border-radius: var(--radius-md); overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.55; }
.article-body blockquote {
  border-left: 3px solid var(--terracotta);
  padding: 4px 18px;
  margin: 24px 0;
  background: var(--terracotta-tint);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--serif);
  font-size: 1.05em;
  color: var(--ink);
}
.article-body img { border-radius: var(--radius-lg); margin: 24px 0; box-shadow: var(--shadow-card); }
.article-body .callout {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--meadow-deep);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 24px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 32px;
  background: var(--paper);
  margin-top: 80px;
}
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 14px; }
.site-footer a { color: var(--ink-soft); display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: var(--ink); }
.site-footer .copy { padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-muted); font-size: 13px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.tilt-r { transform: rotate(0.6deg); }
.tilt-l { transform: rotate(-0.6deg); }
.divider { height: 1px; background: var(--hairline); margin: 32px 0; }

/* Auth-specific */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 100vh;
}
.auth-aside {
  position: relative;
  background: linear-gradient(165deg, var(--peach-tint), var(--peach) 70%, var(--terracotta-soft));
  overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  color: var(--terracotta-deep);
}
.auth-aside .scene { position: absolute; inset: 0; pointer-events: none; }
.auth-aside .content { position: relative; max-width: 420px; }
.auth-aside h2 { color: var(--terracotta-deep); font-size: 38px; line-height: 1.1; }
.auth-aside p  { color: var(--terracotta-deep); opacity: 0.85; font-size: 17px; }
.auth-main {
  display: flex; flex-direction: column;
  justify-content: center; align-items: stretch;
  padding: 48px;
  max-width: 520px; margin: 0 auto; width: 100%;
}
.auth-main .panel { width: 100%; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--ink-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--hairline); flex: 1; }
.social-row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
