:root {
  color-scheme: dark;
  --page: #10152d;
  --ink: #f9f6ff;
  --body: #e4e6f4;
  --muted: #cbcce8;
  --accent: #eadbff;
  --line: rgb(232 228 255 / 19%);
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  position: relative;
  margin: 0;
  min-inline-size: 0;
  min-block-size: 100vh;
  isolation: isolate;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
}

.ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 92% min(18%, 18rem), #5b356f 0%, transparent 52%),
    radial-gradient(ellipse at 9% 3%, #243e82 0%, transparent 55%),
    radial-gradient(ellipse at 68% 108%, #20426a 0%, transparent 59%),
    linear-gradient(145deg, #161832, #14172e 53%, #14263f);
}

.ambient::before {
  content: '';
  position: absolute;
  inset: -31% -30% auto 38%;
  height: 78vh;
  rotate: -27deg;
  border-radius: 50%;
  background: linear-gradient(160deg, transparent 34%, rgb(187 151 245 / 21%) 60%, transparent 71%);
  filter: blur(38px);
}

.ambient::after {
  content: '';
  position: absolute;
  width: 71rem;
  height: 43rem;
  top: -19rem;
  left: 28%;
  rotate: -26deg;
  border: 1px solid rgb(242 209 255 / 12%);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgb(239 207 255 / 3%), 0 0 0 75px rgb(239 207 255 / 2%);
}

.masthead, .layout, footer {
  width: min(64rem, calc(100% - 3rem));
  margin-inline: auto;
}

.masthead {
  position: relative;
  z-index: 5;
  min-height: 6.125rem;
  display: flex;
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 2.15rem;
  height: 2.15rem;
  flex: none;
}

.brand {
  font: 500 1.8rem/.9 var(--serif);
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand > span { color: #cbb1fa; }
.site-nav { margin-inline-start: auto; }
.nav-menu { position: relative; }
.nav-menu > summary { display: none; }
.nav-links { display: flex; align-items: center; gap: .55rem; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem .95rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: rgb(220 224 255 / 9%);
  font-size: .9rem;
  text-decoration: none;
}
.nav-links a[hidden] { display: none; }
.nav-links a:hover, .nav-links a[aria-current='page'] {
  background: rgb(220 224 255 / 17%);
  border-color: rgb(232 220 255 / 45%);
}

.layout { display: grid; gap: 1.25rem; }
.verse[hidden] { display: none; }

.glass {
  border: 1px solid var(--line);
  border-top-color: rgb(241 229 255 / 33%);
  border-radius: 1.65rem;
  background: linear-gradient(140deg, rgb(220 224 255 / 15%), rgb(176 181 224 / 7%) 55%, rgb(209 187 241 / 10%));
  box-shadow: 0 18px 54px rgb(4 7 26 / 25%), inset 0 1px rgb(255 255 255 / 7%);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.verse {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-block-size: 23rem;
  padding: clamp(2.35rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.verse-light {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 102%, rgb(128 152 231 / 21%), transparent 59%);
}

.verse-light::before, .verse-light::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgb(220 207 255 / 13%);
  width: 37rem;
  height: 15rem;
  transform: rotate(-28deg);
}
.verse-light::before { top: -8.5rem; right: -14rem; box-shadow: 0 0 0 20px rgb(228 200 255 / 3%); }
.verse-light::after { bottom: -8rem; left: -20rem; box-shadow: 0 0 0 18px rgb(208 217 255 / 3%); }

.eyebrow {
  color: var(--accent);
  font-size: .87rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.verse h1 {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1.45rem;
}
.verse h1 span { width: 1.15rem; height: 1px; background: rgb(234 219 255 / 43%); }
.verse h1 b { font-weight: inherit; }
.reading-date { margin: 0 0 .65rem; color: var(--muted); font-size: .875rem; }
.verse figure, .verse blockquote, .verse blockquote p { margin: 0; }
.verse figure { width: 100%; min-inline-size: 0; }
.verse blockquote {
  font: 500 clamp(2.05rem, 6vw, 5.05rem)/1.04 var(--serif);
  letter-spacing: -.055em;
  text-wrap: balance;
}
.verse em { color: #e6d5ff; font-weight: 400; }
.verse figcaption { margin-top: 1.55rem; }

.translation-control {
  position: relative;
  width: min(100%, 20.5rem);
  margin: 0 auto;
}

.translation-control::after {
  content: '';
  position: absolute;
  inset-inline-end: 1rem;
  top: 50%;
  width: .48rem;
  height: .48rem;
  border: solid var(--accent);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.translation-control select {
  appearance: none;
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem 2.25rem .55rem .8rem;
  border: 1px solid rgb(232 220 255 / 36%);
  border-radius: .7rem;
  background: linear-gradient(145deg, rgb(244 233 255 / 15%), rgb(200 205 255 / 8%));
  color: var(--ink);
  font: 500 .94rem/1.25 var(--sans);
  cursor: pointer;
}

.translation-control select:hover { border-color: rgb(232 220 255 / 68%); }
.translation-control select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.translation-control option { background: #282b48; color: var(--ink); }

.context { padding: clamp(1.3rem, 4.3vw, 2.9rem); }
.context-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: 1.45rem;
}
.context h2 {
  margin: 0;
  font: 500 clamp(1.85rem, 4vw, 3.1rem)/1.08 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.share-tools {
  position: relative;
  display: flex;
  flex: none;
  gap: .35rem;
}
.share-tools[hidden] { display: none; }
.share-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: rgb(220 224 255 / 9%);
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.share-button::-webkit-details-marker { display: none; }
.share-button::marker { content: ''; }
.share-button:hover, .share-menu[open] .share-button { background: rgb(220 224 255 / 18%); }
.share-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.share-tools svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  fill: none;
  stroke: #fff;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share-options, .share-status:not(:empty), .share-manual:not([hidden]) {
  position: absolute;
  z-index: 1;
  inset-block-start: calc(100% + .5rem);
  inset-inline-end: 0;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #252945;
  box-shadow: 0 .75rem 1.6rem rgb(4 7 26 / 28%);
}
.share-options {
  width: min(14rem, calc(100vw - 3.25rem));
  margin: 0;
  padding: .35rem;
  list-style: none;
}
.share-options a {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  padding: .4rem .6rem;
  border-radius: .45rem;
  font-size: .875rem;
  text-decoration: none;
}
.share-options a:hover { background: rgb(220 224 255 / 12%); }
.share-status:not(:empty) {
  padding: .5rem .7rem;
  font-size: .85rem;
  white-space: nowrap;
}
.share-manual:not([hidden]) {
  display: grid;
  gap: .4rem;
  width: min(16rem, calc(100vw - 3.25rem));
  padding: .7rem;
  font-size: .875rem;
}
.share-manual input {
  min-width: 0;
  padding: .4rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: #181b31;
  color: var(--ink);
  font: inherit;
}

.study {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 4vw, 2.65rem);
  color: var(--body);
  line-height: 1.7;
}
.study p { margin: 0; }
.study p + p { margin-top: .85rem; }
.study h3 { margin: 0 0 .65rem; color: var(--accent); font-size: .96rem; line-height: 1.4; }
.study > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(1rem, 3vw, 2.25rem); }

.sources {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .55rem 1.12rem;
  border-top: 1px solid var(--line);
  margin-top: 1.55rem;
  padding-top: 1.1rem;
}
.sources .eyebrow { font-size: .75rem; }
.sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
}
a { color: inherit; text-decoration-color: rgb(221 199 255 / 52%); text-underline-offset: .23em; }
a:hover { color: white; text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

footer {
  color: var(--muted);
  padding: 1.65rem 0 2rem;
  text-align: center;
  font-size: .83rem;
}

.site-copyright { margin: 0; }

.translation-credit {
  max-width: 43rem;
  margin: .65rem auto 0;
  border-top: 1px solid var(--line);
  padding-top: .6rem;
  font-size: .468rem;
  line-height: 1.55;
}

.translation-credit a { white-space: nowrap; }

.archive, .reading-notice { padding: clamp(1.3rem, 4.3vw, 2.9rem); }
.archive-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .85rem 1rem;
  margin-bottom: 1.4rem;
}
.archive h1, .reading-notice h1 {
  margin: 0;
  font: 500 clamp(2rem, 4vw, 3.1rem)/1.08 var(--serif);
  letter-spacing: -.045em;
}
.archive-year { border-top: 1px solid var(--line); padding-block: 1.1rem; }
.archive-year h2 { margin: 0 0 .95rem; font: 500 1.8rem/1 var(--serif); }
.archive-year h3 { margin: 1rem 0 .5rem; font-size: .9rem; color: var(--accent); }
.archive-year h3::first-letter { text-transform: uppercase; }
.archive-list { margin: 0; padding: 0; list-style: none; }
.archive-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  padding: .45rem .65rem;
  border-radius: .55rem;
}
.archive-list a:hover { background: rgb(220 224 255 / 10%); }
.archive-list time { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 43rem) {
  .masthead, .layout, footer { width: calc(100% - 1.75rem); }
  .masthead { min-height: 4.6rem; }
  .brand-lockup { gap: .55rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .nav-menu > summary {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: .7rem;
    background: rgb(220 224 255 / 9%);
    cursor: pointer;
    list-style: none;
  }
  .nav-menu > summary::-webkit-details-marker { display: none; }
  .nav-menu > summary svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .nav-menu[open] > summary { background: rgb(220 224 255 / 17%); }
  .nav-links { display: none; position: absolute; top: calc(100% + .5rem); inset-inline-end: 0; min-width: 10rem; padding: .45rem; flex-direction: column; align-items: stretch; gap: .25rem; border: 1px solid var(--line); border-radius: .85rem; background: rgb(23 27 54 / 96%); box-shadow: 0 14px 35px rgb(4 7 26 / 35%); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .nav-menu[open] .nav-links { display: flex; }
  .nav-links a { min-height: 2.75rem; }
  .layout { gap: .9rem; }
  .glass { border-radius: 1.25rem; }
  .verse { min-block-size: 17rem; }
  .study { grid-template-columns: 1fr; }
  .study > div + div { border-inline-start: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
}

@media (max-width: 22rem) {
  .translation-control select { font-size: .82rem; padding-inline: .6rem 1.65rem; }
  .translation-control::after { inset-inline-end: .68rem; }
}
