/* Body-and-Spirit.info */

@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(fonts/cormorant-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(fonts/cormorant-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ptserif-400-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ptserif-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/ptserif-400i-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/ptserif-400i-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/ptserif-700-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/ptserif-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f5ede0;
  --surface: #fffaf2;
  --surface-2: #f1e6d4;
  --ink: #2b2018;
  --muted: #6e5c4a;
  --line: #e0d0b8;
  --link: #5f3a8a;
  --link-hover: #9a4a1c;
  --gold: #a87424;
  --gold-soft: #d8b06a;
  --night: #2a1d3d;
  --night-2: #3d2a57;
  --on-night: #f3e7d3;
  --on-night-muted: #cbb9a0;
  --shadow: 0 1px 2px rgb(60 40 20 / .06), 0 6px 24px rgb(60 40 20 / .07);
  --radius: 14px;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --display: "Cormorant", "PT Serif", Georgia, serif;
  --measure: 46rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171220;
    --surface: #201a2b;
    --surface-2: #2a2238;
    --ink: #ece2d1;
    --muted: #b4a690;
    --line: #3a3048;
    --link: #c7a6f0;
    --link-hover: #f0b97a;
    --gold: #dcae5f;
    --gold-soft: #8f7038;
    --night: #120d1a;
    --night-2: #221a30;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 24px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.7 var(--serif);
  overflow-wrap: break-word;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

img, video, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 48rem) { .wrap { padding-inline: 1.5rem; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 10; padding: .5rem 1rem; background: var(--surface); border-radius: 8px; }
.skip-link:focus { top: 1rem; }

/* ---------- header ---------- */

.site-header {
  background:
    radial-gradient(1px 1px at 12% 30%, rgb(255 240 210 / .7), transparent 60%),
    radial-gradient(1px 1px at 33% 70%, rgb(255 240 210 / .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 22%, rgb(255 240 210 / .6), transparent 60%),
    radial-gradient(1px 1px at 76% 64%, rgb(255 240 210 / .5), transparent 60%),
    radial-gradient(1px 1px at 91% 35%, rgb(255 240 210 / .6), transparent 60%),
    radial-gradient(60rem 20rem at 85% -40%, rgb(216 176 106 / .22), transparent 70%),
    linear-gradient(180deg, var(--night), var(--night-2));
  color: var(--on-night);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header__bar { display: flex; align-items: center; gap: .75rem 1.25rem; padding-block: .85rem; flex-wrap: wrap; }

.logo { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; margin-right: auto; min-width: 0; }
.logo:hover { color: inherit; }
.logo__mark { width: 2.6rem; height: 2.6rem; flex: none; color: var(--gold-soft); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.logo__name { font: 600 1.55rem/1 var(--display); letter-spacing: .02em; }
.logo__tagline { font-size: .78rem; color: var(--on-night-muted); letter-spacing: .03em; margin-top: .25rem; }

.search { display: flex; align-items: center; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); border-radius: 999px; padding: .15rem .2rem .15rem .9rem; }
.search:focus-within { background: rgb(255 255 255 / .16); border-color: var(--gold-soft); }
.search input { background: none; border: 0; color: var(--on-night); font: inherit; font-size: .95rem; width: 12rem; padding: .35rem 0; outline: none; }
.search input::placeholder { color: var(--on-night-muted); }
.search button, .menu-toggle { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: none; border: 0; border-radius: 999px; color: var(--on-night); cursor: pointer; }
.search button:hover, .menu-toggle:hover { background: rgb(255 255 255 / .12); }
.search svg, .menu-toggle svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle { display: none; border: 1px solid rgb(255 255 255 / .18); }

.main-nav { border-top: 1px solid rgb(255 255 255 / .1); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: .15rem; list-style: none; margin: 0; padding: .4rem 0; }
.main-nav a { display: block; padding: .35rem .75rem; border-radius: 999px; color: var(--on-night); text-decoration: none; font-size: .95rem; }
.main-nav a:hover { background: rgb(255 255 255 / .1); color: #fff; }
.main-nav a[aria-current] { background: var(--gold-soft); color: var(--night); }

@media (max-width: 52rem) {
  .menu-toggle { display: grid; }
  .search { order: 3; flex: 1 1 100%; }
  .search input { width: 100%; flex: 1; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding-block: .5rem .9rem; }
  .main-nav a { border-radius: 10px; padding: .6rem .75rem; font-size: 1.05rem; }
}
@media (max-width: 26rem) { .logo__tagline { display: none; } }

/* ---------- page layout ---------- */

.page { padding-block: 1.25rem 3rem; }
.layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) {
  .layout { grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.5rem; }
  .layout--wide { grid-template-columns: minmax(0, 1fr); }
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: .4rem; color: var(--gold); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link-hover); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.article {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.15rem 2rem;
}
@media (min-width: 48rem) { .article { padding: 2.5rem 3rem 3rem; } }
.layout--wide .article { max-width: none; }

/* ---------- typography ---------- */

.article h1, .prose h1 {
  font: 600 clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem)/1.15 var(--display);
  margin: 0 0 1.25rem;
  text-align: left;
  color: var(--ink);
}
.article > h1::after, .prose > h1:first-child::after, .hero h1::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 10px;
  margin-top: .8rem;
  background:
    radial-gradient(circle, var(--gold) 2.5px, transparent 3px) center / 10px 10px no-repeat,
    linear-gradient(var(--gold-soft), var(--gold-soft)) left center / 2.2rem 1px no-repeat,
    linear-gradient(var(--gold-soft), var(--gold-soft)) right center / 2.2rem 1px no-repeat;
}

.prose { max-width: var(--measure); }
.layout--wide .prose { max-width: none; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose dl, .prose blockquote, .prose table { margin: 0 0 1.05em; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { font-family: var(--display); line-height: 1.2; text-align: left; margin: 1.8em 0 .55em; color: var(--ink); }
.prose h2 { font-size: 1.85rem; font-weight: 600; }
.prose h3 { font-size: 1.5rem; font-weight: 600; }
.prose h4, .prose h5, .prose h6 { font-size: 1.25rem; font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin-inline: 0; padding: .8em 1.2em; border-left: 3px solid var(--gold-soft); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.prose img { border-radius: 8px; }
.prose img[align="left"], .prose img.left { float: left; margin: .3em 1.1em .6em 0; max-width: 45%; }
.prose img[align="right"], .prose img.right { float: right; margin: .3em 0 .6em 1.1em; max-width: 45%; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; clear: both; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: .95em; }
.prose th, .prose td { border: 1px solid var(--line); padding: .45em .65em; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose center, .prose [align="center"] { text-align: center; }
.prose::after { content: ""; display: block; clear: both; }
.lead { font-size: 1.12em; color: var(--muted); }
.starter { columns: 2 22rem; column-gap: 2.5rem; padding-left: 1.2em; }
.starter li { break-inside: avoid; }

.prose .verse { line-height: 1.75; }
.prose .note { font-size: .9em; color: var(--muted); }
.prose ol { padding-left: 1.6em; }

.related { margin: 2.2rem 0 0; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); max-width: var(--measure); clear: both; }
.prose .related h2 { font-size: 1.3rem; margin: 0 0 .5rem; }
.related ul { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: .1rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); font-size: .95rem; line-height: 1.4; }
.related li { margin: 0; padding: .3rem 0; }
.related a { text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* ---------- toc, pager, share ---------- */

.toc { margin: 0 0 1.8rem; padding: .8rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); max-width: var(--measure); }
.toc summary { cursor: pointer; font: 600 1.25rem var(--display); }
.toc ol { margin: .6rem 0 .2rem; padding-left: 1.3rem; font-size: .95rem; }
.toc li { margin: .2rem 0; }
.toc .toc__h3 { margin-left: 1rem; list-style: circle; }

.pager { display: grid; gap: .75rem; margin-top: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: block; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; line-height: 1.35; background: var(--surface); }
.pager a:hover { border-color: var(--gold-soft); background: var(--surface-2); }
.pager span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .2rem; }
.pager__next { text-align: right; grid-column: -2; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.share ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.share a { display: block; padding: .25rem .75rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.share a:hover { border-color: var(--gold-soft); }

/* ---------- sidebar ---------- */

.sidebar { min-width: 0; }
@media (min-width: 64rem) {
  .sidebar { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow-y: auto; scrollbar-width: thin; }
}
.section-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; font-size: .93rem; line-height: 1.4; }
.section-nav__title { margin: 0 0 .6rem; font: 600 1.4rem/1.2 var(--display); }
.section-nav__title a { color: var(--ink); text-decoration: none; }
.section-nav details { border-top: 1px solid var(--line); }
.section-nav summary { cursor: pointer; padding: .55rem 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: .5rem; }
.section-nav summary::-webkit-details-marker { display: none; }
.section-nav summary::before { content: "›"; color: var(--gold); transition: transform .15s; flex: none; width: .8em; }
.section-nav details[open] > summary::before { transform: rotate(90deg); }
.section-nav summary .count { margin-left: auto; color: var(--muted); font-weight: 400; font-size: .8rem; }
.section-nav ul { list-style: none; margin: 0 0 .6rem; padding: 0 0 0 1.05rem; }
.section-nav li { margin: 0; }
.section-nav li a { display: block; padding: .28rem .5rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.section-nav li a:hover { background: var(--surface-2); color: var(--link-hover); }
.section-nav li a[aria-current] { background: var(--surface-2); color: var(--link); font-weight: 700; box-shadow: inset 2px 0 0 var(--gold); }

/* ---------- ads ---------- */

/* Nothing is reserved for an ad: a slot takes space only once AdSense fills it, so
   an empty or blocked slot leaves no gap. site.js hides slots that stay empty. */
.ad { text-align: center; clear: both; }
.ad.is-empty, .ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad:has(ins[data-ad-status="filled"]), .ad.is-filled { margin: 1.5rem 0; }
.ad.is-filled.is-empty { display: block; }
.ad:has(ins[data-ad-status="filled"])::before, .ad.is-filled::before { content: "Реклама"; display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.ad--side { margin-top: 1rem; }
@media (max-width: 63.99rem) { .ad--side { display: none; } }

/* ---------- home, cards, overviews ---------- */

.page-home .article { background: transparent; border: 0; box-shadow: none; padding: 0; }
.page-home .prose { max-width: none; }
.hero { text-align: center; padding: 1.5rem 1rem 2rem; }
.hero h1 { text-align: center; }
.hero h1::after { margin-inline: auto; }
.hero p { max-width: 42rem; margin-inline: auto; color: var(--muted); font-size: 1.1em; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); list-style: none; margin: 0 0 2rem; padding: 0; }
.cards a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.25rem 1.25rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .15s, border-color .15s; }
.cards a::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--gold-soft), var(--link)); opacity: .8; }
.cards a:hover { transform: translateY(-2px); border-color: var(--gold-soft); }
.cards h2 { font: 600 1.6rem/1.15 var(--display); margin: .2rem 0 .5rem; }
.cards p { margin: 0 0 .8rem; font-size: .93rem; color: var(--muted); line-height: 1.5; flex: 1; }
.card__more { font-size: .8rem; color: var(--gold); letter-spacing: .05em; text-transform: uppercase; }

.overviews { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); margin: 1.5rem 0; }
.overview h2 { font-size: 1.4rem !important; margin: 0 0 .4rem !important; }
.overview h2 a { color: var(--ink); text-decoration: none; }
.overview ul { list-style: none; padding: 0; margin: 0; font-size: .93rem; line-height: 1.45; }
.overview li { padding: .2rem 0; border-bottom: 1px dashed var(--line); }
.overview li a { text-decoration: none; }
.overview .more a { color: var(--muted); font-style: italic; }

.group-list { columns: 2 20rem; column-gap: 2rem; }
.group-list li { break-inside: avoid; }
.book { margin: 0 0 1.6rem; padding: 0 0 1.4rem; border-bottom: 1px solid var(--line); }
.book:last-child { border-bottom: 0; }
.prose .book h2 { margin-top: 0; font-size: 1.55rem; }
.book__author { display: block; font: 600 .85rem var(--serif); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: .2rem; }
.book__links { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 0 !important; }
.book__links a { display: inline-block; padding: .3rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; background: var(--surface); }
.book__links a:hover { border-color: var(--gold-soft); }
.sitemap { columns: 2 22rem; column-gap: 2.5rem; }
.sitemap-section { break-inside: avoid-column; margin-bottom: 1.5rem; }
.sitemap h2 { margin-top: 0 !important; }
.sitemap h3 { font-size: 1.15rem !important; margin: 1em 0 .3em !important; }
.sitemap ul { font-size: .93rem; line-height: 1.45; }

/* ---------- flash games ---------- */

.flash { margin: 1.5rem auto; }
.flash__stage { position: relative; width: 100%; background: #000; border-radius: 10px; overflow: hidden; }
.flash__stage > ruffle-player, .flash__stage > ruffle-object { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.flash__fallback { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #ccc; font-size: .9rem; }

.games { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0 !important; }
.games a { display: flex; gap: .8rem; align-items: center; height: 100%; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); }
.games a:hover { border-color: var(--gold-soft); }
.games img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.games strong { display: block; font: 600 1.2rem/1.2 var(--display); color: var(--link); }
.games span { font-size: .85rem; color: var(--muted); line-height: 1.4; }

/* ---------- lunar calendar ---------- */

.moon-icon { vertical-align: middle; flex: none; }
.moon-icon__dark { fill: #2f2742; stroke: rgb(168 116 36 / .45); stroke-width: .8; }
.moon-icon__lit { fill: #f3dfae; }
.moon-today { display: flex; gap: 1rem; align-items: center; margin: 0 0 1.75rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  background: radial-gradient(30rem 10rem at 0% 0%, rgb(216 176 106 / .25), transparent 70%), linear-gradient(135deg, var(--night), var(--night-2));
  color: var(--on-night); max-width: var(--measure); }
.moon-today p { margin: 0; }
.moon-today a { color: #f3dfae; }
.moon-today__date { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-muted); }
.moon-today__day { font: 600 1.6rem/1.2 var(--display); margin: .1rem 0 .2rem !important; }
.moon-today__phase { font-size: .92rem; color: var(--on-night-muted); }
.page-home .moon-today { margin-inline: auto; }

.moon-days, .moon-years, .moon-months { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0 !important; }
.moon-days li, .moon-years li, .moon-months li { margin: 0; }
.moon-days a, .moon-years a, .moon-months a { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; font-variant-numeric: tabular-nums; }
.moon-days a:hover, .moon-years a:hover, .moon-months a:hover { border-color: var(--gold-soft); background: var(--surface-2); }
.moon-years a[aria-current] { background: var(--gold-soft); color: var(--night); border-color: var(--gold-soft); }
.moon-years a { min-width: 3.6rem; }

.moon-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin: 0 0 1.25rem; }
.moon-nav a { text-decoration: none; }
.moon-pick { display: flex; align-items: center; gap: .4rem; }
.moon-pick label { font-size: .9rem; color: var(--muted); }
.moon-pick input { width: 5.5rem; font: inherit; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.moon-pick button { font: inherit; font-size: .9rem; padding: .35rem .8rem; border: 0; border-radius: 8px; background: var(--link); color: #fff; cursor: pointer; }

.moon-phases { display: grid; gap: .5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: 1.5rem 0; }
.moon-phases h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.3rem !important; margin: 0 0 .4rem !important; }
.moon-phases ul { list-style: none; padding: 0 !important; margin: 0; columns: 2; font-size: .92rem; }
.moon-legend { font-size: .88rem; color: var(--muted); }

.moon-table { overflow-x: auto; margin: 0 0 1.5rem; -webkit-overflow-scrolling: touch; }
.prose .moon-table table { display: table; margin: 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.moon-table th { font-family: var(--serif); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.moon-table td, .moon-table th { padding: .3rem .5rem; white-space: nowrap; }
@media (max-width: 30rem) { .moon-table td, .moon-table th { padding: .3rem .3rem; } .prose .moon-table table { font-size: .82rem; } }
.moon-table .c-date span { color: var(--muted); font-size: .85em; }
.moon-table .c-icon { width: 1px; }
.moon-table .c-day { text-align: center; font-weight: 700; }
.moon-table .c-note { white-space: normal; }
.moon-table tr.is-today td { background: rgb(216 176 106 / .22); }

/* ---------- footer ---------- */

.site-footer { background: var(--night); color: var(--on-night-muted); font-size: .9rem; padding: 2.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.site-footer a { color: var(--on-night); }
.site-footer__cols { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .site-footer__cols { grid-template-columns: 1.4fr 1.2fr .8fr; } }
.site-footer__brand { font: 600 1.4rem var(--display); color: var(--on-night); margin: 0 0 .5rem; }
.site-footer__note { font-size: .8rem; opacity: .8; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav ul { columns: 2; column-gap: 1.5rem; }
.site-footer li { padding: .15rem 0; }
.site-footer__ad { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .78rem; }
.site-footer__ad .ad_link, .site-footer__ad .ad_link a { color: var(--on-night-muted); }

@media print {
  .site-header, .site-footer, .sidebar, .ad, .share, .pager, .toc { display: none !important; }
  .article { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; color: #000; }
}
