/* ============================================================
   compo.nents — design system v2 "Field & Cream"
   Rebrand: proud, professional, photographic, global.
   Palette + type carried from the original demo Muffy approved:
   Archivo Black display · cream/ink base · field green · brick.
   ============================================================ */

:root {
  --ink: #1c1a17;
  --ink-2: #2a2722;
  --paper: #fffdf8;
  --cream: #f7f1e3;
  --cream-2: #efe6cf;
  --green: #1f9e3f;
  --green-d: #15732d;
  --brick: #d4541f;
  --brick-d: #a83b12;
  --line: rgba(28, 26, 23, 0.14);
  --line-inv: rgba(247, 241, 227, 0.25);
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --measure: 60ch;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --maxw: 1200px;
}

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

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

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--ink :focus-visible, .section--green :focus-visible,
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }

::selection { background: var(--green); color: var(--paper); }

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.8rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.2; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eyebrow--green { color: var(--green); }
.eyebrow--brick { color: var(--brick); }
.section--ink .eyebrow--green, .section--green .eyebrow--green { color: #7ede9c; }

.lede { font-size: clamp(1.02rem, 1.7vw, 1.25rem); max-width: var(--measure); font-weight: 500; }
p { max-width: var(--measure); }

.inner { max-width: var(--maxw); margin: 0 auto; }

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

.ship-banner {
  max-width: none;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem var(--gutter);
}
.ship-banner::before { content: "●"; color: var(--green); margin-right: 0.6rem; }

.site-header {
  background: var(--paper);
  color: var(--ink);
  padding: 1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 40;
}

.logo {
  font-family: var(--display);
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo .dot { color: var(--brick); }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; margin-left: auto; }
.site-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--brick); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--green); }

/* exclusivity badge — sitewide, persistent, quietly confident */
.excl-badge {
  max-width: none;
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem var(--gutter);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.excl-badge .tick { color: var(--green); font-weight: 800; }

.brand-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.8rem;
  padding: 0.6rem var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand-bar a {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.25rem 0;
  opacity: 0.8;
}
.brand-bar a:hover { opacity: 1; color: var(--brick); }

/* ---------- layout ---------- */

.section { padding: clamp(3rem, 7.5vw, 6rem) var(--gutter); }
.section--tight { padding-top: clamp(2rem, 4.5vw, 3.5rem); padding-bottom: clamp(2rem, 4.5vw, 3.5rem); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--green { background: var(--green-d); color: var(--paper); }
.section--cream { background: var(--cream); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0 var(--gutter); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
.grid > * { min-width: 0; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--5 { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 480px) and (max-width: 759px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr 1fr; }
}

.stack > * + * { margin-top: 1rem; }

/* ---------- buttons + forms ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  border: 2px solid var(--brick);
  background: var(--brick);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--brick-d); border-color: var(--brick-d); transform: translateY(-1px); }
.btn--green { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn--green:hover { background: var(--green-d); border-color: var(--green-d); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); transform: translateY(-1px); }
.btn--ghost-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost-ink:hover { background: var(--ink); color: var(--cream); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transform: none; transition: none; }
}

.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  width: 100%;
}
.section--ink .field input, .section--ink .field select, .section--ink .field textarea,
.section--green .field input, .section--green .field select, .section--green .field textarea {
  border-color: var(--cream);
  background: rgba(255, 253, 248, 0.06);
  color: var(--paper);
}
.section--ink ::placeholder, .section--green ::placeholder { color: rgba(247, 241, 227, 0.55); }

.notify-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; max-width: 34rem; }
.notify-form .field { flex: 1 1 14rem; }
.form-note { font-size: 0.78rem; opacity: 0.72; margin-top: 0.6rem; }
.form-success {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  background: var(--green);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.9rem;
}
.form-success.is-visible { display: block; }

/* placeholder tokens — visible until Muffy confirms the facts */
.pending {
  overflow-wrap: anywhere;
  background: rgba(212, 84, 31, 0.1);
  outline: 1px dashed var(--brick);
  outline-offset: 2px;
  padding: 0 0.2em;
  border-radius: 3px;
}

.draft-flag {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick-d);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 0.9rem;
}

/* ---------- hero (split, field green — the layout Muffy loved) ---------- */

.hero {
  background: var(--green);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { max-width: 13ch; text-wrap: balance; }
.hero .kicker {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 1.4rem; opacity: 0.95;
}
.hero .lede { margin-top: 1.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(21, 115, 45, 0.45); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }

/* ---------- photography ---------- */

.photo-card { border-radius: var(--radius); overflow: hidden; position: relative; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }

.band {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  border-radius: 0;
}
.band > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.band-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28, 26, 23, 0.82) 0%, rgba(28, 26, 23, 0.55) 45%, rgba(28, 26, 23, 0.15) 100%);
}
.band-content {
  position: relative;
  padding: clamp(4rem, 10vw, 8.5rem) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.band h2 { max-width: 16ch; }
.band p { margin-top: 1.1rem; font-weight: 500; }

/* subtle parallax on band images (JS sets --py; reduced-motion neutralizes) */
.js .band > img { transform: translateY(calc(var(--py, 0) * 1px)) scale(1.12); will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .js .band > img { transform: none; }
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- product tiles ---------- */

.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tile:hover { box-shadow: 0 18px 40px rgba(28, 26, 23, 0.12); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .tile:hover { transform: none; } }
.tile-art { position: relative; background: var(--cream); aspect-ratio: 1 / 0.9; overflow: hidden; }
.tile-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-art img.contain { object-fit: contain; padding: 8%; }
.tile-body { padding: 1rem 1.2rem 1.3rem; border-top: 1px solid var(--line); flex: 1; }
.tile-brand { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brick); }
.tile-name { font-family: var(--display); font-size: 0.98rem; margin-top: 0.35rem; text-transform: uppercase; }
.tile-price { font-size: 0.85rem; margin-top: 0.4rem; opacity: 0.75; }
.soldout-flag {
  position: absolute; top: 0.9rem; left: 0.9rem;
  background: var(--ink); color: var(--cream);
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.excl-flag {
  position: absolute; top: 0.9rem; right: 0.9rem;
  background: var(--green); color: var(--paper);
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}

/* ---------- cards ---------- */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 18px 40px rgba(28, 26, 23, 0.12); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card-photo { position: relative; aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body .eyebrow { margin-bottom: 0.55rem; }
.card-body p { font-size: 0.95rem; margin-top: 0.5rem; }
.section--ink .card, .section--green .card { background: transparent; border-color: var(--line-inv); }

/* world strip */
.world-item { border-top: 3px solid var(--green); padding-top: 1rem; }
.world-item .place { font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; }
.world-item p { font-size: 0.92rem; margin-top: 0.4rem; }

/* ---------- brand pages ---------- */

.brand-hero { padding-bottom: 0; }
.excl-callout {
  border-left: 5px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 0.9rem 1.3rem;
  background: rgba(31, 158, 63, 0.08);
  font-weight: 600;
  max-width: var(--measure);
}

.fit-notes {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: var(--cream);
}
.fit-notes h3 { margin-bottom: 0.75rem; }
.fit-notes ul { list-style: none; }
.fit-notes li { padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.fit-notes li:first-child { border-top: 0; }

/* ---------- drops ---------- */

.drop-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.drop-date { font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; white-space: nowrap; }
.drop-status { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brick); }
.section--green .drop-row { border-top-color: var(--line-inv); }
.section--green .drop-status { color: #ffd9c4; }

.crumbs { font-size: 0.78rem; letter-spacing: 0.04em; padding: 1rem var(--gutter) 0; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; }
.crumbs a { text-decoration: none; opacity: 0.65; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs span[aria-current] { font-weight: 700; }

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

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 2rem;
}
.site-footer .grid { align-items: start; max-width: var(--maxw); margin: 0 auto; }
.site-footer h3 { font-size: 0.9rem; margin-bottom: 0.9rem; color: #7ede9c; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #7ede9c; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 0.22rem 0; font-size: 0.93rem; }
.footer-legal {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-inv);
  font-size: 0.78rem;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

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

@media (max-width: 759px) {
  .site-nav { margin-left: 0; width: 100%; }
  .drop-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .notify-form { flex-direction: column; align-items: stretch; }
  .notify-form .field { flex-basis: auto; }
}
