@font-face {
  font-family: "Noto Sans SC";
  src: url("/fonts/NotoSansSC-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("/fonts/NotoSerifSC-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f1e7;
  --paper-deep: #ebe5d8;
  --ink: #2c2820;
  --muted: #7d7568;
  --line: #d4ccbc;
  --accent: #a34f35;
  --accent-soft: #eadfd5;
  --hero-text: #2c2820;
  --viewer: #0d0b08;
  --on-dark: #f7f3e9;
  --header-height: 68px;
  --page-width: 1440px;
  --font-serif: "Noto Serif SC", serif;
  --font-sans: "Noto Sans SC", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --paper: #f5f1e7;
    --paper-deep: #ebe5d8;
    --ink: #2c2820;
    --muted: #7d7568;
    --line: #d4ccbc;
    --accent: #a34f35;
    --accent-soft: #eadfd5;
    --hero-text: #2c2820;
    --viewer: #0d0b08;
    --on-dark: #f7f3e9;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12px 12px, rgba(44, 40, 32, 0.045) 1px, transparent 1.2px),
    var(--paper);
  background-size: 22px 22px, auto;
  font-family: var(--font-sans);
  letter-spacing: 0;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
select,
label[for] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  width: min(var(--page-width), calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
}

.brand-en,
.hero-kicker,
.panel-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-button {
  min-height: 38px;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.header-button:hover,
.header-button:active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--hero-text);
  background:
    radial-gradient(circle at 12px 12px, rgba(44, 40, 32, 0.09) 1px, transparent 1.3px),
    radial-gradient(circle at 80% 20%, rgba(163, 79, 53, 0.08), transparent 30%),
    linear-gradient(145deg, #faf7f0 0%, #efe9dc 52%, #f4f0e7 100%);
  background-size: 18px 18px, auto, auto;
  isolation: isolate;
}

.hero-type {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-type-line {
  position: absolute;
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 0.9;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.hero-type-line-1 {
  top: 8%;
  left: -1%;
  color: var(--ink);
  font-size: 200px;
  text-shadow:
    0.045em 0.045em 0 #cfc7b6,
    0.09em 0.09em 0 #ffffff;
  transform: rotate(-7deg);
  opacity: 0.96;
}

.hero-type-line-2 {
  top: 19%;
  right: -2%;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  font-size: 170px;
  text-shadow:
    0.055em 0.055em 0 #d4ccbc,
    0.11em 0.11em 0 #ffffff;
  transform: rotate(5deg);
  opacity: 0.9;
}

.hero-type-line-3 {
  top: 31%;
  left: 50%;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 112px;
  text-shadow:
    0.055em 0.055em 0 #d4ccbc,
    0.11em 0.11em 0 #ffffff;
  transform: translateX(-50%) rotate(-2deg);
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 48%, rgba(255, 255, 255, 0.62) 100%);
  pointer-events: none;
}

.hero-camera {
  position: absolute;
  z-index: 1;
  right: 5%;
  bottom: 8%;
  width: min(44vw, 560px);
  aspect-ratio: 1;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: contrast(1.18) brightness(1.03);
  opacity: 0.94;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--page-width), calc(100% - 64px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--header-height) + 64px) 0 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-kicker {
  margin: 0 0 22px;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 104px;
  font-weight: 400;
  line-height: 1;
}

.hero-sub {
  margin: 24px 0 0;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
}

.site-stats {
  width: min(520px, 100%);
  margin: 42px 0 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.site-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 5px;
}

.site-stats div + div {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.site-stats dt {
  color: var(--muted);
  font-size: 12px;
}

.site-stats dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.archive {
  width: min(var(--page-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 84px 0 110px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 64px;
  border-top: 2px solid var(--ink);
}

.timeline {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.timeline nav {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 1px solid var(--line);
}

.timeline a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.timeline a:hover,
.timeline a:focus-visible {
  color: var(--accent);
}

.timeline a::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--paper);
  border: 1px solid var(--accent);
  transform: translateY(-50%);
}

.collection-list {
  min-width: 0;
}

.collection-item {
  margin: 0 0 92px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.collection-item:last-child {
  margin-bottom: 0;
}

.collection-summary {
  width: 100%;
  padding: 0;
  display: block;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.collection-title-row {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.collection-title {
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.collection-meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.collection-toggle {
  margin-left: auto;
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}

.collection-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.preview-main {
  grid-column: span 2;
}

.preview-main,
.preview-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

.preview-main img,
.preview-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.collection-summary:hover .preview-main img,
.collection-summary:hover .preview-thumb img {
  transform: scale(1.012);
  filter: contrast(1.03);
}

.collection-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-collapse.is-open {
  grid-template-rows: 1fr;
}

.collection-inner {
  min-height: 0;
  overflow: hidden;
}

.photo-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 28px 14px;
}

.photo-card {
  min-width: 0;
  margin: 0;
  cursor: zoom-in;
}

.photo-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease, opacity 260ms ease;
}

.photo-card:hover .photo-frame img {
  transform: scale(1.018);
}

.photo-card.is-hidden .photo-frame img {
  opacity: 0.44;
}

.photo-caption {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.photo-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-meta {
  flex: 0 0 auto;
  color: var(--muted);
}

.empty-state {
  grid-column: 2;
  padding: 72px 0;
  color: var(--muted);
  text-align: center;
}

.notice-band {
  width: min(var(--page-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background:
    radial-gradient(circle at 12px 12px, rgba(44, 40, 32, 0.06) 1px, transparent 1.2px),
    var(--paper-deep);
  background-size: 20px 20px, auto;
}

.notice-band p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  width: min(var(--page-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0 46px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.text-button,
.primary-button,
.secondary-button,
.danger-button,
.upload-button,
.viewer-button {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 0;
}

.text-button {
  min-height: 36px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
}

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

.primary-button:hover,
.primary-button:active {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.secondary-button,
.upload-button {
  color: var(--ink);
  background: transparent;
}

.secondary-button:hover,
.upload-button:hover,
.secondary-button:active,
.upload-button:active {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.danger-button {
  color: var(--accent);
  background: transparent;
  border-color: currentColor;
}

.danger-button:hover,
.danger-button:active {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 0;
}

textarea {
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

.admin-backdrop,
.editor-backdrop {
  position: fixed;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(9, 11, 10, 0.72);
}

.admin-backdrop {
  z-index: 80;
}

.editor-backdrop {
  z-index: 110;
}

.admin-panel,
.editor-panel {
  width: min(1080px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
}

.admin-header,
.editor-header {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-header h2,
.editor-header h2 {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
}

.panel-kicker {
  margin: 0;
  color: var(--accent);
}

.admin-unlock {
  padding: 28px;
}

.admin-unlock > label,
.field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.unlock-row,
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.unlock-row input {
  flex: 1;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.admin-tab {
  min-height: 50px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
}

.admin-tab:last-child {
  border-right: 0;
}

.admin-tab.is-active {
  color: var(--paper);
  background: var(--ink);
}

.admin-tabpanel {
  padding: 28px;
}

.admin-section-head {
  margin-bottom: 20px;
}

.admin-section-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
}

.admin-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.field-wide {
  grid-column: span 2;
}

.check-field {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.check-field input {
  width: 18px;
  min-height: 18px;
}

.button-row {
  margin-top: 18px;
}

.section-divider {
  height: 1px;
  margin: 32px 0;
  background: var(--line);
}

.batch-row {
  margin-top: 16px;
}

.form-error {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 12px;
}

.admin-image-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.admin-image-item {
  min-width: 0;
  padding: 10px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

.admin-image-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
}

.admin-image-item img.is-hidden {
  opacity: 0.42;
}

.admin-image-copy {
  margin: 10px 0 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.admin-image-copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.admin-image-copy span {
  flex: 0 0 auto;
  color: var(--muted);
}

.admin-image-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.admin-image-actions button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.upload-actions {
  margin: 22px 0;
  display: flex;
  gap: 10px;
}

.queue-header {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.queue-header h3 {
  margin: 0;
  font-size: 14px;
}

.upload-queue {
  max-height: 280px;
  margin-top: 12px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.queue-item {
  min-height: 66px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.queue-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.queue-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.queue-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.queue-meta,
.queue-status,
.queue-note {
  color: var(--muted);
  font-size: 11px;
}

.queue-status.is-done {
  color: var(--accent);
}

.queue-status.is-error {
  color: var(--accent);
}

.queue-remove {
  padding: 4px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 11px;
}

.queue-note {
  margin: 12px 0;
}

.upload-submit {
  width: 100%;
}

.editor-panel {
  width: min(920px, 100%);
}

.editor-body {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
}

.editor-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  margin-bottom: 12px;
  background: var(--paper-deep);
}

.editor-fields .button-row {
  margin-top: 24px;
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  color: var(--on-dark);
  background: var(--viewer);
}

.viewer-top {
  position: relative;
  flex: 0 0 auto;
  z-index: 3;
  min-height: 76px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(13, 16, 15, 0.92);
  border-bottom: 1px solid rgba(244, 246, 242, 0.14);
}

.viewer-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.viewer-title > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-counter {
  color: rgba(247, 243, 233, 0.62);
  font-size: 12px;
}

.viewer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.viewer-button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--on-dark);
  background: transparent;
  border: 1px solid rgba(247, 243, 233, 0.22);
}

.viewer-button:hover,
.viewer-button:active {
  color: var(--viewer);
  background: var(--on-dark);
  border-color: var(--on-dark);
}

.viewer-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.viewer-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  transition: opacity 160ms ease;
}

.viewer-image-wrap.is-switching {
  opacity: 0;
}

.viewer-image-wrap img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  max-width: none;
  max-height: none;
  transform-origin: center;
  transition: transform 180ms ease;
}

.viewer-nav {
  position: absolute;
  top: 50%;
  min-width: 58px;
  min-height: 52px;
  padding: 0 12px;
  color: var(--on-dark);
  background: rgba(13, 16, 15, 0.58);
  border: 1px solid rgba(247, 243, 233, 0.18);
  transform: translateY(-50%);
}

.viewer-nav:hover,
.viewer-nav:active {
  background: rgba(247, 243, 233, 0.16);
}

.viewer-prev {
  left: 18px;
}

.viewer-next {
  right: 18px;
}

@media (max-width: 1080px) {
  .hero-type-line-1 {
    font-size: 150px;
  }

  .hero-type-line-2 {
    font-size: 132px;
  }

  .hero-type-line-3 {
    font-size: 86px;
  }

  .hero-camera {
    right: 8%;
    top: 24%;
    bottom: auto;
    width: min(40vw, 420px);
  }

  .archive {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 36px;
  }

  .collection-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .preview-main {
    grid-column: span 2;
  }

  .preview-thumb:nth-child(n + 5) {
    display: none;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .archive {
    display: block;
    padding-top: 36px;
  }

  .timeline {
    position: sticky;
    top: var(--header-height);
    z-index: 20;
    margin: 0 -16px 42px;
    padding: 0 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .timeline nav {
    padding: 12px 0;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    border: 0;
    scrollbar-width: none;
  }

  .timeline nav::-webkit-scrollbar {
    display: none;
  }

  .timeline a {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid var(--line);
  }

  .timeline a::before {
    display: none;
  }

  .empty-state {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 60px;
  }

  .header-inner,
  .archive,
  .site-footer,
  .notice-band {
    width: calc(100% - 32px);
  }

  .brand-en {
    display: none;
  }

  .hero-type-line-1 {
    top: 9%;
    left: -4%;
    font-size: 92px;
  }

  .hero-type-line-2 {
    top: 18%;
    right: -6%;
    font-size: 76px;
  }

  .hero-type-line-3 {
    top: 26%;
    font-size: 56px;
  }

  .hero-camera {
    right: 50%;
    top: 19%;
    bottom: auto;
    width: min(74vw, 380px);
    transform: translateX(50%);
    opacity: 0.9;
  }

  .hero-content {
    width: calc(100% - 32px);
    min-height: 92dvh;
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-sub {
    margin-top: 18px;
    font-size: 16px;
  }

  .site-stats {
    margin-top: 34px;
    padding: 18px 0;
  }

  .site-stats div + div {
    padding-left: 14px;
  }

  .site-stats dd {
    font-size: 23px;
  }

  .archive {
    padding: 24px 0 84px;
  }

  .collection-item {
    margin-bottom: 68px;
    padding-top: 18px;
  }

  .collection-title {
    font-size: 34px;
  }

  .collection-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .collection-toggle {
    margin-left: 0;
  }

  .collection-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .preview-main {
    grid-column: span 2;
  }

  .preview-thumb:nth-child(n + 5) {
    display: block;
  }

  .photo-grid {
    margin-top: 18px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 22px 8px;
  }

  .photo-caption {
    display: block;
  }

  .photo-meta {
    display: block;
    margin-top: 3px;
  }

  .site-footer {
    gap: 18px;
    flex-direction: column;
  }

  .admin-backdrop,
  .editor-backdrop {
    padding: 0;
    align-items: end;
  }

  .admin-panel,
  .editor-panel {
    width: 100%;
    max-height: 94dvh;
    border: 0;
  }

  .admin-header,
  .editor-header {
    padding: 18px;
  }

  .admin-unlock,
  .admin-tabpanel,
  .editor-body {
    padding: 18px;
  }

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

  .field-wide {
    grid-column: auto;
  }

  .admin-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--paper);
  }

  .admin-image-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-image-item {
    padding: 8px;
  }

  .admin-image-actions {
    flex-direction: column;
  }

  .upload-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .queue-item {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .queue-thumb {
    width: 44px;
    height: 44px;
  }

  .queue-status {
    display: none;
  }

  .queue-remove {
    grid-column: 3;
  }

  .editor-body {
    grid-template-columns: 1fr;
  }

  .editor-preview img {
    max-height: 340px;
    aspect-ratio: auto;
    height: 100%;
  }

  .viewer-top {
    min-height: 118px;
    padding: 10px 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .viewer-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .viewer-button {
    min-height: 34px;
    padding: 0 11px;
  }

  .viewer-stage {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    min-height: 0;
  }

  .viewer-nav {
    min-width: 46px;
    min-height: 48px;
    padding: 0 8px;
  }

  .viewer-prev {
    left: 8px;
  }

  .viewer-next {
    right: 8px;
  }
}

@media (max-width: 420px) {
  .hero-type-line-1 {
    font-size: 76px;
  }

  .hero-type-line-2 {
    font-size: 64px;
  }

  .hero-type-line-3 {
    font-size: 46px;
  }

  .hero-camera {
    top: 22%;
    width: min(82vw, 370px);
  }

  .hero h1 {
    font-size: 54px;
  }

  .site-stats dd {
    font-size: 21px;
  }

  .collection-title {
    font-size: 30px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row button {
    width: 100%;
  }

  .batch-row {
    flex-direction: row;
    overflow-x: auto;
  }

  .batch-row button {
    width: auto;
    flex: 0 0 auto;
  }
}

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

  .collection-collapse {
    transition: none;
  }

  .photo-frame img,
  .preview-main img,
  .preview-thumb img,
  .viewer-image-wrap,
  .viewer-image-wrap img {
    transition: none;
  }
}

/* momentra editorial art direction: dense bilingual type, paper grain, and a quiet darkroom red. */
.site-header {
  background: rgba(245, 241, 231, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink);
}

.brand {
  gap: 16px;
}

.brand-mark {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.brand-en {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: none;
}

.hero {
  min-height: calc(100dvh - var(--header-height));
  background-color: #eee9df;
  background-image:
    linear-gradient(rgba(44, 40, 32, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 40, 32, 0.075) 1px, transparent 1px),
    radial-gradient(circle at 78% 48%, rgba(163, 79, 53, 0.23), transparent 22%),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.86), transparent 32%),
    linear-gradient(125deg, #f8f5ee 0%, #e7e0d2 62%, #f1ece3 100%);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  inset: 28px;
  border: 1px solid rgba(44, 40, 32, 0.24);
}

.hero::after {
  top: 28px;
  bottom: 28px;
  left: 16.5%;
  border-left: 1px solid rgba(44, 40, 32, 0.18);
  box-shadow: 58vw 0 0 rgba(44, 40, 32, 0.12);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.34;
  background:
    repeating-linear-gradient(0deg, transparent 0 11px, rgba(163, 79, 53, 0.16) 12px, transparent 13px),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(44, 40, 32, 0.12) 12px, transparent 13px);
  mask-image: linear-gradient(90deg, #000 0 36%, transparent 72%);
}

.hero-type {
  z-index: 1;
}

.hero-type-line {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: 0.05em;
  mix-blend-mode: multiply;
}

.hero-type-line-1 {
  top: 5%;
  left: 10%;
  color: transparent;
  -webkit-text-stroke: 1px rgba(44, 40, 32, 0.42);
  font-size: clamp(80px, 13vw, 190px);
  text-shadow: none;
  transform: rotate(-5deg);
  opacity: 0.9;
}

.hero-type-line-2 {
  top: 19%;
  right: 6%;
  color: var(--accent);
  -webkit-text-stroke: 0;
  font-family: var(--font-serif);
  font-size: clamp(92px, 14vw, 210px);
  text-shadow: 8px 8px 0 rgba(255, 255, 255, 0.62);
  transform: rotate(4deg);
  opacity: 0.84;
}

.hero-type-line-3 {
  top: 45%;
  left: 11%;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 92px);
  text-shadow: 4px 4px 0 rgba(255, 255, 255, 0.72);
  transform: rotate(-2deg);
  opacity: 0.85;
}

.hero-type-line-4 {
  right: 9%;
  bottom: 12%;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 72px);
  transform: rotate(-7deg);
  opacity: 0.9;
}

.hero-type-line-5 {
  top: 14%;
  left: 3.7%;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.95;
}

.hero-side-copy {
  position: absolute;
  right: 4.5%;
  top: 51%;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.23em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-glow {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 45%, rgba(255, 255, 255, 0.58) 100%),
    radial-gradient(ellipse at 75% 76%, transparent 0 22%, rgba(44, 40, 32, 0.08) 72%);
}

.hero-camera-frame {
  position: absolute;
  z-index: 3;
  right: 8%;
  bottom: 9%;
  width: min(36vw, 480px);
  aspect-ratio: 1;
  border: 1px solid rgba(44, 40, 32, 0.3);
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: 8px;
  transform: rotate(3deg);
}

.hero-camera-frame::before,
.hero-camera-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.hero-camera-frame::before {
  inset: 13px;
  border: 1px dashed rgba(44, 40, 32, 0.3);
}

.hero-camera-frame::after {
  width: 34%;
  height: 34%;
  right: -9%;
  bottom: -9%;
  background: rgba(163, 79, 53, 0.78);
  mix-blend-mode: multiply;
}

.frame-corner {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-color: var(--accent);
  border-style: solid;
}

.frame-corner-a {
  top: -8px;
  left: -8px;
  border-width: 2px 0 0 2px;
}

.frame-corner-b {
  right: -8px;
  bottom: -8px;
  border-width: 0 2px 2px 0;
}

.hero-camera {
  inset: 5%;
  width: 90%;
  height: 90%;
  z-index: 1;
  opacity: 0.88;
  filter: contrast(1.24) sepia(0.12);
  animation: camera-drift 10s ease-in-out infinite alternate;
}

.hero-content {
  width: min(var(--page-width), calc(100% - 64px));
  min-height: calc(100dvh - var(--header-height));
  padding-top: 110px;
  padding-bottom: 58px;
  z-index: 4;
}

.hero-kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.hero-kicker span {
  color: var(--muted);
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: none;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(72px, 11vw, 164px);
  font-weight: 760;
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-transform: lowercase;
}

.hero-sub {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 26px;
  font-size: 19px;
}

.hero-sub strong {
  font-family: var(--font-serif);
  font-weight: 600;
}

.hero-sub span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.site-stats {
  width: min(560px, 100%);
  margin-top: 34px;
  border-top: 1px solid var(--accent);
}

.site-stats dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.site-stats dd {
  font-family: var(--font-sans);
  font-size: 31px;
  font-weight: 700;
}

@keyframes camera-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-10px, -8px, 0) rotate(-2deg); }
}

@media (max-width: 720px) {
  .site-header {
    background: rgba(245, 241, 231, 0.96);
  }

  .brand-en {
    display: inline;
    font-size: 10px;
  }

  .hero {
    min-height: calc(100dvh - var(--header-height));
  }

  .hero::before {
    inset: 16px;
  }

  .hero::after {
    top: 16px;
    bottom: 16px;
    left: 12%;
    box-shadow: none;
  }

  .hero-grid {
    background-size: 44px 44px;
  }

  .hero-type-line-1 {
    top: 6%;
    left: 15%;
    font-size: 80px;
  }

  .hero-type-line-2 {
    top: 20%;
    right: -4%;
    font-size: 94px;
  }

  .hero-type-line-3 {
    top: 39%;
    left: 8%;
    font-size: 44px;
  }

  .hero-type-line-4 {
    right: 6%;
    bottom: 25%;
    font-size: 38px;
  }

  .hero-type-line-5,
  .hero-side-copy {
    display: none;
  }

  .hero-camera-frame {
    right: 9%;
    top: 18%;
    bottom: auto;
    width: 66vw;
    max-width: 330px;
  }

  .hero-content {
    width: calc(100% - 32px);
    min-height: calc(100dvh - var(--header-height));
    padding-top: 50dvh;
    padding-bottom: 30px;
  }

  .hero-kicker {
    display: block;
    margin-bottom: 15px;
    max-width: 250px;
    line-height: 1.7;
  }

  .hero-kicker span {
    display: block;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 88px);
  }

  .hero-sub {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
    font-size: 17px;
  }

  .site-stats {
    margin-top: 24px;
    padding: 15px 0;
  }

  .site-stats dd {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-camera {
    animation: none;
  }
}

/* Type-safe hero layout: keep every text layer in its own visual lane. */
.hero-type-line-1 {
  top: 7%;
  left: 11%;
  font-size: clamp(64px, 8.5vw, 122px);
}

.hero-type-line-2 {
  top: 20%;
  right: 8%;
  font-size: clamp(72px, 9vw, 136px);
}

.hero-type-line-3 {
  top: 45%;
  left: 11%;
  font-size: clamp(34px, 4.8vw, 68px);
}

.hero-type-line-4 {
  top: 57%;
  right: 2%;
  bottom: auto;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.1;
  writing-mode: vertical-rl;
  transform: none;
}

.hero-content {
  max-width: none;
  padding-right: 50%;
}

.hero-kicker,
.hero h1,
.hero-sub,
.site-stats {
  position: relative;
  max-width: 100%;
}

.hero h1 {
  white-space: nowrap;
  font-size: clamp(72px, 9vw, 132px);
}

@media (max-width: 720px) {
  /* On narrow screens, decorative type stays above the image and never enters the copy lane. */
  .hero-type-line-1 {
    top: 5%;
    left: 10%;
    font-size: 52px;
  }

  .hero-type-line-2 {
    top: 15%;
    right: 8%;
    font-size: 44px;
  }

  .hero-type-line-3,
  .hero-type-line-4 {
    display: none;
  }

  .hero-camera-frame {
    top: 23%;
    right: 9%;
    width: 63vw;
    max-width: 300px;
  }

  .hero-content {
    max-width: none;
    padding-right: 0;
    padding-top: 54dvh;
  }

  .hero h1 {
    white-space: normal;
  }
}

/* Archive cover sizing: keep the folder preview compact so the collection list remains scannable. */
.collection-preview {
  width: min(100%, 860px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.preview-main,
.preview-thumb {
  aspect-ratio: 3 / 2;
}

.preview-main {
  grid-column: span 2;
}

@media (max-width: 860px) {
  .collection-preview {
    width: min(100%, 720px);
  }
}

@media (max-width: 720px) {
  .archive {
    padding-top: 20px;
    padding-bottom: 64px;
  }

  .collection-item {
    margin-bottom: 54px;
    padding-top: 14px;
  }

  .collection-title {
    font-size: 30px;
  }

  .collection-preview {
    width: calc(100% - 16px);
    margin-left: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .preview-main {
    grid-column: span 2;
    aspect-ratio: 3 / 2;
  }

  .preview-thumb {
    aspect-ratio: 1 / 1;
  }

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

  .photo-frame {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 420px) {
  .collection-preview {
    width: calc(100% - 8px);
    margin-left: 4px;
  }

  .collection-title {
    font-size: 28px;
  }
}
