:root {
  color-scheme: dark;
  --paper: #050807;
  --soft: #0c1210;
  --ash: #151f1c;
  --ink: #56ffb7;
  --muted: rgba(86, 255, 183, 0.68);
  --line: rgba(86, 255, 183, 0.28);
  --plum: #11141c;
  --wine: #56ffb7;
  --rose: #13211b;
  --white: #56ffb7;
  --terminal: #56ffb7;
  --terminal-dim: rgba(86, 255, 183, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(86, 255, 183, 0.1), transparent 28rem),
    linear-gradient(180deg, #050807, #070608 42%, #050807);
  color: var(--ink);
  font-family:
    Georgia, "Times New Roman", Times, serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(86, 255, 183, 0.08) 1px, transparent 1px);
  background-size: 100% 5px;
  opacity: 0.28;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(transparent 50%, rgba(0, 0, 0, 0.24) 50%),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.46));
  background-size: 100% 4px, 100% 100%;
  mix-blend-mode: multiply;
}

.matrix-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 5vw, 58px);
  color: var(--white);
  pointer-events: none;
}

.brand {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  text-decoration: none;
  opacity: 0.94;
  pointer-events: auto;
}

.nav {
  position: relative;
  display: flex;
  width: 54px;
  height: 54px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(86, 255, 183, 0.9);
  color: transparent;
  pointer-events: auto;
  transition:
    width 180ms ease,
    border-radius 180ms ease,
    color 180ms ease,
    padding 180ms ease;
}

.nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 0 10px;
  color: currentColor;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.84rem;
  text-decoration: none;
}

.nav::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 16px;
  border-top: 3px solid #050807;
  border-bottom: 3px solid #050807;
  transform: translateX(-15px);
}

.nav::after {
  content: "";
  position: absolute;
  width: 24px;
  border-top: 3px solid #050807;
  transform: translateX(-15px);
}

.nav:hover,
.nav:focus-within {
  width: min(610px, calc(100vw - 36px));
  padding: 0 22px;
  border-radius: 999px;
  color: #050807;
}

.nav:hover::before,
.nav:hover::after,
.nav:focus-within::before,
.nav:focus-within::after {
  opacity: 0;
}

.nav a:hover {
  color: #05623e;
}

.corner-links {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.corner-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 68, 49, 0.9);
  color: var(--terminal);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.corner-link img,
.corner-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.corner-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(86, 255, 183, 0.75);
  background: rgba(255, 248, 255, 0.1);
  color: var(--terminal);
  font-size: 1.25rem;
  line-height: 1;
}

.cyber-link {
  background: rgba(3, 7, 5, 0.9);
}

.cyber-link:hover {
  background: rgba(86, 255, 183, 0.14);
}

.donation-corner:hover {
  background: #0b6b50;
}

.social-rail {
  position: fixed;
  left: 24px;
  top: 50%;
  z-index: 12;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.social-rail a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(3, 7, 5, 0.78);
  color: var(--terminal);
  box-shadow:
    inset 0 0 0 1px rgba(244, 255, 248, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.24);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.social-rail img {
  width: 20px;
  height: 20px;
  display: block;
  filter:
    brightness(0)
    saturate(100%)
    invert(84%)
    sepia(57%)
    saturate(976%)
    hue-rotate(85deg)
    brightness(104%)
    contrast(104%);
}

.social-rail a:hover {
  border-color: rgba(86, 255, 183, 0.72);
  background: rgba(86, 255, 183, 0.14);
  color: var(--white);
}

.bottom-dock {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 11;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(620px, calc(100vw - 36px));
  transform: translateX(-50%);
  pointer-events: none;
}

.bottom-dock a {
  min-width: 118px;
  min-height: 48px;
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 5, 0.82);
  color: var(--terminal);
  box-shadow:
    inset 0 0 0 1px rgba(244, 255, 248, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.24);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  text-decoration: none;
  text-transform: uppercase;
  pointer-events: auto;
}

.bottom-dock a:hover {
  border-color: rgba(86, 255, 183, 0.72);
  background: rgba(86, 255, 183, 0.14);
  color: var(--white);
}

.bottom-dock a.active {
  border-color: rgba(86, 255, 183, 0.86);
  background: rgba(86, 255, 183, 0.18);
}

.bottom-dock span {
  color: rgba(86, 255, 183, 0.55);
  font-size: 0.72rem;
}

.bottom-dock strong {
  font-size: 0.8rem;
  letter-spacing: 0;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 120px clamp(18px, 5vw, 64px) 70px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(5, 8, 7, 0.7)),
    linear-gradient(0deg, rgba(15, 30, 24, 0.78), rgba(7, 6, 8, 0.82)),
    url("assets/photos/maxim-vyazovsky.jpeg") center 42% / cover;
  color: var(--white);
}

.hero-copy {
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: left;
}

.eyebrow,
.date {
  margin: 0 0 10px;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.86;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  position: relative;
  margin: 40px auto 24px;
  font-size: clamp(5.2rem, 16vw, 12rem);
  font-weight: 700;
  letter-spacing: 0;
  text-shadow:
    0 0 18px rgba(86, 255, 183, 0.18),
    0 22px 44px rgba(0, 0, 0, 0.44);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
}

.glitch::before {
  color: #dffff0;
  transform: translate(2px, 0);
  clip-path: inset(0 0 54% 0);
  animation: glitch-shift 2.8s infinite steps(2, end);
}

.glitch::after {
  color: #1dff8c;
  transform: translate(-2px, 0);
  clip-path: inset(48% 0 0 0);
  animation: glitch-shift 3.4s infinite reverse steps(2, end);
}

@keyframes glitch-shift {
  0%,
  92%,
  100% {
    transform: translate(0, 0);
  }

  94% {
    transform: translate(8px, -2px);
  }

  96% {
    transform: translate(-6px, 2px);
  }
}

h2 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  font-weight: 400;
  text-align: center;
  color: var(--white);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 400;
}

.hero p {
  max-width: 720px;
  margin-inline: 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-style: italic;
}

.hero-note {
  margin-top: 34px;
  font-size: clamp(1rem, 2vw, 1.35rem) !important;
}

.terminal-card {
  width: min(560px, 100%);
  margin-top: 34px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 5, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(244, 255, 248, 0.04),
    0 24px 70px rgba(0, 0, 0, 0.38);
  color: var(--terminal);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(86, 255, 183, 0.06);
}

.terminal-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--terminal);
  opacity: 0.75;
}

.terminal-card pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: var(--terminal);
  font-size: clamp(0.78rem, 1.4vw, 0.96rem);
  line-height: 1.6;
  white-space: pre-wrap;
}

.hero-actions {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 253, 248, 0.48);
  border-radius: 6px;
  color: var(--white);
  text-decoration: none;
}

.button.primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.intro,
.section {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 64px);
}

.intro {
  background: #070b09;
  color: var(--white);
  font-size: clamp(2rem, 5.2vw, 4rem);
  font-style: italic;
  line-height: 1.32;
  text-align: center;
}

.intro p,
.section-heading,
.poem-list,
.featured-art,
.gallery,
.video-panel,
.story-grid,
.life-text {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 54px;
  text-align: center;
}

.gallery-open {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: rgba(86, 255, 183, 0.1);
  color: var(--terminal);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.gallery-open:hover {
  background: rgba(86, 255, 183, 0.18);
}

.muted {
  background: #0b100e;
}

.poem-list,
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.poem-card,
.story-grid article {
  min-height: 310px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(244, 255, 248, 0.045);
}

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

.poem-card p,
.story-grid p,
.video-panel p,
.life-text {
  color: var(--muted);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(22px, 3vw, 34px);
}

.featured-art {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  margin-bottom: 34px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(86, 255, 183, 0.12), rgba(3, 7, 5, 0.82)),
    rgba(3, 7, 5, 0.68);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.featured-art a {
  display: block;
}

.featured-art img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  padding: clamp(10px, 2vw, 18px);
  border: 1px solid rgba(86, 255, 183, 0.16);
  background:
    linear-gradient(135deg, rgba(86, 255, 183, 0.08), rgba(0, 0, 0, 0.42)),
    #020403;
  object-fit: contain;
}

.featured-art h3 {
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.95;
}

.featured-art p:not(.eyebrow) {
  color: var(--muted);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

figure {
  margin: 0;
}

.gallery figure {
  padding: 12px;
  border: 1px solid rgba(86, 255, 183, 0.18);
  background:
    linear-gradient(180deg, rgba(86, 255, 183, 0.06), rgba(3, 7, 5, 0.64)),
    rgba(3, 7, 5, 0.72);
}

figure img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  padding: 10px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 35%, rgba(86, 255, 183, 0.08), transparent 60%),
    #020403;
}

.gallery figure:nth-child(1) img,
.gallery figure:nth-child(5) img,
.gallery figure:nth-child(8) img {
  aspect-ratio: 4 / 3;
}

figcaption {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.96rem;
  font-style: normal;
  line-height: 1.35;
}

figcaption strong {
  color: var(--terminal);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.08;
}

figcaption em {
  color: rgba(153, 173, 164, 0.82);
}

figcaption b {
  width: fit-content;
  margin-top: 3px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(86, 255, 183, 0.12);
  color: var(--terminal);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.featured-art b,
.gallery-feature b {
  width: fit-content;
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(86, 255, 183, 0.12);
  color: var(--terminal);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
}

.art-placeholder {
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 0;
  background-size: cover;
}

.art-placeholder.teal {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 248, 255, 0.7), transparent 22%),
    linear-gradient(135deg, #27101f, #8d547d 58%, #d7c7c3);
}

.art-placeholder.rose {
  background:
    radial-gradient(circle at 68% 36%, rgba(255, 248, 255, 0.72), transparent 20%),
    linear-gradient(145deg, #5c2444, #181012 54%, #e0c9dc);
}

.art-placeholder.ink {
  background:
    radial-gradient(circle at 48% 32%, rgba(255, 248, 255, 0.62), transparent 24%),
    linear-gradient(150deg, #050505, #57324e 48%, #c9c0bd);
}

.split {
  background: #020403;
  color: var(--white);
}

.video-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(260px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(8, 5, 6, 0.74), rgba(8, 5, 6, 0.28)),
    url("assets/video-cover.svg") center / cover;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.site-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
  object-fit: cover;
}

.life-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-style: italic;
  line-height: 1.35;
}

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid rgba(255, 248, 255, 0.14);
  background: #020403;
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.footer p {
  margin: 0;
}

.story-page {
  background: var(--paper);
}

.story-hero {
  position: relative;
  z-index: 2;
  min-height: 74vh;
  display: grid;
  align-content: center;
  padding: 128px clamp(18px, 5vw, 64px) 72px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(11, 28, 22, 0.64)),
    url("assets/photos/rocky-wave.jpeg") center / cover;
  color: var(--white);
  text-align: center;
}

.story-hero h1 {
  font-size: clamp(4rem, 12vw, 11rem);
}

.story-hero p {
  width: min(780px, 100%);
  margin-inline: auto;
  color: rgba(255, 248, 255, 0.86);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-style: italic;
}

.story-body {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(62px, 10vw, 120px) 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-style: italic;
  line-height: 1.36;
}

.story-body p + p {
  margin-top: 1.4em;
}

.terminal-page {
  background:
    radial-gradient(circle at 50% 12%, rgba(86, 255, 183, 0.12), transparent 30rem),
    linear-gradient(180deg, #030504, #070b09 46%, #020403);
}

.terminal-main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 160px clamp(18px, 5vw, 64px) 80px;
}

.page-hero {
  width: min(1080px, 100%);
  margin: 0 auto clamp(42px, 8vw, 82px);
  padding-top: clamp(28px, 6vw, 84px);
  text-align: center;
}

.page-hero h1 {
  margin: 20px auto 22px;
  font-size: clamp(4.4rem, 14vw, 11rem);
}

.page-hero p:not(.eyebrow) {
  width: min(780px, 100%);
  margin-inline: auto;
  color: var(--muted);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.terminal-grid {
  width: min(1120px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.terminal-panel {
  min-height: 260px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(86, 255, 183, 0.08), rgba(3, 7, 5, 0.82)),
    rgba(3, 7, 5, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(244, 255, 248, 0.04),
    0 28px 80px rgba(0, 0, 0, 0.24);
}

.terminal-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5.4vw, 5.6rem);
  line-height: 0.96;
  text-align: left;
}

.terminal-panel p {
  color: var(--muted);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.terminal-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 12px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: rgba(86, 255, 183, 0.1);
  color: var(--terminal);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.terminal-panel a:hover {
  background: rgba(86, 255, 183, 0.18);
}

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

.writeup-section {
  width: min(1120px, 100%);
  margin: clamp(64px, 10vw, 120px) auto 0;
}

.writeup-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.writeup-card {
  min-height: 300px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(86, 255, 183, 0.12), rgba(3, 7, 5, 0.74)),
    rgba(3, 7, 5, 0.7);
}

.writeup-card h3 {
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.writeup-card p,
.writeup-article p,
.writeup-article li {
  color: var(--muted);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.writeup-card a,
.writeup-back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: rgba(86, 255, 183, 0.1);
  color: var(--terminal);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.writeup-card a:hover,
.writeup-back:hover {
  background: rgba(86, 255, 183, 0.18);
}

.writeup-main {
  position: relative;
  z-index: 2;
  padding: 170px clamp(18px, 5vw, 64px) 90px;
}

.writeup-article {
  width: min(940px, 100%);
  margin-inline: auto;
}

.writeup-article h1 {
  margin: 22px 0 26px;
  font-size: clamp(4.2rem, 12vw, 9rem);
}

.writeup-lead {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.45;
}

.writeup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 clamp(44px, 8vw, 76px);
}

.writeup-meta span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: rgba(86, 255, 183, 0.08);
  color: var(--terminal);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.78rem;
}

.writeup-article section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.writeup-article h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  text-align: left;
}

.writeup-article pre {
  overflow-x: auto;
  margin: 22px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 5, 0.84);
  color: var(--terminal);
}

.writeup-article code {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.gallery-main {
  position: relative;
  z-index: 2;
  padding: 160px clamp(18px, 5vw, 64px) 90px;
}

.gallery-hero {
  width: min(1120px, 100%);
  margin: 0 auto clamp(42px, 8vw, 82px);
  padding-top: clamp(28px, 6vw, 84px);
  text-align: center;
}

.gallery-hero h1 {
  margin: 20px auto 22px;
  font-size: clamp(4.6rem, 13vw, 11rem);
}

.gallery-hero p:not(.eyebrow) {
  width: min(760px, 100%);
  margin-inline: auto;
  color: var(--muted);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.gallery-feature {
  width: min(1180px, 100%);
  margin: 0 auto clamp(34px, 6vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(86, 255, 183, 0.12), rgba(3, 7, 5, 0.82)),
    rgba(3, 7, 5, 0.72);
}

.gallery-feature img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  padding: clamp(10px, 2vw, 18px);
  border: 1px solid rgba(86, 255, 183, 0.16);
  background:
    linear-gradient(135deg, rgba(86, 255, 183, 0.08), rgba(0, 0, 0, 0.42)),
    #020403;
  object-fit: contain;
}

.gallery-feature h2 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.95;
  text-align: left;
}

.gallery-feature p:not(.eyebrow) {
  color: var(--muted);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.gallery-detail-grid {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 42px);
}

.gallery-detail-grid figure {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 5, 0.62);
}

.gallery-detail-grid img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 11;
  padding: 12px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 35%, rgba(86, 255, 183, 0.08), transparent 60%),
    #020403;
}

@media (max-width: 760px) {
  .site-header {
    padding: 16px;
    justify-content: flex-end;
  }

  .brand {
    display: none;
  }

  .corner-links {
    right: 14px;
    bottom: 78px;
    max-width: calc(100vw - 28px);
  }

  .corner-link {
    min-height: 44px;
    padding-right: 10px;
    font-size: 0.68rem;
  }

  .corner-link img,
  .corner-icon {
    width: 30px;
    height: 30px;
  }

  .social-rail {
    left: 14px;
    top: 92px;
    bottom: auto;
    grid-auto-flow: row;
    transform: none;
  }

  .social-rail a {
    width: 38px;
    height: 38px;
    font-size: 0.62rem;
  }

  .bottom-dock {
    top: 74px;
    left: 14px;
    justify-content: flex-start;
    gap: 6px;
    width: calc(100vw - 28px);
    transform: none;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .bottom-dock a {
    min-width: 92px;
    min-height: 42px;
    gap: 7px;
    padding: 7px 10px;
  }

  .bottom-dock span {
    font-size: 0.62rem;
  }

  .bottom-dock strong {
    font-size: 0.66rem;
  }

  .hero {
    min-height: 100vh;
    align-items: center;
  }

  .poem-list,
  .gallery,
  .featured-art,
  .video-panel,
  .story-grid,
  .life-text,
  .terminal-grid,
  .writeup-list,
  .gallery-feature,
  .gallery-detail-grid {
    grid-template-columns: 1fr;
  }

  .terminal-main {
    padding-top: 150px;
  }

  .writeup-main,
  .gallery-main {
    padding-top: 150px;
  }

  .terminal-panel h2 {
    font-size: clamp(2rem, 13vw, 4rem);
  }

  figure img,
  .gallery figure:nth-child(1) img,
  .gallery figure:nth-child(5) img,
  .gallery figure:nth-child(8) img {
    aspect-ratio: 4 / 5;
  }
}
