/* Working Class — Aida & Joanie
   Palette: stone, ink, oxblood (sparingly), plaster. No rounded corners anywhere. */
:root {
  --stone: #E4E2DD;
  --ink: #1C1F1D;
  --ink-soft: rgba(28, 31, 29, 0.62);
  --rule: rgba(28, 31, 29, 0.18);
  --oxblood: #6B2A2E;
  --plaster: #CEC8BE;
  --mount: #F7F5F0;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 1440px;
}

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

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

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
em, i { font-style: italic; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--stone); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 1px solid var(--oxblood); outline-offset: 4px; }

/* ——— Masthead ——— */
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  padding: 1.4rem var(--gutter);
  background: rgba(228, 226, 221, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease;
}
.masthead.is-scrolled { border-bottom-color: var(--rule); }

.wordmark {
  font-family: var(--display);
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.wordmark i { color: var(--oxblood); }
.wordmark__sub {
  display: block; margin-top: .3rem;
  font-family: var(--body); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-soft);
}

.masthead nav { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); }
.masthead nav a {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .22em;
  text-decoration: none; padding-bottom: 2px;
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.masthead nav a:hover { border-bottom-color: var(--ink); }
.masthead nav a.nav-accent { color: var(--oxblood); }

@media (max-width: 720px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: .6rem; padding-block: 1rem; }
  .masthead nav { flex-wrap: wrap; gap: .4rem 1.2rem; }
}

/* ——— Protected image plates ———
   The photograph is a CSS background on .plate__img; a transparent shield sits above it,
   then a light watermark. If a preview file is missing, a toned placeholder shows instead. */
.plate {
  position: relative;
  overflow: hidden;
  background: #b9b3a9;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.plate--portrait { aspect-ratio: 4 / 5; }
.plate--landscape { aspect-ratio: 5 / 4; }
.plate--square { aspect-ratio: 1; }
.plate--wide { aspect-ratio: 3 / 2; }
.plate--tall { aspect-ratio: 5 / 8; }

.plate__img {
  position: absolute; inset: 0;
  background-image: var(--src), var(--tone);
  background-size: cover;
  background-position: center;
  filter: saturate(.9);
  transform: scale(1.001);
  transition: transform 1.6s cubic-bezier(.2,.6,.2,1);
}
.gallery__item:hover .plate__img,
.hero__figure:hover .plate__img { transform: scale(1.025); }

.plate__shield {
  position: absolute; inset: 0; z-index: 2;
  background: transparent;
  pointer-events: auto;
}
.plate__mark {
  position: absolute; z-index: 3;
  right: .9rem; bottom: .75rem;
  font-family: var(--body); font-weight: 400;
  font-size: clamp(.55rem, .9vw, .68rem);
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  text-shadow: 0 0 6px rgba(0, 0, 0, .18);
  pointer-events: none;
  white-space: nowrap;
}

/* Placeholder tones — silver-gelatin and hand-tinted, one per plate */
[data-tone="seville"]  { --tone: radial-gradient(120% 90% at 35% 30%, #d9cbb4 0%, #a8927a 45%, #4f4337 100%); }
[data-tone="smoke"]    { --tone: radial-gradient(110% 80% at 60% 25%, #cfccc6 0%, #8e8a84 40%, #2d2c2a 100%); }
[data-tone="steps"]    { --tone: linear-gradient(170deg, #c9bfae 0%, #9b8e7b 50%, #5a5045 100%); }
[data-tone="brims"]    { --tone: radial-gradient(90% 90% at 50% 40%, #e2d9c8 0%, #b2a48c 50%, #6b5d4a 100%); }
[data-tone="doves"]    { --tone: radial-gradient(130% 100% at 70% 20%, #e6e1d6 0%, #b5ad9e 50%, #6c665c 100%); }
[data-tone="bluebird"] { --tone: linear-gradient(160deg, #a9b3b5 0%, #6f7b80 50%, #2f3739 100%); }
[data-tone="four"]     { --tone: radial-gradient(120% 120% at 40% 50%, #d6c7ad 0%, #a08667 50%, #4a3a2b 100%); }

/* Captions */
.caption {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem;
  margin-top: .9rem; align-items: baseline;
}
.caption__no {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}
.caption__title { font-family: var(--display); font-size: 1.15rem; }
.caption__meta {
  grid-column: 2; font-size: .78rem; color: var(--ink-soft); letter-spacing: .04em;
}
.wt {
  font-family: var(--body); font-style: normal; font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  vertical-align: .25em; margin-left: .25rem;
}

/* ——— Hero ——— */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) clamp(4rem, 10vw, 9rem);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  align-items: end;
}
.hero__figure { grid-column: 1 / span 7; margin: 0; }
.hero__text { grid-column: 9 / span 4; padding-bottom: 4.5rem; }
/* Portrait hero plate: given six columns so Lucky Strike carries the opening. */
.hero--tall .hero__figure { grid-column: 1 / span 6; }
.hero--tall .hero__text { grid-column: 8 / span 5; }

.eyebrow {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .28em;
  color: var(--ink-soft); margin: 0 0 1.5rem;
}
.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.4rem, 6.2vw, 6.6rem);
  line-height: .9; letter-spacing: -.02em;
  margin: 0 0 0 -.06em;
  font-optical-sizing: auto;
}
/* "Working" is a small lead-in; "Class" carries the title, in a steeply slanted italic. */
.hero__title-lead {
  display: block; margin-left: .1em;
  font-size: .42em; line-height: 1; letter-spacing: .04em;
}
.hero__title em {
  display: block; padding-left: .3em;
  font-style: italic; font-weight: 400; font-size: 1.45em;
  transform: skewX(-13deg); transform-origin: left bottom;
  font-synthesis: none;
  color: var(--oxblood);
}
.hero__places {
  font-family: var(--display); font-style: italic; font-size: 1.35rem;
  margin: 1.6rem 0 2rem;
}
.hero__places span { color: var(--oxblood); padding: 0 .3rem; font-style: normal; }
.hero__lede { max-width: 30rem; margin: 0 0 2.2rem; color: var(--ink-soft); }

.link-arrow {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .24em;
  text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: .3rem;
}
.link-arrow::after { content: " →"; letter-spacing: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero__figure, .hero__text,
  .hero--tall .hero__figure, .hero--tall .hero__text { grid-column: 1; }
  .hero--tall .hero__figure { max-width: 560px; }
  .hero__text { order: -1; padding-bottom: 0; }
}

/* ——— Section heads ——— */
.section-head {
  display: grid; grid-template-columns: 4rem auto 1fr; align-items: baseline; gap: 1.5rem;
  border-top: 1px solid var(--rule); padding-top: 1.4rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section-head__no {
  font-size: .7rem; letter-spacing: .24em; color: var(--oxblood);
}
.section-head h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1; margin: 0;
}
.section-head__note {
  justify-self: end; max-width: 22rem; margin: 0; text-align: right;
  font-size: .85rem; color: var(--ink-soft);
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: auto 1fr; }
  .section-head__note { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

/* ——— Collection: asymmetric gallery ——— */
.collection { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(5rem, 12vw, 10rem); }

.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter); row-gap: clamp(3rem, 8vw, 7rem);
}
.gallery__item { margin: 0; }
/* Lucky Strike is the hero (plate I); Flamenco Sisters and Honeymooning in Sevilla open the gallery. */
.g1 { grid-column: 1 / span 6; grid-row: 1; }
.g2 { grid-column: 7 / span 6; grid-row: 1 / span 2; margin-top: 5rem; }
.g-quote { grid-column: 2 / span 5; grid-row: 2; align-self: center; }
.g4 { grid-column: 2 / span 4; }
.g5 { grid-column: 8 / span 4; margin-top: 9rem; }
.g6 { grid-column: 1 / span 6; }
.g7 { grid-column: 7 / span 6; margin-top: 6rem; }
.g8 { grid-column: 3 / span 8; margin-top: 4rem; }

.gallery__quote { margin: 0; border-left: 1px solid var(--oxblood); padding-left: 1.6rem; }
.gallery__quote p {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; margin: 0;
}

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gallery > * { grid-row: auto; margin-top: 0; }
  .g1, .g6, .g7, .g8, .g-quote { grid-column: 1 / -1; }
  .g2, .g4 { grid-column: 1 / span 5; }
  .g5 { grid-column: 2 / span 4; }
}
@media (max-width: 520px) {
  .gallery > * { grid-column: 1 / -1 !important; }
}

/* ——— On the wall ——— */
.wall {
  background: var(--plaster);
  background-image:
    radial-gradient(140% 70% at 50% 0%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(100% 60% at 50% 110%, rgba(0,0,0,.08), transparent 60%);
  padding: clamp(4rem, 9vw, 8rem) var(--gutter) clamp(5rem, 11vw, 10rem);
}
.wall > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head--wall { border-top-color: rgba(28,31,29,.22); }

.wall__row {
  display: grid; grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding: 0 clamp(0rem, 4vw, 4rem);
}
.framed { margin: 0; }

.frame {
  padding: clamp(10px, 1.3vw, 18px);
  box-shadow:
    0 1px 1px rgba(0,0,0,.08),
    0 18px 30px -12px rgba(40,30,20,.35),
    0 40px 70px -30px rgba(40,30,20,.25);
}
.frame--black { background: linear-gradient(135deg, #2a2a29, #121212 60%, #232322); }
.mount {
  background: var(--mount);
  padding: clamp(18px, 3.2vw, 46px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04), inset 2px 2px 6px rgba(0,0,0,.12);
}
.mount .plate { box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

.caption--wall { grid-template-columns: 1fr; text-align: center; margin-top: 1.8rem; }
.caption--wall .caption__meta { grid-column: 1; }
.caption--wall .caption__title { font-size: 1rem; }

@media (max-width: 860px) {
  .wall__row { grid-template-columns: 1fr; max-width: 420px; padding: 0; }
}

/* ——— Editions ——— */
.editions { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 11vw, 9rem) var(--gutter); }
.editions__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start;
}
.editions__intro { grid-column: 1 / span 5; }
.editions__lede {
  font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.3; margin: 0;
}
.editions__note { margin: 1.25rem 0 0; max-width: 34em; }
.editions__terms {
  grid-column: 1 / span 7; list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.editions__terms li { border-top: 1px solid var(--rule); padding-top: 1rem; }
.term__no { font-family: var(--display); font-style: italic; color: var(--oxblood); }
.editions__terms h3 {
  font-family: var(--body); font-weight: 400; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .24em; margin: .4rem 0 .6rem;
}
.editions__terms p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

.certificate {
  grid-column: 9 / span 4; grid-row: 1 / span 2;
  background: var(--mount);
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule); outline-offset: -10px;
  padding: 2.6rem 2.2rem 2rem;
  text-align: center;
  transform: rotate(1.2deg);
  box-shadow: 0 30px 50px -30px rgba(28,31,29,.35);
}
.certificate__kicker {
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 1rem;
  color: var(--oxblood);
}
.certificate__title { font-family: var(--display); font-size: 1.5rem; margin: 0 0 1.6rem; line-height: 1.2; }
.certificate dl { margin: 0 0 1.8rem; text-align: left; }
.certificate dl div {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: .8rem;
  border-bottom: 1px dotted var(--rule); padding: .45rem 0;
}
.certificate dt { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.certificate dd { margin: 0; font-size: .9rem; }
.certificate__sign {
  font-family: var(--display); font-style: italic; font-size: 1.6rem; margin: 0;
  border-bottom: 1px solid var(--ink); display: inline-block; padding: 0 1rem .2rem;
}
.certificate__foot { font-size: .74rem; color: var(--ink-soft); margin: 1.4rem 0 0; }

@media (max-width: 960px) {
  .editions__intro, .editions__terms, .certificate { grid-column: 1 / -1; grid-row: auto; }
  .certificate { max-width: 420px; transform: none; }
}
@media (max-width: 620px) { .editions__terms { grid-template-columns: 1fr; } }

/* ——— Drop list ——— */
.droplist { background: var(--ink); color: var(--stone); padding: clamp(5rem, 11vw, 9rem) var(--gutter); }
.droplist__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.droplist .section-head__no { color: #b98a8d; }
.droplist h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin: .8rem 0 1rem; line-height: 1;
}
.droplist__inner > p { color: rgba(228,226,221,.7); margin: 0 0 3rem; }

.droplist__form {
  display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 1.5rem; align-items: end; text-align: left;
}
.field span {
  display: block; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(228,226,221,.6); margin-bottom: .4rem;
}
.field span i { text-transform: none; letter-spacing: .04em; }
.field input {
  width: 100%; background: transparent; color: var(--stone);
  border: 0; border-bottom: 1px solid rgba(228,226,221,.4);
  font: inherit; font-size: 1rem; padding: .5rem 0;
}
.field input:focus { outline: none; border-bottom-color: var(--stone); }
.droplist__form button {
  font: inherit; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase;
  background: var(--oxblood); color: var(--stone); border: 0; padding: 1rem 1.6rem; cursor: pointer;
  transition: background .3s;
}
.droplist__form button:hover { background: #7d3338; }
.droplist__form button:disabled { opacity: .6; cursor: wait; }
.droplist__status { grid-column: 1 / -1; margin: 0; min-height: 1.5em; font-family: var(--display); font-style: italic; text-align: center; }
.hp { position: absolute; left: -9999px; }

@media (max-width: 620px) { .droplist__form { grid-template-columns: 1fr; } }

/* ——— About ——— */
.about { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 11vw, 9rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.about__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start;
}
.about__lede {
  grid-column: 1 / span 6; margin: 0;
  font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.3;
}
.about__body { grid-column: 8 / span 5; padding-top: .6rem; }
.about__body p { margin: 0 0 1.25rem; max-width: 34em; }
.about__body p:last-child { margin-bottom: 0; color: var(--ink-soft); }
@media (max-width: 860px) {
  .about__lede, .about__body { grid-column: 1 / -1; }
  .about__body { padding-top: 0; }
}

/* ——— Footer ——— */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 3rem var(--gutter) 4rem;
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: baseline;
  font-size: .78rem; color: var(--ink-soft);
}
.footer p { margin: 0; max-width: 46rem; justify-self: end; text-align: right; }
.footer__mark { font-family: var(--display); font-size: 1.1rem; color: var(--ink); justify-self: start !important; }
.footer__mark i { color: var(--oxblood); }
@media (max-width: 720px) { .footer { grid-template-columns: 1fr; } .footer p { justify-self: start; text-align: left; } }

/* ——— Reveal ——— */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.6,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Discourage printing the page's images */
@media print { .plate__img { display: none; } }
