/* BABYMONSTER Daily Vibe — Design Tokens
   Claude-tone: minimal modern, restrained, magazine-grade hierarchy.
   No official branding. Member accents are advisory swatches only. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Neutral base */
  --bg:        #FAFAF7;
  --bg-2:     #F4F3EE;
  --ink:       #1A1A1A;
  --ink-soft:  #3A3A38;
  --muted:     #6B6B6B;
  --muted-2:   #9A9A95;
  --line:      #ECECE8;
  --line-2:    #DDDCD6;
  --paper:     #FFFFFF;

  /* Member accents (POINT use only — borders, dots, hover lines) */
  --ruka:     #9BB5D6;  /* sky blue        */
  --pharita:  #E8A5B5;  /* soft rose       */
  --asa:      #C49B6C;  /* warm gold       */
  --ahyeon:   #D4A5C7;  /* lilac           */
  --rami:     #B5A88F;  /* sand beige      */
  --rora:     #8FAE9E;  /* sage green      */
  --chiquita: #C9A4D4;  /* lavender        */

  /* Mystic — tarot section ONLY */
  --mystic-bg:    #F0EDF8;
  --mystic-ink:   #1A1A2E;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", "Apple Garamond", "Times New Roman", serif;
  --sans:  "Pretendard", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
           "Noto Sans JP", "Noto Sans Thai", "Apple SD Gothic Neo", sans-serif;
  --mono:  "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  /* Geometry */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;

  /* Shadow scale — barely-there to medium */
  --sh-1: 0 1px 0 rgba(20,20,20,.04), 0 1px 2px rgba(20,20,20,.04);
  --sh-2: 0 2px 0 rgba(20,20,20,.03), 0 10px 24px -8px rgba(20,20,20,.10);
  --sh-3: 0 30px 60px -24px rgba(20,20,20,.18);

  /* Containers */
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

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

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

/* Type helpers */
.serif    { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.mono     { font-family: var(--mono); font-feature-settings: "tnum"; }
.eyebrow  { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.dim      { color: var(--muted); }
.dimmer   { color: var(--muted-2); }
.rule     { border: 0; height: 1px; background: var(--line); margin: 0; }
.tnum     { font-variant-numeric: tabular-nums; }

/* Shell */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.2);
}
.brand {
  display: flex; align-items: baseline; gap: 12px;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: -.02em;
}
.brand-mark em { font-style: italic; font-weight: 400; color: var(--muted); }
.brand-meta {
  font-size: 12px; color: var(--muted); letter-spacing: .04em;
}
.topbar-right { display: flex; align-items: center; gap: 20px; }
.lang {
  display: inline-flex; gap: 2px;
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 2px;
}
.lang button {
  border: 0; background: transparent; color: inherit;
  font: inherit; padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.lang button.on { background: var(--ink); color: var(--bg); }
.today-pill {
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px;
  font-variant-numeric: tabular-nums;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 999px;
  font: 500 14px/1 var(--sans); letter-spacing: -.005em;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.small { padding: 8px 14px; font-size: 13px; }

/* Footer */
.footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) 60px;
  color: var(--muted); font-size: 13px;
}
.footer .shell-row {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between;
}
.footer a { text-decoration: none; color: var(--muted); margin-right: 14px; }
.footer a:hover { color: var(--ink); }
.footer .disclaimer { max-width: 540px; line-height: 1.6; }

/* Member portrait placeholder (SVG striped) */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, #EFEEE9 0 8px, #E7E6E0 8px 16px);
  overflow: hidden;
  border: 1px solid var(--line);
}
.portrait .ptag {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  background: rgba(250,250,247,.85); padding: 4px 8px; border-radius: 4px;
}
.portrait.wide { aspect-ratio: 16 / 9; }

/* Member accent dot */
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted-2); vertical-align: middle; margin-right: 6px;
}

/* Member badge row */
.meta-badges {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.badge {
  font-size: 12px; color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: .01em;
}
.badge.minor { color: var(--muted); }

/* Card primitives */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.card.hov {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}
.card.hov:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
}

/* Section header */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px;
  margin: 56px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.015em;
  margin: 0;
}
.section-head .num {
  font-family: var(--serif); font-style: italic; color: var(--muted);
  font-size: 14px;
}

/* Focus */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 720px) {
  .topbar { padding: 16px var(--gutter); }
  .topbar-right .today-pill { display: none; }
}
