/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #0d0d22;
  --bg-2: #12122b;
  --bg-3: #1a1a38;
  --surface: #14142c;
  --ink: #f2efe6;
  --ink-2: #cdc9bd;
  --muted: #a5a094;        /* body-size secondary text, 6.9:1 on --bg */
  --muted-small: #bdb8ab;  /* the same role at 13px and below, 9.4:1 */
  --line: #26264a;
  --line-2: #35355f;
  --gold: #d9ad5e;
  --gold-2: #f0cd8a;
  --gold-soft: rgba(217, 173, 94, .1);
  --gold-line: rgba(217, 173, 94, .24);
  --fire: #e0836a;
  --earth: #7fb886;
  --air: #74aede;
  --water: #a08ee8;
  --hard: #e0836a;
  --soft: #7fb886;
  --neutral: #a08ee8;
  --radius: 4px;
  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.012em; }
h1 { font-size: 46px; font-family: var(--serif); font-weight: 400; }
h2 { font-size: 30px; font-family: var(--serif); font-weight: 400; margin-top: 1.7em; }
h3 { font-size: 19px; font-weight: 600; margin-top: 1.5em; }
h4 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 1em; }
code, kbd { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-3); padding: 1px 5px; border-radius: 3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 780px; }
@media (max-width: 620px) { .wrap { padding: 0 20px; } }

/* ---------------------------------------------------------------- header */
.site-head {
  border-bottom: 1px solid var(--gold-line); background: var(--bg);
  position: sticky; top: 0; z-index: 40;
}
.site-head .wrap { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--ink);
  font-family: var(--serif); font-size: 23px; letter-spacing: .005em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .logomark { flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: 14.5px; padding: 7px 12px; border-radius: 3px; }
.nav a:hover { color: var(--ink); background: var(--bg-3); text-decoration: none; }
.nav a.on { color: var(--gold); }
.menu-btn {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-2);
  border-radius: 3px; padding: 6px 12px; font-size: 15px; cursor: pointer; color: var(--ink);
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--gold-line); flex-direction: column; padding: 8px; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .menu-btn { display: block; }
}

/* ------------------------------------------------------------ breadcrumb */
.crumbs { font-size: 13.5px; color: var(--muted-small); padding: 16px 0 0; }
.crumbs a { color: var(--muted-small); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 6px; opacity: .45; }

/* ----------------------------------------------------------------- layout */
.page { padding: 10px 0 72px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
@media (max-width: 940px) { .cols { grid-template-columns: 1fr; gap: 30px; } }
.side { position: sticky; top: 86px; }
.lede { font-size: 18.5px; line-height: 1.55; color: var(--ink-2); margin: -.1em 0 1.5em; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card + .card { margin-top: 18px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.tint { background: var(--bg-2); }

/* ------------------------------------------------------------------- form */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 15px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.field .hint, .hint { font-size: 13px; color: var(--muted-small); font-weight: 400; }
input[type=text], input[type=number], input[type=date], input[type=time], select, textarea {
  font: 15px var(--font); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 3px; padding: 10px 12px; width: 100%;
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23918d81' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
input::placeholder { color: #6b6759; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--gold); }

.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
button, .btn {
  font: 600 15px var(--font); border-radius: 3px; padding: 12px 24px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer;
}
button:hover, .btn:hover { border-color: var(--gold-line); background: var(--bg-3); text-decoration: none; color: var(--ink); }
.primary { background: var(--gold); border-color: var(--gold); color: #16162e; }
.primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: #16162e; }
.ghost { border-color: transparent; color: var(--gold); padding-left: 10px; padding-right: 10px; }
.ghost:hover { background: var(--gold-soft); border-color: transparent; color: var(--gold-2); }
.err { color: #f08a72; font-size: 14.5px; margin-top: 10px; min-height: 1px; }
.warn {
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: #e8cd9a;
  border-radius: 3px; padding: 12px 15px; font-size: 14.5px; margin-top: 16px;
}

/* -------------------------------------------------------------- city menu */
.combo { position: relative; }
.combo-menu {
  position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 3px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5); max-height: 280px; overflow: auto; padding: 5px;
}
.combo-menu[hidden] { display: none; }
.combo-menu li { list-style: none; padding: 9px 11px; border-radius: 2px; cursor: pointer; font-size: 14.5px; }
.combo-menu li small { color: var(--muted-small); display: block; font-size: 12.5px; }
.combo-menu li:hover, .combo-menu li[aria-selected=true] { background: var(--gold-soft); }
.combo-menu ul { margin: 0; padding: 0; }

/* ---------------------------------------------------------------- results */
.result-head {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--gold-line);
  border-radius: var(--radius); padding: 26px 28px;
}
.result-head h2 {
  margin: 0 0 6px; font-family: var(--font); font-size: 12.5px; font-weight: 600;
  color: var(--gold); letter-spacing: .16em; text-transform: uppercase;
}
.result-head .big { font-family: var(--serif); font-size: 40px; line-height: 1.05; }
.result-head .sub { color: var(--ink-2); font-size: 15px; margin-top: 6px; }

.bigthree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 620px) { .bigthree { grid-template-columns: 1fr; } }
.bigthree .slot {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px; text-align: center;
}
.bigthree .glyph { font-size: 26px; line-height: 1; color: var(--gold); font-family: var(--serif); }
.bigthree .role { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-small); margin-top: 10px; }
.bigthree .val { font-family: var(--serif); font-size: 26px; margin-top: 2px; }
.bigthree .deg { font-size: 13px; color: var(--muted-small); }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-small);
  font-weight: 600; border-bottom-color: var(--line-2);
}
tbody tr:hover { background: rgba(255, 255, 255, .022); }
td.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.glyph { font-size: 17px; font-family: var(--serif); }
.rx { color: var(--fire); font-weight: 700; font-size: 12px; }

.el-fire { color: var(--fire); } .el-earth { color: var(--earth); }
.el-air { color: var(--air); }  .el-water { color: var(--water); }
.tone-hard { color: var(--hard); } .tone-soft { color: var(--soft); } .tone-neutral { color: var(--neutral); }

.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  font-size: 12.5px; padding: 4px 11px; border-radius: 2px;
  background: var(--bg-3); color: var(--ink-2); border: 1px solid var(--line);
}
.pill.on { background: var(--gold); border-color: var(--gold); color: #16162e; font-weight: 600; }

.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 76px 1fr 42px; align-items: center; gap: 12px; font-size: 13.5px; }
.bar .track { background: var(--bg-3); border-radius: 2px; height: 8px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--gold); }

/* ------------------------------------------------------------------ wheel */
.wheel { background: #0a0a1c; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.wheel svg { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------------- sell */
.sell {
  border: 1px solid var(--gold-line); background: var(--gold-soft);
  border-radius: var(--radius); padding: 26px;
}
.sell h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; font-size: 25px; }
.sell ul { margin: 0 0 18px; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; }
.sell li { margin-bottom: 6px; }
.price { font-family: var(--serif); font-size: 38px; color: var(--gold); line-height: 1; }
.buy { background: var(--gold); border-color: var(--gold); color: #16162e; }
.buy:hover { background: var(--gold-2); border-color: var(--gold-2); color: #16162e; }

/* ------------------------------------------------------------------ lists */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tool {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 22px; background: var(--surface); color: var(--ink);
}
.tool:hover { border-color: var(--gold-line); text-decoration: none; background: var(--bg-3); }
.tool strong { display: block; font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.tool span { font-size: 14px; color: var(--muted); line-height: 1.5; display: block; }

/* ---------------------------------------------------------------- article */
.article { max-width: 700px; font-size: 16.5px; line-height: 1.72; }
.article h2 { font-size: 30px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: .4em; }
.article table { margin: 1.4em 0; }
.article strong { font-weight: 600; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px;
  margin-bottom: 10px; background: var(--bg-2);
}
.faq summary { font-weight: 600; cursor: pointer; font-size: 16px; color: var(--ink); }
.faq summary::marker { color: var(--gold); }
.faq details[open] summary { margin-bottom: 10px; }
.faq p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------- misc */
.side .card { padding: 20px; }
.side h3 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold); margin: 0 0 12px; font-weight: 600;
}
.side ul { margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.side li { padding: 5px 0; color: var(--ink-2); }

.foot { border-top: 1px solid var(--gold-line); background: var(--bg-2); padding: 44px 0 48px; font-size: 14px; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; margin-bottom: 32px; }
.foot h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 4px 0; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--gold); }
.foot .fine { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; line-height: 1.6; }

/* ------------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: center; padding: 68px 0 60px; }
@media (max-width: 940px) { .hero { grid-template-columns: 1fr; gap: 36px; padding: 44px 0 40px; } }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.hero h1 { font-size: 68px; line-height: 1.04; margin: 0 0 22px; }
.hero p { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0 0 32px; max-width: 30em; }
@media (max-width: 700px) { .hero h1 { font-size: 42px; } h1 { font-size: 34px; } h2 { font-size: 25px; } }

.stats { border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); background: rgba(255, 255, 255, .015); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 44px; }
.stats .num { font-family: var(--serif); font-size: 32px; color: var(--gold); line-height: 1; }
.stats p { font-size: 14.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.55; }

.saved-list { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-list button { padding: 7px 13px; font-size: 13.5px; }

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --------------------------------------------------------- personal check */
.check-card { border-color: var(--gold-line); }
.verdict {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--radius); padding: 16px 18px; font-size: 15px; line-height: 1.55;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--ink-2);
}
.verdict.yes { background: rgba(127, 184, 134, .09); border-color: rgba(127, 184, 134, .34); color: #bfe0c4; }
.verdict-mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  border: 1px solid currentColor;
}
.verdict strong { font-size: 16px; color: var(--ink); }
.verdict.yes strong { color: #d6ecd9; }
.check-card .form-grid { margin-top: 8px; }

/* ------------------------------------------------------------------ tarot */
.tarot-card { display: block; width: 100%; height: auto; }
.draws { display: grid; gap: 16px; }
.draw {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 20px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  background: var(--surface);
}
@media (max-width: 560px) { .draw { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 14px; } }
.draw-card { align-self: start; }
.draw-body h3 { margin: 3px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.draw-body h3 a { color: var(--ink); }
.draw-body h3 a:hover { color: var(--gold); }
.draw-pos {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-small);
}
.draw-num {
  display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0;
}
.rev-tag {
  margin-left: 9px; font-size: 11.5px; font-weight: 600; color: var(--fire);
  text-transform: uppercase; letter-spacing: .1em;
}
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px; }
.deck-grid a { display: block; }
.deck-grid span { display: block; text-align: center; font-size: 12.5px; color: var(--muted-small); margin-top: 7px; }

/* ------------------------------------------------------------------ quizzes */
.answer {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 13px 16px; font: 15px/1.45 var(--font); color: var(--ink);
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.answer:hover { border-color: var(--gold-line); background: var(--surface); }
.answer.chosen { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-2); }

/* Real card artwork, with the drawn SVG as the fallback underneath it. */
.tarot-card.art {
  display: block; width: 100%; height: auto; border-radius: 7px;
  border: 1.5px solid var(--gold-line); background: var(--bg-3);
}
.tarot-card.art.rev { transform: rotate(180deg); }

/* ------------------------------------------------------------- card pages */
.card-head { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; align-items: start; }
.card-head > img { width: 230px; }
.card-facts table { width: 100%; margin: 0 0 18px; }
.card-facts th { text-align: left; width: 110px; font-weight: 600; color: var(--muted-small);
                 font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.card-facts .meaning { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.card-facts .meaning h3 { margin: 0 0 6px; font-size: 15px; text-transform: uppercase;
                          letter-spacing: .1em; color: var(--gold); font-family: var(--font); }
.card-facts .meaning p { margin: 0 0 4px; }
@media (max-width: 640px) {
  .card-head { grid-template-columns: 1fr; }
  .card-head > img { width: min(230px, 60%); }
}
