:root {
  --ink: #20152b;
  --ink-soft: #5f5167;
  --paper: #f6f0e8;
  --paper-deep: #ebe1d4;
  --cream: #fffaf4;
  --plum: #4a2559;
  --plum-dark: #2e193a;
  --gold: #c9864e;
  --gold-light: #e6b17e;
  --sage: #839287;
  --line: rgba(48, 27, 56, 0.14);
  --shadow: 0 18px 45px rgba(34, 18, 44, 0.12);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.grain { position: fixed; inset: 0; pointer-events: none; opacity: .12; z-index: 5; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
.shell { position: relative; max-width: 1440px; margin: 0 auto; padding: 34px 58px 44px; }
.brand-lockup { display: flex; align-items: center; min-height: 74px; margin-bottom: 8px; }
.section-nav { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 28px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.section-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 24px; color: var(--plum); font-size: 13px; font-weight: 600; text-decoration: none; }
.section-nav a:hover, .section-nav a:focus-visible { background: var(--plum); color: var(--cream); }
.section-nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#tarot-readings, #birthday-room, #astrocartography-room, #celestial-extras, #archive { scroll-margin-top: 170px; }
.main-fold > .fold-heading > button { scroll-margin-top: 170px; }
@media (max-width: 700px) { .section-nav { gap: 0 3px; padding: 6px 0; } .section-nav a { padding: 7px 9px; font-size: 12px; } }
.brand-lockup img { display: block; width: min(280px, 72vw); height: auto; }
.masthead { padding: 18px 0 38px; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .16em; font-family: "DM Mono", monospace; font-size: 10px; color: var(--plum); }
.eyebrow { display: flex; gap: 10px; align-items: center; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 134, 78, .16); }
.eyebrow-line { width: 44px; height: 1px; background: var(--gold); }
.masthead-row { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-top: 20px; }
h1, h2, h3, p { margin: 0; }
.masthead-row > div:first-child { flex: 1; min-width: 0; container-type: inline-size; }
h1 { font: 800 clamp(24px, 9.5cqw, 100px)/1.05 "Playfair Display", serif; letter-spacing: -.05em; white-space: nowrap; }
h1 em { color: var(--plum); font-style: normal; }
.lede { max-width: 580px; margin-top: 24px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.sun-mark { width: 108px; height: 108px; flex: 0 0 auto; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); position: relative; margin: 0 18px 8px 0; }
.sun-mark::before, .sun-mark::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(201,134,78,.5); border-radius: 50%; }
.sun-mark::after { inset: -8px; border-style: dashed; opacity: .65; }
.sun-mark span { font-size: 31px; }

.reading-room { position: relative; display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: 30px 42px; margin: 4px 0 48px; padding: clamp(28px, 4vw, 46px); color: var(--cream); background: var(--plum-dark); overflow: hidden; box-shadow: 0 18px 38px rgba(46,25,58,.22); }
.reading-room::before { content: ""; position: absolute; width: 270px; height: 270px; right: -82px; top: -90px; border: 1px solid rgba(230,177,126,.24); border-radius: 50%; box-shadow: 0 0 0 16px rgba(230,177,126,.06), 0 0 0 32px rgba(230,177,126,.04); pointer-events: none; }
.reading-intro { position: relative; z-index: 1; }
.reading-intro .section-kicker { color: var(--gold-light); }
.reading-intro h2 { margin-top: 8px; max-width: 390px; color: var(--cream); font-size: clamp(28px, 3vw, 42px); }
.reading-intro > p:last-child { max-width: 390px; margin-top: 15px; color: rgba(255,250,244,.68); font-size: 13px; line-height: 1.65; }
.reading-badge { display: inline-block; margin-top: 18px; padding: 5px 7px; border: 1px solid rgba(230,177,126,.42); color: var(--gold-light); text-transform: uppercase; letter-spacing: .11em; font: 9px "DM Mono", monospace; }
.reading-controls { position: relative; z-index: 1; display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.reading-tabs { display: flex; padding: 4px; border: 1px solid rgba(255,250,244,.16); background: rgba(255,250,244,.06); }
.reading-tab { border: 0; padding: 9px 11px; background: transparent; color: rgba(255,250,244,.58); font-size: 12px; }
.reading-tab.active { color: var(--plum-dark); background: var(--gold-light); }
.draw-button { border: 1px solid var(--gold-light); padding: 10px 14px; background: transparent; color: var(--gold-light); font-size: 12px; white-space: nowrap; transition: .2s ease; }
.draw-button:hover { background: var(--gold-light); color: var(--plum-dark); }
.draw-button span { margin-right: 5px; }
.reading-output { position: relative; z-index: 1; grid-column: 1 / -1; min-height: 300px; padding-top: 7px; }
.daily-reading { display: grid; grid-template-columns: minmax(190px, 250px) minmax(0, 1fr); gap: clamp(28px, 5vw, 54px); align-items: center; min-height: 286px; }
.daily-reading .drawn-card { width: min(100%, 232px); margin: 0 auto; transform: rotate(-4deg) scale(1.02); }
.drawn-card { position: relative; aspect-ratio: 2.2 / 3.4; display: grid; place-items: center; padding: 12px; border: 2px solid rgba(230,177,126,.82); background: linear-gradient(145deg, #dfad7b, #5f305f 54%, #21132c); box-shadow: 10px 12px 0 rgba(0,0,0,.18), 0 16px 36px rgba(0,0,0,.2); transform: rotate(-3deg); }
.drawn-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,250,244,.55); }
.drawn-card-inner { position: relative; z-index: 1; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 8px 4px; text-align: center; }
.drawn-card-inner img { width: 100%; height: 100%; object-fit: cover; }
.drawn-card-button { appearance: none; color: inherit; cursor: zoom-in; text-align: center; }
.drawn-card-button:hover { filter: brightness(1.08); }
.drawn-card-button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
.drawn-number { color: var(--gold-light); font: 10px "DM Mono", monospace; letter-spacing: .12em; }
.drawn-sigil { color: var(--cream); font-size: 35px; line-height: 1; }
.drawn-name { max-width: 78px; color: var(--cream); font: 700 12px/1.05 "Playfair Display", serif; }
.drawn-card.is-reversed .drawn-card-inner { transform: rotate(180deg); }
.reading-copy .reading-label { text-transform: uppercase; letter-spacing: .14em; color: var(--gold-light); font: 10px "DM Mono", monospace; }
.reading-copy h3 { margin-top: 7px; color: var(--cream); font: 700 clamp(24px, 3vw, 36px)/1.05 "Playfair Display", serif; }
.reading-copy .orientation { display: inline-block; margin: 8px 0 8px; padding: 4px 6px; border: 1px solid rgba(255,250,244,.2); color: rgba(255,250,244,.68); text-transform: uppercase; letter-spacing: .12em; font: 9px "DM Mono", monospace; }
.reading-copy p:not(.reading-label) { max-width: 670px; color: rgba(255,250,244,.78); font-size: 13px; line-height: 1.6; }
.reading-copy .prompt { margin-top: 9px; color: var(--gold-light) !important; }
.reading-copy .prompt strong { color: var(--cream); font-weight: 500; }
.reading-empty { min-height: 110px; display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; border: 1px solid rgba(255,250,244,.14); background: rgba(255,250,244,.055); }
.reading-empty .reading-label { color: var(--gold-light); text-transform: uppercase; letter-spacing: .14em; font: 10px "DM Mono", monospace; }
.reading-empty p:last-child { max-width: 620px; margin-top: 8px; color: rgba(255,250,244,.78); font-size: 13px; line-height: 1.6; }
.pick3-reading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.pick3-item { position: relative; display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 408px; padding: 17px 16px 18px; border: 1px solid rgba(255,250,244,.2); background: linear-gradient(180deg, rgba(255,250,244,.095), rgba(255,250,244,.035)); overflow: hidden; }
.pick3-item::before { content: ""; position: absolute; inset: 0 0 auto; height: 43%; background: radial-gradient(circle at 50% 18%, rgba(230,177,126,.2), transparent 70%); pointer-events: none; }
.pick3-item .drawn-card { position: relative; z-index: 1; width: clamp(136px, 13vw, 178px); margin: 4px auto 20px; padding: 9px; box-shadow: 8px 9px 0 rgba(0,0,0,.17), 0 12px 24px rgba(0,0,0,.18); }
.pick3-item:nth-child(1) .drawn-card { transform: rotate(-4deg); }
.pick3-item:nth-child(2) .drawn-card { transform: rotate(2deg); }
.pick3-item:nth-child(3) .drawn-card { transform: rotate(-2deg); }
.pick3-item .drawn-card::before { inset: 6px; }
.pick3-item .drawn-sigil { font-size: 19px; }
.pick3-item .drawn-number { font-size: 7px; }
.pick3-item .drawn-name { font-size: 8px; max-width: 45px; }
.pick3-item > div:last-child { position: relative; z-index: 1; }
.pick3-item .reading-label { color: var(--gold-light); text-transform: uppercase; letter-spacing: .1em; font: 9px "DM Mono", monospace; }
.pick3-item h3 { margin-top: 6px; color: var(--cream); font: 700 clamp(20px, 2.2vw, 27px)/1.05 "Playfair Display", serif; }
.pick3-item .orientation { display: inline-block; margin-top: 6px; padding: 3px 5px; border: 1px solid rgba(255,250,244,.18); color: rgba(255,250,244,.58); text-transform: uppercase; letter-spacing: .08em; font: 8px "DM Mono", monospace; }
.pick3-item p { margin-top: 10px; color: rgba(255,250,244,.74); font-size: 12px; line-height: 1.55; }
.pick3-summary { grid-column: 1/-1; padding-top: 4px; color: rgba(255,250,244,.66); font-size: 12px; line-height: 1.55; }
.reading-note { position: relative; z-index: 1; grid-column: 1 / -1; color: rgba(255,250,244,.47); font-size: 10px; line-height: 1.5; }
.reading-note span { color: var(--gold-light); margin-right: 5px; }

.reading-controls { flex-wrap: wrap; }
.reading-intro, .reading-controls, .reading-deck-picker { grid-column: 1 / -1; }
.reading-intro h2 { max-width: 700px; }
.reading-deck-picker { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.reading-deck-picker button { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px; border: 1px solid rgba(255,250,244,.2); background: rgba(255,250,244,.04); color: var(--cream); text-align: left; }
.reading-deck-picker button[aria-pressed="true"] { border-color: var(--gold-light); background: rgba(230,177,126,.13); box-shadow: inset 0 -3px var(--gold-light); }
.reading-deck-picker button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.reading-deck-picker img { width: 48px; height: 80px; object-fit: contain; flex-shrink: 0; }
.reading-deck-picker strong { display: block; font: 600 clamp(16px, 1.7vw, 21px)/1.2 "Playfair Display", serif; }
.reading-deck-picker small { display: block; margin-top: 7px; font-size: 11px; line-height: 1.5; color: rgba(255,250,244,.7); }
.reading-room:not([data-deck="ishtar"]) .drawn-card { padding: 0; border: 0; aspect-ratio: 3 / 5; background: transparent; }
.reading-room:not([data-deck="ishtar"]) .drawn-card:not(.flip-card)::before { display: none; }
.reading-room:not([data-deck="ishtar"]) .drawn-card-inner { padding: 0; }
.reading-room:not([data-deck="ishtar"]) .drawn-card-inner img { object-fit: contain; }
@media (max-width: 1000px) {
  .reading-deck-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .reading-deck-picker { gap: 8px; }
  .reading-deck-picker button { flex-direction: column; align-items: start; gap: 10px; padding: 10px 8px; }
  .reading-deck-picker img { width: 42px; height: 70px; }
  .reading-deck-picker strong { font-size: 14px; }
  .reading-deck-picker small { font-size: 10px; }
}
.reading-tabs { flex-wrap: wrap; }
.reading-tab { min-height: 44px; }
.ishtar-library { grid-column: 1 / -1; min-width: 0; position: relative; z-index: 1; }
.ishtar-library[hidden], .reading-output[hidden], .draw-button[hidden], .ishtar-empty[hidden] { display: none; }
.ishtar-library-header { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding: 26px 0; border-top: 1px solid rgba(230,177,126,.28); }
.ishtar-library-header .section-kicker { color: var(--gold-light); }
.ishtar-library-header h3 { font: 700 clamp(32px, 4vw, 52px)/1.1 "Playfair Display", serif; }
.ishtar-library-header p:last-child { max-width: 550px; margin-top: 14px; color: rgba(255,250,244,.76); font-size: 14px; line-height: 1.6; }
.ishtar-library-count { flex-shrink: 0; color: var(--gold-light); font: 11px "DM Mono", monospace; }
.ishtar-library-tools { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 18px 0; border-block: 1px solid rgba(255,250,244,.14); }
.ishtar-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.ishtar-filters button { min-height: 44px; padding: 9px 11px; border: 1px solid transparent; color: rgba(255,250,244,.78); background: transparent; font-size: 12px; }
.ishtar-filters button span { margin-left: 3px; color: var(--gold-light); font: 10px "DM Mono", monospace; }
.ishtar-filters button:hover { border-color: rgba(230,177,126,.4); }
.ishtar-filters button[aria-pressed="true"] { background: var(--gold-light); color: var(--plum-dark); }
.ishtar-filters button[aria-pressed="true"] span { color: inherit; }
.ishtar-search { flex: 1 1 190px; max-width: 280px; }
.ishtar-search input { width: 100%; height: 44px; border: 1px solid rgba(255,250,244,.25); padding: 10px 12px; border-radius: 0; background: rgba(255,250,244,.06); color: var(--cream); font-size: 14px; }
.ishtar-search input::placeholder { color: rgba(255,250,244,.58); }
.ishtar-grid-intro { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding: 20px 0 24px; color: rgba(255,250,244,.64); font-size: 12px; }
.ishtar-grid-intro p { color: var(--gold-light); }
.ishtar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.ishtar-card { display: flex; flex-direction: column; min-width: 0; appearance: none; border: 0; padding: 0; color: var(--cream); background: transparent; text-align: left; cursor: zoom-in; }
.ishtar-card img { display: block; width: 100%; height: auto; aspect-ratio: 360 / 597; object-fit: contain; background: #1e132b; box-shadow: 0 12px 24px rgba(0,0,0,.24); transition: transform .2s ease, box-shadow .2s ease; }
.ishtar-card:hover img { transform: translateY(-5px); box-shadow: 0 18px 30px rgba(0,0,0,.34); }
.ishtar-card-group { margin-top: 16px; color: var(--gold-light); text-transform: uppercase; font: 9px/1.6 "DM Mono", monospace; letter-spacing: .09em; }
.ishtar-card-name { margin-top: 5px; font: 600 clamp(17px, 1.7vw, 23px)/1.25 "Playfair Display", serif; }
.ishtar-empty { padding: 50px 20px; text-align: center; color: var(--cream); }
.ishtar-empty button { margin-top: 18px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--gold-light); background: transparent; color: var(--gold-light); }
.reading-tab:focus-visible, .ishtar-library button:focus-visible, .ishtar-search input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }

.birthday-panel { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: 18px 42px; margin-top: 3px; padding-top: 25px; border-top: 1px solid rgba(255,250,244,.14); }
.birthday-intro .section-kicker { color: var(--gold-light); }
.birthday-intro h3 { margin-top: 7px; color: var(--cream); font: 700 clamp(23px, 2.6vw, 34px)/1.08 "Playfair Display", serif; }
.birthday-intro > p:last-child { max-width: 400px; margin-top: 11px; color: rgba(255,250,244,.66); font-size: 12px; line-height: 1.6; }
.birthday-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; }
.birthday-form label { display: grid; gap: 6px; color: var(--gold-light); text-transform: uppercase; letter-spacing: .1em; font: 9px "DM Mono", monospace; }
.birthday-form label small { color: rgba(255,250,244,.42); font-size: 8px; text-transform: lowercase; letter-spacing: 0; }
.birthday-form input { width: 100%; min-width: 0; height: 44px; border: 1px solid rgba(255,250,244,.2); border-radius: 0; outline: 0; padding: 0 9px; color: var(--cream); background: rgba(255,250,244,.07); font-size: 12px; }
.birthday-form input:focus { border-color: var(--gold-light); box-shadow: 0 0 0 2px rgba(230,177,126,.16); }
.birthday-form input::placeholder { color: rgba(255,250,244,.36); }
.birthday-button { grid-column: 1 / -1; justify-self: start; min-height: 44px; border: 1px solid var(--gold-light); padding: 10px 14px; background: var(--gold-light); color: var(--plum-dark); font-size: 12px; transition: .2s ease; }
.birthday-button:hover { background: var(--cream); border-color: var(--cream); }
.birthday-button span { margin-right: 5px; }
.birthday-output { grid-column: 1 / -1; }
.birthday-empty { padding: 14px 16px; border: 1px solid rgba(255,250,244,.14); background: rgba(255,250,244,.055); color: rgba(255,250,244,.68); font-size: 12px; line-height: 1.55; }
.birthday-empty strong { color: var(--gold-light); font-weight: 500; }
.sky-summary { display: grid; grid-template-columns: minmax(190px, .78fr) minmax(0, 1.22fr); gap: 18px; }
.sky-chart-wrap { position: relative; min-height: 270px; display: grid; place-items: center; padding: 8px; border: 1px solid rgba(230,177,126,.26); background: radial-gradient(circle at center, rgba(230,177,126,.12), rgba(255,250,244,.025) 57%, transparent 58%); overflow: hidden; }
.sky-chart-wrap::before, .sky-chart-wrap::after { content: ""; position: absolute; border: 1px solid rgba(230,177,126,.13); border-radius: 50%; pointer-events: none; }
.sky-chart-wrap::before { inset: 19px; }
.sky-chart-wrap::after { inset: 45px; border-style: dashed; }
.star-chart { position: relative; z-index: 1; width: min(100%, 270px); height: auto; overflow: visible; }
.star-chart .chart-ring { fill: none; stroke: rgba(230,177,126,.45); stroke-width: 1; }
.star-chart .chart-spoke { stroke: rgba(255,250,244,.12); stroke-width: 1; }
.star-chart .chart-line { fill: none; stroke: rgba(230,177,126,.45); stroke-width: 1; stroke-dasharray: 3 3; }
.star-chart .chart-star { fill: rgba(255,250,244,.78); }
.star-chart .chart-star.is-bright { fill: var(--gold-light); }
.star-chart .chart-label { fill: rgba(255,250,244,.63); font: 8px "DM Mono", monospace; letter-spacing: .05em; text-anchor: middle; }
.star-chart .chart-label.active { fill: var(--gold-light); font-weight: 500; }
.sky-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; align-content: start; }
.sky-fact { min-height: 64px; padding: 10px 11px; border: 1px solid rgba(255,250,244,.13); background: rgba(255,250,244,.055); }
.sky-fact dt { color: var(--gold-light); text-transform: uppercase; letter-spacing: .1em; font: 8px "DM Mono", monospace; }
.sky-fact dd { margin: 6px 0 0; color: var(--cream); font: 600 15px/1.15 "Playfair Display", serif; }
.sky-fact dd small { display: block; margin-top: 3px; color: rgba(255,250,244,.52); font: 10px "DM Sans", sans-serif; }
.horoscope-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 22px; padding: 17px 18px; border: 1px solid rgba(230,177,126,.28); background: linear-gradient(120deg, rgba(230,177,126,.12), rgba(255,250,244,.045)); }
.horoscope-card .reading-label { color: var(--gold-light); text-transform: uppercase; letter-spacing: .14em; font: 10px "DM Mono", monospace; }
.horoscope-card h4 { margin-top: 6px; color: var(--cream); font: 700 27px/1.05 "Playfair Display", serif; }
.horoscope-card .zodiac-line { margin-top: 6px; color: var(--gold-light); font-size: 12px; }
.horoscope-copy { color: rgba(255,250,244,.8); font-size: 13px; line-height: 1.65; }
.horoscope-copy strong { color: var(--cream); font-weight: 500; }
.horoscope-meta { margin-top: 10px; color: rgba(255,250,244,.5); font: 10px/1.5 "DM Mono", monospace; }
.birthday-footnote { grid-column: 1 / -1; color: rgba(255,250,244,.43); font-size: 10px; line-height: 1.5; }
.birthday-footnote span { color: var(--gold-light); margin-right: 5px; }

.birthday-panel { scroll-margin-top: 24px; }
.birthday-view[hidden] { display: none; }
.birthday-navigation { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 24px; border-bottom: 1px solid rgba(230,177,126,.28); padding-bottom: 12px; }
.birthday-navigation button { min-height: 44px; padding: 10px 17px; border: 1px solid transparent; background: transparent; color: rgba(255,250,244,.76); font-size: 13px; }
.birthday-navigation button:hover { border-color: rgba(230,177,126,.5); color: var(--cream); }
.birthday-navigation button[aria-pressed="true"] { background: var(--gold-light); color: var(--plum-dark); }
.birthday-navigation button:focus-visible, .lo-shu-grid button:focus-visible, .insight-method summary:focus-visible, .insight-method a:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.birthday-privacy, .birthday-footnote { color: rgba(255,250,244,.67); font-size: 11px; line-height: 1.6; }
.birthday-privacy { margin-top: 20px; }
.horoscope-lenses { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 10px 0; }
.horoscope-lenses h5 { margin-bottom: 8px; color: var(--gold-light); font: 500 12px "DM Sans", sans-serif; }
.horoscope-lenses p, .birthday-view > .insight-intro p, .chinese-portrait p, .number-detail p, .number-summary p, .phase-reflection p, .insight-method { color: rgba(255,250,244,.8); font-size: 13px; line-height: 1.7; }
.birthday-view .reading-label { color: var(--gold-light); font: 10px/1.5 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.insight-intro h4 { margin: 9px 0 13px; color: var(--cream); font: 600 clamp(27px, 3.5vw, 42px)/1.15 "Playfair Display", serif; }
.insight-intro > p { max-width: 680px; }
.chinese-portrait { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 32px; align-items: center; margin: 12px 0 28px; }
.animal-seal { aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 10px; border: 1px solid var(--gold-light); outline: 1px solid rgba(230,177,126,.22); outline-offset: -9px; background: radial-gradient(circle, rgba(230,177,126,.13), transparent 72%); color: var(--gold-light); }
.animal-seal > span { font: 72px/1.05 serif; }
.animal-seal small { font: 17px serif; letter-spacing: .25em; padding-left: .25em; }
.chinese-portrait .animal-keywords { margin-bottom: 13px; color: var(--gold-light); font-size: 12px; }
.insight-prompt { margin-top: 17px; padding-top: 14px; border-top: 1px solid rgba(230,177,126,.22); }
.insight-prompt strong { display: block; margin-bottom: 3px; color: var(--cream); font-weight: 500; }
.chinese-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; padding: 23px 0; border-block: 1px solid rgba(230,177,126,.22); }
.chinese-facts dt { color: var(--gold-light); text-transform: uppercase; letter-spacing: .08em; font: 10px "DM Mono", monospace; }
.chinese-facts dd { margin: 9px 0 0; color: var(--cream); font: 500 19px/1.4 "Playfair Display", serif; }
.chinese-facts small { display: block; margin-top: 5px; color: rgba(255,250,244,.7); font: 11px/1.6 "DM Sans", sans-serif; }
.phase-reflection { display: flex; align-items: start; gap: 22px; margin: 26px 0; }
.phase-reflection > span { color: var(--gold-light); font: 54px/1 serif; }
.phase-reflection h5, .number-detail h5 { margin: 8px 0 13px; color: var(--cream); font: 600 26px/1.2 "Playfair Display", serif; }
.birthday-view .insight-caption { margin-top: 12px; color: rgba(255,250,244,.65); font-size: 11px; line-height: 1.6; }
.insight-method { margin-top: 24px; border-top: 1px solid rgba(230,177,126,.22); padding-top: 8px; }
.insight-method summary { padding: 14px 0; min-height: 44px; cursor: pointer; color: var(--gold-light); font-size: 12px; }
.insight-method p { margin: 0 0 13px; max-width: 820px; }
.insight-method a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.number-study { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 34px; align-items: center; margin: 26px 0; }
.lo-shu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; max-width: 380px; }
.lo-shu-grid button { position: relative; display: grid; place-content: center; justify-items: center; min-height: 96px; aspect-ratio: 1; padding: 9px 3px; border: 1px solid rgba(230,177,126,.3); background: rgba(255,250,244,.035); color: var(--cream); }
.lo-shu-grid button:hover { background: rgba(230,177,126,.13); border-color: var(--gold-light); }
.lo-shu-grid button[aria-pressed="true"] { color: var(--plum-dark); background: var(--gold-light); border-color: var(--gold-light); }
.lo-shu-digit { font: 500 clamp(32px, 4vw, 48px)/1 "Playfair Display", serif; }
.lo-shu-glyph { position: absolute; top: 6px; right: 8px; font: 13px serif; opacity: .6; }
.lo-shu-grid small { margin-top: 9px; font: 9px "DM Mono", monospace; }
.number-detail { min-width: 0; }
.number-detail .number-count { margin: 0 0 16px; color: var(--gold-light); font-size: 12px; }
.number-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding: 23px 0; border-block: 1px solid rgba(230,177,126,.22); }
.number-summary h5 { margin: 13px 0; color: var(--cream); font: 500 22px/1.3 "Playfair Display", serif; }
.number-summary .root-number { display: block; margin: 8px 0; color: var(--gold-light); font: 500 44px/1.1 "Playfair Display", serif; }
.number-summary p:not(.reading-label) { font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .birthday-navigation { gap: 5px; }
  .birthday-navigation button { padding: 10px 11px; font-size: 12px; }
  .chinese-portrait { grid-template-columns: 1fr; gap: 22px; }
  .animal-seal { width: 128px; }
  .animal-seal > span { font-size: 56px; }
  .chinese-facts { grid-template-columns: 1fr; gap: 20px; }
  .horoscope-lenses, .number-summary { grid-template-columns: 1fr; gap: 22px; }
  .number-study { grid-template-columns: 1fr; gap: 26px; }
  .lo-shu-grid { max-width: 340px; }
  .lo-shu-grid button { min-height: 80px; }
  .phase-reflection { gap: 15px; }
  .phase-reflection > span { font-size: 40px; }
}

.toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-group { display: flex; gap: 7px; flex-wrap: wrap; }
.filter { border: 1px solid transparent; color: var(--ink-soft); background: transparent; border-radius: 999px; padding: 10px 14px; font-size: 13px; transition: .2s ease; }
.filter span { color: var(--gold); font: 11px "DM Mono", monospace; margin-left: 4px; }
.filter:hover { color: var(--plum); border-color: var(--line); }
.filter.active { background: var(--plum); color: var(--cream); box-shadow: 0 7px 16px rgba(74, 37, 89, .2); }
.filter.active span { color: var(--gold-light); }
.search-box { height: 42px; width: min(330px, 100%); display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,250,244,.66); padding: 0 11px; color: var(--ink-soft); }
.search-icon { font-size: 26px; line-height: 0; transform: rotate(-20deg); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-box input::placeholder { color: #9b9099; }
kbd { border: 1px solid var(--line); border-radius: 3px; color: #9b9099; padding: 2px 5px; font: 10px "DM Mono", monospace; }

.gallery-head { display: flex; align-items: end; justify-content: space-between; margin: 46px 0 20px; }
.section-kicker { margin-bottom: 8px; color: var(--gold); }
h2 { font: 700 clamp(26px, 3.2vw, 40px)/1.1 "Playfair Display", serif; letter-spacing: -.025em; }
.result-count { color: var(--ink-soft); font: 11px "DM Mono", monospace; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.deck-card { min-width: 0; border: 1px solid var(--line); background: rgba(255,250,244,.72); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; animation: rise .45s ease both; }
.deck-card:hover { transform: translateY(-5px); box-shadow: 0 25px 52px rgba(34,18,44,.17); }
.deck-visual { aspect-ratio: 1.25 / 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 9px; padding: 9px; background: var(--paper-deep); overflow: hidden; }
.visual-frame { position: relative; min-width: 0; overflow: hidden; background: #d8cabb; }
.visual-frame img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; transition: transform .4s ease; }
.visual-frame.back-frame { background: var(--plum-dark); }
.visual-frame.back-frame img { object-position: center; filter: saturate(.9); }
.deck-card:hover .visual-frame img { transform: scale(1.035); }
.visual-label { position: absolute; left: 8px; bottom: 7px; color: #fff; background: rgba(32,21,43,.76); padding: 4px 6px; font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.deck-copy { padding: 17px 17px 16px; }
.deck-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font: 9px "DM Mono", monospace; }
.deck-copy h3 { margin-top: 8px; font: 700 23px/1.1 "Playfair Display", serif; }
.deck-artist { margin-top: 6px; color: var(--ink-soft); font-size: 12px; }
.deck-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tag { border: 1px solid var(--line); color: var(--ink-soft); padding: 5px 7px; border-radius: 2px; font: 9px "DM Mono", monospace; }
.new-deck-tag { background: var(--plum); color: var(--cream); }
.archive-source-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.image-credit { margin-top: 20px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.detail-images a { display: block; height: 100%; cursor: zoom-in; }
.detail-images a:focus-visible { outline: 3px solid var(--plum); outline-offset: -3px; }
.detail-images figcaption { pointer-events: none; }
.card-action { margin-top: 16px; border: 0; border-bottom: 1px solid var(--gold); color: var(--plum); padding: 0 0 3px; background: transparent; font-size: 12px; }
.card-action::after { content: "  ↗"; color: var(--gold); }

.empty-state { text-align: center; padding: 80px 20px; color: var(--ink-soft); }
.empty-symbol { color: var(--gold); font-size: 40px; }
.empty-state h3 { margin-top: 10px; font: 700 28px "Playfair Display", serif; color: var(--ink); }
.empty-state p { margin-top: 8px; font-size: 14px; }
.text-button { margin-top: 20px; border: 0; border-bottom: 1px solid var(--gold); background: transparent; color: var(--plum); padding: 0 0 3px; }

.footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 66px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }
.footer a { color: var(--plum); }
.footer-star { color: var(--gold); margin-right: 5px; }
.footer-mono { color: var(--gold); white-space: nowrap; font: 10px "DM Mono", monospace; letter-spacing: .1em; }

.detail-dialog { width: min(920px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; background: var(--cream); color: var(--ink); box-shadow: 0 30px 100px rgba(20,10,30,.35); overflow: auto; }
.detail-dialog::backdrop { background: rgba(32,21,43,.68); backdrop-filter: blur(4px); }
.close-dialog { position: absolute; top: 15px; right: 18px; z-index: 2; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(32,21,43,.72); color: #fff; font-size: 25px; line-height: 1; }
.detail-layout { display: grid; grid-template-columns: .95fr 1.05fr; }
.detail-images { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 560px; padding: 18px; background: var(--paper-deep); }
.detail-images figure { position: relative; min-width: 0; margin: 0; background: #d1c1b2; overflow: hidden; }
.detail-images img { width: 100%; height: 100%; display: block; object-fit: contain; }
.detail-images figcaption { position: absolute; left: 10px; bottom: 10px; color: #fff; background: rgba(32,21,43,.78); padding: 5px 7px; text-transform: uppercase; letter-spacing: .14em; font: 9px "DM Mono", monospace; }
.detail-copy { padding: 54px 42px 40px; }
.detail-copy .deck-meta { color: var(--gold); }
.detail-copy h2 { margin-top: 12px; font-size: clamp(34px, 4vw, 50px); }
.detail-copy .detail-artist { margin-top: 9px; color: var(--ink-soft); font-size: 14px; }
.detail-copy dl { display: grid; grid-template-columns: 92px 1fr; gap: 10px 18px; margin: 31px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.detail-copy dt { color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font: 9px "DM Mono", monospace; }
.detail-copy dd { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.detail-copy .detail-note { margin-top: 27px; color: var(--ink); font-size: 14px; line-height: 1.65; }
.detail-copy .source-link { display: inline-block; margin-top: 25px; color: var(--plum); font-size: 12px; border-bottom: 1px solid var(--gold); text-decoration: none; }
.card-detail-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); min-height: 560px; }
.card-detail-art { position: relative; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at center, rgba(230,177,126,.24), transparent 68%), var(--plum-dark); }
.card-detail-image { width: min(100%, 330px); height: auto; display: block; border: 2px solid var(--gold-light); box-shadow: 12px 14px 0 rgba(0,0,0,.2), 0 26px 50px rgba(0,0,0,.26); }
.card-detail-image.is-reversed { transform: rotate(180deg); }
.card-detail-zoom { position: absolute; left: 28px; bottom: 20px; color: rgba(255,250,244,.52); text-transform: uppercase; letter-spacing: .1em; font: 9px "DM Mono", monospace; }
.card-detail-fallback { width: min(100%, 330px); aspect-ratio: 2.2 / 3.4; display: grid; place-items: center; align-content: center; gap: 20px; border: 2px solid var(--gold-light); color: var(--cream); background: linear-gradient(145deg, #dfad7b, #5f305f 54%, #21132c); box-shadow: 12px 14px 0 rgba(0,0,0,.2); text-align: center; }
.card-detail-fallback span { color: var(--gold-light); font: 14px "DM Mono", monospace; }
.card-detail-fallback strong { max-width: 210px; font: 700 30px/1.05 "Playfair Display", serif; }
.detail-dialog.is-card-view { width: min(1100px, calc(100% - 28px)); }
.is-card-view .card-detail-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.is-card-view .card-detail-art { padding: 36px 28px 48px; }
.is-card-view .card-detail-image { width: auto; max-width: 100%; max-height: calc(100dvh - 170px); object-fit: contain; }
.card-detail-toolbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 10px 72px 10px 18px; border-bottom: 1px solid var(--line); background: var(--cream); }
.deck-review-nav { display: flex; align-items: center; gap: 12px; }
.card-deck-switcher { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; width: min(100%, 330px); min-width: 0; margin-left: auto; }
.card-deck-switcher > span { color: var(--ink-soft); font: 11px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.card-deck-switcher select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--cream); color: var(--plum); font: inherit; font-size: 14px; cursor: pointer; }
.card-deck-switcher select:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.card-deck-switcher small { grid-column: 2; color: var(--ink-soft); font-size: 11px; }
.deck-review-nav button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); color: var(--plum); background: transparent; font-size: 13px; }
.deck-review-nav button:disabled { opacity: .4; cursor: default; }
.deck-review-nav button:not(:disabled):hover { background: var(--paper-deep); }
.deck-review-nav button:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.deck-review-nav span { color: var(--ink-soft); text-align: center; font: 11px "DM Mono", monospace; }
.is-card-view .close-dialog { position: sticky; float: right; top: 15px; margin: 15px 18px -51px 0; z-index: 3; }

@keyframes rise { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1050px) { .shell { padding-inline: 30px; } .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reading-room { grid-template-columns: 1fr; gap: 24px; } .reading-intro h2, .reading-intro > p:last-child { max-width: 680px; } .reading-controls { align-items: center; } .birthday-panel { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 700px) { .shell { padding: 24px 17px 30px; } .masthead { padding-top: 10px; } .masthead-row { align-items: start; } .sun-mark { width: 68px; height: 68px; margin: 4px 5px 0 0; } .sun-mark::before { inset: 8px; } .sun-mark::after { inset: -5px; } .sun-mark span { font-size: 21px; } .lede { font-size: 14px; margin-top: 18px; } .reading-room { margin-bottom: 34px; padding: 24px 18px; } .reading-controls { align-items: stretch; flex-direction: column; } .draw-button { width: 100%; } .reading-output { min-height: 0; } .daily-reading { grid-template-columns: 142px minmax(0, 1fr); gap: 18px; min-height: 250px; } .daily-reading .drawn-card { width: 138px; } .drawn-card { width: 138px; } .reading-copy h3 { font-size: 26px; } .pick3-reading { grid-template-columns: 1fr; gap: 13px; } .pick3-item { min-height: 0; padding: 16px; } .pick3-item .drawn-card { width: min(52vw, 178px); margin-bottom: 18px; } .pick3-item h3 { font-size: 25px; } .birthday-form { grid-template-columns: 1fr; } .birthday-button { grid-column: auto; width: 100%; } .sky-summary { grid-template-columns: 1fr; } .sky-chart-wrap { min-height: 250px; } .sky-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .horoscope-card { grid-template-columns: 1fr; gap: 12px; } .toolbar { align-items: stretch; flex-direction: column; } .search-box { width: 100%; } .gallery-head { margin-top: 34px; } .gallery { grid-template-columns: 1fr; gap: 16px; } .deck-visual { aspect-ratio: 1.6 / 1; } .footer { flex-direction: column; margin-top: 46px; } .detail-layout { grid-template-columns: 1fr; } .detail-images { min-height: 360px; max-height: 65vh; } .detail-copy { padding: 28px 24px 30px; } .card-detail-layout { grid-template-columns: 1fr; } .card-detail-art { min-height: 430px; padding: 24px; } .card-detail-image, .card-detail-fallback { width: min(100%, 260px); } .card-detail-zoom { left: 24px; bottom: 14px; } }
@media (max-width: 1050px) {
  .ishtar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ishtar-library-header { align-items: start; flex-direction: column; gap: 16px; }
}
@media (max-width: 700px) {
  .ishtar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .ishtar-search { max-width: none; }
  .ishtar-filters button { padding-inline: 8px; }
  .reading-tabs { width: 100%; }
  .reading-tab { flex: 1; padding-inline: 8px; }
  .is-card-view .card-detail-layout { grid-template-columns: 1fr; }
  .is-card-view .card-detail-art { min-height: 0; padding: 24px 24px 44px; }
  .is-card-view .card-detail-image { width: auto; max-width: 100%; }
  .is-card-view .detail-copy dl { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; }
  .card-detail-toolbar { gap: 10px; padding-left: 10px; padding-right: 58px; }
  .card-deck-switcher { width: 100%; margin-left: 0; }
  .card-deck-switcher select { font-size: 16px; }
  .deck-review-nav { gap: 6px; }
  .deck-review-nav button { padding-inline: 8px; font-size: 12px; }
  .deck-review-nav span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
/* Face-down reading decks: the top card turns above layered paper edges. */
.reading-output { padding-bottom: 24px; }
.drawn-card.flip-card { display: block; padding: 0; border: 0; aspect-ratio: 3 / 5; background: transparent; perspective: 1100px; isolation: isolate; cursor: pointer; box-shadow: none; }
.drawn-card.flip-card::before { inset: 0; border: 1px solid #c7a77d; border-radius: 7px; background: repeating-linear-gradient(to bottom, #eadcc6 0 2px, #b19a80 2px 3px); transform: translate(9px, 12px); box-shadow: 2px 3px 0 #b19a80, 4px 6px 0 #e5d3b6, 8px 16px 24px rgba(0,0,0,.35); z-index: -1; }
.flip-card-rotor { display: block; position: relative; width: 100%; height: 100%; aspect-ratio: inherit; transform-style: preserve-3d; transform: rotateY(0deg); transition: transform 850ms cubic-bezier(.22,.7,.2,1); }
.is-revealed .flip-card-rotor { transform: rotateY(180deg); }
.flip-card-side { position: absolute; inset: 0; display: block; padding: 7px; border: 1px solid #d9b785; border-radius: 7px; background: #24182c; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.flip-card-side img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }
.flip-card-back { transform: rotateY(0deg) translateZ(1px); }
.flip-card-front { transform: rotateY(180deg) translateZ(1px); }
.flip-card-front.is-reversed img { transform: rotate(180deg); }
.drawn-card.flip-card.is-revealed { cursor: zoom-in; }
.revealed-copy[hidden], .reveal-invitation[hidden] { display: none; }
.revealed-copy:not([hidden]) { animation: reading-copy-reveal 900ms ease both; }
@keyframes reading-copy-reveal { 0%, 45% { opacity: 0; } 100% { opacity: 1; } }
@media (max-width: 480px) {
  .daily-reading { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .daily-reading .drawn-card { width: min(56vw, 210px); }
  .daily-reading .reading-copy { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .flip-card-rotor { transition: none; } .revealed-copy:not([hidden]) { animation: none; } }

@media (max-width: 700px) { .masthead-row .sun-mark { display: none; } }
.storage-notice { position: fixed; z-index: 60; bottom: 16px; left: 16px; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; background: var(--cream); color: var(--ink); border: 1px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow); }
.storage-notice[hidden] { display: none; }
.storage-notice h2 { font-size: 24px; }
.storage-notice p { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.storage-notice a, .policy-page a { color: var(--plum); }
.storage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.storage-actions button { flex: 1; min-height: 44px; padding: 10px 14px; border: 1px solid var(--plum); border-radius: 24px; background: var(--plum); color: var(--cream); }
.storage-actions button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.policy-page { max-width: 800px; margin: auto; padding: 40px 24px; }
.policy-page h1 { white-space: normal; font-size: clamp(32px, 6vw, 56px); }
.policy-page h2 { margin-top: 28px; font-size: 24px; }
.policy-page p, .policy-page li { margin-top: 14px; line-height: 1.7; }
.newsletter-signup { grid-column: 1 / -1; min-width: 0; margin: 12px 0 0; padding: 20px; border: 1px solid #b79a7566; border-radius: 10px; }
.newsletter-signup legend { padding: 0 8px; color: #f1d5a4; font: 600 21px 'Playfair Display', serif; }
.newsletter-signup legend small { font: 12px 'DM Sans', sans-serif; }
.newsletter-signup > label { display: block; margin-bottom: 8px; }
.newsletter-signup .newsletter-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; line-height: 1.6; cursor: pointer; }
.newsletter-signup .newsletter-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 4px; accent-color: #d4ad73; }
.newsletter-signup p { margin: 12px 0; color: #e0d4df; font-size: 12px; line-height: 1.65; }
.newsletter-signup a { color: #f1d5a4; }
#newsletter-join { min-height: 44px; padding: 10px 18px; background: #f1d5a4; color: #2e193a; border: 1px solid #f1d5a4; border-radius: 24px; }
#newsletter-join:disabled { opacity: .6; cursor: wait; }
#newsletter-join:focus-visible { outline: 3px solid #a1d7d2; outline-offset: 3px; }
