/* ==========================================================
   Both/And Bloom — Calming Patterns
   A dark ground papered in the artist's own line work.
   The books are cream plates mounted on it.
   ========================================================== */

:root {
  --night:      #1E3527;
  --night-deep: #16271C;
  --green:      #2F4F3A;
  --cream:      #F5F0E6;
  --paper:      #FCFAF4;
  --gold:       #C9A227;
  --gold-soft:  #E0C463;
  --terracotta: #B06647;
  --terra-ink:  #9C5233;
  --ink:        #222222;
  --ink-soft:   #5A564E;
  --rule:       #DBD3C2;

  --serif: "Newsreader", Georgia, serif;
  --sans:  "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  --measure: 33rem;
  --shell: 66rem;
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--cream);
  background-color: var(--night);
  background-image: url("img/field.png");
  background-size: 300px;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-weight: 400;
  font-optical-sizing: auto;
}

body > * { position: relative; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: var(--measure); }

/* ---------- shared ornament ---------- */

.series {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terra-ink);
  text-align: center;
  margin: 0 0 1.75rem;
  max-width: none;
}
.series--gold { color: var(--gold); }

.rule { width: 15rem; opacity: .85; margin: 1.5rem 0; }
.rule--center { margin: 0 auto 1.75rem; }

.spec {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.spec--dark { color: #9FB3A4; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.95em 1.5em;
  border-radius: 2px;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--primary {
  background: var(--terra-ink);
  color: #FFF9F2;
  border: 1px solid var(--terra-ink);
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.btn--primary:hover { background: #8A4227; border-color: #8A4227; }

.btn--quiet {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--rule);
}
.btn--quiet:hover { border-color: var(--green); }

.btn--small { font-size: 0.875rem; padding: 0.8em 1.2em;
  background: var(--terra-ink); color: #FFF9F2; border: 1px solid var(--terra-ink); }
.btn--small:hover { background: #8A4227; }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- plates: cream panels mounted on the dark ---------- */

.plate {
  position: relative;
  max-width: var(--shell);
  margin: 3rem auto;
  background: var(--paper);
  color: var(--ink);
  padding: 2.75rem 1.5rem 3rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,.10),
    0 26px 60px -18px rgba(0,0,0,.65),
    0 3px 12px rgba(0,0,0,.30);
}
.plate::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201,162,39,.45);
  pointer-events: none;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201,162,39,.16);
  pointer-events: none;
}
.plate h2 { color: var(--green); font-size: clamp(2rem, 6vw, 2.875rem); }
.plate p { color: var(--ink); }

/* ---------- masthead ---------- */

.masthead__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}
.wordmark__mark {
  font-family: var(--serif);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--night);
  background: var(--gold);
  width: 2.6rem; height: 2.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.wordmark__slash { color: rgba(30,53,39,.55); }
.wordmark__name { display: block; font-size: 1.0625rem; letter-spacing: .01em; }
.wordmark__co {
  display: block;
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.masthead__where {
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.6;
  color: #A9BCAE;
  margin: 0; max-width: none;
}
.masthead__where b { color: var(--gold-soft); font-weight: 600; }

/* ---------- frontispiece ---------- */

.plate--front { margin-top: 1rem; }
.frontispiece { display: grid; gap: 1.5rem; }
.frontispiece__art img { width: 100%; max-width: 22rem; margin: 0 auto; }

.frontispiece h1 {
  font-size: clamp(3rem, 13vw, 5.25rem);
  color: var(--green);
  letter-spacing: -0.03em;
  margin-bottom: 0.2em;
}
.tagline {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--terra-ink);
  margin-bottom: 0;
}
.frontispiece__lede { color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- pickup strip ---------- */

.strip {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 1rem;
}
.strip__h {
  font-size: clamp(1.375rem, 4.5vw, 1.875rem);
  color: var(--gold-soft);
  max-width: 30rem;
  margin-bottom: 1.75rem;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.steps li { display: flex; gap: 1rem; align-items: baseline; }
.steps__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  flex: 0 0 1.8rem;
}
.steps p { margin: 0; color: #CBD8CD; font-size: 1rem; }
.steps em { color: #fff; font-style: italic; }

/* ---------- the kit ---------- */

.kit { display: grid; gap: 2rem; }
.kit__fan { display: flex; justify-content: center; padding: 0.5rem 0 1rem; }
.kit__fan img {
  width: 34%;
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: 0 14px 26px -10px rgba(0,0,0,.45);
}
.kit__fan img:nth-child(1) { transform: rotate(-6deg) translateY(6px); z-index: 1; }
.kit__fan img:nth-child(2) { margin: 0 -3%; z-index: 3; }
.kit__fan img:nth-child(3) { transform: rotate(6deg) translateY(6px); z-index: 2; }

.price { margin-bottom: 1.5rem; }
.price__fig {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--green);
  line-height: 1;
}
.price__note {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ---------- singles ---------- */

.singles { max-width: var(--shell); margin: 0 auto; padding: 3rem var(--gutter); }
.singles__h {
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--gold-soft);
  margin-bottom: 2rem;
}
.singles__grid { display: grid; gap: 2rem; }

.card {
  display: flex;
  flex-direction: column;
  background: rgba(245,240,230,.055);
  border: 1px solid rgba(201,162,39,.28);
  padding: 1.25rem 1.25rem 1.5rem;
}
.card__cover {
  width: 100%;
  border: 1px solid rgba(0,0,0,.3);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,.6);
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.375rem; color: #FFFDF6; }
.card p { color: #C3D2C6; font-size: 0.9375rem; margin-bottom: .6em; }
.card__pull { font-style: italic; color: var(--gold-soft); }
.card .spec { color: #93A897; border-top: 1px solid rgba(201,162,39,.22); padding-top: .7rem; margin-top: auto; }
.card .btn { align-self: flex-start; }

.shelf { display: grid; gap: 2rem; }
.shelf__plate { margin: 0; }
.shelf__plate img { width: 100%; max-width: 15rem; margin: 0 auto; }
.shelf__plate figcaption {
  font-family: var(--sans); font-size: .625rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
  text-align: center; margin-top: .9rem;
}

/* ---------- wholesale ---------- */

.facts { margin: 1.5rem 0; padding: 0; display: grid; gap: .6rem; max-width: var(--measure); }
.facts > div {
  display: flex; justify-content: space-between; gap: 1rem;
  border-bottom: 1px dotted var(--rule);
  padding-bottom: .5rem;
  font-family: var(--sans); font-size: .875rem;
}
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.note { font-family: var(--sans); font-size: .8125rem; color: var(--ink-soft); margin: 1.25rem 0 0; }

/* ---------- colophon ---------- */

.colophon {
  text-align: center;
  padding: 3rem var(--gutter) 4rem;
  font-family: var(--sans);
  font-size: .8125rem;
  color: #A9BCAE;
}
.colophon p { margin: 0 auto .35em; max-width: none; }
.colophon a { color: var(--gold-soft); }
.colophon__brand { font-family: var(--serif); font-size: 1.125rem; color: var(--cream); }

/* ---------- wide ---------- */

@media (min-width: 46rem) {
  :root { --gutter: 2rem; }
  .plate { padding: 3.5rem 3.25rem 3.75rem; margin: 4.5rem auto; }
  .plate--front { margin-top: 1.5rem; }

  .frontispiece { grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: center; }
  .frontispiece__art img { max-width: none; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
  .kit { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
  .singles__grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .master__frame { padding: 4rem 3.5rem; }
  .shelf { grid-template-columns: 1fr 15rem; gap: 3.5rem; align-items: center; }
}

@media (max-width: 26rem) {
  .actions { display: block; }
  .actions .btn { display: block; text-align: center; }
  .actions .btn + .btn { margin-top: .75rem; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
