/* ===== Tarot Diary — shared site styles ===== */
:root {
  --bg:        oklch(0.972 0.012 320);
  --bg-warm:   oklch(0.96 0.018 60);
  --surface:   oklch(0.945 0.022 305);
  --surface-2: oklch(0.92 0.03 300);
  --surface-deep: oklch(0.32 0.06 290);
  --ink:       oklch(0.22 0.035 295);
  --ink-soft:  oklch(0.36 0.04 295);
  --ink-mute:  oklch(0.55 0.035 295);
  --line:      oklch(0.86 0.025 300);
  --accent:    oklch(0.48 0.12 295);
  --accent-2:  oklch(0.74 0.08 80);
  --blush:     oklch(0.88 0.04 25);
  --rose:      oklch(0.78 0.07 25);
  --night:     oklch(0.18 0.04 290);
  --night-2:   oklch(0.12 0.035 290);

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius:    20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px -2px rgba(60, 40, 90, .08), 0 1px 2px rgba(60, 40, 90, .05);
  --shadow:    0 18px 40px -22px rgba(60, 40, 90, .35), 0 6px 14px -8px rgba(60, 40, 90, .18);
  --shadow-lg: 0 40px 80px -30px rgba(60, 40, 90, .45), 0 12px 30px -14px rgba(60, 40, 90, .22);

  --font-serif: "Newsreader", "Noto Serif KR", ui-serif, Georgia, serif;
  --font-sans:  "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(1100px 600px at 85% -10%, oklch(0.88 0.07 295 / .55), transparent 70%),
    radial-gradient(900px 500px at -5% 30%, oklch(0.9 0.05 30 / .35), transparent 70%),
    radial-gradient(700px 400px at 50% 110%, oklch(0.86 0.06 290 / .35), transparent 70%),
    var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- typography ---------- */
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--font-mono); letter-spacing: 0.01em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
h1.display, h2.display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.02;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1.display { font-size: clamp(48px, 7vw, 104px); }
h2.display { font-size: clamp(36px, 4.5vw, 64px); }
h3.title   { font-family: var(--font-serif); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
p { margin: 0; color: var(--ink-soft); text-wrap: pretty; }
.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}
.italic-script {
  color: var(--accent);
  font-style: normal;
}

/* ---------- layout helpers ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

/* ---------- top nav ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: oklch(0.97 0.012 320 / .6);
  border-bottom: 1px solid oklch(0.86 0.025 300 / .55);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-serif); font-size: 19px;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, oklch(0.6 0.12 295), oklch(0.4 0.1 290));
  position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / .15), 0 4px 10px -4px oklch(0.4 0.1 290 / .5);
}
.brand .mark::before {
  content: ""; position: absolute;
  width: 9px; height: 9px;
  background: var(--accent-2);
  top: 7px; left: 7px;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.brand .mark::after {
  content: ""; position: absolute; right: 5px; bottom: 5px;
  width: 8px; height: 8px;
  background: oklch(1 0 0 / .4);
  border-radius: 999px;
}
.nav-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--ink-soft); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: var(--ink); color: var(--bg);
  transition: transform .2s ease, background .2s;
}
.nav-cta:hover { background: oklch(0.3 0.05 295); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font: 500 15px/1 var(--font-sans);
  cursor: pointer; border: 0;
  transition: transform .2s ease, background .2s, box-shadow .2s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px oklch(0.22 0.035 295 / .5); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px;
  border-radius: 16px;
  background: var(--ink); color: var(--bg);
  text-align: left;
  transition: transform .2s, box-shadow .2s;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px oklch(0.22 0.035 295 / .55); }
.btn-store.is-soon { pointer-events: none; opacity: .55; cursor: default; }
.btn-store .tiny { display: block; font-size: 10.5px; opacity: .7; letter-spacing: 0.18em; text-transform: uppercase; }
.btn-store .big { display: block; font-family: var(--font-serif); font-size: 18px; margin-top: 1px; }

/* ---------- phone frame ---------- */
.phone {
  --w: 280px;
  width: var(--w);
  aspect-ratio: 9 / 19.5;
  background: oklch(0.18 0.025 290);
  border-radius: 38px;
  padding: 9px;
  box-shadow:
    0 0 0 1.5px oklch(0.32 0.04 290),
    0 50px 90px -40px oklch(0.25 0.06 290 / .55),
    0 25px 50px -20px oklch(0.4 0.06 290 / .25),
    inset 0 0 0 2px oklch(0.08 0.02 290);
  position: relative;
  flex-shrink: 0;
}
.phone::before {
  /* notch removed for clean look */
  display: none;
}
.phone .screen {
  border-radius: 30px;
  overflow: hidden;
  width: 100%; height: 100%;
  background: var(--bg);
  position: relative;
}
.phone .screen img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}

/* ---------- card ---------- */
.card {
  background: oklch(1 0 0 / .55);
  border: 1px solid oklch(0.88 0.02 300 / .6);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
}
.card-soft {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
  margin-top: 80px;
  background: linear-gradient(to bottom, transparent, oklch(0.93 0.025 300 / .5));
}
.footer .row { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; align-items: flex-start; }
.footer .col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.footer .col h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px;
}
.footer a:hover { color: var(--ink); }
.footer .legal {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--ink-mute);
}

/* ---------- doc pages (privacy/terms/support) ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}
.doc .eyebrow { margin-bottom: 14px; }
.doc h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 12px;
}
.doc .updated { color: var(--ink-mute); font-size: 13.5px; margin-bottom: 40px; }
.doc h2 {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 500;
  margin: 56px 0 12px;
  letter-spacing: -0.01em;
}
.doc h3 {
  font-size: 16px; font-weight: 600;
  margin: 28px 0 8px;
  color: var(--ink);
}
.doc p, .doc li {
  font-size: 16px; line-height: 1.75;
  color: var(--ink-soft);
}
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc .callout {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 15px;
}

/* ---------- utility ---------- */
.glow {
  position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px);
  opacity: .55;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px/1 var(--font-sans);
  padding: 7px 12px;
  background: oklch(1 0 0 / .7);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}
.dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}

/* ---------- entrance fade ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
