:root {
  color-scheme: dark;
  --paper: rgba(14, 14, 15, 0.92);
  --paper-soft: rgba(19, 19, 20, 0.84);
  --line: rgba(255, 255, 255, 0.08);
  --text: rgba(241, 235, 228, 0.3);
  --text-strong: rgba(241, 235, 228, 0.46);
  --muted: rgba(241, 235, 228, 0.18);
  --accent: rgba(190, 103, 71, 0.42);
  --accent-soft: rgba(190, 103, 71, 0.1);
  --sage: rgba(151, 166, 146, 0.4);
  --clarity: 0.34;
  --glow-opacity: 0;
  --shadow: rgba(0, 0, 0, 0.52);
  --room-gradient:
    radial-gradient(circle at 50% -10%, rgba(255, 216, 156, 0.02), transparent 24%),
    linear-gradient(180deg, #020202 0%, #050505 58%, #000000 100%);
}

body[data-theme="lit"] {
  --paper: rgba(255, 250, 244, 0.96);
  --paper-soft: rgba(255, 246, 238, 0.94);
  --line: rgba(170, 137, 150, 0.18);
  --text: rgba(92, 67, 79, 0.92);
  --text-strong: rgba(58, 42, 51, 0.98);
  --muted: rgba(121, 96, 108, 0.72);
  --accent: #bc6c63;
  --accent-soft: rgba(188, 108, 99, 0.1);
  --sage: #9aa7a0;
  --clarity: 1;
  --glow-opacity: 1;
  --shadow: rgba(128, 96, 116, 0.12);
  --room-gradient:
    radial-gradient(circle at 50% -6%, rgba(255, 218, 205, 0.3), transparent 22%),
    radial-gradient(circle at 16% 22%, rgba(232, 214, 233, 0.26), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(246, 220, 216, 0.24), transparent 24%),
    radial-gradient(circle at 28% 80%, rgba(216, 197, 223, 0.16), transparent 24%),
    linear-gradient(180deg, #fff8f7 0%, #f9eff1 50%, #f2e6eb 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  background: var(--room-gradient);
  color: var(--text);
  font-family: "Nunito", sans-serif;
  overflow-x: hidden;
  transition: background 320ms ease, color 220ms ease;
}

body[data-theme="lit"] {
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 223, 168, calc(0.14 * var(--glow-opacity))), transparent 12%),
    radial-gradient(ellipse at 50% 24%, rgba(255, 222, 173, calc(0.08 * var(--glow-opacity))), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, calc(0.54 - var(--clarity) * 0.48)), rgba(0, 0, 0, calc(0.62 - var(--clarity) * 0.44)));
  pointer-events: none;
  animation: flicker 6s infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      transparent 0 42%,
      rgba(255, 255, 255, 0.1) 42% 46%,
      transparent 46% 100%
    ),
    linear-gradient(
      115deg,
      transparent 0 60%,
      rgba(255, 255, 255, 0.07) 60% 64%,
      transparent 64% 100%
    ),
    linear-gradient(
      115deg,
      transparent 0 26%,
      rgba(255, 255, 255, 0.055) 26% 29%,
      transparent 29% 100%
    ),
    radial-gradient(circle at 22% 34%, rgba(255, 247, 235, 0.6), transparent 18%),
    radial-gradient(circle at 74% 58%, rgba(226, 201, 216, 0.24), transparent 20%),
    radial-gradient(circle at 58% 84%, rgba(213, 186, 202, 0.16), transparent 18%);
  background-size:
    34px 48px,
    46px 62px,
    58px 74px,
    100% 100%,
    100% 100%,
    100% 100%;
  background-position:
    0 0,
    18px 12px,
    8px 24px,
    0 0,
    0 0,
    0 0;
  opacity: 0.32;
  pointer-events: none;
  transition: opacity 260ms ease;
  animation: rainDrift 18s linear infinite;
}

body[data-theme="lit"]::after {
  opacity: 0.95;
}

body[data-theme="dark"]::after {
  background:
    linear-gradient(
      115deg,
      transparent 0 42%,
      rgba(255, 255, 255, 0.16) 42% 46%,
      transparent 46% 100%
    ),
    linear-gradient(
      115deg,
      transparent 0 60%,
      rgba(255, 255, 255, 0.12) 60% 64%,
      transparent 64% 100%
    ),
    linear-gradient(
      115deg,
      transparent 0 26%,
      rgba(255, 255, 255, 0.09) 26% 29%,
      transparent 29% 100%
    ),
    radial-gradient(circle at 22% 34%, rgba(255, 247, 235, 0.08), transparent 18%),
    radial-gradient(circle at 74% 58%, rgba(226, 201, 216, 0.05), transparent 20%),
    radial-gradient(circle at 58% 84%, rgba(213, 186, 202, 0.04), transparent 18%);
  background-size:
    34px 48px,
    46px 62px,
    58px 74px,
    100% 100%,
    100% 100%,
    100% 100%;
  background-position:
    0 0,
    18px 12px,
    8px 24px,
    0 0,
    0 0,
    0 0;
  opacity: 0.62;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

body[data-theme="lit"] .grain {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(173, 142, 156, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 142, 156, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 16%),
    radial-gradient(circle at 82% 68%, rgba(214, 187, 203, 0.11), transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(255, 229, 224, 0.08), transparent 30%);
  background-size: 3px 3px, 4px 4px, 26rem 26rem, 32rem 32rem, 100% 100%;
  mix-blend-mode: multiply;
}

.lamp-system {
  position: absolute;
  top: 0;
  left: calc(50% + 18rem);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.lamp-admin-trigger {
  position: absolute;
  top: 0.5rem;
  left: calc(50% + 18rem);
  width: min(15rem, 26vw);
  height: 12.5rem;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  z-index: 6;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

body[data-theme="lit"] .lamp-admin-trigger {
  pointer-events: auto;
}

.lamp-image {
  display: block;
  width: min(15rem, 26vw);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.lamp-image--off,
.lamp-image--on {
  position: relative;
  margin: 0 auto;
  filter: drop-shadow(0 1rem 1.8rem rgba(0, 0, 0, 0.42));
  transition: opacity 220ms ease;
}

.lamp-image--on {
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  opacity: 0;
}

body[data-theme="lit"] .lamp-image--on {
  opacity: 1;
}

body[data-theme="lit"] .lamp-image--off {
  opacity: 0;
}

.lamp-glow {
  position: absolute;
  left: 50%;
  top: 10.8rem;
  width: min(19rem, 34vw);
  height: 22rem;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 223, 166, calc(0.3 * var(--glow-opacity))) 0%, rgba(255, 223, 166, calc(0.08 * var(--glow-opacity))) 22%, transparent 72%);
  clip-path: polygon(46% 0%, 54% 0%, 76% 100%, 24% 100%);
  filter: blur(0.9rem);
  opacity: calc(0.62 * var(--glow-opacity));
  animation: flicker 6s infinite;
}

.switch-plate {
  position: absolute;
  right: max(1rem, calc((100vw - min(980px, calc(100vw - 2rem))) / 2) + 0.6rem);
  top: 10.8rem;
  z-index: 8;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  width: 4.25rem;
  padding: 0.8rem 0.58rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.45rem;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.18), rgba(255, 241, 234, 0.08)),
    rgba(111, 84, 93, 0.26);
  box-shadow: 0 1rem 2rem var(--shadow);
  backdrop-filter: blur(14px);
  color: var(--text);
  cursor: pointer;
}

.switch-plate::before {
  content: "";
  position: absolute;
  top: -2.6rem;
  left: 50%;
  width: 1px;
  height: 2.2rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
}

.switch-label {
  font-size: 0.58rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.switch-toggle {
  position: relative;
  width: 1.9rem;
  height: 4.35rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.2), rgba(210, 183, 170, 0.08)),
    rgba(138, 110, 120, 0.22);
}

.switch-knob {
  position: absolute;
  left: 0.2rem;
  top: 0.2rem;
  width: 1.08rem;
  height: 1.45rem;
  border-radius: 0.68rem;
  background: linear-gradient(180deg, #f7e4d2, #c18b73);
  box-shadow:
    0 0.25rem 0.8rem rgba(104, 73, 62, 0.24),
    inset 0 0.08rem 0.22rem rgba(255, 255, 255, 0.28);
  transition: transform 220ms ease;
}

body[data-theme="lit"] .switch-plate {
  background:
    linear-gradient(180deg, rgba(255, 248, 242, 0.72), rgba(249, 234, 228, 0.52)),
    rgba(228, 205, 212, 0.52);
  border-color: rgba(182, 149, 161, 0.22);
}

body[data-theme="lit"] .switch-toggle {
  background:
    linear-gradient(180deg, rgba(255, 252, 249, 0.82), rgba(238, 219, 226, 0.46)),
    rgba(224, 197, 207, 0.44);
  border-color: rgba(182, 149, 161, 0.18);
}

body[data-theme="lit"] .switch-knob {
  transform: translateY(2.45rem);
}

.site-frame {
  position: relative;
  z-index: 3;
  width: min(980px, calc(100vw - 2rem));
  margin: 2.8rem auto 3rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.9rem;
  padding: 0.88rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  box-shadow: 0 0.6rem 1.6rem var(--shadow);
  backdrop-filter: blur(18px);
}

.brand,
.menu-link {
  color: var(--text);
  text-decoration: none;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--text-strong);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.menu-link {
  padding: 0.68rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, calc(0.04 + 0.05 * var(--clarity)));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.menu-link.active,
.menu-link:hover,
.menu-link:focus-visible {
  background: rgba(255, 255, 255, calc(0.08 + 0.12 * var(--clarity)));
}

.page-shell {
  display: grid;
  gap: 1.7rem;
  justify-items: center;
}

.page-shell--article {
  gap: 1.3rem;
}

body[data-article-view="true"] .site-frame {
  margin-top: 3.8rem;
}

body[data-article-view="true"] .grain {
  opacity: 0.12;
}

body[data-article-view="true"]::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 226, 182, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, calc(0.5 - var(--clarity) * 0.44)), rgba(0, 0, 0, calc(0.58 - var(--clarity) * 0.38)));
  animation: none;
}

body[data-article-view="true"]::after {
  opacity: 0.72;
}

body[data-bio-view="true"] .site-frame {
  margin-top: 4rem;
}

body[data-bio-view="true"] .grain {
  opacity: 0.12;
}

body[data-bio-view="true"]::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 226, 182, 0.05), transparent 20%),
    linear-gradient(180deg, rgba(0, 0, 0, calc(0.48 - var(--clarity) * 0.44)), rgba(0, 0, 0, calc(0.56 - var(--clarity) * 0.4)));
  animation: none;
}

body[data-object-view="true"] .site-frame {
  margin-top: 4rem;
}

body[data-object-view="true"] .grain {
  opacity: 0.12;
}

body[data-object-view="true"]::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 226, 182, 0.05), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, calc(0.48 - var(--clarity) * 0.44)), rgba(0, 0, 0, calc(0.56 - var(--clarity) * 0.4)));
  animation: none;
}

.page-shell--bio {
  gap: 2.6rem;
  justify-items: center;
}

.page-shell--objects {
  gap: 2rem;
  justify-items: center;
}

.bio-hero,
.bio-timeline {
  width: min(780px, calc(100vw - 3rem));
}

.objects-hero,
.objects-archive {
  width: min(780px, calc(100vw - 3rem));
}

.objects-hero {
  display: grid;
  gap: 0.8rem;
}

.objects-title {
  margin: 0;
  max-width: 11.2ch;
  font-family: "Fraunces", serif;
  font-size: clamp(2.5rem, 4.9vw, 3.9rem);
  line-height: 1.08;
  color: var(--text-strong);
}

.objects-intro {
  max-width: 42rem;
  margin: 0;
  font-family: "Lora", serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.section-head--objects {
  padding: 0;
  margin-bottom: 0.9rem;
}

.section-head--objects h2 {
  color: color-mix(in srgb, var(--sage) 86%, var(--text));
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.objects-list {
  display: grid;
  gap: 1rem;
}

.object-row {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 0.85rem 1.8rem rgba(121, 94, 97, 0.05);
}

.object-visual {
  position: relative;
  min-height: 11rem;
  border-radius: 0;
  overflow: visible;
  border: 0;
  box-shadow: none;
}

.object-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.object-visual--tea {
  background: transparent;
}

.object-visual--tree {
  background: transparent;
}

.object-visual--paper {
  background: transparent;
}

.object-visual--key {
  background: transparent;
}

.object-badge {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.82);
  color: color-mix(in srgb, var(--accent) 92%, var(--text-strong));
  font-family: "Fraunces", serif;
  font-size: 0.88rem;
  font-weight: 600;
}

.object-copy {
  display: grid;
  align-content: center;
  gap: 0.42rem;
}

.object-kicker {
  margin: 0;
  color: color-mix(in srgb, var(--accent) 90%, var(--text));
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.object-copy h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.18;
}

.object-copy p:last-child {
  margin: 0;
  font-family: "Lora", serif;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--muted);
}

.bio-hero {
  display: grid;
  gap: 0.85rem;
}

.bio-kicker {
  margin: 1.8rem 0 0;
  color: color-mix(in srgb, var(--sage) 86%, var(--text));
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.bio-title {
  margin: 0;
  max-width: 9.6ch;
  font-family: "Fraunces", serif;
  font-size: clamp(2.5rem, 4.9vw, 3.95rem);
  line-height: 1.06;
  color: var(--text-strong);
}

.bio-title span,
.bio-title em {
  display: block;
}

.bio-title em {
  font-style: italic;
  color: color-mix(in srgb, var(--accent) 92%, var(--text-strong));
}

.bio-card {
  width: 100%;
  padding: 1.35rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 1rem 2rem rgba(121, 94, 97, 0.08);
}

.bio-card p,
.timeline-copy p {
  margin: 0;
  font-family: "Lora", serif;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--text);
}

.bio-card p + p {
  margin-top: 1rem;
}

.bio-note {
  color: var(--muted) !important;
  font-style: italic;
}

.bio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.bio-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.58rem 0.98rem;
  border: 1px solid rgba(186, 99, 66, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, calc(0.04 + 0.05 * var(--clarity)));
  color: color-mix(in srgb, var(--accent) 90%, var(--text-strong));
  text-decoration: none;
  font-family: "Fraunces", serif;
  font-size: 0.8rem;
}

.section-head--bio {
  padding: 0;
  margin-bottom: 1rem;
}

.section-head--bio h2 {
  color: color-mix(in srgb, var(--sage) 86%, var(--text));
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.timeline-editorial {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 0;
}

.timeline-editorial::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.95rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(192, 155, 147, 0.48), rgba(192, 155, 147, 0.16));
}

.timeline-row {
  position: relative;
}

.timeline-pin {
  position: absolute;
  left: 0.275rem;
  top: 1.45rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.timeline-pin::after {
  content: "";
  position: absolute;
  inset: 0.28rem;
  border-radius: 50%;
  background: currentColor;
}

.timeline-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.1rem 1.08rem;
  margin-left: 2.6rem;
  width: calc(100% - 2.6rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 0.85rem 1.8rem rgba(121, 94, 97, 0.05);
}

.timeline-copy h3 {
  margin: 0 0 0.28rem;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  line-height: 1.18;
}

.timeline-date {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.7rem;
  min-height: 1.8rem;
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 800;
}

.timeline-row--sage {
  color: #8da49b;
}

.timeline-row--gold {
  color: #bf9460;
}

.timeline-row--rose {
  color: #c98387;
}

.timeline-row--blue {
  color: #8aa0bd;
}

.timeline-row--mauve {
  color: #a28ab8;
}

.timeline-row--earth {
  color: #9f7a57;
}

.timeline-row .timeline-copy h3 {
  color: var(--text-strong);
}

.timeline-row .timeline-copy p {
  color: currentColor;
  opacity: 0.88;
}

.hero-card,
.editorial-card,
.post-card,
.post-row,
.reader-card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  box-shadow: 0 1rem 2rem var(--shadow);
}

.hero-card,
.editorial-card {
  border-radius: 2.05rem;
  padding: 1.55rem 1.35rem;
}

.hero-card--editorial {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0.4rem 0 0.2rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-card--compact {
  padding: 1.35rem 1.15rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 9.6rem minmax(0, 1fr);
  gap: 1.55rem;
  align-items: center;
}

.portrait-card {
  width: 8.8rem;
  aspect-ratio: 0.88;
  border-radius: 1.65rem;
  padding: 0.28rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 239, 0.84));
  box-shadow: 0 0.6rem 2rem rgba(255, 209, 180, calc(0.18 * var(--clarity)));
}

.portrait-fill {
  width: 100%;
  height: 100%;
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 48% 34%, rgba(255, 255, 255, 0.3), transparent 20%),
    linear-gradient(180deg, #c7dfed 0%, #8dc0de 42%, #6f8e9e 100%);
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.portrait-fill span {
  display: none;
}

.hero-copy {
  min-width: 0;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(149, 164, 149, calc(0.08 + 0.08 * var(--clarity)));
  color: color-mix(in srgb, var(--sage) 86%, var(--text));
  font-size: 0.8rem;
  font-weight: 700;
}

.chip-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
}

h1,
h2,
h3,
.memory-year,
.time-stamp,
.reader-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 500;
  color: var(--text-strong);
}

h1 {
  max-width: 10.5ch;
  font-size: clamp(2rem, 3.8vw, 2.95rem);
  line-height: 1.12;
}

.quote-frame {
  display: inline-block;
  margin: 1rem 0 1.3rem;
}

.quote-frame p {
  margin: 0;
  padding: 0.72rem 1rem;
  border: 2px solid color-mix(in srgb, var(--accent) 92%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, calc(0.35 * var(--clarity)));
  background: color-mix(in srgb, var(--accent-soft) 100%, transparent);
  color: color-mix(in srgb, var(--accent) 88%, var(--text-strong));
  font-family: "Fraunces", serif;
  font-size: 1.04rem;
  font-style: italic;
}

.intro,
.section-head p,
.post-preview,
.post-card p,
.reader-content p {
  font-family: "Lora", serif;
  color: var(--muted);
  opacity: var(--clarity);
  line-height: 1.75;
}

.intro {
  max-width: 30ch;
  margin: 0;
  font-size: 0.9rem;
}

.hero-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.hero-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.62rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, calc(0.04 + 0.05 * var(--clarity)));
  color: var(--text-strong);
  text-decoration: none;
  font-family: "Fraunces", serif;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-menu-link.active,
.hero-menu-link:hover,
.hero-menu-link:focus-visible {
  background: rgba(255, 255, 255, calc(0.08 + 0.1 * var(--clarity)));
}

.editorial-card--stacked {
  display: grid;
  gap: 0.85rem;
  width: min(760px, 100%);
  margin: 0 auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.8rem;
  padding: 0.2rem 0.2rem 0.1rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
}

.section-head p {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
}

.section-badge {
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(186, 99, 66, calc(0.16 + 0.14 * var(--clarity)));
  background: color-mix(in srgb, var(--accent-soft) 100%, transparent);
  color: color-mix(in srgb, var(--accent) 92%, var(--text));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.contact-card {
  margin-top: 0.1rem;
}

.section-head--contact {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  width: 100%;
}

.contact-form label {
  display: grid;
  gap: 0.42rem;
}

.contact-form label span {
  font-size: 0.84rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 86%, var(--text));
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: color-mix(in srgb, var(--paper-soft) 94%, transparent);
  color: var(--text-strong);
  font: inherit;
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.7;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 3rem;
  padding: 0.82rem 1.24rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 88%, var(--text));
  color: #fff8f3;
  font-family: "Nunito", sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
}

.contact-notice {
  min-height: 1.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-list,
.memory-list--editorial,
.timeline-track--editorial {
  display: grid;
  gap: 0.92rem;
}

.post-row {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) 11rem;
  align-items: center;
  gap: 1rem;
  min-height: 7.4rem;
  padding: 0.9rem 0.95rem 0.9rem 0.85rem;
  border-radius: 1.4rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.post-row--locked {
  opacity: calc(0.72 + var(--clarity) * 0.24);
}

.post-row--passive {
  opacity: calc(0.46 + var(--clarity) * 0.18);
  filter: saturate(0.88);
  background: rgba(210, 207, 210, 0.26);
  border-color: rgba(165, 156, 163, 0.22);
}

.post-row--completed {
  border-color: rgba(151, 166, 146, calc(0.16 + 0.12 * var(--clarity)));
}

@media (hover: hover) and (pointer: fine) {
  .post-row--interactive:hover {
    transform: scale(1.012);
    box-shadow: 0 1.3rem 2.4rem rgba(121, 94, 97, 0.1);
    border-color: rgba(188, 108, 99, calc(0.2 + 0.14 * var(--clarity)));
  }
}

.post-order {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-soft) 92%, transparent);
  color: color-mix(in srgb, var(--accent) 88%, var(--text));
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}

.post-copy {
  min-width: 0;
}

.post-kicker {
  margin: 0 0 0.28rem;
  color: color-mix(in srgb, var(--accent) 86%, var(--text));
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: calc(0.56 + var(--clarity) * 0.44);
}

.post-copy h3 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.16rem, 2.3vw, 1.48rem);
  line-height: 1.18;
}

.post-preview {
  margin: 0;
  font-size: 0.84rem;
}

.post-side {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 0.6rem;
}

.post-date,
.post-state {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-date {
  color: var(--muted);
  min-width: 6.9rem;
}

.post-state {
  color: color-mix(in srgb, var(--accent) 88%, var(--text));
}

.post-state.is-open {
  color: color-mix(in srgb, var(--sage) 84%, var(--text));
}

.post-state.is-waiting {
  color: var(--muted);
}

.post-open,
.reader-complete,
.modal-close,
.keypad-key {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.post-open {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-soft) 100%, transparent);
  color: color-mix(in srgb, var(--accent) 92%, var(--text));
  font-size: 1rem;
  font-weight: 700;
}

.post-open:disabled {
  cursor: default;
  opacity: inherit;
}

.post-card {
  border-radius: 1.4rem;
  padding: 1rem 1rem 1.05rem;
}

.article-shell {
  display: grid;
  gap: 1.1rem;
  width: min(860px, 100%);
}

.article-card,
.comments-panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 1rem 2rem var(--shadow);
}

.article-card {
  padding: 1.6rem 1.6rem 1.8rem;
}

body[data-article-view="true"] .article-shell {
  width: min(880px, calc(100vw - 3rem));
}

body[data-article-view="true"] .article-card,
body[data-article-view="true"] .comments-panel {
  border-radius: 2.3rem;
  box-shadow: 0 1.2rem 2.8rem rgba(121, 94, 97, 0.08);
}

body[data-article-view="true"] .article-card {
  padding: 1.8rem 1.8rem 2rem;
}

body[data-article-view="true"] .article-back {
  margin-bottom: 1.5rem;
}

body[data-article-view="true"] .article-back a {
  font-size: 0.95rem;
}

.article-back {
  margin: 0 0 1.2rem;
}

.article-back a,
.article-return {
  color: var(--muted);
  text-decoration: none;
  font-family: "Lora", serif;
}

.article-header-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.7rem;
  background: color-mix(in srgb, var(--paper-soft) 92%, transparent);
}

.article-header-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.article-order {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  color: color-mix(in srgb, var(--accent) 88%, var(--text));
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}

.article-kicker {
  margin: 0;
  color: color-mix(in srgb, var(--accent) 86%, var(--text));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article-title {
  margin: 0 0 1.4rem;
  max-width: 12ch;
  font-family: "Fraunces", serif;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.05;
  color: var(--text-strong);
}

.article-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.article-author-badge {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #c7dfed 0%, #8dc0de 42%, #6f8e9e 100%);
  color: #fffdf7;
  font-family: "Fraunces", serif;
  font-size: 1rem;
  overflow: hidden;
  flex: 0 0 auto;
}

.article-author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-author-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.article-author strong,
.comment-meta strong,
.comment-form h3 {
  color: var(--text-strong);
  font-family: "Fraunces", serif;
  font-weight: 500;
}

.article-author p,
.comment-meta span,
.comments-head p,
.comments-empty,
.comment-copy p,
.comment-form span {
  margin: 0;
  color: var(--muted);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.article-tag {
  padding: 0.58rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(186, 99, 66, calc(0.16 + 0.14 * var(--clarity)));
  background: color-mix(in srgb, var(--accent-soft) 100%, transparent);
  color: color-mix(in srgb, var(--accent) 92%, var(--text));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-body {
  padding: 1.8rem 0.35rem 0.6rem;
}

.article-paragraph {
  margin: 0;
  font-family: "Lora", serif;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.9;
  color: var(--text);
}

.article-paragraph + .article-paragraph {
  margin-top: 1.25rem;
}

.article-paragraph--lead::first-letter {
  float: left;
  margin-right: 0.2rem;
  font-family: "Fraunces", serif;
  font-size: 4.8rem;
  line-height: 0.84;
  color: color-mix(in srgb, var(--accent) 94%, var(--text));
}

.article-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.article-complete,
.comment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 88%, var(--text));
  color: #fff8f3;
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.comments-panel {
  padding: 1.5rem;
}

.comments-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-list {
  display: grid;
  gap: 0.95rem;
  margin-bottom: 1.2rem;
}

.comment-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.95rem;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.45rem;
  background: color-mix(in srgb, var(--paper-soft) 92%, transparent);
}

.comment-avatar {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.95rem;
  background: rgba(201, 209, 206, 0.3);
  color: color-mix(in srgb, var(--accent) 88%, var(--text));
  font-weight: 800;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.comment-copy p {
  font-family: "Lora", serif;
  font-size: 1rem;
  line-height: 1.75;
}

.comment-form {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.55rem;
  background: color-mix(in srgb, var(--paper-soft) 92%, transparent);
}

.comment-form label {
  display: grid;
  gap: 0.48rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, calc(0.05 + 0.05 * var(--clarity)));
  color: var(--text-strong);
  font: inherit;
}

.comment-form textarea {
  resize: vertical;
  min-height: 9rem;
}

.post-card h3,
.memory-year,
.time-stamp {
  margin-bottom: 0.42rem;
  font-size: 1.36rem;
}

.post-card p,
.reader-content p {
  margin: 0;
  font-size: 0.98rem;
}

.reader-modal,
.passcode-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 8, 10, 0.62);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 20;
}

.reader-modal[data-open="true"],
.passcode-modal[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.passcode-modal[data-state="opening"] {
  pointer-events: none;
}

.reader-card {
  width: min(760px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border-radius: 1.9rem;
  padding: 1.2rem 1.2rem 1.4rem;
}

.reader-kicker {
  margin: 0 0 0.4rem;
  color: color-mix(in srgb, var(--accent) 86%, var(--text));
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reader-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.reader-content {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.reader-content p + p {
  margin-top: 0.95rem;
}

.reader-complete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 88%, var(--text));
  color: #fff7f0;
  font-weight: 800;
}

.modal-close {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  margin-left: auto;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, calc(0.04 + 0.06 * var(--clarity)));
  color: var(--muted);
}

.modal-close--light {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
}

.passcode-card {
  width: min(430px, 100%);
  padding: 1rem 1rem 1.2rem;
  border-radius: 2.2rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.14), transparent 32%),
    radial-gradient(circle at 45% 80%, rgba(255, 255, 255, 0.08), transparent 24%),
    rgba(235, 239, 244, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(24px);
}

.passcode-card.is-opening {
  animation: passcode-evaporate 420ms ease forwards;
}

.passcode-title {
  margin: 0 0 0.95rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.55rem;
  font-weight: 600;
}

.passcode-hint {
  min-height: 2.8rem;
  margin: 0 0 1.1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.5;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem 1rem;
  justify-items: center;
}

.keypad-key {
  width: 5.35rem;
  height: 5.35rem;
  min-height: 5.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.96);
  font-size: 2rem;
  font-weight: 400;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.keypad-key--ghost {
  background: rgba(255, 255, 255, 0.06);
  font-size: 1rem;
  font-weight: 600;
}

.hero-card,
.editorial-card,
.post-card,
.post-row,
.article-card,
.comments-panel,
.comment-card,
.comment-form,
.hero-menu-link,
.brand,
.menu-link,
h1,
h2,
h3,
.reader-title,
.memory-year,
.time-stamp {
  opacity: calc(0.42 + var(--clarity) * 0.58);
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }

  18% {
    opacity: 0.94;
  }

  48% {
    opacity: 0.98;
  }

  74% {
    opacity: 0.9;
  }
}

@keyframes rainDrift {
  0% {
    background-position:
      0 0,
      18px 12px,
      8px 24px,
      0 0,
      0 0,
      0 0;
  }

  100% {
    background-position:
      -78px 160px,
      -92px 210px,
      -108px 260px,
      0 0,
      0 0,
      0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
  }
}

@keyframes passcode-evaporate {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: scale(1.04) translateY(-1.1rem);
    filter: blur(10px);
  }
}

@media (max-width: 900px) {
  .switch-plate {
    right: 1rem;
    top: 10.4rem;
  }

  .switch-plate::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-frame {
    width: calc(100vw - 1rem);
    margin-top: 1.4rem;
  }

  body[data-bio-view="true"] .site-frame {
    margin-top: 1.8rem;
    width: calc(100vw - 1.8rem);
  }

  body[data-object-view="true"] .site-frame {
    margin-top: 1.8rem;
  }

  .hero-card--editorial,
  .editorial-card--stacked {
    width: 100%;
    margin: 0 auto;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 1.45rem;
  }

  .menu {
    justify-content: flex-start;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bio-hero,
  .bio-timeline {
    width: min(100%, 39rem);
  }

  .objects-hero,
  .objects-archive {
    width: 100%;
  }

  .timeline-editorial {
    padding-left: 0;
  }

  .timeline-editorial::before {
    left: 0.62rem;
  }

  .timeline-pin {
    left: 0;
    width: 1.1rem;
    height: 1.1rem;
  }

  .timeline-card {
    margin-left: 1.55rem;
    width: calc(100% - 1.55rem);
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem 0.85rem 0.82rem;
    border-radius: 1.1rem;
  }

  .timeline-copy h3 {
    font-size: 0.98rem;
  }

  .timeline-copy p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .timeline-date {
    min-width: 4.1rem;
    min-height: 1.65rem;
    padding: 0.22rem 0.62rem;
    font-size: 0.66rem;
  }

  .object-row {
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 1.3rem;
  }

  .object-visual {
    min-height: 5.25rem;
  }

  .portrait-card {
    width: 7.2rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-row {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .article-card,
  .comments-panel {
    padding: 1rem;
  }

  .article-meta-bar,
  .article-actions,
  .comments-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-tags {
    justify-content: flex-start;
  }

  .post-side {
    width: 100%;
    grid-template-columns: auto auto auto;
    justify-content: start;
    align-items: center;
    gap: 0.45rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    line-height: 1.06;
  }

  .hero-card--editorial {
    padding-top: 0;
  }

  .editorial-card {
    padding: 1rem 0.9rem;
  }

  .article-title {
    max-width: 100%;
    font-size: clamp(1.55rem, 7vw, 2.2rem);
    line-height: 1.08;
    margin-bottom: 1rem;
  }

  .bio-title {
    max-width: 100%;
    font-size: clamp(1.85rem, 8vw, 2.55rem);
  }

  .objects-title {
    max-width: 100%;
    font-size: clamp(1.85rem, 8vw, 2.55rem);
  }

  .comment-card {
    grid-template-columns: 1fr;
  }

  .keypad-key {
    width: 4.3rem;
    height: 4.3rem;
    min-height: 4.3rem;
    font-size: 1.7rem;
  }

  .keypad-key--ghost {
    font-size: 0.9rem;
  }

  .hero-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
  }

  .hero-menu-link {
    min-height: 2.85rem;
    padding: 0.72rem 1rem;
    font-size: 0.78rem;
  }

  .section-head h2 {
    font-size: 2rem;
  }

  .section-badge {
    align-self: flex-start;
  }

  .post-copy h3 {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .post-preview {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .post-order {
    width: 3rem;
    height: 3rem;
    font-size: 1.15rem;
  }

  .post-date,
  .post-state {
    min-height: 1.8rem;
    padding: 0.32rem 0.62rem;
    font-size: 0.62rem;
  }

  .post-open {
    width: 2.35rem;
    height: 2.35rem;
  }

  .lamp-system {
    left: auto;
    right: 0.9rem;
    top: -0.05rem;
    z-index: 2;
    transform: none;
  }

  .lamp-admin-trigger {
    left: auto;
    right: 0.9rem;
    width: 7rem;
    height: 6.4rem;
    top: 0.3rem;
    transform: none;
  }

  .lamp-image {
    width: min(6.9rem, 20vw);
  }

  .lamp-glow {
    top: 5.2rem;
    width: 8.2rem;
    height: 10rem;
  }

  .switch-plate {
    left: auto;
    right: 0.45rem;
    top: 4.45rem;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0.28rem 0.28rem 0.32rem;
    border-radius: 999px;
    gap: 0;
    background:
      linear-gradient(180deg, rgba(255, 248, 242, 0.85), rgba(249, 234, 228, 0.68)),
      rgba(228, 205, 212, 0.5);
  }

  .switch-label {
    display: none;
  }

  .switch-toggle {
    width: 1.15rem;
    height: 2.45rem;
    border-radius: 999px;
  }

  .switch-knob {
    left: 0.12rem;
    top: 0.12rem;
    width: 0.9rem;
    height: 0.95rem;
    border-radius: 50%;
  }

  body[data-theme="lit"] .switch-knob {
    transform: translateY(1.22rem);
  }

  .object-copy {
    gap: 0.28rem;
    align-content: start;
  }

  .object-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
  }

  .object-copy h3 {
    font-size: 1rem;
    line-height: 1.18;
  }

  .object-copy p:last-child {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .object-photo {
    object-fit: contain;
  }

  .object-badge {
    left: 0.15rem;
    top: 0.15rem;
    min-width: 1.8rem;
    min-height: 1.8rem;
    font-size: 0.78rem;
  }

  .article-header-card {
    padding: 1rem;
    border-radius: 1.35rem;
  }

  .article-header-top {
    gap: 0.65rem;
    margin-bottom: 0.8rem;
  }

  .article-order {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1rem;
  }

  .article-kicker {
    font-size: 0.68rem;
  }

  .article-author-badge {
    width: 2.4rem;
    height: 2.4rem;
  }

  .article-author strong {
    font-size: 0.92rem;
  }

  .article-author p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .article-tag {
    padding: 0.45rem 0.72rem;
    font-size: 0.64rem;
  }

  .article-body {
    padding: 1.2rem 0 0.2rem;
  }

  .article-paragraph {
    font-size: 0.98rem;
    line-height: 1.78;
  }

  .article-paragraph--lead::first-letter {
    font-size: 3.7rem;
  }

  .article-subheading {
    font-size: 1.25rem;
    margin: 1.8rem 0 0.7rem;
  }

  .article-quote {
    margin: 1.5rem 0;
    padding: 0.95rem 1rem;
    font-size: 0.96rem;
  }

  .passcode-card {
    width: min(360px, calc(100vw - 1.6rem));
    padding: 0.85rem 0.85rem 1rem;
    border-radius: 1.8rem;
  }

  .passcode-title {
    font-size: 1.15rem;
    line-height: 1.28;
    margin-bottom: 0.75rem;
  }

  .passcode-hint {
    min-height: 2.1rem;
    margin-bottom: 0.9rem;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .keypad {
    gap: 0.7rem 0.8rem;
  }

  .modal-close {
    min-height: 2.2rem;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 520px) {
  .site-frame {
    width: calc(100vw - 0.7rem);
    margin-top: 0.9rem;
  }

  .hero-card--editorial {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
  }

  .hero-layout {
    gap: 0.8rem;
  }

  .portrait-card {
    width: 6.3rem;
  }

  .quote-frame p {
    padding: 0.62rem 0.82rem;
    font-size: 0.9rem;
  }

  .intro {
    max-width: 100%;
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .hero-menu-link {
    width: auto;
    justify-content: center;
    padding: 0.68rem 0.92rem;
    min-height: 2.7rem;
  }

  .editorial-card {
    border-radius: 1.6rem;
  }

  .section-head h2 {
    font-size: 1.55rem;
  }

  .post-row {
    padding: 0.78rem;
    border-radius: 1.2rem;
  }

  .post-side {
    grid-template-columns: 1fr 1fr auto;
    width: 100%;
  }

  .post-date,
  .post-state {
    width: 100%;
    justify-content: center;
  }

  .post-open {
    justify-self: end;
  }

  .objects-list {
    gap: 0.75rem;
  }

  .object-row {
    grid-template-columns: 4.55rem minmax(0, 1fr);
    gap: 0.72rem;
    padding: 0.65rem;
    border-radius: 1.15rem;
  }

  .object-visual {
    min-height: 4.55rem;
  }

  .object-copy h3 {
    font-size: 0.92rem;
  }

  .object-copy p:last-child {
    font-size: 0.76rem;
  }

  .article-card,
  .comments-panel {
    border-radius: 1.55rem;
    padding: 0.9rem;
  }

  .article-shell {
    gap: 0.9rem;
  }

  .article-title {
    font-size: clamp(1.28rem, 6.4vw, 1.75rem);
    max-width: 100%;
  }

  .article-meta-bar {
    gap: 0.8rem;
    padding-top: 0.8rem;
  }

  .article-paragraph {
    font-size: 0.9rem;
    line-height: 1.72;
  }

  .article-figure img {
    border-radius: 1rem;
  }

  .passcode-modal {
    padding: 0.6rem;
  }

  .passcode-card {
    width: min(320px, calc(100vw - 1.2rem));
    padding: 0.75rem 0.75rem 0.9rem;
    border-radius: 1.45rem;
  }

  .passcode-title {
    font-size: 1rem;
  }

  .passcode-hint {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
  }

  .keypad {
    gap: 0.55rem 0.65rem;
  }

  .keypad-key {
    width: 3.65rem;
    height: 3.65rem;
    min-height: 3.65rem;
    font-size: 1.45rem;
  }

  .keypad-key--ghost {
    font-size: 0.82rem;
  }

  .lamp-system {
    right: 0.7rem;
  }

  .lamp-admin-trigger {
    right: 0.7rem;
    width: 6.2rem;
    height: 5.6rem;
  }

  .lamp-image {
    width: min(6rem, 19vw);
  }

  .lamp-glow {
    width: 7.4rem;
    height: 8.6rem;
    top: 4.7rem;
  }

  .switch-plate {
    right: 0.35rem;
    top: 4rem;
    padding: 0.22rem 0.22rem 0.26rem;
  }

  .switch-toggle {
    width: 1.02rem;
    height: 2.18rem;
  }

  .switch-knob {
    width: 0.78rem;
    height: 0.82rem;
  }

  body[data-theme="lit"] .switch-knob {
    transform: translateY(1.08rem);
  }
}

.article-subheading {
  margin: 2.4rem 0 0.9rem;
  color: var(--text-strong);
  font-family: "Fraunces", serif;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.18;
}

.article-quote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid rgba(188, 108, 99, 0.5);
  border-radius: 0 1rem 1rem 0;
  background: rgba(188, 108, 99, 0.06);
  color: var(--text-strong);
  font-family: "Lora", serif;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.7;
}

.article-figure {
  display: grid;
  gap: 0.7rem;
  margin: 2rem 0;
}

.article-figure img {
  width: 100%;
  border-radius: 1.35rem;
  border: 1px solid var(--line);
  display: block;
}

.article-figure-caption {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.article-divider {
  width: 100%;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, rgba(188, 108, 99, 0.4), transparent);
}
