:root {
  color-scheme: dark;
  --bg: #090a0f;
  --bg-soft: #101118;
  --panel: #14151c;
  --text: #f2f0e9;
  --muted: #9d9ba0;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #d6ff73;
  --accent-dark: #172007;
  --purple: #a18adb;
  --header: rgba(9, 10, 15, 0.7);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f0;
  --bg-soft: #ebebe5;
  --panel: #ffffff;
  --text: #15151a;
  --muted: #64646b;
  --line: rgba(18, 18, 22, 0.15);
  --accent: #526d00;
  --accent-dark: #ecf7ce;
  --purple: #62508f;
  --header: rgba(245, 245, 240, 0.82);
  --shadow: 0 30px 90px rgba(25, 25, 20, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  transition: background 240ms ease, color 240ms ease;
}

body.menu-open,
body.modal-open { overflow: hidden; }

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

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

img { display: block; width: 100%; }

button { color: inherit; }

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

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255,255,255,.55) .5px, transparent .5px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, transparent 35%, black 90%);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 4vw, 72px);
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, height 220ms ease;
}

.site-header.scrolled {
  height: 66px;
  background: var(--header);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.brand-mark { color: var(--accent); font-size: 18px; }

.desktop-nav { display: flex; gap: 40px; }

.desktop-nav a {
  position: relative;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  transition: color 160ms ease;
}

html[data-theme="light"] .site-header.scrolled .desktop-nav a { color: var(--muted); }

.desktop-nav a:hover,
.desktop-nav a.is-active { color: #fff; }

html[data-theme="light"] .site-header.scrolled .desktop-nav a:hover,
html[data-theme="light"] .site-header.scrolled .desktop-nav a.is-active { color: var(--text); }

.desktop-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.menu-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.icon-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sun-icon { display: none; }
html[data-theme="light"] .moon-icon { display: none; }
html[data-theme="light"] .sun-icon { display: block; }

.mystery-button { position: relative; color: rgba(255,255,255,.58); }
.mystery-button::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: signal-pulse 2.8s ease-in-out infinite;
}
html[data-theme="light"] .site-header.scrolled .mystery-button { color: var(--muted); }

@keyframes signal-pulse { 50% { opacity: .22; transform: scale(.7); } }

.menu-button { display: none; position: relative; }
.menu-button span { position: absolute; width: 21px; height: 1px; background: currentColor; transition: transform 220ms ease, top 220ms ease; }
.menu-button span:first-child { top: 17px; }
.menu-button span:last-child { top: 24px; }
.menu-button.is-open span:first-child { top: 21px; transform: rotate(45deg); }
.menu-button.is-open span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu { display: none; }

.hero {
  position: relative;
  min-height: min(880px, 94vh);
  display: flex;
  align-items: flex-end;
  padding: 150px clamp(24px, 8vw, 136px) clamp(78px, 10vh, 108px);
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-shade { position: absolute; inset: 0; height: 100%; }

.hero-image {
  object-fit: cover;
  object-position: 50% 54%;
  filter: saturate(.72) contrast(1.08);
  animation: hero-drift 18s ease-out both;
}

@keyframes hero-drift { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4,5,10,.76) 0%, rgba(4,5,10,.38) 48%, rgba(4,5,10,.16) 100%),
    linear-gradient(0deg, rgba(4,5,10,.72) 0%, transparent 48%, rgba(4,5,10,.2) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 950px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--accent);
  font-family: Manrope, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
}

.eyebrow > span { display: inline-block; width: 32px; height: 1px; background: currentColor; }
.eyebrow b,
.text-link b,
.filter-chip b,
.subscribe-form button b,
.mobile-menu nav b { font: inherit; font-weight: inherit; letter-spacing: inherit; }

.hero h1 {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  font-size: clamp(47px, 6.6vw, 104px);
  font-weight: 500;
  line-height: 1.14;
  transform-origin: left center;
  will-change: transform, text-shadow;
  animation: cosmic-radiation 8.4s steps(1, end) infinite;
}

.hero h1 em {
  display: inline-block;
  font-family: "Playfair Display", "Noto Sans SC", serif;
  font-weight: 500;
  color: #e3d8f7;
  animation: cosmic-frequency 6.7s steps(1, end) infinite reverse;
}

@keyframes cosmic-radiation {
  0%, 7%, 19%, 31%, 46%, 63%, 79%, 100% { transform: translate3d(0, 0, 0); text-shadow: 0 0 0 transparent; }
  8% { transform: translate3d(.45px, -.25px, 0); text-shadow: -.7px 0 rgba(114,226,255,.2), .7px 0 rgba(220,154,255,.16); }
  20% { transform: translate3d(-.35px, .2px, 0); text-shadow: .6px 0 rgba(114,226,255,.16), -.6px 0 rgba(220,154,255,.14); }
  47% { transform: translate3d(.25px, .35px, 0); text-shadow: -.45px 0 rgba(114,226,255,.14), .45px 0 rgba(220,154,255,.12); }
  64% { transform: translate3d(-.5px, -.2px, 0); text-shadow: .75px 0 rgba(114,226,255,.18), -.75px 0 rgba(220,154,255,.15); }
  80% { transform: translate3d(.3px, -.4px, 0); text-shadow: -.55px 0 rgba(114,226,255,.15), .55px 0 rgba(220,154,255,.13); }
}

@keyframes cosmic-frequency {
  0%, 14%, 29%, 48%, 67%, 86%, 100% { transform: translate3d(0, 0, 0); filter: brightness(1); }
  15% { transform: translate3d(-.35px, .25px, 0); filter: brightness(1.025); }
  49% { transform: translate3d(.4px, -.2px, 0); filter: brightness(.985); }
  87% { transform: translate3d(-.25px, -.3px, 0); filter: brightness(1.02); }
}

.hero-intro {
  max-width: 520px;
  margin: 30px 0 26px;
  color: rgba(255,255,255,.66);
  font-size: 15px;
}

.text-link,
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}

.text-link { padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.45); }
.text-link span { color: var(--accent); font-size: 16px; }

.hero-meta {
  position: absolute;
  right: clamp(24px, 4vw, 72px);
  bottom: 40px;
  z-index: 1;
  display: flex;
  gap: 18px;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  letter-spacing: .16em;
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  bottom: 34px;
  left: 50%;
  width: 24px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 2px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot { 50% { transform: translateY(13px); opacity: .35; } }

.journal { max-width: 1260px; margin: 0 auto; padding: 140px 40px 150px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.about h2,
.letters h2 { margin: 0; font-size: clamp(35px, 4vw, 60px); font-weight: 500; line-height: 1.25; }

.section-heading .eyebrow { margin-bottom: 15px; }
.section-heading > p { max-width: 290px; margin: 0; color: var(--muted); font-size: 13px; }
.journal-heading-actions { max-width: 310px; text-align: right; }
.journal-heading-actions p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.archive-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 5px; border-bottom: 1px solid var(--line); font-size: 11px; }
.archive-link span { color: var(--accent); transition: transform 180ms ease; }
.archive-link:hover span { transform: translateX(4px); }

.filter-row { display: flex; gap: 8px; padding: 28px 0 44px; overflow-x: auto; }

.filter-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 17px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-chip sup { margin-left: 5px; font-size: 8px; }

.filter-chip:hover,
.filter-chip.is-active { color: var(--accent-dark); background: var(--accent); border-color: var(--accent); }

.featured-post {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: clamp(38px, 6vw, 85px);
  align-items: center;
  margin-bottom: 80px;
}

.post-hitarea { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; }

.featured-media,
.post-image { position: relative; overflow: hidden; background: var(--panel); }
.featured-media { aspect-ratio: 1.48; }
.post-image { aspect-ratio: 1.18; margin-bottom: 24px; }
.featured-media img,
.post-image img { height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.65,.2,1), filter 300ms ease; }
.featured-post:hover .featured-media img,
.post-card:hover .post-image img { transform: scale(1.035); filter: brightness(1.08); }

.post-index {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(8,9,14,.28);
  backdrop-filter: blur(8px);
  font-size: 9px;
}

.post-meta { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.post-meta span:first-child { color: var(--accent); }
.post-meta > * + *::before { content: "·"; margin-right: 13px; color: var(--muted); }

.featured-copy h3 { margin: 22px 0 17px; font-size: clamp(30px, 3vw, 47px); font-weight: 500; line-height: 1.25; }
.featured-copy > p { margin: 0 0 28px; max-width: 450px; color: var(--muted); font-size: 14px; }
.read-link { color: var(--text); }
.read-link > span { color: var(--accent); transition: transform 180ms ease; }
.featured-post:hover .read-link > span,
.post-card:hover .read-link > span { transform: translateX(5px); }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 70px); row-gap: 78px; }
.post-card { position: relative; min-width: 0; }
.post-card:nth-child(even) { margin-top: 80px; }
.post-card h3 { margin: 14px 0 10px; font-size: clamp(23px, 2.2vw, 31px); font-weight: 500; }
.post-card p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.post-card .read-link { font-size: 11px; }

[data-category].is-filtered { display: none; }

.empty-state { padding: 90px 20px; text-align: center; color: var(--muted); }
.empty-state span { color: var(--accent); font-size: 26px; }
.empty-state h3 { margin: 16px 0 7px; color: var(--text); font-size: 24px; font-weight: 500; }
.empty-state p { margin: 0; font-size: 13px; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  min-height: 720px;
  background: var(--bg-soft);
}

.about-portrait { position: relative; min-height: 620px; overflow: hidden; }
.about-portrait img { height: 100%; object-fit: cover; object-position: center 40%; filter: saturate(.78) contrast(1.03); }
.about-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(9,10,15,.18)); }
.about-portrait > span { position: absolute; z-index: 1; left: 24px; bottom: 20px; color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .16em; }

.about-copy { align-self: center; max-width: 600px; padding: 80px clamp(40px, 7vw, 110px); }
.about-copy > p:not(.eyebrow) { margin: 28px 0 38px; color: var(--muted); font-size: 14px; }
.about-copy dl { margin: 0; border-top: 1px solid var(--line); }
.about-copy dl div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.about-copy dt { color: var(--muted); }
.about-copy dd { margin: 0; }
.about-copy a { border-bottom: 1px solid var(--line); }

.letters {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
  text-align: center;
}

.constellation { display: flex; align-items: center; margin-bottom: 46px; color: var(--accent); }
.constellation i { width: 54px; height: 1px; margin: 0 6px; background: linear-gradient(90deg, currentColor 20%, transparent 20%); background-size: 7px 1px; }
.constellation span:nth-of-type(2) { color: var(--purple); font-size: 12px; }
.letters .eyebrow { justify-content: center; }
.letters h2 { font-family: "Playfair Display", "Noto Sans SC", serif; }
.letters > p:not(.eyebrow):not(.form-status) { max-width: 510px; margin: 20px auto 34px; color: var(--muted); font-size: 13px; }

.subscribe-form { width: min(100%, 500px); display: flex; border-bottom: 1px solid var(--line); }
.subscribe-form input { min-width: 0; flex: 1; padding: 15px 4px; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 13px; }
.subscribe-form input::placeholder { color: var(--muted); }
.subscribe-form button { display: inline-flex; align-items: center; gap: 18px; padding: 0 4px 0 18px; color: var(--text); background: transparent; border: 0; cursor: pointer; font-size: 12px; white-space: nowrap; }
.subscribe-form button span { color: var(--accent); font-size: 18px; }
.form-status { min-height: 24px; margin: 14px 0 0; color: var(--accent); font-size: 12px; }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 58px clamp(24px, 5vw, 80px) 28px;
  border-top: 1px solid var(--line);
}

footer > p { margin: 0; color: var(--muted); font-family: "Playfair Display", serif; font-size: 13px; font-style: italic; }
.footer-links { justify-self: end; display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: 11px; }
.footer-links a { transition: color 160ms ease; }
.footer-links a:hover { color: var(--text); }
.back-top { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--text) !important; }
footer small { grid-column: 1 / -1; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; letter-spacing: .14em; }

dialog {
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

dialog::backdrop { background: rgba(3,4,8,.75); backdrop-filter: blur(10px); }

.search-dialog {
  width: min(720px, calc(100% - 32px));
  padding: 30px clamp(24px, 5vw, 52px) 45px;
}

.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 50px; color: var(--muted); font-size: 9px; letter-spacing: .18em; }
.search-dialog > label { display: block; margin-bottom: 15px; font-family: "Playfair Display", "Noto Sans SC", serif; font-size: clamp(29px, 5vw, 46px); }
.search-field { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.search-field svg { width: 19px; fill: none; stroke: var(--accent); stroke-width: 1.5; }
.search-field input { width: 100%; padding: 17px 0; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 16px; }
.search-dialog > p { margin: 14px 0 0; color: var(--muted); font-size: 10px; }

.article-dialog {
  width: min(1180px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow-y: auto;
}

.article-close { position: sticky; z-index: 8; top: 16px; float: right; margin: 16px 16px -58px 0; color: #fff; background: rgba(6,7,11,.48); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; backdrop-filter: blur(10px); }
.article-hero { height: min(48vh, 430px); object-fit: cover; }
.article-reading-progress { position: sticky; z-index: 7; top: 0; height: 3px; background: rgba(255,255,255,.08); }
.article-reading-progress span { display: block; width: var(--article-progress, 0%); height: 100%; background: var(--accent); transition: width 100ms linear; }
.article-reading-progress b { position: absolute; top: 9px; right: 14px; color: var(--muted); font-size: 8px; font-weight: 500; }
.article-reader-layout { display: grid; grid-template-columns: 140px minmax(0, 680px) 190px; justify-content: center; gap: clamp(24px, 4vw, 54px); padding: 0 28px; }
.article-body { min-width: 0; max-width: 680px; margin: 0 auto; padding: 64px 0 92px; }
.article-body .post-meta { margin-bottom: 22px; }
.article-body h1 { margin: 0 0 30px; font-size: clamp(36px, 6vw, 60px); font-weight: 500; line-height: 1.2; }
.article-body .lead { color: var(--text); font-family: "Playfair Display", "Noto Sans SC", serif; font-size: 20px; line-height: 1.8; }
.article-body p { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 2; }
.article-body h2 { margin: 46px 0 18px; font-size: 26px; font-weight: 500; }
.article-body h3 { margin: 36px 0 15px; font-size: 20px; font-weight: 500; }
.article-body blockquote { margin: 38px 0; padding: 5px 0 5px 25px; border-left: 2px solid var(--accent); color: var(--text); font-family: "Playfair Display", "Noto Sans SC", serif; font-size: 20px; }
.article-copy p { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 2; }
.article-copy ul, .article-copy ol { display: grid; gap: 10px; margin: 24px 0 32px; padding-left: 23px; color: var(--muted); }
.article-copy li::marker { color: var(--accent); }
.article-copy pre { padding: 20px; overflow-x: auto; color: #dce6c6; background: #0b0d11; border: 1px solid var(--line); font-family: "JetBrains Mono", monospace; font-size: 12px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; }
.article-tags span, .archive-card-tags span { color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; font-size: 8px; }
.archive-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.article-archive-mark, .article-toc { position: sticky; top: 48px; align-self: start; margin-top: 64px; color: var(--muted); }
.article-archive-mark { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--line); }
.article-archive-mark small, .article-toc small { color: var(--accent); font-size: 8px; letter-spacing: .14em; }
.article-archive-mark b { overflow-wrap: anywhere; color: var(--text); font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 500; }
.article-archive-mark span { font-size: 9px; }
.article-toc h2 { margin: 6px 0 17px; font-size: 22px; font-weight: 500; }
.article-toc-list { display: grid; }
.article-toc-list button { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 10px 0; color: var(--muted); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; font-size: 10px; line-height: 1.5; }
.article-toc-list button[data-level='h3'] { padding-left: 12px; }
.article-toc-list button:hover { color: var(--text); }
.article-toc-list button span { color: var(--accent); font-size: 8px; }
.article-sequence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 70px; }
.article-sequence button, .article-sequence > span { min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line); text-align: left; }
.article-sequence button { cursor: pointer; }
.article-sequence button:hover { border-color: var(--accent); }
.article-sequence small { color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.article-sequence b { font-size: 12px; font-weight: 500; line-height: 1.5; }
.article-related { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-related-head span { color: var(--accent); font-size: 8px; letter-spacing: .14em; }
.article-related-head h2 { margin: 5px 0 18px; }
.article-related > div:last-child { display: grid; }
.article-related button { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 16px; padding: 16px 0; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.article-related button small { color: var(--muted); font-size: 8px; }
.article-related button b { font-size: 12px; font-weight: 500; }
.article-related button span { color: var(--accent); }
.article-comment-link { display: inline-flex; gap: 12px; margin-top: 42px; padding-bottom: 5px; border-bottom: 1px solid var(--line); font-size: 11px; }
.article-comment-link span { color: var(--accent); }

.content-delete {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  display: none;
  place-items: center;
  color: #fff;
  background: rgba(10,10,14,.72);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 18px;
}
body.developer-mode .content-delete { display: grid; }

.guestbook {
  display: grid;
  grid-template-columns: minmax(330px, .78fr) minmax(0, 1.22fr);
  min-height: 760px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.guestbook-intro { display: flex; flex-direction: column; justify-content: center; padding: 90px clamp(35px, 7vw, 110px); border-right: 1px solid var(--line); }
.guestbook-intro h2 { margin: 0; font-family: "Playfair Display", "Noto Sans SC", serif; font-size: clamp(42px, 5vw, 72px); font-weight: 500; line-height: 1.2; }
.guestbook-intro > p:not(.eyebrow) { max-width: 450px; margin: 26px 0 55px; color: var(--muted); font-size: 13px; }
.message-count { display: flex; align-items: end; gap: 14px; margin-top: auto; }
.message-count strong { color: var(--accent); font-family: "Playfair Display", serif; font-size: 58px; font-weight: 500; line-height: .9; }
.message-count span { color: var(--muted); font-size: 8px; letter-spacing: .16em; }
.guestbook-main { padding: 80px clamp(28px, 6vw, 90px); }
.message-form { margin-bottom: 52px; padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.message-form label { display: grid; gap: 9px; margin-bottom: 19px; color: var(--muted); font-size: 10px; }
.message-form input,
.message-form textarea {
  width: 100%;
  padding: 12px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  resize: vertical;
  font-size: 13px;
}
.message-form textarea { min-height: 105px; }
.message-form input:focus,
.message-form textarea:focus { border-color: var(--accent); }
.message-form-foot { display: flex; align-items: center; justify-content: space-between; }
.message-form-foot > span { color: var(--muted); font-size: 9px; }
.message-form-foot button { padding: 10px 0 10px 18px; color: var(--text); background: transparent; border: 0; cursor: pointer; font-size: 12px; }
.message-form-foot button span { margin-left: 12px; color: var(--accent); }
.message-form-foot button:disabled { opacity: .45; cursor: wait; }
.message-service-status { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: 9px; }
.message-list { display: grid; gap: 0; }
.message-item { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.message-avatar { display: grid; place-items: center; width: 38px; height: 38px; color: var(--accent-dark); background: var(--accent); border-radius: 50%; font-size: 12px; font-weight: 600; }
.message-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.message-head strong { font-size: 13px; font-weight: 500; }
.message-head time,
.message-item > div > span { color: var(--muted); font-size: 9px; }
.message-item p { margin: 8px 38px 7px 0; color: var(--text); font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.message-item .content-delete { right: 0; left: auto; }
.message-empty { padding: 38px 0; color: var(--muted); font-family: "Playfair Display", serif; font-size: 14px; font-style: italic; }

.friends { min-height: var(--friends-height, 520px); padding: 110px 40px; background: var(--bg); transition: min-height 240ms ease; }
.friends-inner { width: min(1180px, 100%); margin: 0 auto; }
.friend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 46px; }
.friend-item { position: relative; min-height: 330px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.friend-item > a { height: 100%; display: grid; grid-template-rows: 160px 1fr; }
.friend-media { position: relative; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.friend-media img { height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.65,.2,1), filter 250ms ease; }
.friend-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 45%, rgba(4,5,10,.45)); }
.friend-item:hover .friend-media img { transform: scale(1.035); filter: brightness(1.07); }
.friend-item.uses-site-icon .friend-media { display: grid; place-items: center; background-image: radial-gradient(rgba(255,255,255,.12) .5px, transparent .5px); background-size: 16px 16px; }
.friend-item.uses-site-icon .friend-media img { width: 68px; height: 68px; padding: 9px; object-fit: contain; background: rgba(9,10,15,.82); border: 1px solid var(--line); }
.friend-copy { position: relative; display: flex; flex-direction: column; padding: 22px 24px 25px; }
.friend-index { color: var(--accent); font-size: 9px; letter-spacing: .14em; }
.friend-item h3 { margin: auto 0 8px; font-size: 24px; font-weight: 500; }
.friend-item p { margin: 0; color: var(--muted); font-size: 11px; }
.friend-item i { position: absolute; top: 21px; right: 24px; color: var(--accent); font-style: normal; }
.friend-item:hover { background: var(--bg-soft); }
.friend-item .content-delete { top: 12px; left: 12px; }
.friend-inline-settings { position: absolute; z-index: 6; right: 12px; bottom: 12px; left: 12px; display: none; align-items: center; gap: 8px; padding: 7px 9px; color: #8e9097; background: rgba(9,10,15,.94); border: 1px solid rgba(255,255,255,.16); font-size: 8px; }
.friend-inline-settings input { min-width: 0; flex: 1; height: 28px; padding: 0 8px; color: #f4f5ef; background: #111218; border: 1px solid rgba(255,255,255,.14); outline: 0; font-size: 9px; }
body.developer-mode .friend-inline-settings { display: flex; }
.friend-empty { padding: 75px 0; color: var(--muted); text-align: center; font-size: 12px; }

.archive-body { min-height: 100vh; }
.archive-header .archive-back { display: inline-flex; align-items: center; gap: 9px; padding-bottom: 3px; border-bottom: 1px solid var(--line); font-size: 10px; }
.archive-header .archive-back span { color: var(--accent); }
.archive-page { width: min(1260px, 100%); min-height: 75vh; margin: 0 auto; padding: 160px 40px 150px; }
.archive-hero { display: grid; grid-template-columns: 1fr auto; align-items: end; padding-bottom: 54px; border-bottom: 1px solid var(--line); }
.archive-hero .eyebrow { grid-column: 1 / -1; }
.archive-hero h1 { margin: 0; font-size: clamp(50px, 7vw, 96px); font-weight: 500; line-height: 1; }
.archive-hero > div > p { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.archive-hero > strong { color: var(--accent); font-family: "Playfair Display", serif; font-size: clamp(54px, 7vw, 92px); font-weight: 500; line-height: .8; }
.archive-controls { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 0 58px; }
.archive-filters { display: flex; gap: 8px; overflow-x: auto; }
.archive-search { width: min(330px, 42vw); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.archive-search span { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.archive-search input { width: 100%; min-width: 0; height: 42px; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 12px; }
.archive-grid { row-gap: 90px; }
.archive-card:nth-child(even) { margin-top: 0; }
.archive-card h2 { margin: 14px 0 10px; font-size: clamp(23px, 2.2vw, 31px); font-weight: 500; line-height: 1.35; }
.archive-card > p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.archive-empty { min-height: 360px; }
.archive-footer { width: min(1260px, 100%); margin: 0 auto; }
.archive-footer > p { color: var(--muted); font-size: 9px; letter-spacing: .16em; }
.archive-footer-links { justify-self: end; display: flex; align-items: center; gap: 22px; font-size: 10px; }

.music-easter { position: fixed; z-index: 90; right: 18px; bottom: 18px; }
body.developer-mode .music-easter { bottom: 82px; }
.music-easter-toggle { height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 14px; color: var(--text); background: rgba(9,10,15,.9); border: 1px solid var(--line); backdrop-filter: blur(16px); cursor: pointer; }
.music-easter-toggle span { color: var(--accent); font-size: 15px; }
.music-easter-toggle b { font-size: 8px; font-weight: 500; letter-spacing: .13em; }
.music-easter.is-playing .music-easter-toggle { border-color: rgba(214,255,115,.55); }
.music-easter-panel { position: absolute; right: 0; bottom: 50px; width: min(350px, calc(100vw - 36px)); padding: 22px; color: var(--text); background: rgba(12,13,18,.96); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.music-easter-panel[hidden] { display: none; }
.music-easter-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.music-easter-head small { display: block; color: var(--accent); font-size: 7px; letter-spacing: .14em; }
.music-easter-head strong { display: block; margin-top: 4px; font-family: "Playfair Display", serif; font-size: 21px; font-weight: 500; }
.music-easter-head button { width: 30px; height: 30px; color: var(--muted); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.music-wave { height: 46px; display: flex; align-items: center; gap: 3px; margin: 18px 0 12px; overflow: hidden; }
.music-wave i { flex: 1; height: 18%; background: var(--accent); opacity: .35; transform-origin: center; }
.music-easter.is-playing .music-wave i { animation: music-wave 1.2s ease-in-out infinite alternate; }
.music-wave i:nth-child(3n) { animation-delay: -.7s; }
.music-wave i:nth-child(4n) { animation-delay: -.35s; }
@keyframes music-wave { 0% { transform: scaleY(.35); opacity: .25; } 100% { transform: scaleY(4.8); opacity: .85; } }
.music-easter-panel > p { margin: 0 0 18px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.music-controls { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.music-controls button { min-height: 38px; padding: 0 14px; color: var(--accent-dark); background: var(--accent); border: 0; cursor: pointer; font-size: 10px; }
.music-controls label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; color: var(--muted); font-size: 8px; }
.music-controls input { width: 100%; accent-color: var(--accent); }

.lab-body { min-height: 100vh; overflow-x: hidden; background: #08090d; }
.lab-header { grid-template-columns: 1fr auto 1fr; }
.lab-header .archive-back { justify-self: end; }
.lab-system-state { display: flex; align-items: center; gap: 9px; font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: .12em; }
.lab-system-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.lab-system-state b { color: var(--muted); font-weight: 400; }
.lab-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1px; padding-top: 66px; background: var(--line); }
.lab-console, .lab-readout { background: #08090d; }
.lab-console { min-width: 0; padding: clamp(30px, 5vw, 68px); }
.lab-console-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.lab-console-head p, .lab-readout small, .lab-ledger > small { margin: 0 0 6px; color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: .14em; }
.lab-console-head h1 { margin: 0; font-size: clamp(34px, 5vw, 70px); font-weight: 500; line-height: 1; }
.lab-console-head > span { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 9px; }
.lab-running .lab-console-head > span { color: var(--accent); }
.lab-viewport { position: relative; min-height: 420px; height: min(54vh, 620px); overflow: hidden; border: 1px solid var(--line); }
#signalCanvas { width: 100%; height: 100%; display: block; }
.lab-crosshair::before, .lab-crosshair::after { content: ""; position: absolute; pointer-events: none; background: rgba(214,255,115,.16); }
.lab-crosshair::before { top: 50%; left: 0; width: 100%; height: 1px; }
.lab-crosshair::after { top: 0; left: 50%; width: 1px; height: 100%; }
.lab-coordinates { position: absolute; right: 15px; bottom: 13px; display: flex; gap: 14px; color: rgba(255,255,255,.45); font-family: "JetBrains Mono", monospace; font-size: 7px; }
.lab-control-deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 25px; }
.lab-control-deck label { display: grid; grid-template-columns: 1fr auto; gap: 8px; color: var(--muted); font-size: 9px; }
.lab-control-deck output { color: var(--text); font-family: "JetBrains Mono", monospace; }
.lab-control-deck input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.lab-command-row { grid-column: 1 / -1; display: flex; gap: 8px; }
.lab-command-row button { min-height: 42px; padding: 0 18px; color: var(--text); background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: 10px; }
.lab-command-row button:first-child { color: var(--accent-dark); background: var(--accent); border-color: var(--accent); }
.lab-readout { padding: 66px 28px 90px; }
.lab-readout > div:first-child { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.lab-readout > div:first-child strong { display: block; overflow-wrap: anywhere; font-family: "JetBrains Mono", monospace; font-size: 22px; font-weight: 500; }
.lab-readout > p { min-height: 120px; margin: 25px 0; color: var(--text); font-family: "Playfair Display", "Noto Sans SC", serif; font-size: 21px; line-height: 1.8; }
.lab-readout dl { margin: 0; border-top: 1px solid var(--line); }
.lab-readout dl div { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lab-readout dt { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.lab-readout dd { margin: 0; font-family: "JetBrains Mono", monospace; font-size: 9px; }
.lab-ledger { margin-top: 38px; }
.lab-ledger ol { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: lab-log; }
.lab-ledger li { counter-increment: lab-log; padding: 10px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 9px; }
.lab-ledger li::before { content: "0" counter(lab-log) " / "; color: var(--accent); }

.changelog-page { width: min(1120px, 100%); margin: 0 auto; padding: 160px 40px 140px; }
.changelog-hero { position: relative; padding-bottom: 70px; border-bottom: 1px solid var(--line); }
.changelog-hero h1 { margin: 0; font-size: clamp(54px, 8vw, 110px); font-weight: 500; line-height: 1; }
.changelog-hero > p:not(.eyebrow) { max-width: 460px; margin: 24px 0 0; color: var(--muted); }
.changelog-hero > div { position: absolute; right: 0; bottom: 68px; display: grid; justify-items: end; }
.changelog-hero > div span, .changelog-hero > div small { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.changelog-hero > div strong { color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: clamp(28px, 4vw, 48px); font-weight: 500; }
.changelog-timeline { position: relative; padding-top: 42px; }
.changelog-timeline::before { content: ""; position: absolute; top: 42px; bottom: 0; left: 180px; width: 1px; background: var(--line); }
.changelog-entry { position: relative; display: grid; grid-template-columns: 180px 1fr; min-height: 210px; padding: 28px 0 54px; }
.changelog-entry::before { content: ""; position: absolute; top: 34px; left: 176px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); }
.changelog-entry.is-current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 15px rgba(214,255,115,.45); }
.changelog-entry header { display: grid; align-content: start; gap: 5px; padding-right: 35px; }
.changelog-entry time { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 9px; }
.changelog-entry header strong { font-size: 21px; font-weight: 500; }
.changelog-entry header span { color: var(--accent); font-size: 7px; letter-spacing: .14em; }
.changelog-entry > div { padding: 0 0 0 54px; }
.changelog-entry h2 { margin: 0 0 22px; font-size: 28px; font-weight: 500; }
.changelog-entry ul { display: grid; gap: 10px; margin: 0; padding: 0; color: var(--muted); list-style: none; }
.changelog-entry li { position: relative; padding-left: 18px; font-size: 12px; }
.changelog-entry li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }

.lost-signal-page { min-height: 100vh; overflow: hidden; color: #fff; background: #05060a; }
.lost-signal-image, .lost-signal-shade { position: fixed; inset: 0; width: 100%; height: 100%; }
.lost-signal-image { object-fit: cover; filter: saturate(.45) contrast(1.1); animation: hero-drift 20s ease-out both; }
.lost-signal-shade { background: linear-gradient(90deg, rgba(4,5,10,.92), rgba(4,5,10,.55) 60%, rgba(4,5,10,.28)); }
.lost-signal-page > header { position: relative; z-index: 1; height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 6vw, 82px); border-bottom: 1px solid rgba(255,255,255,.14); }
.lost-signal-page > header > span { color: rgba(255,255,255,.5); font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: .14em; }
.lost-signal-page main { position: relative; z-index: 1; min-height: calc(100vh - 80px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 60px clamp(24px, 10vw, 150px) 100px; }
.lost-signal-page main > p { color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: .18em; }
.lost-signal-page main > strong { position: absolute; right: clamp(25px, 8vw, 120px); color: rgba(255,255,255,.1); font-family: "Playfair Display", serif; font-size: clamp(140px, 24vw, 360px); font-weight: 500; line-height: .8; }
.lost-signal-page h1 { margin: 8px 0 28px; font-size: clamp(50px, 7vw, 100px); font-weight: 500; line-height: 1.08; }
.lost-signal-page h1 em { color: #e3d8f7; font-family: "Playfair Display", "Noto Sans SC", serif; font-weight: 500; }
.lost-signal-data { display: flex; flex-wrap: wrap; gap: 20px; color: rgba(255,255,255,.48); font-family: "JetBrains Mono", monospace; font-size: 8px; }
.lost-signal-page nav { display: flex; align-items: center; gap: 26px; margin-top: 46px; }
.lost-signal-page nav a { padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.3); font-size: 11px; }
.lost-signal-page nav a:first-child { color: var(--accent); }

.secret-dialog {
  width: min(470px, calc(100% - 32px));
  padding: 54px clamp(25px, 6vw, 48px) 38px;
  overflow: hidden;
  text-align: center;
}

.secret-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: radial-gradient(rgba(255,255,255,.8) .5px, transparent .5px);
  background-size: 17px 17px;
  mask-image: linear-gradient(to bottom, black, transparent 62%);
}

.secret-close { position: absolute; z-index: 2; top: 12px; right: 12px; }
.signal-mark { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--accent); }
.signal-mark span { width: 48px; height: 1px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 7px); }
.signal-mark i { font-style: normal; }
.signal-code { margin: 16px 0 20px; color: var(--accent); font-size: 9px; letter-spacing: .2em; }
.secret-dialog h2 { position: relative; margin: 0; font-family: "Playfair Display", "Noto Sans SC", serif; font-size: 35px; font-weight: 500; }
.secret-dialog > p:not(.signal-code):not(.secret-status) { position: relative; margin: 12px 0 32px; color: var(--muted); font-size: 12px; }
.secret-dialog form { position: relative; text-align: left; }
.secret-dialog label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; }
.secret-field { display: flex; border-bottom: 1px solid var(--line); }
.secret-field input { min-width: 0; flex: 1; padding: 13px 0; color: var(--text); background: transparent; border: 0; outline: 0; letter-spacing: .12em; }
.secret-field button { width: 44px; color: var(--accent); background: transparent; border: 0; cursor: pointer; font-size: 21px; }
.secret-status { min-height: 20px; margin: 13px 0 0; color: #ff8d87; font-size: 11px; }
.secret-status.is-success { color: var(--accent); }

.builder-dialog {
  width: min(700px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 48px;
  overflow-y: auto;
}
.builder-dialog .dialog-close { position: absolute; top: 12px; right: 12px; }
.builder-dialog h2 { margin: 0; font-family: 'Playfair Display', 'Noto Sans SC', serif; font-size: 36px; font-weight: 500; }
.builder-dialog > p:not(.signal-code) { margin: 10px 0 28px; color: var(--muted); font-size: 12px; }
.module-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.module-type-grid button { min-height: 96px; display: grid; align-content: center; gap: 5px; padding: 18px; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line); cursor: pointer; text-align: left; }
.module-type-grid button:hover { border-color: var(--accent); }
.module-type-grid b { font-size: 14px; font-weight: 500; }
.module-type-grid span { color: var(--muted); font-size: 10px; }
.image-dialog { width: min(520px, calc(100% - 32px)); }
.image-dialog > input { width: 100%; min-height: 46px; padding: 0 13px; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line); outline: 0; }
.image-dialog > input:focus { border-color: var(--accent); }
.image-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.image-dialog-actions button { min-height: 44px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 11px; }
.image-dialog-actions button:first-child { color: var(--accent-dark); background: var(--accent); border-color: var(--accent); }
.image-dialog-actions button[hidden] { display: none; }
.image-dialog-actions #clearImage { color: #ffaaa4; }
.image-file-name { display: block; margin-top: 10px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.link-dialog { width: min(520px, calc(100% - 32px)); }
.link-dialog > input { width: 100%; min-height: 46px; padding: 0 13px; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line); outline: 0; }
.dialog-primary { width: 100%; min-height: 44px; margin-top: 10px; color: var(--accent-dark); background: var(--accent); border: 0; cursor: pointer; font-size: 11px; }

.developer-toolbar,
.inline-author-panel,
.add-module-button,
.module-controls,
.section-controls,
.free-element-controls,
.builder-insert-handle,
.post-edit-button,
.spacer-hint,
.free-spacer-hint { display: none; }

.developer-toolbar {
  position: fixed;
  z-index: 90;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 64px;
  align-items: center;
  gap: 18px;
  padding: 9px 18px;
  color: #f4f5ef;
  background: rgba(14,15,21,.96);
  border-top: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 -18px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
body.developer-mode .developer-toolbar { display: flex; }
.toolbar-status { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-width: 150px; }
.toolbar-status i { width: 7px; height: 7px; border-radius: 50%; background: #d6ff73; box-shadow: 0 0 10px rgba(214,255,115,.7); }
.toolbar-status span { color: #d6ff73; font-size: 9px; font-weight: 600; }
.toolbar-status small { max-width: 170px; overflow: hidden; color: #8e9097; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.toolbar-format { min-width: 0; display: flex; align-items: center; gap: 6px; }
.toolbar-format select,
.toolbar-format button,
.toolbar-actions button { height: 38px; padding: 0 11px; color: #f4f5ef; background: #090a0f; border: 1px solid rgba(255,255,255,.15); cursor: pointer; font-size: 10px; }
.toolbar-format select { min-width: 76px; }
.toolbar-format button { width: 38px; padding: 0; }
.toolbar-format #formatLink,
.toolbar-format #formatUnlink,
.toolbar-format #formatUl,
.toolbar-format #formatOl,
.toolbar-format #formatQuote,
.toolbar-format #formatCode,
.toolbar-format #formatDetails { width: auto; padding: 0 9px; }
.toolbar-format :disabled { opacity: .3; cursor: not-allowed; }
.color-control { position: relative; width: 38px; height: 38px; display: grid; place-items: center; background: #090a0f; border: 1px solid rgba(255,255,255,.15); cursor: pointer; }
.color-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.color-control span { width: 16px; height: 16px; border-radius: 50%; background: var(--format-color, #f2f0e9); border: 1px solid rgba(255,255,255,.6); }
.toolbar-actions { margin-left: auto; display: flex; gap: 6px; }
.toolbar-actions button:hover { border-color: rgba(255,255,255,.45); }
.toolbar-actions .publish-button { color: #111218; background: #d6ff73; border-color: #d6ff73; }
.toolbar-actions .publish-button:disabled { opacity: .45; cursor: wait; }
.toolbar-actions .toolbar-exit { color: #ffaaa4; }
.developer-toast { position: fixed; z-index: 110; right: 18px; bottom: 82px; max-width: min(380px, calc(100% - 36px)); margin: 0; padding: 12px 16px; color: #111218; background: #d6ff73; box-shadow: 0 16px 45px rgba(0,0,0,.32); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 180ms ease, transform 180ms ease; font-size: 11px; }
.developer-toast.is-visible { opacity: 1; transform: translateY(0); }

.inline-author-panel { margin: 4px 0 46px; padding: 26px 0 30px; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--line); }
body.developer-mode .inline-author-panel { display: block; }
.inline-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.inline-panel-head span { color: var(--accent); font-size: 8px; letter-spacing: .16em; }
.inline-panel-head h3 { margin: 3px 0 0; font-size: 22px; font-weight: 500; }
.inline-panel-head p { max-width: 330px; margin: 0; color: var(--muted); font-size: 10px; }
.inline-editor-form { display: grid; gap: 10px; }
.inline-editor-form input,
.inline-editor-form textarea,
.inline-editor-form select { width: 100%; min-width: 0; padding: 12px 13px; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 0; outline: 0; resize: vertical; font-size: 12px; }
.inline-editor-form input:focus,
.inline-editor-form textarea:focus,
.inline-editor-form select:focus { border-color: var(--accent); }
.inline-editor-form .field-pair { gap: 10px; }
.inline-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.inline-form-foot > span { color: var(--muted); font-size: 9px; }
.inline-form-foot button,
.compact-form button,
.inline-height-control button { min-height: 42px; padding: 0 18px; color: var(--accent-dark); background: var(--accent); border: 0; cursor: pointer; font-size: 11px; }
.compact-form { grid-template-columns: 1fr 1.25fr 1.1fr 1.15fr auto; align-items: center; }
.inline-height-control { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 10px; }
.inline-height-control input { width: 90px; min-height: 38px; padding: 0 9px; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line); }
.inline-height-control button { min-height: 38px; color: var(--text); background: transparent; border: 1px solid var(--line); }

.module-slot { width: 100%; }
.custom-module-list:empty { display: none; }
body.developer-mode .module-slot { padding: 8px 14px; border-top: 1px dashed rgba(214,255,115,.34); border-bottom: 1px dashed rgba(214,255,115,.34); background: rgba(214,255,115,.025); }
body.developer-mode .module-slot.is-empty { min-height: 66px; display: grid; place-items: center; }
body.developer-mode .add-module-button { display: block; min-width: 150px; min-height: 38px; margin: 10px auto; color: var(--accent); background: rgba(9,10,15,.86); border: 1px dashed rgba(214,255,115,.55); cursor: pointer; font-size: 10px; }

.custom-module { position: relative; width: 100%; padding: var(--module-padding, 96px) 32px; border-top: 1px solid var(--line); background: var(--bg); }
.custom-module-inner { width: min(1180px, 100%); margin: 0 auto; }
.custom-module[data-width='narrow'] .custom-module-inner { width: min(760px, 100%); }
.custom-module[data-width='full'] { padding-right: 0; padding-left: 0; }
.custom-module[data-width='full'] .custom-module-inner { width: 100%; }
.custom-module[data-align='center'] { text-align: center; }
.custom-module[data-align='right'] { text-align: right; }
.custom-kicker { margin: 0 0 18px; color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: .15em; }
.custom-module h2 { max-width: 900px; margin: 0; font-family: 'Playfair Display', 'Noto Sans SC', serif; font-size: 48px; font-weight: 500; line-height: 1.22; }
.custom-module[data-align='center'] h2,
.custom-module[data-align='center'] .custom-body { margin-right: auto; margin-left: auto; }
.custom-module[data-align='right'] h2,
.custom-module[data-align='right'] .custom-body { margin-left: auto; }
.custom-body { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 14px; line-height: 2; }
.custom-module figure { margin: 0; }
.custom-module figcaption { margin-top: 12px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.custom-module-image img { max-height: 720px; object-fit: cover; }
.custom-split-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); align-items: center; gap: 70px; }
.custom-split-grid > img { min-height: 520px; height: 100%; object-fit: cover; }
.custom-heading { margin-bottom: 34px; }
.custom-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.custom-gallery-grid img { aspect-ratio: .82; object-fit: cover; }
.custom-module-quote .custom-module-inner { display: grid; justify-items: center; text-align: center; }
.custom-module-quote blockquote { max-width: 980px; margin: 0; font-family: 'Playfair Display', 'Noto Sans SC', serif; font-size: 48px; font-weight: 500; line-height: 1.45; }
.custom-module-quote cite { margin-top: 30px; color: var(--accent); font-size: 9px; font-style: normal; letter-spacing: .16em; }
.custom-link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.custom-link-row a { min-width: 180px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 16px 18px; border: 1px solid var(--line); font-size: 11px; }
.custom-link-row a:hover { border-color: var(--accent); }
.custom-link-row i { color: var(--accent); font-style: normal; }
.custom-module-divider { padding-top: var(--module-padding, 36px); padding-bottom: var(--module-padding, 36px); }
.custom-module-divider .custom-module-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.custom-module-divider .custom-module-inner > span { height: 1px; background: var(--line); }
.custom-module-divider b { color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .16em; }
.custom-module-spacer { padding: 0; }
.spacer-hint { position: absolute; inset: 12px; place-items: center; color: var(--muted); border: 1px dashed var(--line); font-size: 10px; }
body.developer-mode .spacer-hint { display: grid; }

body.developer-mode .module-controls { position: relative; z-index: 32; width: min(1240px, calc(100% - 16px)); display: grid; gap: 8px; margin: calc(var(--module-padding, 96px) * -1 + 8px) auto 28px; padding: 9px; color: #f4f5ef; background: rgba(12,13,18,.96); border: 1px solid rgba(255,255,255,.17); box-shadow: 0 12px 34px rgba(0,0,0,.22); text-align: left; }
body.developer-mode .custom-module-spacer .module-controls { margin: 8px auto; }
.module-control-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; }
.module-control-row > strong { min-width: 56px; color: #d6ff73; font-size: 10px; font-weight: 500; }
.module-control-row button,
.module-control-row select,
.module-control-row input { flex: 0 0 auto; height: 32px; padding: 0 8px; color: #f4f5ef; background: #090a0f; border: 1px solid rgba(255,255,255,.16); cursor: pointer; font-size: 9px; }
.module-control-row input[type='color'] { width: 32px; padding: 3px; }
.module-control-row input[type='number'] { width: 70px; }
.module-control-row label { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; color: #8e9097; font-size: 8px; }
.module-control-row .danger { color: #ffaaa4; }
.module-link-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.module-link-settings label { display: flex; align-items: center; gap: 8px; color: #8e9097; font-size: 8px; }
.module-link-settings input { min-width: 0; width: 100%; height: 32px; padding: 0 9px; color: #f4f5ef; background: #090a0f; border: 1px solid rgba(255,255,255,.16); font-size: 9px; }

.free-module-canvas { min-height: 100px; }
.free-module-canvas[data-layout='columns'] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.free-module-canvas[data-layout='grid'] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 18px; }
.free-module-canvas .builder-insert-handle { grid-column: 1 / -1; }

body.developer-mode .builder-insert-handle {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 5px 0;
  color: rgba(214,255,115,.72);
  background: transparent;
  border: 1px dashed rgba(214,255,115,.28);
  cursor: pointer;
  font-size: 8px;
}
body.developer-mode .builder-insert-handle:hover { color: #d6ff73; background: rgba(214,255,115,.06); border-color: rgba(214,255,115,.72); }
.builder-insert-handle span { font-size: 14px; }
.builder-insert-handle b { font-weight: 500; }

.free-element { position: relative; width: 100%; max-width: 100%; margin-top: var(--free-margin, 16px); margin-bottom: var(--free-margin, 16px); }
.free-element[data-width='three-quarter'] { width: 75%; }
.free-element[data-width='half'] { width: 50%; }
.free-element[data-align='center'] { margin-right: auto; margin-left: auto; text-align: center; }
.free-element[data-align='right'] { margin-left: auto; text-align: right; }
.free-element-content { position: relative; min-height: var(--free-height, 0); padding: 10px 0; overflow: hidden; border-radius: var(--free-radius, 0); }
body.developer-mode .free-element { outline: 1px solid rgba(214,255,115,.14); outline-offset: 3px; }
body.developer-mode .free-element-controls { position: relative; z-index: 28; display: grid; gap: 7px; margin-bottom: 10px; padding: 8px; color: #f4f5ef; background: rgba(12,13,18,.96); border: 1px solid rgba(255,255,255,.16); text-align: left; }
.free-control-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; }
.free-control-row > strong { min-width: 62px; color: #d6ff73; font-size: 9px; font-weight: 500; }
.free-control-row button,
.free-control-row select,
.free-control-row input { flex: 0 0 auto; height: 32px; padding: 0 8px; color: #f4f5ef; background: #090a0f; border: 1px solid rgba(255,255,255,.16); cursor: pointer; font-size: 9px; }
.free-control-row label { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; color: #8e9097; font-size: 8px; }
.free-control-row input[type='number'] { width: 68px; }
.free-control-row input[type='color'] { width: 32px; padding: 3px; }
.free-control-row .danger { color: #ffaaa4; }
.free-url-setting { display: flex; align-items: center; gap: 8px; color: #8e9097; font-size: 8px; }
.free-url-setting input { min-width: 0; width: 100%; height: 32px; padding: 0 9px; color: #f4f5ef; background: #090a0f; border: 1px solid rgba(255,255,255,.16); font-size: 9px; }

.free-heading { margin: 0; font-family: 'Playfair Display', 'Noto Sans SC', serif; font-size: 42px; font-weight: 500; line-height: 1.25; }
.free-rich-text { color: var(--muted); font-size: 14px; line-height: 2; }
.free-rich-text a,
[data-edit-key] a { color: var(--accent); border-bottom: 1px solid currentColor; }
.free-rich-text blockquote,
[data-edit-key] blockquote { margin: 22px 0; padding: 5px 0 5px 18px; border-left: 2px solid var(--accent); color: var(--text); font-family: 'Playfair Display', 'Noto Sans SC', serif; font-size: 19px; }
.free-rich-text pre,
[data-edit-key] pre { margin: 20px 0; padding: 18px; overflow-x: auto; color: #d6ff73; background: #090a0f; border: 1px solid var(--line); font-family: monospace; font-size: 12px; text-align: left; }
.free-rich-text ul,
.free-rich-text ol,
[data-edit-key] ul,
[data-edit-key] ol { padding-left: 24px; }
.free-rich-text details,
[data-edit-key] details { margin: 18px 0; padding: 15px 17px; border: 1px solid var(--line); }
.free-rich-text summary,
[data-edit-key] summary { color: var(--text); cursor: pointer; font-weight: 500; }
.free-rich-text details > div,
[data-edit-key] details > div { margin-top: 13px; color: var(--muted); }
.free-image { margin: 0; }
.free-image img { width: 100%; max-height: 720px; object-fit: cover; }
.free-image figcaption { margin-top: 9px; color: var(--muted); font-size: 9px; }
.free-quote { margin: 0; padding: 42px 28px; text-align: center; }
.free-quote blockquote { max-width: 900px; margin: 0 auto; font-family: 'Playfair Display', 'Noto Sans SC', serif; font-size: 36px; font-weight: 500; line-height: 1.5; }
.free-quote figcaption { margin-top: 20px; color: var(--accent); font-size: 9px; letter-spacing: .15em; }
.free-details { padding: 18px 20px; border: 1px solid var(--line); text-align: left; }
.free-details summary { cursor: pointer; color: var(--text); font-size: 14px; font-weight: 500; }
.free-details > div { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.free-list { display: grid; gap: 9px; margin: 0; padding: 18px 18px 18px 42px; color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.free-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 54px; }
.free-divider span { height: 1px; background: var(--line); }
.free-divider b { color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .16em; }
.free-element-spacer .free-element-content { min-height: max(40px, var(--free-height, 140px)); }
body.developer-mode .free-spacer-hint { position: absolute; inset: 5px; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line); font-size: 9px; }

.free-mystery-link { position: relative; min-height: max(240px, var(--free-height, 0px)); overflow: hidden; color: #fff; background: #101118; }
.free-mystery-link > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.free-mystery-link.uses-site-icon > img { inset: 40px auto auto 40px; width: 86px; height: 86px; object-fit: contain; }
.mystery-link-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,10,.88), rgba(5,6,10,.35)); }
.free-mystery-link.uses-site-icon .mystery-link-shade { background: radial-gradient(circle at 82px 82px, rgba(214,255,115,.12), transparent 180px); }
.free-mystery-link > a { position: relative; z-index: 2; min-height: inherit; display: flex; flex-direction: column; justify-content: end; padding: 34px 38px; }
.free-mystery-link > a > span { color: #d6ff73; font-size: 8px; letter-spacing: .16em; }
.free-mystery-link h3 { max-width: 680px; margin: 10px 0 8px; font-size: 28px; font-weight: 500; line-height: 1.3; }
.free-mystery-link p { max-width: 620px; margin: 0; color: rgba(255,255,255,.66); font-size: 11px; }
.free-mystery-link i { position: absolute; top: 28px; right: 30px; color: #d6ff73; font-style: normal; font-size: 19px; }
body.developer-mode .free-mystery-link > img { cursor: crosshair; }

body.developer-mode [data-page-module] { position: relative; }
.section-controls { position: absolute; z-index: 34; top: 12px; left: 12px; max-width: calc(100% - 24px); align-items: center; gap: 6px; padding: 8px; color: #f4f5ef; background: rgba(12,13,18,.94); border: 1px solid rgba(255,255,255,.17); box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.hero > .section-controls { top: 88px; }
body.developer-mode .section-controls { display: flex; }
.section-controls strong { min-width: 62px; color: #d6ff73; font-size: 9px; font-weight: 500; }
.section-controls label { display: flex; align-items: center; gap: 5px; color: #8e9097; font-size: 8px; white-space: nowrap; }
.section-controls input,
.section-controls button { height: 32px; padding: 0 8px; color: #f4f5ef; background: #090a0f; border: 1px solid rgba(255,255,255,.16); font-size: 9px; }
.section-controls input[type='color'] { width: 32px; padding: 3px; }
.section-controls input[type='number'] { width: 70px; }
.section-controls button { cursor: pointer; }
body:not(.developer-mode) [data-page-module].builder-hidden { display: none !important; }
body.developer-mode [data-page-module].builder-hidden > :not(.section-controls) { opacity: .16; pointer-events: none; }

.post-edit-button { position: absolute; z-index: 6; top: 12px; left: 54px; min-height: 32px; padding: 0 12px; color: #111218; background: #d6ff73; border: 0; cursor: pointer; font-size: 9px; }
body.developer-mode .post-edit-button { display: block; }
body.developer-mode [data-edit-key]:not(img) { position: relative; outline: 1px dashed rgba(214,255,115,.55); outline-offset: 4px; cursor: text; }
body.developer-mode [data-edit-key]:not(img):hover,
body.developer-mode [data-edit-key]:not(img):focus { outline: 2px solid #d6ff73; background: rgba(214,255,115,.07); }
body.developer-mode img[data-edit-key] { cursor: crosshair; outline: 2px dashed rgba(214,255,115,.55); outline-offset: -5px; }
body.developer-mode img[data-edit-key]:hover,
body.developer-mode img[data-edit-key].is-selected { outline: 3px solid #d6ff73; outline-offset: -5px; filter: brightness(.8); }
body.developer-mode .post-hitarea { pointer-events: none; }
body.developer-mode .hero-shade,
body.developer-mode .about-portrait::after { pointer-events: none; }
body.developer-mode { padding-bottom: 64px; overflow-x: hidden; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
  .site-header { height: 68px; grid-template-columns: 1fr auto; padding: 0 18px; }
  .desktop-nav { display: none; }
  .menu-button { display: inline-grid; }
  .header-actions { gap: 0; }

  .mobile-menu {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 95px 28px 35px;
    visibility: hidden;
    opacity: 0;
    background: var(--bg);
    transition: opacity 220ms ease, visibility 220ms ease;
  }
  .mobile-menu.is-open { visibility: visible; opacity: 1; }
  .mobile-menu nav { display: grid; }
  .mobile-menu nav a { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 34px; }
  .mobile-menu nav span { color: var(--accent); font-size: 10px; }
  .mobile-menu > p { margin-top: auto; color: var(--muted); font-size: 12px; }

  .hero { min-height: 760px; padding: 120px 24px 84px; }
  .hero-image { object-position: 58% center; }
  .hero h1 { font-size: clamp(43px, 12vw, 65px); }
  .hero-intro { font-size: 13px; }
  .hero-meta { right: 22px; bottom: 25px; }
  .scroll-cue { display: none; }

  .journal { padding: 100px 20px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .journal-heading-actions { max-width: none; margin-top: 18px; text-align: left; }
  .filter-row { margin-right: -20px; padding-bottom: 35px; }
  .featured-post { grid-template-columns: 1fr; gap: 27px; margin-bottom: 65px; }
  .featured-media { aspect-ratio: 1.15; }
  .featured-copy h3 { margin-top: 16px; }
  .post-grid { grid-template-columns: 1fr; row-gap: 58px; }
  .post-card:nth-child(even) { margin-top: 0; }
  .post-image { aspect-ratio: 1.2; }

  .about { grid-template-columns: 1fr; }
  .about-portrait { min-height: 520px; }
  .about-copy { padding: 75px 24px 90px; }
  .about-copy h2 { font-size: 36px; }

  .letters { min-height: 570px; }
  .letters h2 { font-size: 36px; }

  .guestbook { grid-template-columns: 1fr; }
  .guestbook-intro { min-height: 530px; border-right: 0; border-bottom: 1px solid var(--line); }
  .guestbook-main { padding: 65px 24px 85px; }
  .friends { padding: 90px 20px; }
  .friend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .archive-page { padding: 125px 20px 100px; }
  .archive-hero { padding-bottom: 38px; }
  .archive-controls { align-items: stretch; flex-direction: column; padding-bottom: 44px; }
  .archive-search { width: 100%; }
  .archive-grid { row-gap: 60px; }
  .archive-footer { padding-right: 20px; padding-left: 20px; }

  .article-dialog { width: calc(100% - 18px); max-height: calc(100vh - 18px); }
  .article-reader-layout { grid-template-columns: 1fr; padding: 0 22px; }
  .article-archive-mark { position: static; margin: 36px 0 -28px; grid-template-columns: auto 1fr auto; align-items: center; }
  .article-toc { position: static; grid-row: 2; margin: 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .article-toc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .article-body { grid-row: 3; width: 100%; padding-top: 18px; }
  .article-hero { height: min(38vh, 330px); }

  .lab-header { grid-template-columns: 1fr auto; }
  .lab-system-state { display: none; }
  .lab-page { grid-template-columns: 1fr; }
  .lab-console { padding: 38px 20px 50px; }
  .lab-viewport { min-height: 360px; height: 52vh; }
  .lab-readout { padding: 50px 22px 100px; }
  .lab-readout > p { min-height: 0; }
  .changelog-page { padding: 125px 20px 100px; }
  .changelog-hero > div { position: static; justify-items: start; margin-top: 38px; }
  .changelog-timeline::before { left: 105px; }
  .changelog-entry { grid-template-columns: 105px 1fr; }
  .changelog-entry::before { left: 101px; }
  .changelog-entry > div { padding-left: 30px; }

  footer { grid-template-columns: 1fr auto; padding-top: 42px; }
  footer > p { display: none; }
  .footer-links { gap: 13px; }

  .builder-dialog { padding: 42px 22px 28px; }
  .module-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .developer-toolbar { gap: 8px; padding: 8px 10px; overflow-x: auto; }
  .toolbar-status { min-width: 58px; }
  .toolbar-status small { display: none; }
  .toolbar-format,
  .toolbar-actions { flex: 0 0 auto; }
  .toolbar-actions { margin-left: 0; }
  .section-controls { max-width: calc(100% - 16px); left: 8px; overflow-x: auto; }
  .hero > .section-controls { top: 74px; }
  .compact-form { grid-template-columns: 1fr 1fr; }
  .custom-module { padding-right: 22px; padding-left: 22px; }
  .custom-split-grid { grid-template-columns: 1fr; gap: 36px; }
  .custom-split-grid > img { min-height: 420px; }
  .custom-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-gallery-grid figure:last-child { grid-column: 1 / -1; }
  body.developer-mode .module-controls { width: 100%; }
  .free-module-canvas[data-layout='grid'] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .free-element[data-width='half'] { width: 65%; }
}

@media (max-width: 480px) {
  .header-actions .icon-button { width: 38px; }
  .hero { min-height: 700px; }
  .hero h1 { font-size: 43px; }
  .hero h1 br { display: none; }
  .hero-meta span:last-child { display: none; }
  .section-heading h2 { font-size: 39px; }
  .post-meta { gap: 9px; }
  .post-meta > * + *::before { margin-right: 9px; }
  .about-copy dl div { grid-template-columns: 98px 1fr; }
  .subscribe-form button { gap: 8px; padding-left: 10px; }
  footer .brand span:last-child { display: none; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .field-pair.compact { grid-template-columns: 1fr; gap: 0; }
  .friend-grid { grid-template-columns: 1fr; }
  .friend-item { min-height: 320px; }
  .archive-header .archive-back { font-size: 0; border: 0; }
  .archive-header .archive-back span { font-size: 15px; }
  .archive-hero { grid-template-columns: 1fr; gap: 30px; }
  .archive-hero > strong { justify-self: end; }
  .archive-filters { margin-right: -20px; }
  .article-reader-layout { padding: 0 17px; }
  .article-archive-mark { grid-template-columns: 1fr; }
  .article-toc-list { grid-template-columns: 1fr; }
  .article-sequence { grid-template-columns: 1fr; }
  .article-related button { grid-template-columns: 1fr auto; }
  .article-related button small { grid-column: 1 / -1; }
  .music-easter { right: 10px; bottom: 10px; }
  .music-easter-toggle b { display: none; }
  .music-easter-toggle { width: 42px; justify-content: center; padding: 0; }
  .lab-console-head { align-items: start; flex-direction: column; }
  .lab-viewport { min-height: 320px; height: 48vh; }
  .lab-control-deck { grid-template-columns: 1fr; }
  .lab-command-row { display: grid; grid-template-columns: 1fr 1fr; }
  .lab-command-row button:first-child { grid-column: 1 / -1; }
  .changelog-hero { padding-bottom: 48px; }
  .changelog-timeline::before { left: 7px; }
  .changelog-entry { grid-template-columns: 1fr; padding-left: 28px; }
  .changelog-entry::before { left: 3px; }
  .changelog-entry > div { padding: 25px 0 0; }
  .lost-signal-page > header > span { display: none; }
  .lost-signal-page main > strong { top: 20%; right: 20px; }
  .lost-signal-page nav { align-items: flex-start; flex-direction: column; gap: 16px; }
  .guestbook-intro { min-height: 500px; padding: 75px 24px; }
  .guestbook-intro h2 { font-size: 43px; }
  .message-count strong { font-size: 48px; }
  .module-type-grid button { min-height: 82px; padding: 13px; }
  .image-dialog-actions { grid-template-columns: 1fr; }
  .inline-panel-head { display: block; }
  .inline-panel-head p { margin-top: 10px; }
  .compact-form { grid-template-columns: 1fr; }
  .inline-form-foot { align-items: stretch; flex-direction: column; }
  .inline-height-control { align-items: stretch; flex-wrap: wrap; }
  .custom-module { padding-right: 20px; padding-left: 20px; }
  .custom-module h2 { font-size: 36px; }
  .custom-module-quote blockquote { font-size: 34px; }
  .custom-gallery-grid { grid-template-columns: 1fr; }
  .custom-gallery-grid figure:last-child { grid-column: auto; }
  .custom-link-row { display: grid; }
  .module-link-settings { grid-template-columns: 1fr; }
  .developer-toast { right: 10px; bottom: 76px; max-width: calc(100% - 20px); }
  .free-module-canvas[data-layout='columns'],
  .free-module-canvas[data-layout='grid'] { grid-template-columns: 1fr; }
  .free-element[data-width='half'],
  .free-element[data-width='three-quarter'] { width: 100%; }
  .free-heading { font-size: 34px; }
  .free-quote { padding: 32px 18px; }
  .free-quote blockquote { font-size: 28px; }
  .free-mystery-link > a { padding: 28px 24px; }
  .free-mystery-link.uses-site-icon > img { top: 28px; left: 24px; width: 68px; height: 68px; }
  .free-mystery-link h3 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
