/* The reading rooms (Numerology, Astrology): candle-lit night, a dark form, and the
   reading written on parchment in red and iron-gall ink. */
:root { --serif: 'Cormorant Garamond', Georgia, serif; --black: 'UnifrakturMaguntia', 'Cormorant Garamond', serif;
  --text: #efe4cf; --text-soft: #b8a88d; --line: rgba(227, 196, 134, .28); --gold: #c9a25a; --chrome: rgba(30, 12, 14, .7);
  --ink: #2a1912; --ink-soft: #5b4433; --red: #7a1a1f; }
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: #090608; }
body { min-height: 100vh; font-family: var(--serif); color: var(--text); font-variant-numeric: lining-nums; overflow-x: hidden;
  background: radial-gradient(90% 55% at 50% 108%, rgba(150, 30, 20, .32), transparent 70%),
    radial-gradient(70% 50% at 50% -10%, rgba(80, 20, 40, .35), transparent 70%), linear-gradient(180deg, #160a0d, #090608 60%); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 18px 24px; }
.brand { font-family: var(--black); color: #e3c486; font-size: 1.7rem; text-decoration: none; text-shadow: 0 0 18px rgba(227, 196, 134, .25); }
.controls { display: flex; gap: 10px; align-items: center; }
.lang { appearance: none; font: 500 1rem var(--serif); color: var(--text); background: var(--chrome); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.lang option { color: #231C33; }
.acct { display: inline-flex; align-items: center; gap: 6px; font: 600 1rem var(--serif); color: var(--text); background: var(--chrome); border: 1px solid #b8935a; border-radius: 999px; padding: 7px 14px; text-decoration: none; white-space: nowrap; }
.acct svg { width: 18px; height: 18px; }
nav.rooms { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0 auto 6px; font-size: 1.05rem; letter-spacing: .06em; }
nav.rooms a { color: var(--text-soft); text-decoration: none; padding: 4px 2px; border-bottom: 1px solid transparent; }
nav.rooms a:hover, nav.rooms a[aria-current] { color: #e3c486; border-bottom-color: rgba(227, 196, 134, .5); }

main { max-width: 1000px; margin: 0 auto; padding: 1vh 16px 60px; }
h1 { font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; margin: 10px 0 10px; text-align: center; color: #e3c486; text-shadow: 0 0 26px rgba(227, 196, 134, .2); }
h1 .orn { display: block; font-size: .32em; letter-spacing: .5em; color: #8a1a20; margin-bottom: 10px; }
.lede { text-align: center; max-width: 36em; margin: 0 auto 24px; font-size: 1.22rem; color: var(--text-soft); }

/* the form, on dark leather */
form.ask { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 20px; align-items: end;
  padding: clamp(20px, 4vw, 34px); border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(100% 120% at 50% 0%, #2a0f16, #12060a); box-shadow: inset 0 0 80px rgba(0, 0, 0, .55), 0 26px 60px rgba(0, 0, 0, .5); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 1rem; color: var(--text-soft); letter-spacing: .04em; }
.field.wide { grid-column: span 2; } .field.full { grid-column: span 4; }
.field input { font: 1.35rem var(--serif); color: #fbf3e0; background: rgba(0, 0, 0, .25); border: 0; border-bottom: 1px solid rgba(214, 170, 80, .55); padding: 8px 6px; border-radius: 6px 6px 0 0; color-scheme: dark; }
.field input:focus { outline: none; border-bottom-color: #e3c486; }
.check { display: flex; gap: 8px; align-items: center; color: var(--text-soft); font-size: 1rem; }
.btn { font: 600 1.15rem var(--serif); color: #f3e6c8; background: #5a1118; border: 1px solid rgba(227, 196, 134, .45); border-radius: 999px; padding: 12px 26px; cursor: pointer; box-shadow: 0 0 22px rgba(160, 30, 30, .35); }
.btn.ghost { background: transparent; box-shadow: none; }
form.ask .btn { grid-column: span 4; justify-self: center; }
.error { grid-column: span 4; margin: 0; min-height: 1.2em; color: #e08a72; text-align: center; }
.private { grid-column: span 4; margin: 0; font-size: .98rem; color: var(--text-soft); text-align: center; font-style: italic; }
.place-wrap { position: relative; }
.suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; background: #1d0b10; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); max-height: 280px; overflow: auto; }
.suggest li { padding: 8px 12px; cursor: pointer; font-size: 1.1rem; }
.suggest li small { color: var(--text-soft); margin-left: 6px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: rgba(185, 131, 42, .22); }

/* the figure above the reading (seals, grid, wheel) */
.figure { margin: 34px auto 0; max-width: 900px; text-align: center; }
.seals { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 26px; }
.seal { width: 112px; text-align: center; animation: rise .9s ease both; animation-delay: calc(var(--i) * .15s); }
.seal b { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; font: 500 2.6rem var(--serif); color: #f3e6c8;
  background: radial-gradient(circle at 35% 30%, #a3262c, #5a1118 60%, #2e070b); box-shadow: 0 0 0 3px #2e070b, 0 0 0 5px rgba(227, 196, 134, .45), 0 10px 26px rgba(0, 0, 0, .6); }
.seal small { color: var(--text-soft); font-size: .98rem; letter-spacing: .05em; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.figure svg { width: min(100%, 560px); height: auto; display: block; margin: 0 auto; }
.figure .cap { color: var(--text-soft); font-size: 1rem; margin: 8px 0 0; font-style: italic; }
.twofig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 26px; align-items: center; margin-top: 30px; }

/* the reading on parchment */
.synth { max-width: 840px; margin: 34px auto 0; padding: clamp(22px, 4.5vw, 52px); color: var(--ink); border-radius: 6px;
  background: radial-gradient(120% 90% at 50% 40%, #efe2c4 0%, #e3d0a8 70%, #c9ae7c 100%);
  box-shadow: inset 0 0 70px rgba(90, 50, 20, .35), 0 30px 60px rgba(0, 0, 0, .6); border: 1px solid rgba(120, 80, 40, .4);
  font-size: 1.2rem; line-height: 1.62; scroll-margin-top: 20px; }
.synth .sec { animation: ink 1.2s ease both; animation-delay: calc(var(--i) * .35s); overflow: hidden; }
.synth .sec + .sec { margin-top: 28px; }
@keyframes ink { from { opacity: 0; filter: blur(3px); transform: translateY(6px); } }
.synth h3 { font: 600 .92rem var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(122, 26, 31, .3); }
.synth h3 .n { font-size: 1.15rem; letter-spacing: .05em; margin-right: 6px; }
.synth .big { float: right; font: 500 3.4rem/1 var(--serif); color: var(--red); margin: -4px 0 6px 18px; min-width: 1.2em; text-align: center; border: 2px solid rgba(122, 26, 31, .5); border-radius: 50%; width: 1.6em; height: 1.6em; display: grid; place-items: center; }
.synth p { margin: 0 0 10px; }
.synth p.lead { font-weight: 600; color: var(--red); }
.synth .sec:first-child p:first-of-type::first-letter { font-family: var(--black); float: left; font-size: 3.4em; line-height: .85; padding: 4px 8px 0 0; color: var(--red); }
.synth cite { display: block; font-size: .95rem; color: var(--ink-soft); }
.after { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 6px; }
.status { text-align: center; color: var(--text-soft); min-height: 1.4em; }
footer { max-width: 1000px; margin: 0 auto; padding: 10px 24px 40px; font-size: .95rem; color: var(--text-soft); text-align: center; }
footer a { color: inherit; }
@media (max-width: 720px) {
  form.ask { grid-template-columns: 1fr 1fr; } .field.wide, .field.full, form.ask .btn, .error, .private { grid-column: span 2; }
  .twofig { grid-template-columns: 1fr; }
  .synth { font-size: 1.1rem; } .synth .big { font-size: 2.6rem; }
  .seal { width: 92px; } .seal b { width: 76px; height: 76px; font-size: 2.1rem; }
}
@media (max-width: 520px) { .top { padding: 14px; } .controls { gap: 6px; } .acct { padding: 9px; } .acct span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .synth .sec, .seal { animation: none; } }
.seo-more { text-align: center; margin: 26px 0 0; font-size: 1.15rem; }
.seo-more a { color: #e3c486; text-decoration: none; border-bottom: 1px solid rgba(227, 196, 134, .4); }
/* Japanese: fall back to the system's Mincho for the glyphs the site's fonts lack. */
:root:lang(ja) { --serif: 'Cormorant Garamond', 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, 'Noto Serif JP', 'MS PMincho', serif; --black: 'UnifrakturMaguntia', 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, 'Noto Serif JP', serif; }
:root:lang(ja) body { line-break: strict; overflow-wrap: anywhere; }
:root:lang(ja) .synth .sec:first-child p:first-of-type::first-letter { font-family: inherit; font-size: inherit; float: none; padding: 0; line-height: inherit; }
:root:lang(ko) { --serif: 'Cormorant Garamond', 'Nanum Myeongjo', 'AppleMyungjo', 'Batang', 'Noto Serif KR', serif; --black: 'UnifrakturMaguntia', 'Nanum Myeongjo', 'AppleMyungjo', 'Batang', 'Noto Serif KR', serif; }
:root:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
:root:lang(ko) .synth .sec:first-child p:first-of-type::first-letter { font-family: inherit; font-size: inherit; float: none; padding: 0; line-height: inherit; }
