@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("assets/fonts/noto-sans-sc.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("assets/fonts/noto-serif-sc.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

:root {
  --paper: #f2efe8;
  --paper-deep: #e8e2d9;
  --ink: #1c1b19;
  --ink-soft: #59564f;
  --line: rgba(28, 27, 25, 0.16);
  --line-light: rgba(255, 255, 255, 0.22);
  --white: #fffdf8;
  --accent: #9e563e;
  --sans: "Instrument Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --shell: min(1240px, calc(100vw - 96px));
  --header-height: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

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

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

button {
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding-inline: max(32px, calc((100vw - 1400px) / 2));
  color: var(--white);
  transition:
    height 0.35s ease,
    color 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 30px 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
  transition: background-color 0.35s ease;
}

.site-header.is-scrolled {
  height: 68px;
  color: var(--ink);
  background: rgba(242, 239, 232, 0.88);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled::after {
  background: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
}

.brand-mark span {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.brand-mark span:first-child {
  top: 5px;
  left: 6px;
}

.brand-mark span:last-child {
  right: 5px;
  bottom: 6px;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.brand-copy small {
  font-size: 7px;
  letter-spacing: 0.18em;
  opacity: 0.66;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 12px;
  letter-spacing: 0.09em;
}

.site-nav a {
  position: relative;
  padding-block: 7px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transition: right 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  right: 0;
}

.header-meta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  letter-spacing: 0.14em;
  opacity: 0.76;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  background: #111;
  color: var(--white);
}

.hero-image,
.hero-image img,
.hero-wash,
.hero-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
  object-position: center 52%;
  transform: scale(1.035);
  animation: heroDrift 17s ease-out both;
}

.hero-wash {
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.76) 0%, rgba(7, 7, 6, 0.42) 42%, rgba(7, 7, 6, 0.12) 72%),
    linear-gradient(0deg, rgba(7, 7, 6, 0.76) 0%, transparent 44%);
}

.hero-glow {
  background: radial-gradient(circle at 68% 32%, transparent 0 20%, rgba(4, 4, 4, 0.16) 56%, transparent 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--header-height) + 38px);
  padding-bottom: 46px;
}

.hero-topline,
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.68);
}

.hero-copy {
  align-self: center;
  max-width: 900px;
}

.eyebrow {
  margin: 0;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-copy .eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 26px 0 28px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.hero h1 span {
  display: block;
}

.hero h1 em {
  color: #d8b7a4;
  font-style: italic;
  font-weight: 400;
}

.hero-intro {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2;
}

.hero-bottom {
  align-items: end;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.scroll-line {
  position: relative;
  width: 1px;
  height: 54px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.scroll-line::after {
  content: "";
  position: absolute;
  inset: -100% 0 auto;
  height: 100%;
  background: var(--white);
  animation: scrollLine 2.3s ease-in-out infinite;
}

.hero-note {
  max-width: 280px;
  margin: 0;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
  text-align: right;
}

.hero-edit-button {
  position: absolute;
  z-index: 5;
  top: calc(var(--header-height) + 22px);
  right: max(32px, calc((100vw - 1400px) / 2));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(0, 0, 0, 0.18);
  color: var(--white);
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-edit-button span {
  font-size: 19px;
  line-height: 1;
}

.album-intro {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 64px;
  padding-block: 130px;
  border-bottom: 1px solid var(--line);
}

.intro-label {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro-label span,
.section-index {
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.intro-label p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.intro-copy h2 {
  max-width: 720px;
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.42;
}

.intro-aside {
  align-self: end;
}

.intro-aside > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 2;
}

.album-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.album-stats div {
  display: grid;
  gap: 5px;
}

.album-stats strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.album-stats span {
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.memories {
  padding-block: 118px 150px;
  background: var(--white);
}

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

.section-heading h2 {
  margin: 17px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 350;
  letter-spacing: -0.03em;
}

.section-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.9;
  text-align: right;
}

.memory-list {
  display: grid;
  gap: 120px;
}

.memory {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.memory.is-reversed {
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
}

.memory.is-reversed .memory-photo {
  order: 2;
}

.memory-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #ddd;
  cursor: zoom-in;
}

.memory-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 35%);
  opacity: 0.74;
  transition: opacity 0.35s ease;
}

.memory-photo img {
  width: 100%;
  height: clamp(360px, 52vw, 690px);
  object-fit: cover;
  transition:
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.45s ease;
}

.memory:nth-child(2) .memory-photo img,
.memory:nth-child(5) .memory-photo img {
  object-position: center 56%;
}

.memory-photo:hover img {
  transform: scale(1.025);
}

.memory-photo:hover::after {
  opacity: 0.54;
}

.photo-number {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 2;
  color: white;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.photo-action {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  color: white;
  font-size: 9px;
  letter-spacing: 0.14em;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.memory-photo:hover .photo-action,
.memory-photo:focus-visible .photo-action {
  opacity: 1;
  transform: translateY(0);
}

.memory-copy {
  max-width: 400px;
}

.memory-meta {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.memory-copy h3 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.memory-copy > p:not(.memory-meta) {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 2.1;
  white-space: pre-line;
}

.memory-place {
  display: inline-block;
  margin-top: 27px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.fragments {
  padding-block: 130px;
  background: var(--paper);
}

.fragments-heading {
  margin-bottom: 54px;
}

.photo-wall {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}

.wall-photo {
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  background: #ccc;
  cursor: zoom-in;
}

.wall-photo-tall {
  grid-row: span 3;
}

.wall-photo-wide {
  grid-column: span 8;
}

.wall-photo:nth-child(4) {
  grid-column: span 4;
}

.wall-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s ease,
    filter 0.35s ease;
}

.wall-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 52%);
}

.wall-photo:hover img {
  transform: scale(1.035);
}

.wall-photo > span {
  position: absolute;
  left: 18px;
  bottom: 17px;
  z-index: 2;
  color: var(--white);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.letter {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: 150px;
  text-align: center;
}

.letter-mark {
  height: 70px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 110px;
  line-height: 1;
  opacity: 0.34;
}

.letter h2 {
  max-width: 900px;
  margin: 30px auto 0;
  font-family: var(--serif);
  font-size: clamp(31px, 4.2vw, 62px);
  font-weight: 320;
  letter-spacing: -0.04em;
  line-height: 1.5;
}

.letter h2 em {
  color: var(--accent);
  font-style: normal;
}

.letter-copy {
  max-width: 590px;
  margin: 36px auto 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 2.1;
}

.letter-sign {
  display: flex;
  gap: 17px;
  align-items: center;
  margin-top: 42px;
  font-size: 10px;
  letter-spacing: 0.11em;
}

.letter-sign span + span::before {
  content: "·";
  margin-right: 17px;
  color: var(--accent);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 40px;
  padding-block: 38px 48px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.site-footer strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.site-footer p {
  margin: 5px 0 0;
  color: var(--ink-soft);
}

.footer-note {
  color: var(--ink-soft) !important;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
}

.footer-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
}

.empty-album {
  padding: 80px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.58);
  text-align: center;
}

.empty-album h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}

.empty-album p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 15px;
}

.empty-album a {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  align-items: center;
  padding: 42px;
  background: rgba(13, 12, 11, 0.96);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 18px;
  height: min(84vh, 900px);
  margin: 0;
}

.lightbox-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-figure figcaption {
  display: flex;
  gap: 22px;
  align-items: center;
  color: rgba(255, 255, 255, 0.77);
  font-family: var(--serif);
  font-size: 12px;
}

.lightbox-figure small {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.lightbox-close,
.lightbox-arrow {
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 30px;
}

.lightbox-arrow {
  width: 54px;
  height: 54px;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 19px;
  transition: background-color 0.2s ease;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.08);
}

@keyframes heroDrift {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.015);
  }
}

@keyframes scrollLine {
  0% {
    transform: translateY(0);
  }
  55%,
  100% {
    transform: translateY(200%);
  }
}

@media (max-width: 980px) {
  :root {
    --shell: min(calc(100vw - 48px), 820px);
    --header-height: 74px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 24px;
  }

  .site-nav {
    display: none;
  }

  .album-intro {
    grid-template-columns: 100px 1fr;
    gap: 40px;
    padding-block: 95px;
  }

  .intro-aside {
    grid-column: 2;
  }

  .memory,
  .memory.is-reversed {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .memory.is-reversed .memory-photo {
    order: 0;
  }

  .memory-copy {
    max-width: 620px;
  }

  .memory-list {
    gap: 96px;
  }

  .photo-wall {
    grid-auto-rows: 150px;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  .site-header {
    height: 66px;
    padding-inline: 16px;
  }

  .site-header::after {
    inset-inline: 16px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .header-meta span:first-child,
  .header-meta .meta-dot {
    display: none;
  }

  .hero-content {
    padding-top: 96px;
    padding-bottom: 28px;
  }

  .hero-edit-button {
    top: 82px;
    right: 16px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero-topline span:last-child,
  .hero-note {
    display: none;
  }

  .hero h1 {
    margin-block: 20px;
    font-size: clamp(44px, 14vw, 74px);
    line-height: 1.12;
  }

  .hero-intro {
    font-size: 12px;
    line-height: 1.95;
  }

  .album-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 72px;
  }

  .intro-label {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .intro-aside {
    grid-column: auto;
  }

  .intro-copy h2 {
    font-size: 30px;
    line-height: 1.5;
  }

  .memories,
  .fragments {
    padding-block: 78px;
  }

  .section-heading {
    display: block;
    margin-bottom: 44px;
  }

  .section-note {
    margin-top: 18px;
    text-align: left;
  }

  .memory-list {
    gap: 76px;
  }

  .memory-photo img {
    height: 118vw;
    max-height: 620px;
  }

  .photo-action {
    display: none;
  }

  .memory-copy h3 {
    font-size: 31px;
  }

  .photo-wall {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 8px;
  }

  .wall-photo,
  .wall-photo-wide,
  .wall-photo:nth-child(4) {
    grid-column: span 1;
    grid-row: span 2;
  }

  .wall-photo-tall {
    grid-row: span 3;
  }

  .wall-photo:last-child {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .wall-photo > span {
    left: 12px;
    bottom: 12px;
    font-size: 11px;
  }

  .letter {
    padding-block: 100px;
  }

  .letter h2 {
    font-size: 31px;
    line-height: 1.55;
  }

  .letter-sign {
    flex-direction: column;
    gap: 9px;
  }

  .letter-sign span + span::before {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-note {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    padding: 64px 14px 20px;
  }

  .lightbox-figure {
    height: 72vh;
  }

  .lightbox-arrow {
    position: absolute;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 14px;
  }

  .lightbox-next {
    right: 14px;
  }

  .lightbox-figure figcaption {
    padding-inline: 54px;
    text-align: center;
  }
}

.hidden {
  display: none !important;
}

.limit-hidden {
  display: none !important;
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 54px;
}

.load-more-button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 230px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.load-more-button small {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 400;
}

.load-more-button:hover {
  background: var(--ink);
  color: var(--white);
}

.load-more-button:hover small {
  color: rgba(255, 255, 255, 0.68);
}

.section-tools {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.section-add-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.section-add-button span {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.section-add-button:hover {
  background: var(--ink);
  color: var(--white);
}

.album-toasts {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 180;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 32px));
}

.album-toast {
  padding: 13px 16px;
  border-left: 4px solid var(--green, #477b68);
  background: rgba(255, 253, 248, 0.96);
  color: #315b4c;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 12px 34px rgba(36, 34, 30, 0.14);
  backdrop-filter: blur(12px);
}

.album-toast.error {
  border-left-color: #a7463e;
  color: #8b3b35;
}

body.quick-modal-open {
  overflow: hidden;
}

.quick-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.quick-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.quick-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 18, 16, 0.68);
  backdrop-filter: blur(5px);
  cursor: default;
}

.quick-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  padding: 34px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}

.quick-modal.is-open .quick-modal-card {
  transform: translateY(0) scale(1);
}

.quick-modal-card-wide {
  width: min(100%, 700px);
}

.quick-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  width: 38px;
  height: 38px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 28px;
  cursor: pointer;
}

.quick-modal-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.quick-modal-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
}

.quick-modal-intro {
  margin: 10px 0 23px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.quick-form {
  display: grid;
  gap: 15px;
}

.quick-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.quick-field {
  display: grid;
  gap: 7px;
}

.quick-field > span,
.quick-file > span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.quick-field input,
.quick-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.quick-field input {
  height: 48px;
  padding: 0 13px;
}

.quick-field textarea {
  padding: 12px 13px;
  line-height: 1.75;
  resize: vertical;
}

.quick-field input:focus,
.quick-field textarea:focus {
  border-color: #9e7b66;
  box-shadow: 0 0 0 3px rgba(158, 123, 102, 0.12);
}

.quick-field input::placeholder,
.quick-field textarea::placeholder {
  color: #b0aba2;
  opacity: 0.58;
}

.date-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
}

.date-stepper button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 18px;
  cursor: pointer;
}

.date-stepper button:first-child {
  border-right: 0;
}

.date-stepper button:last-child {
  border-left: 0;
}

.date-stepper input {
  min-width: 0;
  text-align: center;
}

.quick-file {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 20px;
  border: 1px dashed rgba(28, 27, 25, 0.32);
  background: rgba(255, 253, 248, 0.58);
  text-align: center;
  cursor: pointer;
}

.quick-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.quick-file b {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.quick-file small {
  color: #8c887f;
  font-size: 12px;
}

.quick-preview {
  overflow: hidden;
  background: #ddd;
}

.quick-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.quick-submit {
  min-height: 50px;
  margin-top: 5px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 680px) {
  .section-tools {
    justify-items: start;
  }

  .quick-modal {
    padding: 10px;
  }

  .quick-modal-card {
    max-height: 94vh;
    padding: 28px 19px;
  }

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

  .album-toasts {
    top: 72px;
    right: 16px;
  }
}

/* Mobile experience */
@media (max-width: 980px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .site-nav {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 120;
    display: flex;
    width: min(430px, calc(100vw - 28px));
    height: 54px;
    justify-content: stretch;
    gap: 0;
    padding: 5px;
    transform: translateX(-50%);
    border: 1px solid rgba(28, 27, 25, 0.12);
    background: rgba(250, 248, 242, 0.93);
    box-shadow: 0 14px 40px rgba(31, 29, 25, 0.2);
    backdrop-filter: blur(18px);
  }

  .site-nav a {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 0 10px;
    color: var(--ink-soft);
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  .site-nav a.is-active {
    background: var(--ink);
    color: var(--white);
  }

  .site-nav a::after {
    display: none;
  }

  .header-meta {
    font-size: 12px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-inline: 14px;
  }

  .site-header::after {
    inset-inline: 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .header-meta {
    display: none;
  }

  .hero {
    min-height: 94svh;
  }

  .hero-content {
    padding-top: 88px;
    padding-bottom: 24px;
  }

  .hero h1 {
    margin-block: 18px 22px;
    font-size: clamp(42px, 13.5vw, 62px);
    line-height: 1.1;
  }

  .hero-intro {
    max-width: 330px;
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-topline {
    padding-right: 90px;
    font-size: 10px;
  }

  .hero-bottom {
    align-items: end;
  }

  .scroll-cue {
    gap: 11px;
    font-size: 12px;
  }

  .scroll-line {
    height: 40px;
  }

  .hero-edit-button {
    top: auto;
    right: 14px;
    bottom: 72px;
    min-height: 40px;
    font-size: 12px;
  }

  .album-intro {
    gap: 24px;
    padding-block: 62px;
  }

  .intro-label {
    font-size: 12px;
  }

  .intro-copy h2 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.48;
  }

  .intro-aside > p {
    font-size: 15px;
    line-height: 1.85;
  }

  .album-stats {
    gap: 9px;
  }

  .album-stats strong {
    font-size: 25px;
  }

  .memories,
  .fragments {
    padding-block: 66px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: clamp(31px, 9vw, 40px);
  }

  .section-note {
    margin-top: 12px;
    font-size: 14px;
  }

  .section-tools {
    gap: 10px;
  }

  .section-add-button {
    min-height: 44px;
    font-size: 14px;
  }

  .memory-list {
    gap: 62px;
  }

  .memory {
    gap: 24px;
  }

  .memory-photo img {
    height: 105vw;
    max-height: 540px;
  }

  .memory-copy h3 {
    margin-bottom: 15px;
    font-size: 28px;
  }

  .memory-copy > p:not(.memory-meta) {
    font-size: 16px;
    line-height: 1.9;
  }

  .memory-place {
    margin-top: 20px;
  }

  .photo-wall,
  .wall-photo,
  .wall-photo-wide,
  .wall-photo-tall,
  .wall-photo:nth-child(4),
  .wall-photo:last-child {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1.08;
  }

  .wall-photo:nth-child(3n + 1) {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  .wall-photo > span {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    font-size: 14px;
    line-height: 1.4;
  }

  .section-more {
    margin-top: 38px;
  }

  .load-more-button {
    width: min(100%, 300px);
    min-height: 52px;
  }

  .letter {
    padding-block: 84px;
  }

  .letter h2 {
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.58;
  }

  .letter-copy {
    margin-top: 26px;
    font-size: 15px;
    line-height: 1.9;
  }

  .site-footer {
    display: block;
    padding-block: 30px 34px;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .footer-note {
    margin-top: 14px !important;
  }

  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 58px 12px calc(18px + env(safe-area-inset-bottom));
  }

  .lightbox-figure {
    height: 100%;
    min-height: 0;
    gap: 12px;
  }

  .lightbox-figure img {
    min-height: 0;
  }

  .lightbox-figure figcaption {
    display: grid;
    gap: 3px;
    padding-inline: 54px;
    font-size: 14px;
  }

  .lightbox-figure small {
    font-size: 11px;
  }

  .lightbox-arrow {
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
  }

  .quick-modal {
    place-items: end center;
    padding: 0;
  }

  .quick-modal-card,
  .quick-modal-card-wide {
    width: 100%;
    max-width: none;
    max-height: 92svh;
    padding: 28px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .quick-modal-kicker {
    padding-right: 34px;
  }

  .quick-modal-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .quick-field input,
  .quick-field textarea {
    font-size: 16px;
  }

  .date-stepper {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .quick-submit {
    min-height: 52px;
  }

  .album-toasts {
    top: calc(12px + env(safe-area-inset-top));
    left: 14px;
    right: 14px;
    width: auto;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 41px;
  }

  .hero-topline {
    padding-right: 74px;
  }

  .hero-edit-button {
    bottom: 64px;
    padding-inline: 9px;
  }

  .album-stats span {
    font-size: 10px;
  }

  .wall-photo > span {
    font-size: 12px;
  }

  .footer-links {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Readability pass: remove micro-type and make every label comfortably legible. */
.brand-copy strong {
  font-size: 19px;
}

.brand-copy small {
  font-size: 10px;
}

.site-nav {
  gap: 38px;
  font-size: 17px;
  letter-spacing: 0.06em;
}

.header-meta {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero-topline,
.hero-bottom {
  font-size: 13px;
  letter-spacing: 0.1em;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
}

.hero-intro {
  font-size: 18px;
  line-height: 1.9;
}

.hero-note {
  font-size: 15px;
}

.intro-label span,
.section-index {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.intro-label p {
  font-size: 14px;
}

.intro-aside > p {
  font-size: 16px;
  line-height: 1.95;
}

.album-stats strong {
  font-size: 29px;
}

.album-stats span {
  font-size: 12px;
}

.section-note {
  font-size: 15px;
  line-height: 1.8;
}

.photo-number {
  font-size: 13px;
}

.photo-action {
  font-size: 12px;
}

.memory-copy {
  max-width: 460px;
}

.memory-meta {
  font-size: 12px;
  letter-spacing: 0.11em;
}

.memory-copy > p:not(.memory-meta) {
  font-size: 17px;
  line-height: 2;
}

.memory-place {
  font-size: 14px;
}

.wall-photo > span {
  font-size: 16px;
}

.letter-copy {
  font-size: 17px;
}

.letter-sign {
  font-size: 13px;
}

.site-footer {
  font-size: 13px;
}

.site-footer strong {
  font-size: 18px;
}

.lightbox-figure figcaption {
  font-size: 16px;
}

.lightbox-figure small {
  font-size: 12px;
}

@media (max-width: 680px) {
  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .header-meta {
    font-size: 12px;
  }

  .hero-topline,
  .hero-bottom {
    font-size: 12px;
  }

  .hero-intro {
    font-size: 17px;
  }

  .memory-copy > p:not(.memory-meta) {
    font-size: 16px;
  }

  .wall-photo > span {
    font-size: 14px;
  }

  .letter-copy {
    font-size: 16px;
  }
}
