@charset "UTF-8";

:root {
  --ink: #13212a;
  --ink-soft: #40505a;
  --paper: #f3efe6;
  --paper-deep: #e8e1d4;
  --line: rgba(19, 33, 42, 0.16);
  --acid: #d7f36b;
  --coral: #f06d4f;
  --blue: #5578ff;
  --white: #fffdf8;
  --shadow: 0 20px 50px rgba(19, 33, 42, 0.12);
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(19, 33, 42, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 33, 42, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black 0, transparent 75%);
}

.page-wash {
  position: fixed;
  z-index: -1;
  top: -18rem;
  right: -12rem;
  width: 44rem;
  height: 44rem;
  pointer-events: none;
  background: radial-gradient(circle, rgba(215, 243, 107, .65), rgba(215, 243, 107, 0) 68%);
  transform: rotate(-15deg);
}

a { color: inherit; }

button, input { font: inherit; }

button { cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.08em;
}

.brand-name {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .14em;
}

.brand-name em { color: var(--coral); font-style: normal; }

.header-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.header-rule { width: 42px; height: 1px; background: var(--coral); }

main { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 8%;
  min-height: 480px;
  padding: 78px 0 88px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .19em;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(58px, 9vw, 124px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.075em;
}

h1 span { color: var(--coral); font-style: italic; }

.hero-deck {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(19, 33, 42, .16); }
.button-dark { color: var(--white); background: var(--ink); }
.button-quiet { color: var(--ink); background: transparent; border-color: var(--line); }
.button-quiet:hover { background: var(--white); }

.hero-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0 4px 28px;
  border-left: 1px solid var(--line);
}

.rail-stamp {
  width: 82px;
  height: 82px;
  padding: 13px 11px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .13em;
  transform: rotate(9deg);
}

.rail-stamp strong { color: var(--coral); font-size: 17px; letter-spacing: 0; }

.hero-stats { margin: 0; }
.hero-stats div { padding: 13px 0; border-top: 1px solid var(--line); }
.hero-stats dt { color: var(--ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.hero-stats dd { margin: 3px 0 0; font-family: var(--display); font-size: 38px; line-height: 1; }
.rail-caption { margin: 0; color: var(--ink-soft); font-family: var(--display); font-size: 17px; font-style: italic; line-height: 1.15; }

.gallery-section { padding: 66px 0 24px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-title-line { display: flex; align-items: baseline; gap: 14px; }
.section-index, .method-number { color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.section-heading h2, .method-note h2 { margin: 0; font-family: var(--display); font-size: clamp(30px, 4vw, 48px); font-weight: 400; letter-spacing: -.045em; }
.section-count { color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.section-intro { max-width: 340px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; text-align: right; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 30px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { min-height: 31px; padding: 0 12px; color: var(--ink-soft); background: transparent; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em; transition: background .2s ease, color .2s ease, border .2s ease; }
.filter-chip:hover { border-color: var(--line); color: var(--ink); }
.filter-chip.is-active { color: var(--ink); background: var(--acid); border-color: var(--ink); }

.search-box { position: relative; display: flex; align-items: center; width: min(260px, 100%); }
.search-box svg { position: absolute; left: 13px; width: 16px; height: 16px; fill: none; stroke: var(--ink-soft); stroke-width: 1.6; }
.search-box input { width: 100%; height: 35px; padding: 0 12px 0 37px; color: var(--ink); background: rgba(255, 253, 248, .62); border: 1px solid var(--line); border-radius: 999px; outline: none; font-size: 12px; }
.search-box input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(215, 243, 107, .5); }

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

.prompt-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 2px 0 rgba(19, 33, 42, .06); cursor: pointer; opacity: 0; animation: card-in .6s cubic-bezier(.2, .75, .25, 1) forwards; transition: transform .25s ease, box-shadow .25s ease; }
.prompt-card:nth-child(odd) { transform: translateY(12px); }
.prompt-card:hover, .prompt-card:focus-visible { transform: translateY(-6px) !important; box-shadow: var(--shadow); outline: none; }
.prompt-card:focus-visible { box-shadow: 0 0 0 3px var(--acid), var(--shadow); }

.card-image-wrap { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-deep); }
.card-image-wrap::after { position: absolute; inset: 0; pointer-events: none; content: ""; background: linear-gradient(135deg, rgba(19, 33, 42, .18), transparent 42%, rgba(19, 33, 42, .08)); mix-blend-mode: multiply; }
.card-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .75, .25, 1); }
.prompt-card:hover .card-image { transform: scale(1.045); }
.card-index { position: absolute; z-index: 1; top: 13px; left: 14px; display: grid; width: 31px; height: 31px; place-items: center; color: var(--ink); background: var(--acid); border: 1px solid var(--ink); border-radius: 50%; font-size: 11px; font-weight: 800; }
.card-open { position: absolute; z-index: 1; right: 14px; bottom: 13px; display: grid; width: 32px; height: 32px; place-items: center; color: var(--white); background: var(--ink); border-radius: 50%; font-size: 17px; line-height: 1; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.prompt-card:hover .card-open, .prompt-card:focus-visible .card-open { opacity: 1; transform: translateY(0); }

.card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 18px 20px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.card-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tag-mode { color: var(--ink); border-color: var(--ink); }
.tag-mode[data-mode="moving_switch"] { background: rgba(85, 120, 255, .13); }
.tag-mode[data-mode="moving_camera_switch"] { background: rgba(240, 109, 79, .14); }
.card-words { color: var(--ink-soft); font-size: 10px; white-space: nowrap; }
.card-title { margin: 0 0 11px; font-family: var(--display); font-size: clamp(25px, 3vw, 34px); font-weight: 400; letter-spacing: -.04em; }
.card-prompt { display: -webkit-box; flex: 1; margin: 0; overflow: hidden; color: var(--ink-soft); font-size: 13px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.card-id { margin: 17px 0 0; overflow: hidden; color: rgba(19, 33, 42, .5); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }

.loading-card { min-height: 430px; padding: 18px; background: linear-gradient(100deg, rgba(232, 225, 212, .7) 30%, rgba(255, 253, 248, .8) 50%, rgba(232, 225, 212, .7) 70%); background-size: 240% 100%; border: 1px solid var(--line); animation: shimmer 1.4s infinite; }
.loading-card span { display: block; height: 12px; margin-top: 310px; background: rgba(19, 33, 42, .08); }
.loading-card span + span { width: 68%; margin-top: 12px; }
.loading-card span + span + span { width: 48%; margin-top: 10px; }

.empty-state { padding: 72px 20px; text-align: center; border: 1px dashed var(--line); }
.empty-mark { color: var(--coral); font-family: var(--display); font-size: 52px; }
.empty-state h3 { margin: 10px 0 6px; font-family: var(--display); font-size: 32px; font-weight: 400; }
.empty-state p { margin-bottom: 22px; color: var(--ink-soft); font-size: 13px; }

.method-note { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 20px; align-items: start; margin-top: 82px; padding: 28px 0 65px; border-top: 1px solid var(--line); }
.method-note h2 { margin-bottom: 10px; font-size: 31px; }
.method-note p { max-width: 600px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.method-key { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px; padding-top: 8px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.method-key span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-static { background: var(--acid); border: 1px solid var(--ink); }
.dot-move { background: var(--blue); }
.dot-camera { background: var(--coral); }

.site-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 21px 0 28px; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 9px; font-weight: 800; letter-spacing: .1em; }

.prompt-dialog { width: min(970px, calc(100% - 30px)); max-width: none; padding: 0; color: var(--ink); background: var(--white); border: 1px solid var(--ink); box-shadow: 0 24px 100px rgba(19, 33, 42, .28); }
.prompt-dialog::backdrop { background: rgba(19, 33, 42, .7); backdrop-filter: blur(4px); }
.dialog-inner { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 500px; }
.dialog-media { min-height: 340px; background: var(--paper-deep); }
.dialog-media img { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.dialog-content { position: relative; display: flex; flex-direction: column; padding: 40px 38px 34px; }
.dialog-close { position: absolute; top: 15px; right: 17px; display: grid; width: 34px; height: 34px; place-items: center; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 23px; line-height: 1; }
.dialog-close:hover { background: var(--acid); border-color: var(--ink); }
.dialog-kicker { display: flex; gap: 8px; align-items: center; margin-bottom: 35px; color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.dialog-kicker span + span::before { margin-right: 8px; color: var(--line); content: "/"; }
.dialog-content h2 { margin-bottom: 8px; font-family: var(--display); font-size: clamp(34px, 4vw, 52px); font-weight: 400; letter-spacing: -.05em; }
.dialog-id { margin-bottom: 25px; overflow: hidden; color: rgba(19, 33, 42, .5); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.dialog-prompt { flex: 1; margin-bottom: 25px; color: var(--ink-soft); font-size: 15px; line-height: 1.72; }
.dialog-meta { display: flex; gap: 18px; margin-bottom: 21px; color: var(--ink-soft); font-size: 10px; font-weight: 700; letter-spacing: .07em; }
.dialog-meta strong { color: var(--ink); font-size: 15px; }
.copy-button { align-self: start; }
.copy-status { min-height: 1.2em; margin: 10px 0 0; color: var(--coral); font-size: 11px; }

.noscript-note { position: fixed; inset: 20px; z-index: 10; padding: 20px; color: var(--white); background: var(--ink); }

@keyframes card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

@media (max-width: 800px) {
  .site-header, main, .site-footer { width: min(100% - 36px, 620px); }
  .site-header { padding-top: 20px; }
  .header-note { font-size: 9px; letter-spacing: .1em; }
  .header-rule { width: 20px; }
  .hero { grid-template-columns: 1fr; gap: 38px; min-height: 0; padding: 62px 0 65px; }
  .hero-rail { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 24px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .rail-caption { display: none; }
  .section-heading { display: block; }
  .section-intro { margin-top: 13px; text-align: left; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .gallery { grid-template-columns: 1fr; gap: 18px; }
  .prompt-card:nth-child(odd) { transform: none; }
  .method-note { grid-template-columns: 32px 1fr; gap: 12px; }
  .method-key { grid-column: 2; justify-content: start; padding-top: 0; }
  .site-footer { flex-direction: column; gap: 8px; }
  .dialog-inner { grid-template-columns: 1fr; }
  .dialog-media, .dialog-media img { min-height: 0; aspect-ratio: 16 / 10; }
  .dialog-content { padding: 27px 24px 25px; }
  .dialog-kicker { margin-bottom: 23px; }
}

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