:root {
  --bg: #050608;
  --bg-soft: rgba(9, 12, 18, 0.64);
  --surface: rgba(248, 251, 255, 0.08);
  --surface-strong: rgba(247, 250, 255, 0.12);
  --line: rgba(170, 192, 224, 0.15);
  --line-strong: rgba(116, 165, 255, 0.34);
  --text: #eef4ff;
  --muted: rgba(224, 233, 247, 0.74);
  --accent: #3a86ff;
  --accent-soft: rgba(58, 134, 255, 0.18);
  --mint: rgba(233, 243, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.iwl-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.iwl-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 10, 0.82) 0%, rgba(3, 6, 10, 0.68) 24%, rgba(3, 6, 10, 0.36) 45%, rgba(3, 6, 10, 0.18) 58%, rgba(3, 6, 10, 0.56) 100%),
    radial-gradient(circle at 24% 42%, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at 76% 68%, rgba(58, 134, 255, 0.12), transparent 18%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.section-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.bg-media {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--iwt-video-position-desktop, 72%) center;
  filter: grayscale(0.12) saturate(0.9) contrast(1.1);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  opacity: var(--iwt-overlay-opacity, 1);
  background:
    linear-gradient(90deg, rgba(4, 7, 11, 0.9) 0%, rgba(4, 7, 11, 0.82) 18%, rgba(4, 7, 11, 0.56) 40%, rgba(4, 7, 11, 0.24) 56%, rgba(4, 7, 11, 0.62) 100%),
    linear-gradient(180deg, rgba(4, 7, 11, 0.48), rgba(4, 7, 11, 0.58));
}

.ink-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.16), transparent 12%),
    radial-gradient(circle at 78% 78%, rgba(58, 134, 255, 0.18), transparent 10%),
    radial-gradient(circle at 18% 80%, rgba(255, 255, 255, 0.08), transparent 16%);
  mix-blend-mode: screen;
  opacity: var(--iwt-noise-opacity, 0.6);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: min(calc(100% - 2rem), calc(var(--max-width) + 12rem));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
}

.admin-bar .site-header {
  top: 48px;
}

.brand-mark,
.header-action {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 12, 18, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.header-action {
  gap: 4px;
  padding: 0;
  border-color: rgba(116, 165, 255, 0.2);
  cursor: pointer;
}

.header-action span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(241, 245, 255, 0.82);
  opacity: 0.72;
}

.top-nav {
  justify-self: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.48);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.top-nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav .is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.hero {
  padding: 9rem 0 3.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  position: relative;
}

.hero-avatar {
  width: 114px;
  height: 114px;
  margin-bottom: 1.4rem;
  padding: 10px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(58, 134, 255, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(11, 15, 23, 0.4));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 64px rgba(58, 134, 255, 0.18);
}

.hero-avatar__inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  color: #d6e7ff;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), rgba(16, 21, 31, 0.58)),
    linear-gradient(180deg, rgba(30, 40, 58, 0.72), rgba(8, 12, 18, 0.92));
}

.hero-kicker,
.eyebrow,
.hero-summary,
.hero-quote,
.hero-stats dd,
.story-card span,
.story-card p,
.message-list p,
.site-footer p,
.site-footer small,
.footer-columns a,
.mini-quote + time {
  color: var(--muted);
}

.hero-kicker,
.eyebrow {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero h1 {
  margin: 0.8rem 0 1rem;
  max-width: 660px;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.98;
  font-weight: 600;
  text-shadow: 0 16px 46px rgba(0, 0, 0, 0.32);
}

.hero-name {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-accent {
  position: relative;
  display: inline-block;
  margin-left: 0.18em;
}

.hero-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.12em;
  height: 0.32em;
  background: rgba(58, 134, 255, 0.22);
  z-index: -1;
  border-radius: 999px;
}

.hero-summary {
  margin: 0;
  max-width: 520px;
  font-family: "Noto Serif SC", serif;
  font-size: 0.98rem;
  line-height: 1.9;
  opacity: 0.9;
}

.hero-quote {
  margin-top: 3rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.28);
  font-family: "Noto Serif SC", serif;
  font-style: italic;
  backdrop-filter: blur(14px);
  max-width: 560px;
}

.hero-stats {
  margin: 1.25rem 0 0;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  opacity: 0.84;
}

.hero-stats div {
  display: grid;
  gap: 0.35rem;
}

.hero-stats dt {
  font-size: 1.2rem;
  font-weight: 700;
}

.hero-stats dd {
  margin: 0;
  font-size: 0.9rem;
}

.social-strip {
  margin-top: 3.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-start;
  opacity: 0.92;
}

.social-strip a {
  padding: 0.9rem 1.1rem;
  min-width: 88px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.social-strip a:hover,
.social-strip a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(58, 134, 255, 0.42);
  background: rgba(20, 27, 40, 0.72);
}

.content-grid,
.closing {
  padding: 2.5rem 0 1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.9fr);
  gap: 1.4rem;
  margin-top: -3.5rem;
}

.content-grid--solo {
  grid-template-columns: 1fr;
}

.subpage-main {
  padding: 7.5rem 0 3rem;
}

.subpage-hero {
  padding: 2rem 0 1.5rem;
}

.subpage-hero h1 {
  margin: 0.45rem 0 0.9rem;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.03;
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
}

.subpage-summary {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-family: "Noto Serif SC", serif;
  line-height: 1.9;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 1.4rem;
  padding: 1rem 0 2rem;
}

.single-hero {
  padding-bottom: 1rem;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
  gap: 1.4rem;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.single-meta a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.single-meta a:hover,
.single-meta a:focus-visible {
  color: #ffffff;
  border-color: rgba(173, 200, 242, 0.55);
}

.single-article {
  padding: 2rem;
}

.page-article {
  padding: 2rem;
}

.page-entry {
  min-width: 0;
}

.page-content > *:first-child {
  margin-top: 0;
}

.single-content {
  color: var(--text);
}

.single-content > *:first-child {
  margin-top: 0;
}

.single-content h2,
.single-content h3,
.single-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
}

.single-content p,
.single-content li {
  color: rgba(238, 244, 255, 0.9);
  line-height: 1.95;
}

.single-content ul,
.single-content ol {
  padding-left: 1.4rem;
}

.single-content blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-left: 2px solid rgba(116, 165, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 18px 18px 0;
  color: var(--muted);
}

.single-content pre {
  overflow: auto;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(7, 11, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.single-content code {
  font-family: Consolas, Monaco, monospace;
}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.single-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.single-content th,
.single-content td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.single-content th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.single-sidebar {
  align-content: start;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.9rem;
}

.post-nav-grid {
  padding: 1.4rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.related-section {
  padding: 1rem 0 3rem;
}

.related-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-body-copy {
  margin-top: 0.35rem;
}

.page-body-copy > *:first-child {
  margin-top: 0;
}

.page-body-copy > *:last-child {
  margin-bottom: 0;
}

.page-body-copy p,
.page-body-copy li,
.time-item p {
  color: var(--muted);
  line-height: 1.9;
}

.timeline-panel {
  margin-top: 1rem;
}

.time-list {
  display: grid;
  gap: 1.05rem;
}

.time-item {
  padding: 1.2rem 1.2rem 1.2rem 1.4rem;
  border-left: 1px solid rgba(116, 165, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 20px 20px 0;
}

.time-item__label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(173, 200, 242, 0.88);
}

.time-item h3 {
  margin: 0 0 0.4rem;
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
}

.side-stack {
  display: grid;
  gap: 1.4rem;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 45%);
  pointer-events: none;
}

.panel-heading {
  margin-bottom: 1.2rem;
}

.panel-heading h2,
.panel-heading--center h2,
.closing-copy h2,
.site-footer h2,
.season-card h3 {
  margin: 0.28rem 0 0;
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
}

.panel-heading h2,
.closing-copy h2 {
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}

.story-list,
.message-list,
.footer-columns {
  display: grid;
}

.story-list {
  gap: 0.85rem;
}

.story-card {
  display: block;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.story-card__visual {
  position: relative;
  overflow: hidden;
  min-height: 164px;
  margin-bottom: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(58, 134, 255, 0.12)),
    linear-gradient(180deg, rgba(10, 14, 22, 0.92), rgba(6, 8, 14, 0.96));
}

.story-card__visual img {
  display: block;
  width: 100%;
  height: 164px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.06);
}

.story-card__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", serif;
  font-size: 2.8rem;
  color: rgba(236, 243, 255, 0.88);
  letter-spacing: 0.08em;
}

.story-card__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 11, 0.06), rgba(4, 7, 11, 0.54)),
    linear-gradient(135deg, transparent 48%, rgba(58, 134, 255, 0.18) 100%);
}

.story-card__body {
  position: relative;
  z-index: 1;
}

.story-card__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.story-card strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.story-card p,
.story-card span {
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
}

.story-card--featured {
  padding: 1.45rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(58, 134, 255, 0.12));
}

.story-card--featured .story-card__visual {
  min-height: 220px;
}

.story-card--featured .story-card__visual img {
  height: 220px;
}

.story-card--featured strong {
  font-size: 1.22rem;
}

.story-card.is-sticky {
  border-color: rgba(116, 165, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(58, 134, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.story-card--empty {
  cursor: default;
}

.story-meta {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.story-meta-chip,
.story-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.story-meta-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.story-badge {
  border: 1px solid rgba(116, 165, 255, 0.34);
  background: rgba(58, 134, 255, 0.16);
  color: var(--text);
}

.story-card:hover,
.story-card:focus-visible,
.action-card:hover,
.action-card:focus-visible,
.season-card:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 134, 255, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.mini-quote {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 1rem;
  line-height: 1.9;
}

.mini-quote + time {
  display: inline-block;
  margin-top: 1rem;
}

.message-list {
  gap: 0.85rem;
}

.message-list p {
  margin: 0;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  line-height: 1.75;
}

.empty-panel {
  cursor: default;
}

.message-list small {
  color: var(--muted);
}

.archive-meta-grid {
  display: grid;
  gap: 0.85rem;
}

.stat-chip {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.stat-chip strong {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(173, 200, 242, 0.88);
}

.stat-chip span {
  color: var(--muted);
  line-height: 1.7;
}

.search-form-shell {
  margin-top: 0.25rem;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.search-form label {
  display: block;
}

.search-field {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.42);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.search-field::placeholder {
  color: rgba(224, 233, 247, 0.52);
}

.search-field:focus {
  border-color: rgba(58, 134, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.12);
  background: rgba(12, 17, 25, 0.68);
}

.search-submit {
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(116, 165, 255, 0.28);
  border-radius: 999px;
  background: rgba(58, 134, 255, 0.16);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.search-submit:hover,
.search-submit:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(116, 165, 255, 0.44);
  background: rgba(58, 134, 255, 0.24);
}

.pagination-shell {
  margin-top: 1.25rem;
}

.pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pagination-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.pagination-links a.page-numbers:hover,
.pagination-links a.page-numbers:focus-visible,
.pagination-links .page-numbers.current {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(58, 134, 255, 0.34);
  background: rgba(58, 134, 255, 0.18);
}

.timeline {
  padding: 3rem 0 1rem;
}

.panel-heading--center {
  text-align: center;
}

.season-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.season-card {
  padding: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(248, 251, 255, 0.05)),
    var(--mint);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.season-card span {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-family: "Noto Serif SC", serif;
}

.season-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.closing {
  display: grid;
  gap: 1.4rem;
  padding-bottom: 3rem;
}

.closing-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.error-shell {
  text-align: center;
}

.error-code {
  margin: 0.65rem 0 0.2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(5rem, 16vw, 8rem);
  line-height: 0.9;
  color: rgba(238, 244, 255, 0.92);
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.error-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.action-card strong {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 1.06rem;
}

.action-card span {
  color: var(--muted);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  color: var(--muted);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  padding: 1rem 0 3rem;
}

.sitemap-wide {
  grid-column: 1 / -1;
}

.sitemap-list,
.year-archive-list,
.year-archive-items {
  display: grid;
  gap: 0.85rem;
}

.sitemap-link,
.year-archive-item {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sitemap-link strong,
.year-archive-item strong {
  font-size: 1rem;
}

.sitemap-link span,
.year-archive-item span {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9rem;
}

.sitemap-link:hover,
.sitemap-link:focus-visible,
.year-archive-item:hover,
.year-archive-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(58, 134, 255, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.year-archive-block + .year-archive-block {
  margin-top: 1rem;
}

.year-archive-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.year-archive-head h3 {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 2rem;
  font-weight: 600;
}

.year-archive-head span {
  color: var(--muted);
}

.year-archive-item {
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
}

.year-archive-item__main,
.year-archive-item__side {
  display: grid;
  gap: 0.3rem;
}

.year-archive-item__side {
  justify-items: end;
  text-align: right;
}

.site-footer {
  margin-bottom: 2.5rem;
  padding: 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.1), rgba(239, 245, 255, 0.06)),
    rgba(7, 11, 18, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.site-footer h2 {
  font-size: 2rem;
}

.site-footer p {
  margin: 0.5rem 0 1rem;
  font-style: italic;
}

.site-footer small {
  line-height: 1.8;
}

.footer-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-columns h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
}

.footer-columns a {
  padding: 0.3rem 0;
}

.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -8vh;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(84, 157, 255, 0.92), rgba(84, 157, 255, 0.18));
  box-shadow: 0 0 16px rgba(58, 134, 255, 0.44);
  opacity: 0.22;
  animation-name: drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.petal:nth-child(3n) {
  width: 3px;
  height: 3px;
  opacity: 0.16;
}

.petal:nth-child(4n) {
  background:
    radial-gradient(circle, rgba(235, 243, 255, 0.9), rgba(235, 243, 255, 0.14));
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(var(--drift-x), 112vh, 0) rotate(360deg);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 56px 1fr 56px;
  }

  .content-grid,
  .detail-grid,
  .single-layout,
  .related-list,
  .site-footer,
  .closing-actions,
  .season-grid,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 7.5rem;
    align-items: center;
    text-align: center;
  }

  .content-grid {
    margin-top: -1rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 4.4rem);
  }

  .site-footer {
    padding: 2rem 1.4rem;
  }

  .social-strip,
  .hero-stats {
    justify-content: center;
  }

  .subpage-hero {
    text-align: center;
  }

  .subpage-summary {
    margin-inline: auto;
  }

  .post-nav-grid {
    grid-template-columns: 1fr;
  }

  .year-archive-item {
    grid-template-columns: 1fr;
  }

  .year-archive-item__side {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(calc(100% - 1rem), var(--max-width));
    gap: 0.4rem;
    grid-template-columns: 44px 1fr 44px;
  }

  .top-nav {
    flex-wrap: nowrap;
    padding: 0.3rem;
    gap: 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .hero-summary {
    font-size: 0.94rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 14vw, 3.6rem);
    line-height: 1.02;
  }

  .bg-video {
    object-position: var(--iwt-video-position-mobile, 76%) center;
  }

  .hero-quote {
    padding-inline: 1rem;
    border-radius: 24px;
  }

  .hero-summary,
  .hero-quote {
    max-width: none;
  }

  .hero-stats {
    gap: 0.9rem;
  }

  .social-strip {
    margin-top: 4.5rem;
  }

  .panel,
  .season-card,
  .action-card {
    border-radius: 22px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-submit {
    width: 100%;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 62px;
  }
}
