@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Noto+Serif+SC:wght@400;500&display=swap");

:root {
  --paper: #ffffff;
  --paper-deep: #f3f3f0;
  --ink: #1b1a17;
  --muted: #777268;
  --line: rgba(27, 26, 23, 0.18);
  --tone-h: 12;
  --tone-s: 68%;
  --tone-accent-l: 34%;
  --tone-shadow-l: 72%;
  --accent: hsl(var(--tone-h) var(--tone-s) var(--tone-accent-l));
  --shadow-strong: hsl(var(--tone-h) 78% var(--tone-shadow-l) / 0.42);
  --shadow-soft: hsl(var(--tone-h) 70% 54% / 0.2);
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", Georgia, serif;
  --cn-serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --shell: min(1680px, calc(100vw - 72px));
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--cn-serif);
  font-size: 14px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
::selection { color: var(--paper); background: var(--accent); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header,
.admin-header {
  display: none;
}
.wordmark { display: inline-flex; align-items: baseline; gap: 13px; text-decoration: none; }
.wordmark span { font-size: 28px; letter-spacing: 0.12em; font-weight: 500; }
.wordmark small,
.issue-mark,
.eyebrow {
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.2em;
}
.issue-mark { margin: 2px 0 0; text-align: right; color: var(--muted); }
.intro,
.page-title,
.admin-intro {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: transparent;
}
.intro::before,
.page-title::before,
.admin-intro::before,
.intro::after,
.page-title::after,
.admin-intro::after {
  content: none;
}
.intro > :not(.ambient-glow),
.page-title > :not(.ambient-glow),
.admin-intro > :not(.ambient-glow) { position: relative; z-index: 1; }
.ambient-glow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  width: var(--glow-size);
  height: var(--glow-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--shadow-strong) 0%, var(--shadow-soft) 54%, transparent 100%);
  filter: blur(clamp(48px, 4.5vw, 72px)) saturate(1.75);
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: transform;
}
.ambient-glow--large {
  --glow-size: min(69vw, 704px);
  opacity: .6;
}
.intro,
.page-title {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  grid-template-rows: auto auto minmax(72px, 1fr) auto;
  column-gap: clamp(42px, 8vw, 150px);
}
.intro {
  padding: clamp(80px, 11vw, 170px) clamp(18px, 4vw, 70px) 90px;
}
.intro .eyebrow,
.page-title .eyebrow { grid-column: 1 / -1; grid-row: 1; }
.intro h1,
.page-title h1 { grid-column: 1 / -1; grid-row: 2; }
.eyebrow { margin: 0 0 24px; color: var(--accent); }
.intro h1,
.page-title h1,
.admin-intro h1 {
  max-width: 1060px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 5.5vw, 70px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.045em;
}
.intro h1 em,
.page-title h1 em,
.admin-intro h1 em { color: var(--accent); font-weight: 400; }
.banner-note {
  width: 100%;
  margin: 0;
  grid-column: 2;
  grid-row: 4;
  align-self: end;
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
}
.scroll-cue {
  position: static;
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  justify-self: start;
  display: inline-flex;
  gap: 26px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}
.scroll-cue span { color: var(--accent); }

.intro .eyebrow,
.page-title .eyebrow,
.admin-intro .eyebrow { animation: trailer-detail-in 900ms 120ms both; }
.intro h1,
.page-title h1,
.admin-intro h1 { animation: trailer-title-in 1400ms 220ms cubic-bezier(.16, .75, .22, 1) both; }
.banner-note,
.admin-intro > p { animation: trailer-detail-in 1100ms 620ms both; }

@keyframes trailer-title-in {
  0% { opacity: 0; transform: translateY(30px) scale(1.018); filter: blur(9px); letter-spacing: 0.005em; }
  58% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); letter-spacing: -0.045em; }
}
@keyframes trailer-detail-in {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: none; }
}
.archive { padding: 40px 0 140px; }
.archive-heading,
.section-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 44px;
  padding-bottom: 16px;
}
.archive-heading h2,
.section-line h2 { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: 0.12em; }
.archive-heading p,
.section-line p { margin: 0; color: var(--muted); font-family: var(--serif); letter-spacing: 0.1em; }
.archive-heading { justify-content: flex-start; gap: 10px; }
.archive-heading-separator { color: var(--muted); font-family: var(--serif); }
.archive-row {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 38px;
}
.timeline-marker {
  position: relative;
  min-height: 100%;
  border-right: 1px solid var(--line);
}
.timeline-marker::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-label { position: sticky; top: 28px; padding-right: 28px; }
.timeline-label strong { display: block; font-family: var(--serif); font-size: 32px; line-height: 1; font-weight: 400; }
.timeline-label span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.masonry {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  padding-bottom: 105px;
}
.masonry-column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 320px;
}
.photo-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
  cursor: zoom-in;
}
.photo-card img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 700ms cubic-bezier(.2,.65,.2,1), filter 500ms ease;
}
.photo-card:hover img { transform: scale(1.018); filter: saturate(1); }
.photo-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 70px 16px 14px;
  color: white;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: none;
}
.photo-card:hover .photo-meta,
.photo-card:focus-visible .photo-meta { opacity: 1; transform: none; }
.photo-meta strong { display: block; font-weight: 400; font-size: 13px; }
.photo-meta span { font-family: var(--serif); font-size: 11px; letter-spacing: .07em; opacity: .8; }
.empty-state { padding: 90px 0; color: var(--muted); text-align: center; }

.corner-menu {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  transform: translateX(-50%);
}
.menu-toggle {
  width: 94px;
  height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  border: 0;
  border-radius: 50px;
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,.17);
}
.menu-toggle span { font-size: 11px; letter-spacing: .12em; }
.menu-toggle b { font-family: var(--serif); font-size: 19px; font-weight: 400; transition: transform 300ms ease; }
.menu-open .menu-toggle b { transform: rotate(45deg); }
.menu-panel {
  position: absolute;
  left: 50%;
  bottom: 54px;
  width: 330px;
  padding: 28px;
  color: var(--paper);
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px) scale(.98);
  transform-origin: bottom center;
  transition: 260ms ease;
  box-shadow: 0 20px 70px rgba(0,0,0,.2);
}
.menu-open .menu-panel { opacity: 1; visibility: visible; transform: translateX(-50%); }
.menu-panel-header { display: flex; justify-content: space-between; padding-bottom: 20px; }
.menu-panel-header span { font: 10px var(--serif); letter-spacing: .2em; opacity: .55; }
.menu-panel nav { display: grid; padding: 18px 0 8px; }
.menu-panel nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 35px;
  line-height: 1.12;
  color: rgba(255,255,255,.54);
  transition: color 180ms ease, transform 180ms ease;
}
.menu-panel nav a span { font-size: 10px; letter-spacing: .08em; }
.menu-panel nav a:hover,
.menu-panel nav a[aria-current="page"] { color: white; transform: translateX(4px); }
.menu-panel-footer { display: flex; justify-content: space-between; padding-top: 20px; font-size: 10px; color: rgba(255,255,255,.48); }

.site-footer {
  min-height: 140px;
  padding: 34px 0 70px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  padding: 28px;
  color: var(--paper);
  background: rgba(20,19,17,.96);
  opacity: 0;
  visibility: hidden;
  transition: 250ms ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-visual { min-width: 0; display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 56px); object-fit: contain; }
.lightbox-info { align-self: end; padding: 28px 14px; }
.lightbox-info h2 { margin: 0 0 10px; font: 400 36px/1.05 var(--serif); }
.lightbox-info p { margin: 4px 0; color: rgba(255,255,255,.58); }
.lightbox-info .caption { margin-top: 28px; color: rgba(255,255,255,.8); }
.photo-specs {
  display: grid;
  gap: 6px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, .42);
  font-size: 11px;
}
.photo-specs div { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; }
.photo-specs dt { margin: 0; }
.photo-specs dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.lightbox-close { position: absolute; right: 28px; top: 22px; border: 0; color: white; background: none; font: 36px var(--serif); cursor: pointer; }

.inner-page { min-height: 75vh; padding: 0 0 140px; }
.page-title { margin-bottom: 90px; padding: clamp(72px, 9vw, 140px) clamp(22px, 5vw, 82px) 90px; }
.page-title h1 { font-size: clamp(46px, 5.5vw, 70px); line-height: 1.08; }
.album-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: min(100%, 1328px);
  margin: 0 auto 40px;
  scroll-margin-top: 24px;
}
.filter-button {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  transition: 180ms ease;
}
.filter-button:hover,
.filter-button.active { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.album-content { width: min(100%, 1328px); min-height: 240px; margin-inline: auto; }
.album-overview { display: flex; align-items: flex-start; justify-content: center; gap: 20px; }
.album-overview-column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 72px;
  min-width: 0;
  max-width: 430px;
}
.album-card {
  width: 100%;
  max-width: 430px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.album-cover { display: block; overflow: hidden; background: var(--paper-deep); }
.album-cover img { width: 100%; height: auto; transition: transform 700ms cubic-bezier(.2,.65,.2,1); }
.album-card:hover img { transform: scale(1.018); }
.album-card-copy { display: flex; justify-content: space-between; align-items: baseline; padding-top: 13px; }
.album-card-title { font: 400 33px var(--serif); }
.album-card small { color: var(--muted); font-size: 11px; }
.album-card:focus-visible { outline: 1px solid var(--accent); outline-offset: 8px; }
.album-photo-grid { justify-content: center; padding-bottom: 0; }

.about-title { margin-bottom: 120px; }
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(300px, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  justify-content: start;
}
.about-portrait {
  width: 100%;
  max-width: 200px;
  margin: 0;
  justify-self: start;
}
.about-portrait img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  filter: saturate(.75);
}
.about-portrait figcaption { margin-top: 10px; color: var(--muted); font: 10px var(--serif); letter-spacing: .08em; }
.about-copy {
  width: 100%;
  max-width: 520px;
  padding-top: 12vh;
}
.about-copy p { color: var(--muted); }
.about-copy .lead { color: var(--ink); font: 400 29px/1.55 var(--serif); }
.about-facts { margin: 60px 0 0; }
.about-facts div { display: grid; grid-template-columns: 80px 1fr; padding: 14px 0; }
.about-facts dt { color: var(--muted); font-size: 11px; }
.about-facts dd { margin: 0; }
.about-facts a { text-underline-offset: 4px; }

.admin-body { background: #ffffff; }
.admin-header .text-link { margin-top: 8px; text-underline-offset: 4px; font-size: 12px; }
.admin-main { padding: 0 0 130px; }
.admin-intro { min-height: clamp(390px, 54vh, 620px); display: flex; justify-content: space-between; align-items: end; margin-bottom: 70px; padding: clamp(72px, 9vw, 135px) clamp(22px, 5vw, 82px); }
.admin-intro h1 { font-size: clamp(46px, 5.5vw, 70px); line-height: 1.08; }
.admin-intro > p { width: min(360px, 100%); margin: 0 0 8px; color: var(--muted); }
.upload-panel { padding: clamp(24px, 4vw, 60px); background: var(--paper); }
.drop-zone {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px dashed #aaa397;
  cursor: pointer;
  transition: 180ms ease;
}
.drop-zone:hover,
.drop-zone.dragging { border-color: var(--accent); background: rgba(160,68,42,.035); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { font: 44px/1 var(--serif); color: var(--accent); }
.drop-zone strong { margin-top: 8px; font-weight: 500; }
.drop-zone small { margin-top: 5px; color: var(--muted); }
.selection-status { min-height: 24px; margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.selection-status.error { color: #a12c1c; }
.selection-status.success { color: #487042; }
.draft-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(42px, 6vw, 84px);
}
.draft-queue { min-width: 0; padding: 22px; background: var(--paper-deep); }
.draft-queue-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.draft-queue-heading .eyebrow { margin-bottom: 7px; }
.draft-queue-heading h2 { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .08em; }
.draft-queue-heading > span { color: var(--muted); font: 11px var(--serif); letter-spacing: .1em; }
.draft-list { display: grid; gap: 4px; max-height: 750px; margin-top: 12px; overflow: auto; overscroll-behavior: contain; }
.draft-list-empty { margin: 0; padding: 38px 10px; color: var(--muted); text-align: center; font-size: 11px; }
.draft-list-item {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}
.draft-list-item:hover { border-color: var(--line); background: rgba(255,255,255,.54); }
.draft-list-item.active { border-color: var(--ink); background: var(--paper); }
.draft-list-item img { width: 52px; height: 52px; grid-column: 2; grid-row: 1 / 3; object-fit: cover; background: #e8e6e1; }
.draft-list-index { grid-column: 1; grid-row: 1 / 3; align-self: start; padding-top: 2px; color: var(--muted); font: 10px var(--serif); }
.draft-list-copy { min-width: 0; grid-column: 3; grid-row: 1; }
.draft-list-copy strong,
.draft-list-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.draft-list-copy strong { font-size: 11px; font-weight: 500; }
.draft-list-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.draft-list-status { grid-column: 3; grid-row: 2; color: var(--muted); font-size: 9px; }
.draft-list-item.status-error .draft-list-status { color: #a12c1c; }
.draft-list-item.status-published .draft-list-status { color: #487042; }
.draft-list-item.status-processing .draft-list-status,
.draft-list-item.status-uploading .draft-list-status { color: var(--accent); }
.draft-stage { min-width: 0; }
.draft-empty { min-height: 430px; display: grid; place-content: center; justify-items: start; padding: clamp(28px, 6vw, 90px); border: 1px solid var(--line); }
.draft-empty > span { color: var(--accent); font: 12px var(--serif); letter-spacing: .18em; }
.draft-empty h2 { margin: 20px 0 8px; font: 400 clamp(27px, 3vw, 40px)/1.2 var(--serif); }
.draft-empty p { max-width: 520px; margin: 0; color: var(--muted); }
.draft-form[hidden],
.draft-empty[hidden] { display: none !important; }
.draft-current-heading {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 42px);
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.draft-current-preview { aspect-ratio: 4 / 3; margin: 0; overflow: hidden; background: var(--paper-deep); }
.draft-current-preview img { width: 100%; height: 100%; object-fit: cover; }
.draft-current-copy { min-width: 0; padding-top: 5px; }
.draft-current-copy .eyebrow { margin-bottom: 16px; }
.draft-current-copy h2 { margin: 0; overflow-wrap: anywhere; font: 400 clamp(25px, 3vw, 40px)/1.08 var(--serif); }
.draft-current-copy > p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.draft-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.draft-badges span { padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.draft-badges .privacy-badge { color: #487042; border-color: rgba(72,112,66,.35); }
.draft-badges .warning-badge { color: #9a6424; border-color: rgba(154,100,36,.35); }
.text-button { padding: 5px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; font-size: 10px; cursor: pointer; }
.text-button:disabled { opacity: .42; cursor: not-allowed; }
.danger-text { color: #8e3c2d; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 30px; margin-top: 44px; }
.form-grid label { display: grid; gap: 7px; }
.form-grid label > span { color: var(--muted); font-size: 11px; }
.form-grid label > span small { margin-left: 8px; color: #aaa397; font-size: 9px; }
.form-grid input,
.form-grid textarea { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; transition: border-color 160ms ease; }
.form-grid input:focus,
.form-grid textarea:focus { border-color: var(--accent); }
.form-grid input:disabled,
.form-grid textarea:disabled { color: var(--muted); opacity: .72; }
.form-wide { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; }
.form-actions p { margin: 0; color: var(--muted); }
.form-actions p.error { color: #a12c1c; }
.form-actions p.success { color: #487042; }
.primary-button {
  min-width: 210px;
  display: flex;
  justify-content: space-between;
  padding: 13px 17px;
  border: 0;
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
}
.primary-button:disabled { opacity: .45; cursor: wait; }
.primary-button b { color: #e38b6f; }
.draft-actions > div { max-width: 560px; }
.draft-actions small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.library-panel { margin-top: 100px; }
.admin-library { display: grid; gap: 0; }
.library-item {
  display: grid;
  grid-template-columns: 92px minmax(180px,1fr) 170px 120px 96px;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: 160ms ease;
}
.library-item:hover,
.library-item:focus-within { border-color: var(--line); outline: 0; }
.library-thumb { width: 92px; height: 68px; object-fit: cover; background: var(--paper-deep); }
.library-title strong { display: block; font-weight: 500; }
.library-title span,
.library-item > span { color: var(--muted); font-size: 11px; }
.library-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.edit-button { padding: 7px 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 10px; cursor: pointer; }
.edit-button:hover { color: var(--accent); border-color: var(--accent); }
.delete-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.delete-button:hover { color: white; border-color: var(--accent); background: var(--accent); }
.edit-dialog {
  width: min(820px, calc(100vw - 36px));
  max-height: calc(100svh - 36px);
  padding: clamp(22px, 4vw, 52px);
  border: 0;
  color: var(--ink);
  background: var(--paper);
  overflow: auto;
  box-shadow: 0 28px 90px rgba(27,26,23,.22);
}
.edit-dialog::backdrop { background: rgba(27,26,23,.48); backdrop-filter: blur(4px); }
.edit-dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.edit-dialog-heading .eyebrow { margin-bottom: 8px; }
.edit-dialog-heading h2 { margin: 0; font: 400 34px/1.1 var(--serif); }
.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 21px; cursor: pointer; }
.dialog-close:hover { color: var(--paper); border-color: var(--accent); background: var(--accent); }
.edit-dialog-preview { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 18px; align-items: center; margin-top: 24px; }
.edit-dialog-preview img { width: 112px; height: 80px; object-fit: cover; background: var(--paper-deep); }
.edit-dialog-preview p { margin: 0; color: var(--muted); overflow-wrap: anywhere; font-size: 11px; }
.edit-fields { margin-top: 28px; }
.edit-dialog-actions { margin-top: 34px; }

@media (max-width: 900px) {
  :root { --shell: calc(100vw - 36px); }
  .intro,
  .page-title {
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 34%);
  }
  .intro {
    padding-top: 105px;
  }
  .intro h1,
  .page-title h1,
  .admin-intro h1 { font-size: clamp(38px, 10vw, 56px); line-height: 1.1; }
  .archive-row { grid-template-columns: 84px minmax(0,1fr); gap: 18px; }
  .timeline-label strong { font-size: 24px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-copy { padding-top: 0; max-width: 620px; }
  .admin-intro { display: block; }
  .admin-intro > p { margin-top: 30px; }
  .draft-workspace { grid-template-columns: 1fr; }
  .draft-list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); max-height: none; }
  .library-item { grid-template-columns: 76px minmax(140px,1fr) 100px 88px; }
  .library-thumb { width: 76px; height: 60px; }
  .library-item > span:nth-of-type(2) { display: none; }
}

@media (max-width: 600px) {
  :root { --shell: calc(100vw - 28px); }
  .issue-mark { display: none; }
  .wordmark span { font-size: 23px; }
  .intro,
  .page-title {
    min-height: max(720px, 100svh);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(60px, 1fr) auto;
    row-gap: 0;
    padding: 72px 0 34px;
  }
  .intro .eyebrow,
  .page-title .eyebrow { grid-column: 1; grid-row: 1; }
  .intro h1,
  .page-title h1 { grid-column: 1; grid-row: 2; }
  .banner-note {
    width: min(100%, 440px);
    margin-top: 46px;
    grid-column: 1;
    grid-row: 3;
  }
  .scroll-cue {
    margin-top: 54px;
    grid-column: 1;
    grid-row: 5;
  }
  .archive { padding-top: 0; }
  .archive-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }
  .masonry { padding-bottom: 75px; }
  .timeline-marker {
    min-height: 100%;
    margin: 0;
    padding: 0;
    border-right: 1px solid var(--line);
  }
  .timeline-marker::after { left: auto; top: 9px; right: -4px; bottom: auto; }
  .timeline-label {
    position: sticky;
    top: 18px;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    width: max-content;
    margin-left: 30px;
    padding: 0;
    white-space: nowrap;
    transform: rotate(90deg);
    transform-origin: top left;
  }
  .timeline-label strong { font-size: 19px; }
  .timeline-label span { margin: 0; font-size: 10px; }
  .photo-meta { opacity: 1; transform: none; padding-top: 55px; }
  .menu-panel { width: calc(100vw - 48px); }
  .lightbox { display: flex; flex-direction: column; padding: 54px 14px 14px; overflow: auto; }
  .lightbox img { max-height: 68vh; }
  .lightbox-info { padding: 12px 4px; }
  .lightbox-close { right: 15px; top: 8px; }
  .page-title { margin-bottom: 60px; }
  .album-overview-column { gap: 55px; }
  .album-card-title { font-size: 28px; }
  .about-title { margin-bottom: 70px; }
  .inner-page { padding-top: 0; }
  .site-footer { display: block; padding-bottom: 90px; }
  .admin-main { padding-top: 50px; }
  .upload-panel { padding: 14px; }
  .drop-zone { min-height: 180px; text-align: center; padding: 15px; }
  .draft-workspace { margin-top: 38px; }
  .draft-queue { padding: 14px; }
  .draft-list { grid-template-columns: 1fr; }
  .draft-current-heading { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .draft-current-preview { width: 104px; }
  .draft-current-copy .eyebrow { margin-bottom: 8px; }
  .draft-current-copy h2 { font-size: 24px; }
  .draft-current-heading .text-button { grid-column: 1 / -1; justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .library-item { grid-template-columns: 68px minmax(0,1fr) 40px; }
  .library-thumb { width: 68px; height: 58px; }
  .library-item > span { display: none; }
  .library-actions { gap: 4px; }
  .edit-button { display: none; }
  .delete-button { width: 34px; height: 34px; }
  .edit-dialog { width: calc(100vw - 20px); max-height: calc(100svh - 20px); padding: 18px; }
  .edit-dialog-heading h2 { font-size: 28px; }
  .edit-dialog-preview { grid-template-columns: 84px minmax(0,1fr); }
  .edit-dialog-preview img { width: 84px; height: 64px; }
}

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