:root {
  --paper: #f7f1e6;
  --paper-2: #eee3cf;
  --card: #fffcf6;
  --ink: #2a221d;
  --ink-2: #62564b;
  --line: #e0d2b8;
  --wood: #7b4b2a;
  --wood-2: #a0714b;
  --red: #b4432e;
  --red-ink: #9b3624;
  --teal: #2e6b66;
  --e0: #3e7b4f; /* Wood */
  --e1: #c2452f; /* Fire */
  --e2: #b3862b; /* Earth */
  --e3: #858b95; /* Metal */
  --e4: #2b3d66; /* Water */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --han: "Noto Serif CJK KR", "Noto Serif KR", "Source Han Serif K", "Nanum Myeongjo", Batang, AppleMyungjo, "Songti TC", "Songti SC", SimSun, serif;
  --radius: 14px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: var(--red-ink); }
svg { display: block; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* header */
.top .wrap { display: flex; align-items: center; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .02em; }
.brand svg { width: 40px; height: 28px; }
.band { height: 9px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, var(--wood-2) 0 2px, transparent 2px 14px), var(--paper-2); opacity: .85; }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(32px, 7.4vw, 46px); margin: 0 0 14px; letter-spacing: -.01em; }
h2 { font-size: 28px; margin: 0 0 14px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wood); }
.lede { font-size: 18px; color: var(--ink-2); margin: 0 0 24px; }
.fine { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }

/* sections */
.hero { padding: 34px 0 8px; }
.how, .faq { padding: 28px 0 8px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin: 0 0 16px; box-shadow: 0 1px 0 rgba(60, 40, 20, .04), 0 10px 26px -18px rgba(60, 40, 20, .35); }
.card h3 { margin: 0 0 12px; font-size: 21px; }

/* form */
.form fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.form legend, .lbl { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.lbl em { font-style: normal; font-weight: 400; color: var(--ink-2); }
.row3 { display: grid; grid-template-columns: 1.5fr .9fr 1.1fr; gap: 8px; }
select, input[type="email"] {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background-color: #fff;
  padding: 12px; border: 1px solid var(--line); border-radius: 10px; appearance: none; -webkit-appearance: none;
}
select {
  padding-right: 30px; background-repeat: no-repeat; background-position: right 10px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237b4b2a' stroke-width='1.8'/%3E%3C/svg%3E");
}
select:focus-visible, input:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; margin-top: 16px; padding: 14px 18px;
  font: inherit; font-size: 17px; font-weight: 700; color: #fff; background: var(--red); border: 0; border-radius: 12px; cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--red-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn.ghost { width: auto; margin: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); font-weight: 600; }
.btn.ghost:hover { background: var(--paper-2); }
.err { color: var(--red-ink); font-size: 14px; margin: 10px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* result head */
.result { padding: 18px 0 8px; scroll-margin-top: 8px; }
.result-head { text-align: center; padding: 16px 0 24px; }
.big-hanja { font-family: var(--han); font-size: clamp(66px, 20vw, 100px); line-height: 1; margin: 6px 0 14px; letter-spacing: .08em; }
.result-head h2 { font-size: clamp(26px, 6.4vw, 34px); margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 16px; }
.chip { font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 5px 12px; border-radius: 99px; color: var(--wood); background: var(--paper-2); border: 1px solid var(--line); }
.summary { font-family: var(--serif); font-size: 21px; line-height: 1.5; margin: 0 auto; max-width: 32ch; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 440px; margin: 0 auto; }
.col { text-align: center; }
.lab { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; white-space: nowrap; }
.col.me .lab { color: var(--red); }
.cell { margin-bottom: 10px; }
.tile { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; font-family: var(--han); font-size: clamp(28px, 9vw, 46px); line-height: 1; color: #fff; }
.col.me .tile { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--red); }
.cap { display: block; margin-top: 6px; font-size: 12px; line-height: 1.3; color: var(--ink-2); }
.rom { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.el-0 { background: var(--e0); }
.el-1 { background: var(--e1); }
.el-2 { background: var(--e2); }
.el-3 { background: var(--e3); }
.el-4 { background: var(--e4); }
.el-x { color: var(--ink-2); background: var(--paper-2); border: 1px dashed var(--line); }

/* elements */
.bar { display: grid; grid-template-columns: 62px minmax(0, 1fr) 18px; align-items: center; gap: 10px; margin: 7px 0; font-size: 14px; }
.track { height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.fill { height: 100%; width: 0; border-radius: 99px; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.bar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.notes p { position: relative; margin: 12px 0 0; padding-left: 18px; font-size: 15px; }
.notes p::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--wood)); }
.dm-text { margin: 0; }

/* reading */
.reading p { margin: 0; }
.reading h4 { margin: 22px 0 6px; font-family: var(--serif); font-size: 17px; color: var(--wood); }
.reading ul { margin: 0; padding-left: 20px; }
.reading li { margin: 5px 0; }
.advice { margin: 24px 0 0 !important; padding: 16px 18px; border-left: 3px solid var(--red); border-radius: 0 10px 10px 0; background: var(--paper); font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 22px; }

/* waitlist */
.waitlist { border-color: var(--wood-2); background: linear-gradient(180deg, #fff8ea, var(--card) 60%); }
.waitlist p { margin: 0; }
.ticks { list-style: none; padding: 0; margin: 12px 0 18px; }
.ticks li { position: relative; padding-left: 26px; margin: 7px 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .42em; width: 11px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.wl-row { display: flex; gap: 8px; }
.wl-row input[type="email"] { flex: 1; min-width: 0; }
.wl-row .btn { width: auto; margin: 0; white-space: nowrap; }
.msg { margin: 12px 0 0 !important; font-size: 15px; }
.msg.bad { color: var(--red-ink); }
.msg.good { color: var(--teal); font-weight: 600; }

/* how + faq */
.steps { margin: 0; padding-left: 22px; }
.steps li { margin: 0 0 10px; }
details { border-bottom: 1px solid var(--line); padding: 13px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { position: relative; padding-right: 28px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 22px; color: var(--wood); }
details[open] summary::after { content: "\2013"; }
details p { margin: 8px 0 0; color: var(--ink-2); }

/* page text (privacy) */
.page { padding: 30px 0 10px; }
.page h2 { font-size: 22px; margin: 28px 0 8px; }
.page p, .page li { color: var(--ink); }
.page ul { padding-left: 20px; }

/* footer */
.foot { margin-top: 36px; padding: 24px 0 40px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--ink-2); }
.foot p { margin: 4px 0; }

.toast { position: fixed; left: 50%; bottom: 24px; padding: 10px 16px; border-radius: 99px; font-size: 14px; color: #fff; background: var(--ink); opacity: 0; transform: translate(-50%, 20px); transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 420px) {
  body { font-size: 16px; }
  .card { padding: 18px 16px; }
  .pillars { gap: 7px; }
  .cap { font-size: 11px; }
  .wl-row { flex-direction: column; }
  .wl-row .btn { width: 100%; }
  .bar { grid-template-columns: 54px minmax(0, 1fr) 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .fill, .btn, .toast { transition: none; }
}

/* ---------- nav, content pages ---------- */
.top .wrap { justify-content: space-between; gap: 12px; }
.topnav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }
.topnav a { color: var(--ink-2); text-decoration: none; }
.topnav a:hover { color: var(--red-ink); }
.footnav { line-height: 2; }
.footnav a { color: var(--ink-2); }
.crumbs { margin: 0 0 16px; font-size: 13px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.page > h1, .prose h1 { font-size: clamp(30px, 6.4vw, 40px); margin: 0 0 14px; }
.result-head h1 { font-size: clamp(26px, 6.4vw, 34px); margin: 0 0 14px; }
.prose { margin-bottom: 18px; }
.prose h2 { font-size: 24px; margin: 30px 0 10px; }
.prose h3 { font-size: 19px; margin: 24px 0 6px; color: var(--wood); }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin: 5px 0; }
.prose .lede, .page > .lede { font-size: 19px; color: var(--ink-2); }
.reading h2 { font-size: 22px; margin: 0 0 10px; }
.reading h3 { margin: 22px 0 6px; font-size: 17px; color: var(--wood); }
.facts dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.facts dt { font-size: 14px; font-weight: 700; color: var(--wood); }
.facts dd { margin: 0; }
.cta { text-align: center; border-color: var(--wood-2); }
.cta p { margin: 0 0 14px; }
.cta .btn { width: auto; margin: 0; padding: 12px 24px; text-decoration: none; }
.related p { margin: 6px 0; font-size: 15px; line-height: 1.9; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 20px; font-weight: 600; }
.page h2 { margin-top: 28px; }
.grid60 { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; margin-bottom: 8px; }
.pcard { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.pcard:hover { border-color: var(--wood-2); }
.pcard .h { font-family: var(--han); font-size: 28px; line-height: 1.15; }
.pcard .n { font-weight: 700; }
.pcard .nick { font-size: 14px; color: var(--wood); }
.pcard .k { font-size: 12px; color: var(--ink-2); }
.c-0 { color: var(--e0); } .c-1 { color: var(--e1); } .c-2 { color: var(--e2); } .c-3 { color: var(--e3); } .c-4 { color: var(--e4); }
.table-wrap { overflow-x: auto; margin: 6px 0 18px; }
table.zodiac { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); }
.zodiac th, .zodiac td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.zodiac th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.learn { padding: 28px 0 8px; }
.learn-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.learn-list a { display: block; padding: 14px 16px; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.learn-list a:hover { border-color: var(--wood-2); }
.learn-list strong { display: block; font-family: var(--serif); font-size: 18px; }
.learn-list span { font-size: 14px; color: var(--ink-2); }
.page-link { margin: 18px 0 0 !important; font-size: 15px; }
@media (max-width: 420px) {
  .topnav { gap: 12px; font-size: 13px; }
  .topnav a + a { display: none; }
  .facts dl { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}
