/* Rotunda (rotunda.site): Washington seen from under the dome. Night ink, floodlight gold.
   Two shapes only: the oculus (a perfect circle with a double ring) and the coffer (a square card
   carved into the ceiling: inset hairline 6px inside the edge + inner shadow). No drop shadows.
   Loaded only on this title's pages. Every class and keyframe is prefixed rotunda-. */

#site-root[data-site="rotunda"] .font-head { font-synthesis: none; }
#site-root[data-site="rotunda"] ::selection { background: rgba(230, 194, 122, .32); color: #fff; }

/* ---------- the oculus: gold 1px ring + outer ring at 30%, 6px apart ---------- */
.rotunda-ring {
  border-radius: 9999px;
  border: 1px solid var(--accent);
  outline: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 6px;
}
.rotunda-ring-sm { border-radius: 9999px; border: 1px solid var(--accent); outline: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: 3px; }
.rotunda-oculus { position: relative; border-radius: 9999px; overflow: hidden; background: var(--surface); }
.rotunda-oculus > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.group:hover .rotunda-oculus > img { transform: scale(1.045); }
/* faint radial coffer ticks around the hero oculus */
.rotunda-ticks { position: absolute; inset: -9%; pointer-events: none; color: var(--accent); }

/* ---------- the coffer: square, recessed, inset hairline 6px inside ---------- */
.rotunda-coffer { position: relative; border-radius: 0; background: var(--surface); box-shadow: inset 0 2px 12px rgba(0, 0, 0, .5); }
.rotunda-coffer::after {
  content: ''; position: absolute; inset: 6px; pointer-events: none; z-index: 2;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
}
.rotunda-cofferpic { position: relative; overflow: hidden; background: var(--surface); }
.rotunda-cofferpic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.rotunda-cofferpic::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 2px 14px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(0, 0, 0, .35); }
.rotunda-cofferpic::after {
  content: ''; position: absolute; inset: 6px; z-index: 2; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
}
.group:hover .rotunda-cofferpic > img { transform: scale(1.04); }

/* ---------- dividers: a hairline with a 14px semicircular dome bump in the centre ---------- */
.rotunda-dome { --rotunda-under: var(--bg); position: relative; height: 15px; }
.rotunda-dome::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); }
.rotunda-dome::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 28px; height: 14px; margin-left: -14px;
  border: 1px solid var(--accent); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--rotunda-under);
}
.rotunda-dome-surface { --rotunda-under: var(--surface); }
/* vertical hairlines between frieze panels */
.rotunda-frieze > li + li { border-left: 1px solid var(--line); }

/* ---------- kickers, bullets, rules ---------- */
.rotunda-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; border-radius: 9999px; border: 1px solid var(--accent); }
.rotunda-bullet { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 9999px; border: 1px solid var(--accent); transition: background-color .2s; }
.group:hover .rotunda-bullet, [aria-current="page"] .rotunda-bullet, .rotunda-bullet[data-on="1"] { background: var(--accent); }

/* ---------- links: gold 1px at 5px offset, doubling into two hairlines on hover ---------- */
.rotunda-a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s; }
.rotunda-a:hover, .rotunda-a:focus-visible { text-decoration-style: double; text-decoration-thickness: 3px; color: var(--accent); }
.rotunda-h { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color .25s; }
.group:hover .rotunda-h, .group:focus-visible .rotunda-h { text-decoration-color: var(--accent); text-decoration-style: double; text-decoration-thickness: 3px; }

/* ---------- buttons: sharp rectangles with a carved inner hairline inset 3px ---------- */
.rotunda-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.5rem; border-radius: 0;
  font-family: var(--font-head), serif; font-weight: 400; text-transform: uppercase; letter-spacing: .2em; font-size: 13px;
  background: var(--accent); color: var(--on-accent); transition: background-color .2s, color .2s;
}
.rotunda-btn::after { content: ''; position: absolute; inset: 3px; border: 1px solid color-mix(in srgb, var(--on-accent) 45%, transparent); pointer-events: none; }
.rotunda-btn:hover { background: #f0d396; }
.rotunda-btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.rotunda-btn-ghost::after { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.rotunda-btn-ghost:hover { background: var(--surface); color: var(--accent); }

/* ---------- captions: Vollkorn italic, looking up ---------- */
.rotunda-cap { font-style: italic; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---------- nav: hollow rings between items, a gold ring above the current one ---------- */
.rotunda-nav a { position: relative; }
.rotunda-nav a[aria-current="page"] { color: var(--accent); }
.rotunda-nav a:not(:last-child)::after {
  content: ''; position: absolute; top: 50%; right: calc(-1.3rem - 3px); width: 6px; height: 6px; margin-top: -1px;
  border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent); pointer-events: none;
}
.rotunda-nav a[aria-current="page"]::before {
  content: ''; position: absolute; left: 50%; top: 2px; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 9999px; border: 1px solid var(--accent);
}

/* ---------- the menu sheet: a large faint oculus behind the sections ---------- */
.rotunda-sheet { background: radial-gradient(120% 70% at 50% 0%, #1b1f2b 0%, var(--bg) 62%); }
.rotunda-sheet-oculus { position: absolute; left: 50%; top: 92px; width: 150vw; max-width: 720px; aspect-ratio: 1; transform: translateX(-50%); opacity: .09; pointer-events: none; }

/* ---------- the live lantern ---------- */
@keyframes rotunda-glow {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 2.5px rgba(246, 222, 160, .95)); }
  50% { opacity: .5; filter: drop-shadow(0 0 0 rgba(246, 222, 160, 0)); }
}
.rotunda-lantern { animation: rotunda-glow 2.4s ease-in-out infinite; }
.rotunda-lamp { display: inline-block; width: 7px; height: 7px; border-radius: 9999px; border: 1px solid var(--accent); }
.rotunda-lamp[data-lit="1"] { background: var(--accent); box-shadow: 0 0 0 3px rgba(230, 194, 122, .18), 0 0 10px 1px rgba(246, 222, 160, .7); animation: rotunda-lamp 2.4s ease-in-out infinite; }
@keyframes rotunda-lamp { 50% { box-shadow: 0 0 0 3px rgba(230, 194, 122, .06), 0 0 4px 0 rgba(246, 222, 160, .3); } }

/* ---------- reading ring around the header dome glyph ---------- */
.rotunda-progress { transition: stroke-dashoffset .12s linear; }

/* ---------- scroll bands: left gutter + right edge fade ---------- */
.rotunda-fade { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent); }
@media (min-width: 1024px) { .rotunda-fade-off { -webkit-mask-image: none; mask-image: none; } }

/* ---------- article prose: 19px/1.7 Vollkorn, a 640px column ---------- */
.rotunda-prose { font-size: 18px; line-height: 1.7; color: #ece6d8; }
@media (min-width: 768px) { .rotunda-prose { font-size: 19px; } }
.rotunda-prose > * + * { margin-top: 1.15em; }
.rotunda-prose h2 {
  font-family: var(--font-head), serif; font-weight: 400; font-size: 1.5rem; line-height: 1.25; letter-spacing: .01em;
  margin-top: 2.2em; text-align: center; color: var(--fg); scroll-margin-top: 6rem;
}
.rotunda-prose h2::before {
  content: ''; display: block; width: 28px; height: 14px; margin: 0 auto .8em;
  border: 1px solid var(--accent); border-bottom: 0; border-radius: 14px 14px 0 0;
  box-shadow: 0 1px 0 0 var(--accent);
}
.rotunda-prose h3 { font-family: var(--font-head), serif; font-size: 1.2rem; margin-top: 1.8em; }
.rotunda-prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.rotunda-prose a:hover { text-decoration-style: double; text-decoration-thickness: 3px; color: var(--accent); }
.rotunda-prose strong { font-weight: 700; color: var(--fg); }
.rotunda-prose em { font-style: italic; }
.rotunda-prose ul { list-style: none; padding-left: 1.4em; }
.rotunda-prose ul > li { position: relative; }
.rotunda-prose ul > li::before {
  content: ''; position: absolute; left: -1.25em; top: .68em; width: 7px; height: 7px; border-radius: 9999px; border: 1px solid var(--accent);
}
.rotunda-prose ol { list-style: upper-roman; padding-left: 2.2em; }
.rotunda-prose ol > li::marker { font-family: var(--font-head), serif; color: var(--accent); font-size: .85em; }
.rotunda-prose li + li { margin-top: .45em; }
.rotunda-prose blockquote {
  position: relative; margin: 2em auto; max-width: 34rem; padding: 2.1em 1em 0; text-align: center;
  font-style: italic; font-size: 1.16em; line-height: 1.5; color: var(--fg);
}
.rotunda-prose blockquote::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 22px; height: 22px; margin-left: -11px; border-radius: 9999px;
  box-shadow: inset 5px -1px 0 0 var(--accent);
}
.rotunda-prose hr { border: 0; height: 15px; position: relative; }
.rotunda-prose hr::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); }

/* the 5-line drop cap inside a gold double ring */
.rotunda-drop {
  float: left; display: grid; place-items: center;
  width: 6.1em; height: 6.1em; margin: .45em 1.05rem .35em 7px;
  font-family: var(--font-head), serif; font-weight: 400; font-size: 1em; line-height: 1; color: var(--accent);
  border-radius: 9999px; border: 1px solid var(--accent);
  outline: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: 6px;
  background: radial-gradient(circle at 50% 35%, #1f2330 0%, #151821 70%);
}
.rotunda-drop > span { font-size: 3.6em; transform: translateY(.03em); }
@media (min-width: 768px) {
  .rotunda-drop { width: 7.7em; height: 7.7em; margin: .45em 1.6rem .3em 7px; }
  .rotunda-drop > span { font-size: 4.8em; }
}

/* ---------- shared widgets set in the rotunda idiom (scoped) ---------- */
#site-root[data-site="rotunda"] .rotunda-comments h2 { font-weight: 400; letter-spacing: .02em; }
#site-root[data-site="rotunda"] .rotunda-comments form { border-radius: 0; box-shadow: inset 0 2px 12px rgba(0, 0, 0, .45); }
#site-root[data-site="rotunda"] .rotunda-comments input,
#site-root[data-site="rotunda"] .rotunda-comments textarea,
#site-root[data-site="rotunda"] .rotunda-form input { border-radius: 0; }
#site-root[data-site="rotunda"] .rotunda-comments button,
#site-root[data-site="rotunda"] .rotunda-form button {
  border-radius: 0; font-family: var(--font-head), serif; font-weight: 400; text-transform: uppercase; letter-spacing: .2em; font-size: 13px;
  box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4px color-mix(in srgb, var(--on-accent) 45%, transparent);
}
#site-root[data-site="rotunda"] .rotunda-comments li > span:first-child { border-radius: 9999px; }
#site-root[data-site="rotunda"] .rotunda-form > div { border-radius: 0; }
#site-root[data-site="rotunda"] .rotunda-share a,
#site-root[data-site="rotunda"] .rotunda-share button { width: 44px; height: 44px; border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .rotunda-lantern, .rotunda-lamp[data-lit="1"] { animation: none; }
  .rotunda-oculus > img, .rotunda-cofferpic > img, .rotunda-progress { transition: none; }
  .group:hover .rotunda-oculus > img, .group:hover .rotunda-cofferpic > img { transform: none; }
}

/* A story without a photograph: the band over the headline shows the dome's coffered vault from below, its ribs and
   rings centred on the oculus that rises over the band's lower edge (never an empty box). */
.rotunda-vault {
  background:
    repeating-conic-gradient(from 0deg at 50% 100%, color-mix(in srgb, var(--accent) 22%, transparent) 0 .16deg, transparent .16deg 11.25deg),
    repeating-radial-gradient(circle at 50% 100%, transparent 0 38px, color-mix(in srgb, var(--accent) 20%, transparent) 38px 39px),
    radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 70%);
}

/* A photo-less story in a ring or a coffer (lists, the frieze, the ceiling): the vault from below, its ribs and rings
   round a small dark oculus that holds the dome glyph. Never a letter plate, never an empty box. */
.rotunda-seal {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent);
  background:
    radial-gradient(circle at 50% 50%, var(--surface) 0 19%, color-mix(in srgb, var(--accent) 55%, transparent) 19% calc(19% + 1px), transparent calc(19% + 1.5px)),
    repeating-conic-gradient(from 0deg at 50% 50%, color-mix(in srgb, var(--accent) 26%, transparent) 0 .6deg, transparent .6deg 22.5deg),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 11%, color-mix(in srgb, var(--accent) 20%, transparent) 11% calc(11% + 1px)),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 13%, var(--surface)), var(--surface) 72%);
}
.rotunda-seal > svg { position: relative; z-index: 2; width: clamp(14px, 22%, 60px); height: auto; }
