:root {
  color-scheme: dark;
  --bg: #0e1116;
  --bg-soft: #141820;
  --panel: rgba(20, 24, 32, 0.72);
  --text: #e8eaed;
  --muted: #8a919e;
  --faint: #586170;
  --line: rgba(141, 153, 174, 0.2);
  --accent: #8fb3ff;
  --green: #5da995;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 12%, rgba(143, 179, 255, 0.08), transparent 31rem),
    linear-gradient(180deg, #0b0d12 0%, var(--bg) 46%, #10141b 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.08;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.18) 0,
    rgba(255, 255, 255, 0.18) 1px,
    transparent 1px,
    transparent 4px
  );
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 22px 0;
  color: rgba(232, 234, 237, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 650;
}

.brand span:last-child {
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 118px 18px 84px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background:
    linear-gradient(90deg, rgba(14, 17, 22, 0.95) 0%, rgba(14, 17, 22, 0.66) 46%, rgba(14, 17, 22, 0.88) 100%),
    url("./assets/images/hero.jpg") center / cover no-repeat;
  filter: blur(18px) saturate(0.8);
  transform: scale(1.06);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.68fr);
  align-items: center;
  gap: clamp(42px, 8vw, 96px);
  width: min(100%, var(--max));
  min-height: calc(100svh - 202px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.statement h2,
.section-heading h2,
.signal h2,
.guestbook h2 {
  margin: 0;
  color: var(--text);
  font-weight: 520;
  line-height: 1.02;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.4rem, 10vw, 8.6rem);
}

.hero h1 span {
  display: block;
  color: rgba(232, 234, 237, 0.62);
}

.hero-text {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-actions a,
.message-form button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: rgba(232, 234, 237, 0.86);
  font-size: 0.84rem;
}

.hero-actions img,
.signal-links img {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.mail-mark {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(232, 234, 237, 0.62);
  border-radius: 50%;
  color: rgba(232, 234, 237, 0.9);
  font-size: 0.72rem;
  line-height: 1;
}

.hero-actions a:hover,
.message-form button:hover {
  border-color: rgba(143, 179, 255, 0.6);
  background: rgba(143, 179, 255, 0.1);
  transform: translateY(-1px);
}

.hero-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07090d;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.hero-image img {
  width: 100%;
  height: min(74svh, 760px);
  object-fit: cover;
  object-position: 50% 46%;
  opacity: 0.88;
  filter: saturate(0.88) contrast(1.05);
}

.hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 52%, rgba(6, 8, 11, 0.82) 100%);
  pointer-events: none;
}

.hero-image figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(232, 234, 237, 0.6);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.section-shell {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 108px 0;
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  gap: clamp(30px, 7vw, 84px);
  align-items: start;
}

.statement h2,
.section-heading h2,
.signal h2,
.guestbook h2 {
  font-size: clamp(2rem, 4.8vw, 4.8rem);
}

.statement p,
.guestbook-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.95;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.archive-link {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(232, 234, 237, 0.78);
  font-size: 0.8rem;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.archive-link:hover {
  border-color: rgba(143, 179, 255, 0.56);
  background: rgba(143, 179, 255, 0.08);
}

.photo-sequence {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.photo-tile {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  cursor: zoom-in;
}

.photo-tile.wide {
  grid-column: span 4;
  aspect-ratio: 2.05;
}

.photo-tile.tall {
  grid-column: span 2;
  aspect-ratio: 0.72;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(0.78) contrast(1.04);
  transition:
    opacity 220ms ease,
    transform 500ms ease,
    filter 220ms ease;
}

.photo-tile:hover img {
  opacity: 0.96;
  filter: saturate(0.95) contrast(1.08);
  transform: scale(1.025);
}

.signal-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(320px, 0.74fr);
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 179, 255, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.025);
}

.signal-links {
  display: grid;
  gap: 10px;
}

.signal-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 17, 22, 0.56);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.signal-links a:hover {
  border-color: rgba(143, 179, 255, 0.54);
  background: rgba(143, 179, 255, 0.08);
  transform: translateX(3px);
}

.signal-links span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 650;
}

.signal-links small {
  color: var(--muted);
  font-size: 0.82rem;
}

.guestbook {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(340px, 0.74fr);
  gap: clamp(30px, 7vw, 84px);
  align-items: start;
}

.message-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.message-form label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
}

.message-form .full {
  grid-column: 1 / -1;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.message-form input {
  min-height: 48px;
  padding: 0 14px;
}

.message-form textarea {
  min-height: 148px;
  resize: vertical;
  padding: 13px 14px;
}

.message-form input:focus,
.message-form textarea:focus {
  border-color: rgba(143, 179, 255, 0.62);
  background: rgba(143, 179, 255, 0.06);
}

.message-form button {
  grid-column: 1 / -1;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
}

.archive-header {
  position: sticky;
}

.archive-hero {
  padding-top: 92px;
  padding-bottom: 44px;
}

.archive-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 7.2rem);
  font-weight: 520;
  line-height: 1.02;
}

.archive-hero p:last-child {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.archive-grid {
  columns: 4 220px;
  column-gap: 14px;
  padding-top: 24px;
}

.archive-photo {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  cursor: zoom-in;
}

.archive-photo img {
  width: 100%;
  opacity: 0.82;
  filter: saturate(0.8) contrast(1.04);
  transition:
    opacity 220ms ease,
    transform 500ms ease,
    filter 220ms ease;
}

.archive-photo:hover img {
  opacity: 0.98;
  filter: saturate(0.96) contrast(1.07);
  transform: scale(1.018);
}

.lightbox {
  width: min(92vw, 980px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07090d;
}

.lightbox::backdrop {
  background: rgba(2, 4, 8, 0.82);
  backdrop-filter: blur(10px);
}

.lightbox img {
  width: 100%;
  max-height: 86svh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.74);
  color: var(--text);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@media (max-width: 900px) {
  .site-header {
    width: min(100% - 28px, var(--max));
  }

  .nav-links {
    gap: 14px;
  }

  .hero {
    padding: 104px 14px 70px;
  }

  .hero-grid,
  .statement-grid,
  .signal-panel,
  .guestbook {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-image {
    max-width: 520px;
  }

  .hero-image img {
    height: auto;
    aspect-ratio: 0.75;
  }

  .section-shell {
    width: min(100% - 28px, var(--max));
    padding: 78px 0;
  }

  .photo-sequence {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-tile.wide {
    grid-column: 1 / -1;
  }

  .photo-tile.tall {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .brand {
    display: grid;
    gap: 2px;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 17vw, 5.2rem);
  }

  .hero-actions a {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
  }

  .hero-image figcaption,
  .site-footer {
    flex-direction: column;
    gap: 6px;
  }

  .section-heading {
    display: block;
  }

  .archive-link {
    margin-top: 18px;
  }

  .photo-sequence,
  .message-form {
    grid-template-columns: 1fr;
  }

  .photo-tile.tall {
    aspect-ratio: 0.82;
  }

  .signal-links a {
    display: grid;
    justify-content: stretch;
    gap: 4px;
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

