:root { color-scheme: light; --ink: #28212d; --muted: #6f6577; --paper: #faf7fb; --line: #e7ddeb; --accent: #7658a8; --accent-soft: #eee8f7; --deep: #382b4a; --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; }
button, select { font: inherit; }
button, select { min-height: 44px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1rem max(1rem, calc((100% - 68rem) / 2)); background: rgba(250,247,251,.92); }
.brand { color: var(--ink); font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.header-tag { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.shell { width: min(100% - 2rem, 68rem); margin: 0 auto; padding: clamp(2.5rem, 7vw, 6rem) 0; }
.hero { max-width: 43rem; padding-bottom: 2.5rem; }
.eyebrow { margin: 0; color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { overflow-wrap: break-word; }
h1 { margin: .65rem 0 1rem; font-family: var(--display); font-size: clamp(2.2rem, 6.4vw, 4.2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
h1 em { color: var(--accent); font-style: italic; }
h2 { margin: .4rem 0 0; font-family: var(--display); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.brand-line { margin: 0 0 .8rem; color: var(--deep); font-family: var(--display); font-size: 1.15rem; font-style: italic; }
.hero-copy { max-width: 38rem; margin: 0; color: var(--muted); font-size: 1.05rem; }
.notice { max-width: 40rem; margin: 1.3rem 0 0; border-left: 3px solid var(--accent); padding: .75rem 1rem; background: rgba(238,232,247,.8); color: var(--deep); font-size: .88rem; }
.brand-disclaimer { margin: 1rem 0 0; color: var(--muted); font-size: .78rem; }
.panel { border: 1px solid var(--line); border-radius: 1.25rem; padding: clamp(1.2rem, 4vw, 2rem); background: #fffdfd; box-shadow: 0 1.5rem 4rem rgba(56,43,74,.08); }
.panel + .panel { margin-top: 1.25rem; }
.panel-heading, .result-topline, .form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.deck-note { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.field-label { display: block; margin-top: 1.8rem; color: var(--deep); font-size: .8rem; font-weight: 750; }
#topic { width: 100%; margin-top: .45rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); color: var(--ink); padding: .45rem .7rem; }
#topic:focus, button:focus-visible { outline: 3px solid #bba3de; outline-offset: 2px; }
.field-help { margin: .6rem 0 0; color: var(--muted); font-size: .78rem; }
.form-actions { justify-content: flex-start; margin-top: 1.25rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer; font-weight: 750; }
.button-primary { background: var(--deep); color: #fffdfd; }
.button-primary:hover { background: #281d36; }
.button-quiet { border-color: var(--line); background: transparent; color: var(--deep); }
.button-quiet:hover { border-color: var(--accent); background: var(--accent-soft); }
.form-message { margin: 1rem 0 0; padding: .7rem .9rem; border-radius: .6rem; font-size: .86rem; }
.error { border: 1px solid #d79a8b; background: #fff0ed; color: #8b392b; }
.result-panel { scroll-margin-top: 1rem; }
.badge { border-radius: 999px; padding: .35rem .7rem; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 800; }
.result-summary { max-width: 45rem; margin: .6rem 0 1rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.drawn-card { min-width: 0; text-align: center; }
.tarot-card { position: relative; display: grid; width: 100%; max-width: 9.5rem; margin: 0 auto; aspect-ratio: .69; min-height: 12rem; border: 0; border-radius: 1rem; padding: .75rem; background: var(--deep); box-shadow: 0 .9rem 1.8rem rgba(56,43,74,.18); color: white; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.tarot-card:hover { transform: translateY(-4px); box-shadow: 0 1.2rem 2.3rem rgba(56,43,74,.24); }
.tarot-card::before { position: absolute; inset: .55rem; border: 1px solid rgba(255,255,255,.4); border-radius: .7rem; content: ""; }
.card-face { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; width: 100%; height: 100%; border-radius: .7rem; background: radial-gradient(circle at 50% 25%, rgba(255,255,255,.25), transparent 36%), rgba(255,255,255,.06); }
.tarot-card.is-revealed .card-face { background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.35), transparent 40%), rgba(255,255,255,.14); }
.card-back-mark { display: block; color: rgba(255,255,255,.6); font-size: 3.4rem; line-height: 1; }
.card-mark { display: block; font-size: 3.4rem; line-height: 1; }
.card-face strong { padding: 0 .4rem; font-family: var(--display); font-size: 1.2rem; line-height: 1.2; }
.card-face > span:last-child { color: rgba(255,255,255,.75); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.card-position { margin-top: .65rem; color: var(--accent); font: 700 .68rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.reading { min-height: 5.5rem; margin-top: .45rem; border-top: 1px solid var(--line); padding-top: .7rem; text-align: left; }
.reading p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.reading .reading-keyword { margin-bottom: .2rem; color: var(--accent); font-weight: 800; }
.reflection-prompt { margin: .8rem 0 0; border-radius: .7rem; padding: .5rem 1rem; background: var(--accent-soft); color: var(--deep); font-family: var(--display); font-size: .98rem; font-style: italic; text-align: center; }
.reflection-prompt:empty { display: none; }
.reading.pending { color: #8f8696; font-size: .73rem; }
.reveal-help { margin: .8rem 0 0; color: var(--muted); text-align: center; font-size: .8rem; }
.result-footnote { margin: 1.1rem 0 0; color: var(--muted); font-size: .76rem; }
.source-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; margin-top: .8rem; }
.source-chip { min-width: 0; border: 1px solid var(--line); border-radius: .55rem; padding: .55rem .5rem; background: #fff; }
.source-chip strong, .source-chip small { display: block; }
.source-chip strong { font-size: .86rem; }
.source-chip small { margin-top: .2rem; color: var(--muted); font-size: .68rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1.2rem 1rem 2rem; text-align: center; color: var(--muted); font-size: .74rem; }
.kitforai-demo-bar { border-bottom: 1px solid var(--line); background: var(--accent-soft); color: var(--deep); font-size: .88rem; }
.kitforai-demo-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; width: min(100% - 2rem, 68rem); margin: 0 auto; padding: .5rem 0; }
.kitforai-demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.kitforai-demo-cta { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .9rem; border-radius: 999px; background: var(--deep); color: #fffdfd; font-weight: 750; text-decoration: none; white-space: nowrap; }
.kitforai-demo-cta:hover { background: #281d36; }
.kitforai-demo-sub { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .5rem; color: var(--deep); font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 760px) { .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-header { align-items: flex-start; flex-direction: column; gap: .2rem; } .panel-heading { align-items: flex-start; flex-direction: column; } .cards { gap: .5rem; } .tarot-card { min-height: 11rem; padding: .45rem; border-radius: .7rem; } .tarot-card::before { inset: .35rem; } .card-mark, .card-back-mark { font-size: 2.25rem; } .card-face strong { font-size: .92rem; } .card-face > span:last-child { font-size: .6rem; } .reading { min-height: 8rem; } .reading p { font-size: .73rem; } .form-actions .button { flex: 1 1 10rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tarot-card { transition: none; } .tarot-card:hover { transform: none; } }
