/* STRATA — gallery walls */

:root {
  --wall: #F6F6F3;
  --wall-lit: #FBFBF8;
  --wall-shade: #EDEDE8;
  --ink: #1B1B19;
  --grey: #6B6B66;
  --grey-soft: #93938D;
  --hairline: #DEDEDA;
  --dot: #C22F2A;
  --mat: #FFFFFF;
  --display: 'Syne', sans-serif;
  --sans: 'Instrument Sans', sans-serif;
  --mono: 'Spline Sans Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

html, body { overflow-x: clip; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, var(--wall-lit) 0%, var(--wall) 45%, var(--wall-shade) 100%);
  background-attachment: fixed;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--wall); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(251, 251, 248, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.site-head nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.site-head nav a {
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  color: var(--grey);
  text-decoration: none;
  padding: 0.15rem 0;
}
.site-head nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 60rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 10vh, 8rem) 1.5rem 5rem;
  overflow: hidden;
}

#hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero > * { position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.9rem, 11.8vw, 11rem);
  line-height: 0.96;
  letter-spacing: 0.015em;
  margin: 1.4rem 0 1.8rem;
  white-space: nowrap;
}

.hero-sub {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink);
  text-wrap: balance;
}

.hero-seedline {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 1.6rem;
  letter-spacing: 0.04em;
}

.hero-cta {
  margin-top: 3rem;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.hero-cta:hover { color: var(--grey); border-color: var(--grey); }

/* load sequence */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero .wordmark, .hero .hero-sub, .hero .hero-seedline, .hero .hero-cta {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }
  .hero .wordmark { animation-delay: 0.12s; }
  .hero .hero-sub { animation-delay: 0.26s; }
  .hero .hero-seedline { animation-delay: 0.4s; }
  .hero .hero-cta { animation-delay: 0.54s; }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}

/* ---------- wall text (statement) ---------- */

.statement {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  border-top: 1px solid var(--hairline);
}

.statement p {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.statement p + p { margin-top: 1.4em; font-size: 1.0625rem; color: var(--grey); }

/* ---------- rooms ---------- */

.room {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
}

.room-head {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.room-no {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  padding-top: 0.45rem;
}

.room-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: 0.005em;
  margin-bottom: 0.7rem;
}

.wall-text {
  max-width: 36em;
  color: var(--grey);
  font-size: 1rem;
}

/* ---------- hangs ---------- */

.hang {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
  justify-content: center;
}

.hang + .hang { margin-top: clamp(5rem, 9vw, 8rem); }

.hang.flip { grid-template-columns: 17rem minmax(0, 1fr); }
.hang.flip .work { order: 2; }
.hang.flip .label { order: 1; text-align: right; }
.hang.flip .label .restate { margin-left: auto; }

.work { justify-self: center; width: 100%; }
.w-portrait { max-width: 30rem; }
.w-square { max-width: 34rem; }
.w-landscape { max-width: 44rem; }

.work-frame {
  background: var(--mat);
  padding: clamp(0.9rem, 2vw, 1.5rem);
  border: 1px solid #E9E9E4;
  box-shadow:
    0 1px 2px rgba(24, 22, 16, 0.05),
    0 3px 8px rgba(24, 22, 16, 0.06),
    0 28px 50px -24px rgba(24, 22, 16, 0.28);
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.work:hover .work-frame {
  transform: translateY(-4px);
  box-shadow:
    0 1px 2px rgba(24, 22, 16, 0.05),
    0 6px 14px rgba(24, 22, 16, 0.07),
    0 40px 64px -26px rgba(24, 22, 16, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  .work-frame { transition: none; }
  .work:hover .work-frame { transform: none; }
}

.work canvas {
  display: block;
  width: 100%;
  background: #F0EDE6;
}

/* pencil-signed edition line in the mat, printmaking style */
.plate {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: #A3A39B;
}
.plate-title { font-style: italic; }
.plate-seed { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em; }

/* ---------- wall labels ---------- */

.label {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--grey);
  padding-bottom: 0.2rem;
}

.w-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.w-title .year { font-weight: 400; color: var(--grey); }

.w-medium { margin-top: 0.45rem; max-width: 24em; }
.hang.flip .w-medium { margin-left: auto; }

.w-edition { margin-top: 0.45rem; }

.w-seed {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  margin-top: 0.7rem;
  color: var(--ink);
}

.state-note {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--grey-soft);
  margin-top: 0.15rem;
}

.w-price {
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.w-status {
  margin-top: 0.8rem;
  color: var(--ink);
  font-weight: 500;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
  margin-right: 0.45rem;
  vertical-align: baseline;
}

.restate {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.restate:hover { background: var(--ink); color: var(--wall-lit); }

.frozen-note {
  display: block;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--grey-soft);
  font-style: italic;
}

/* ---------- provenance ---------- */

.provenance {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
}

.provenance .room-head { margin-bottom: 3rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
}

.steps li {
  border-top: 1px solid var(--ink);
  padding-top: 1.1rem;
}

.step-no {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--grey);
}

.steps h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.5rem 0 0.5rem;
}

.steps p { font-size: 0.92rem; color: var(--grey); }

/* ---------- acquire ---------- */

.acquire {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  text-align: center;
  border-top: 1px solid var(--hairline);
}

.acquire h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.acquire p {
  color: var(--grey);
  max-width: 36em;
  margin: 0 auto;
}

.acquire .mail {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--wall-lit);
  background: var(--ink);
  border-radius: 2px;
  padding: 0.85rem 1.7rem;
  transition: opacity 0.2s;
}
.acquire .mail:hover { opacity: 0.82; }

.acquire .small {
  font-size: 0.8rem;
  color: var(--grey-soft);
  margin-top: 1.2rem;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
}

.foot-grid {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  font-size: 0.84rem;
  color: var(--grey);
}

.foot-grid .mark { font-size: 0.95rem; }
.foot-left p { margin-top: 0.8rem; max-width: 30em; }

.colophon {
  text-align: right;
  align-self: end;
}
.colophon p { max-width: 30em; margin-left: auto; }
.colophon a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- guide page ---------- */

.guide-main {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem 6rem;
}

.guide-main > section + section {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.guide-main h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0.6rem 0 1.2rem;
}

.guide-main h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.guide-main h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.8rem 0 0.5rem;
}

.guide-main p { color: var(--ink); }
.guide-main p + p { margin-top: 0.9em; }
.guide-main .muted { color: var(--grey); }

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.swatch {
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  background: var(--mat);
}

.swatch .chip { height: 4.5rem; }

.swatch figcaption {
  padding: 0.6rem 0.7rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--grey);
}
.swatch figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.swatch figcaption code { font-family: var(--mono); font-size: 0.72rem; }

.guide-main pre {
  background: var(--mat);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  margin: 1rem 0 1.6rem;
}

.guide-main code { font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; }
.guide-main p code, .guide-main li code {
  background: var(--mat);
  border: 1px solid var(--hairline);
  padding: 0.05em 0.35em;
  border-radius: 2px;
  font-size: 0.82em;
}

.guide-main ol, .guide-main ul { padding-left: 1.3rem; }
.guide-main li { margin-top: 0.55rem; color: var(--ink); }
.guide-main li::marker { color: var(--grey); font-family: var(--mono); font-size: 0.85em; }

.pass-list { list-style: none; padding: 0; }
.pass-list li {
  border-top: 1px solid var(--hairline);
  padding: 1rem 0;
  margin: 0;
}
.pass-list .pass-name {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  display: block;
  margin-bottom: 0.3rem;
}

.back-link {
  font-size: 0.85rem;
  color: var(--grey);
  text-decoration: none;
}
.back-link:hover { color: var(--ink); }

.type-specimen {
  border: 1px solid var(--hairline);
  background: var(--mat);
  border-radius: 2px;
  padding: 1.4rem 1.5rem;
  margin: 1rem 0;
}
.type-specimen .spec-display {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 0.02em;
}
.type-specimen .spec-mono { font-family: var(--mono); font-size: 0.85rem; color: var(--grey); }
.type-specimen p { margin-top: 0.4rem; font-size: 0.9rem; color: var(--grey); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .room-head { grid-template-columns: 1fr; gap: 0.6rem; }
  .hang, .hang.flip { grid-template-columns: 1fr; align-items: start; }
  .hang.flip .work { order: 1; }
  .hang.flip .label { order: 2; text-align: left; }
  .hang.flip .label .restate { margin-left: 0; }
  .hang.flip .w-medium { margin-left: 0; }
  .label { max-width: 30rem; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .colophon { text-align: left; }
  .colophon p { margin-left: 0; }
}

@media (max-width: 480px) {
  .site-head nav { gap: 0.9rem; }
  .site-head nav a { font-size: 0.78rem; }
  body { font-size: 1rem; }
}
