/* Market Horoscope — dawn paper, blueberry ink, marigold sun, lilac moon. */
:root {
  --dawn: #F6E7DF;
  --shell: #FFF7F2;
  --ink: #22264E;
  --ink-soft: #565A7E;
  --marigold: #E3A13A;
  --marigold-deep: #9A5F14;
  --lilac: #B9AEDB;
  --moonlight: #F3E9C9;
  --line: rgba(34, 38, 78, 0.16);
  --display: 'Young Serif', 'Iowan Old Style', Georgia, serif;
  --body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --symbols: 'Noto Sans Symbols 2', 'Segoe UI Symbol', 'Apple Symbols', sans-serif;
  --measure: 64ch;
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--dawn); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); font-kerning: normal; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--marigold-deep); outline-offset: 3px; border-radius: 2px; }
.glyph, .medallion, .wh-sign, .wh-glyph, .ev-glyph, .cal-marks i, .cal-key i { font-family: var(--symbols); font-style: normal; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--shell); padding: var(--s1) var(--s2); z-index: 10; }
.skip:focus { left: var(--s2); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }
.preview-banner { margin: 0; padding: var(--s1) var(--s2); background: var(--ink); color: var(--moonlight); text-align: center; font-size: 0.9rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw + 1rem, 4.4rem); margin: 0 0 var(--s2); }
h2 { font-size: clamp(1.55rem, 1.5vw + 1rem, 2.1rem); margin: var(--s4) 0 var(--s2); }
h3 { font-size: 1.3rem; margin: var(--s3) 0 var(--s1); }
p { margin: 0 0 var(--s2); }
.lede { font-size: 1.25rem; line-height: 1.5; max-width: 52ch; }

/* ---------- frame ---------- */
.site-head, main, .foot-inner { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s3) 0 var(--s2); }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-size: 1.6rem; text-decoration: none; line-height: 1; white-space: nowrap; }
.mark { width: 2.1rem; height: 2.1rem; flex: none; }
.site-head nav { display: flex; gap: var(--s3); flex-wrap: wrap; }
.site-head nav a { text-decoration: none; font-weight: 500; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.site-head nav a:hover, .site-head nav a[aria-current] { border-bottom-color: var(--marigold); }
main { padding-bottom: var(--s5); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s4); align-items: center; padding-top: var(--s3); }
.dateline { font-weight: 500; color: var(--ink-soft); margin-bottom: var(--s1); }
.stale { font-weight: 400; }
.hero h1 { max-width: 11ch; }
.hero-sub { font-size: 1.2rem; max-width: 40ch; }
.weather { margin-top: var(--s3); padding: var(--s3); background: var(--shell); border-radius: 28px 28px 28px 4px; }
.weather.standalone { max-width: 70ch; }
.weather-h { font-size: 1.3rem; margin: 0 0 var(--s1); }
.weather p { max-width: var(--measure); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: var(--s2); margin: var(--s2) 0 0; padding-top: var(--s2); border-top: 1px solid var(--line); }
.facts dt { font-size: 0.85rem; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 500; }
.hero-wheel { margin: 0; }
.hero-wheel figcaption { font-size: 0.88rem; color: var(--ink-soft); text-align: center; max-width: 40ch; margin: var(--s2) auto 0; }

/* the sky wheel: the one bold thing on the page */
.wheel { display: block; width: 100%; max-width: 520px; margin-inline: auto; overflow: visible; }
.wh-outer { fill: var(--ink); }
.wh-inner { fill: #2C3060; stroke: rgba(243, 233, 201, 0.25); }
.wh-tick { stroke: rgba(243, 233, 201, 0.35); stroke-width: 1; }
.wh-sign { fill: var(--lilac); font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.wh-glyph { fill: var(--moonlight); font-size: 19px; text-anchor: middle; dominant-baseline: central; }
.wh-planet.is-rx .wh-glyph { fill: var(--marigold); }
.wh-mark { stroke: var(--moonlight); stroke-width: 2; }
.wh-moonmark { stroke: var(--marigold); stroke-width: 3; }
.moon-dark { fill: #3A3F78; }
.moon-lit { fill: var(--moonlight); }
.wh-planets { transform-origin: 200px 200px; animation: settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes settle { from { transform: rotate(-24deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }

/* ---------- market entries (an index, not a card grid) ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s3); }
.section-head h2 { margin-bottom: var(--s1); }
.section-head p { margin: 0; }
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: 0 var(--s4); margin-top: var(--s2); }
.entry { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--s2); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.entry-body { min-width: 0; padding-right: 2.75rem; }
.entry-title { font-size: 1.45rem; margin: 0 0 0.35rem; }
.entry-title a { text-decoration: none; }
.entry-title a:hover { text-decoration: underline; text-decoration-color: var(--mc); }
.persona { display: block; font-family: var(--body); font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.15rem; }
.teaser { margin: 0.4rem 0; max-width: 46ch; }
.entry-links { margin: 0; }
.readmore { font-weight: 500; text-decoration-color: var(--mc, var(--marigold)); }
.medallion { display: inline-grid; place-items: center; border-radius: 50%; background: var(--mc); color: #fff; line-height: 1; flex: none; }
.medallion-md { width: 3.1rem; height: 3.1rem; font-size: 1.5rem; }
.medallion-lg { width: 4.5rem; height: 4.5rem; font-size: 2.2rem; }
.medallion-sm { width: 2rem; height: 2rem; font-size: 1rem; vertical-align: -0.35rem; margin-right: 0.35rem; }
.mood { margin: 0; }
.mood-word { font-family: var(--display); font-size: 1.05rem; color: var(--mc, var(--ink)); }
.fav { position: absolute; top: var(--s3); right: 0; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.fav .fav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fav[aria-pressed="true"] { background: var(--marigold); border-color: var(--marigold); }
.fav-icon { font-size: 1.2rem; line-height: 1; }
.actions .fav { position: static; width: auto; height: auto; border-radius: 999px; padding: 0.55rem 1rem; gap: 0.5rem; }
.actions .fav .fav-label { position: static; width: auto; height: auto; clip: auto; }
.briefing { margin-top: var(--s4); padding: var(--s2) var(--s3) var(--s1); background: var(--shell); border-radius: 28px; }
.briefing h2 { margin-top: var(--s2); margin-bottom: 0.2rem; }

/* ---------- featured (the one dark band) ---------- */
.featured { margin: var(--s5) calc(50% - 50vw) 0; padding: var(--s5) 0; background: var(--ink); color: var(--moonlight); }
.featured-inner { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.featured-kicker { color: var(--lilac); font-weight: 500; margin: 0; }
.featured h2 { margin: var(--s1) 0 0; font-size: clamp(2rem, 3vw + 1rem, 3.2rem); color: #fff; }
.featured-time { color: var(--marigold); font-weight: 500; }
.featured-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s3); margin-top: var(--s3); }
.featured h3 { color: var(--lilac); font-size: 1.1rem; }
.featured a { color: var(--moonlight); }

/* ---------- coming up ---------- */
.coming-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--s2); }
.coming-list a { display: block; padding: var(--s2); background: var(--shell); border-radius: 18px; text-decoration: none; height: 100%; }
.coming-list a:hover { box-shadow: inset 0 0 0 2px var(--marigold); }
.coming-date { display: block; color: var(--ink-soft); font-weight: 500; font-size: 0.92rem; }
.coming-what { display: block; font-family: var(--display); font-size: 1.2rem; margin-top: 0.2rem; }

/* ---------- explore ---------- */
.explore-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--s2) var(--s4); }
.explore-list li { padding-top: var(--s2); border-top: 2px solid var(--ink); }
.explore-list a { font-family: var(--display); font-size: 1.3rem; text-decoration: none; display: block; margin-bottom: 0.3rem; }
.explore-list a:hover { text-decoration: underline; text-decoration-color: var(--marigold); }
.explore-list span { color: var(--ink-soft); }

/* ---------- market page ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: var(--s2) 0; font-size: 0.9rem; color: var(--ink-soft); }
.crumbs li + li::before { content: '/'; margin-right: 0.4rem; color: var(--ink-soft); }
.market-head { display: flex; gap: var(--s3); align-items: center; margin-top: var(--s3); }
.market-head h1 { margin: 0; font-size: clamp(2rem, 4vw + 1rem, 3.6rem); }
.market-sub { color: var(--ink-soft); margin: 0.3rem 0 0; }
.mood-block { margin: var(--s4) 0 var(--s3); padding-left: var(--s3); border-left: 6px solid var(--mc); }
.mood-kicker { margin: 0; font-weight: 500; color: var(--ink-soft); }
.mood-big { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; margin: 0.2rem 0 0.5rem; color: var(--mc); }
.mood-note { margin: 0; color: var(--ink-soft); }
.reading p, .prose p, .day-market p, .week p, .tomorrow p, .history p { max-width: var(--measure); }
.reading p { font-size: 1.12rem; line-height: 1.7; }
.reading p:first-child::first-letter { font-family: var(--display); float: left; font-size: 3.4em; line-height: 0.85; padding: 0.06em 0.08em 0 0; color: var(--mc); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s1); align-items: center; margin: var(--s3) 0; }
.share, .cal-controls button, .nl-form button { font: 500 1rem var(--body); padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--shell); cursor: pointer; }
.card-link { font-weight: 500; }
.sky { margin-top: var(--s4); padding: var(--s3); background: var(--shell); border-radius: 28px; }
.sky h2 { margin-top: var(--s1); }
.sky-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.97rem; font-variant-numeric: tabular-nums; }
table.data caption { text-align: left; color: var(--ink-soft); font-size: 0.9rem; padding-bottom: var(--s1); }
table.data th, table.data td { text-align: left; padding: 0.5rem 0.6rem 0.5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-weight: 500; color: var(--ink-soft); font-size: 0.88rem; }
table.data tbody th { font-weight: 500; }
.table-wrap { overflow-x: auto; }
.aspects, .moments, .plain { list-style: none; padding: 0; margin: 0 0 var(--s2); }
.aspects li, .moments li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.moments time { font-weight: 500; margin-right: 0.5rem; font-variant-numeric: tabular-nums; }
.factors { display: grid; gap: var(--s2); margin: 0 0 var(--s2); max-width: 72ch; }
.factors dt { font-family: var(--display); font-size: 1.15rem; }
.factors dd { margin: 0.2rem 0 0; }
.tomorrow, .week { margin-top: var(--s4); padding-top: var(--s2); border-top: 2px solid var(--ink); }
.related { margin-top: var(--s5); }
.day-market { margin-top: var(--s4); }
.day-market h2 a { text-decoration: none; }

/* ---------- calendar ---------- */
.cal-controls { display: flex; align-items: center; gap: var(--s2); justify-content: space-between; margin: var(--s3) 0 var(--s2); max-width: 40rem; }
.cal-controls button[disabled] { opacity: 0.35; cursor: default; }
.cal-current { font-family: var(--display); font-size: 1.5rem; margin: 0; text-align: center; }
.cal-filter { border: 0; padding: 0; margin: 0 0 var(--s2); display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.cal-filter legend { font-weight: 500; margin-bottom: var(--s1); }
.cal-key { list-style: none; padding: 0; margin: 0 0 var(--s1); display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); font-size: 0.92rem; color: var(--ink-soft); }
.cal-key i { font-size: 1.1rem; margin-right: 0.2rem; }
.cal-month { margin-top: var(--s4); }
.js .cal-month:not(.is-active) { display: none; }
.js .cal-month > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cal-grid { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 40rem; }
.cal-dow { font-size: 0.8rem; color: var(--ink-soft); text-align: center; padding-bottom: 4px; }
.cal-day > a, .cal-day > span { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1; padding: 0.35rem; border-radius: 10px; background: var(--shell); text-decoration: none; min-height: 2.75rem; }
.cal-day.has-ev > a { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.cal-day.has-ev > a:hover { box-shadow: inset 0 0 0 2px var(--marigold); }
.cal-day.is-today > a, .cal-day.is-today > span { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-num { font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.cal-marks { display: flex; flex-wrap: wrap; gap: 3px; font-size: 1.15rem; line-height: 1; }
i.ev-more { font-family: var(--body); font-size: 0.75rem; color: var(--ink-soft); align-self: center; }
i.ev-lunation, .ev-lunation .ev-glyph { color: var(--ink); }
i.ev-eclipse, .ev-eclipse .ev-glyph { color: #B23A48; }
i.ev-station, .ev-station .ev-glyph { color: var(--marigold-deep); }
i.ev-ingress, .ev-ingress .ev-glyph { color: #3F7364; }
i.ev-aspect, .ev-aspect .ev-glyph { color: #6B5BA8; }
.cal-list { list-style: none; padding: 0; margin: 0; max-width: 52rem; }
.cal-list > li { padding: var(--s1) 0; scroll-margin-top: 1rem; }
.cal-list h3 { font-size: 1.15rem; margin: var(--s2) 0 var(--s1); }
.ev { border-top: 1px solid var(--line); }
.ev summary { cursor: pointer; padding: 0.7rem 0; }
.ev summary time { color: var(--ink-soft); margin-left: 0.4rem; font-variant-numeric: tabular-nums; }
.ev-glyph { display: inline-block; width: 1.6rem; font-size: 1.15rem; }
.ev dl { margin: 0 0 var(--s2); padding: var(--s2); background: var(--shell); border-radius: 16px; }
.ev dt { font-weight: 500; } .ev dd { margin: 0 0 var(--s1); }
.ev[hidden] { display: none; }

/* ---------- history, learn, archive, prose ---------- */
.caution { margin-top: var(--s4); padding: var(--s3); border-radius: 28px; background: var(--shell); border-left: 6px solid var(--lilac); }
.caution h2 { margin-top: 0; }
.caution p:last-child { margin-bottom: 0; }
.hist-moon { display: flex; gap: var(--s3); align-items: center; margin-bottom: var(--s2); }
.hist-moon p { margin: 0; }
.history-list .entry-body { padding-right: 0; }
.learn-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--s3) var(--s4); }
.learn-list li { border-top: 2px solid var(--ink); padding-top: var(--s2); }
.learn-list a { font-family: var(--display); font-size: 1.35rem; text-decoration: none; }
.learn-list p { color: var(--ink-soft); margin-top: 0.4rem; }
.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2rem, 3vw + 1rem, 3.2rem); }
.prose p, .prose li { line-height: 1.7; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.next-read { margin-top: var(--s4); font-weight: 500; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: var(--s1) var(--s3); max-width: 72ch; }
.specs dt { font-weight: 500; } .specs dd { margin: 0; }
.archive-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--s4); }
.plain li { padding: 0.3rem 0; }
main > h1:first-child, main > .crumbs + article h1 { margin-top: var(--s3); }
.page-methodology, .page-about, .page-disclaimer, .page-privacy, .page-terms { max-width: 72ch; }
.ad-slot { margin: var(--s4) 0; min-height: 120px; padding: var(--s1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-label { font-size: 0.75rem; color: var(--ink-soft); }

/* ---------- newsletter ---------- */
.nl-form { display: grid; gap: var(--s1); max-width: 30rem; }
.nl-form input[type=email] { font: inherit; padding: 0.6rem 0.8rem; border: 1px solid var(--ink); border-radius: 10px; background: #fff; }
.consent { font-size: 0.9rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--shell); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.foot-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s3) var(--s4); }
.foot-brand { font-family: var(--display); font-size: 1.3rem; }
.foot-brand .mark { width: 1.6rem; height: 1.6rem; vertical-align: -0.35rem; margin-right: 0.5rem; }
.foot-brand .muted { font-family: var(--body); font-size: 0.95rem; }
.foot-disclaimer { font-size: 0.95rem; max-width: 60ch; }
.foot-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: var(--s3); }
  .hero-wheel { order: 2; }
  .hero h1 { max-width: none; }
  .sky-grid, .foot-inner { grid-template-columns: 1fr; }
  .sky { padding: var(--s2); margin-inline: -0.5rem; }
  .specs { grid-template-columns: 1fr; } .specs dd { margin-bottom: var(--s1); }
  .site-head nav { gap: var(--s2); }
  .wordmark { font-size: 1.4rem; }
  .market-head { align-items: flex-start; }
  .cal-day > a, .cal-day > span { padding: 0.2rem; border-radius: 6px; }
  .cal-marks { font-size: 0.85rem; gap: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-head nav, .fav, .actions, .site-foot nav, .cal-controls, .cal-filter { display: none !important; }
  body { background: #fff; }
}
