/* ==========================================================================
   Marlowe — design tokens
   Warm off-white, deep forest accent. Quiet-premium retail, not loud poster.
   ========================================================================== */

:root {
  --paper:         #F7F5F0;  /* primary background */
  --paper-raised:  #EFECE2;  /* card / raised surface */
  --paper-deep:    #E3DFD1;  /* borders, hairlines on paper */
  --ink:           #1C1E1A;  /* primary text */
  --muted:         #655F52;  /* secondary text — darkened from an earlier draft so it still clears 4.5:1 on --paper-raised, not just --paper */
  --forest:        #2F4A3A;  /* brand accent — buttons, links, borders */
  --forest-deep:   #22362A;  /* hover / active accent */
  --forest-tint:   rgba(47, 74, 58, 0.08); /* accent wash for chips/backgrounds */
  --error:         #8B3A3A;  /* out-of-stock / form errors — distinct from brand accent */
  --line:          rgba(28, 30, 26, 0.12);
  --line-strong:   rgba(28, 30, 26, 0.28);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter Tight", "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "Consolas", monospace;

  --fs-hero: clamp(2.5rem, 4.6vw + 1rem, 4.5rem);
  --fs-h2: clamp(1.8rem, 2.2vw + 1rem, 2.5rem);
  --fs-h3: clamp(1.15rem, 1vw + 0.9rem, 1.4rem);
  --fs-lead: clamp(1.05rem, 0.5vw + 0.9rem, 1.2rem);
  --fs-body: 1rem;
  --fs-mono: 0.82rem;

  --wrap: 1280px;
  --gutter: 1.25rem;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) { :root { --gutter: 2rem; } }

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, dl, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  z-index: 200; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--forest); display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--forest); display: inline-block; }
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.65; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-alt { background: var(--paper-raised); }

.section-head { max-width: 40rem; margin-bottom: 2.75rem; }
.section-head h2 { margin-top: 0.9rem; }
.section-head .lead { margin-top: 0.9rem; }
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.section-head--split > div:last-child { max-width: 22rem; }
.section-foot { margin-top: 2.75rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: var(--paper); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-primary:disabled { background: var(--paper-deep); color: var(--muted); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-small { padding: 0.6rem 1.15rem; font-size: 0.88rem; }

/* ==========================================================================
   Header + navigation
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; gap: 1rem; }

.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem;
  color: var(--ink); letter-spacing: -0.01em;
}

.nav-desktop { display: none; }
@media (min-width: 900px) {
  .nav-desktop { display: flex; align-items: center; gap: 2rem; }
  .nav-desktop a {
    font-size: 0.92rem; font-weight: 500; color: var(--muted); position: relative;
  }
  .nav-desktop a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--forest); transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav-desktop a:hover, .nav-desktop a:focus-visible, .nav-desktop a.is-active { color: var(--ink); }
  .nav-desktop a:hover::after, .nav-desktop a:focus-visible::after, .nav-desktop a.is-active::after { transform: scaleX(1); }
}

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius);
  background: transparent; border: 1px solid transparent; color: var(--ink);
  transition: background 0.2s var(--ease);
}
.icon-btn:hover { background: var(--paper-raised); }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 50%; background: var(--forest); color: var(--paper);
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0); transition: transform 0.2s var(--ease);
}
.cart-count.is-visible { transform: scale(1); }

.nav-toggle {
  width: 44px; height: 44px; border: none; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Slide-in panels are DOM siblings of .site-header, never nested inside it —
   a sticky/positioned header establishes its own stacking context, which
   silently traps a nested position:fixed child's size and z-index. */
.nav-scrim, .cart-scrim {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(28, 30, 26, 0.35);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.nav-scrim.is-open, .cart-scrim.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.primary-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 84vw); z-index: 90;
  background: var(--paper); border-left: 1px solid var(--line);
  padding: 5.5rem 1.75rem 2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
  transform: translateX(100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), visibility 0.4s var(--ease);
}
.primary-nav.is-open { transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto; }
.primary-nav a { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.primary-nav a.is-active { color: var(--forest); }
@media (min-width: 900px) { .nav-toggle, .nav-scrim, .primary-nav { display: none; } }

/* ==========================================================================
   Cart drawer
   ========================================================================== */

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(400px, 90vw); z-index: 95;
  background: var(--paper); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), visibility 0.4s var(--ease);
}
.cart-drawer.is-open { transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto; }

.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.5rem 1.1rem; border-bottom: 1px solid var(--line);
}
.cart-drawer__head h2 { font-size: 1.2rem; }
.cart-drawer__close { display: flex; align-items: center; justify-content: center; background: none; border: none; width: 44px; height: 44px; color: var(--ink); }

.cart-drawer__items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.cart-drawer__empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); }

.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.9rem; align-items: start; }
.cart-line__img { width: 64px; height: 76px; object-fit: cover; border-radius: var(--radius); background: var(--paper-raised); }
.cart-line__name { font-weight: 600; font-size: 0.95rem; }
.cart-line__meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); margin-top: 0.25rem; }
.cart-line__price { font-family: var(--font-mono); font-size: 0.85rem; }
.cart-line__remove { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; margin-top: 0.5rem; }
.cart-line__remove:hover { color: var(--error); }

.cart-drawer__foot { border-top: 1px solid var(--line); padding: 1.25rem 1.5rem 1.5rem; }
.cart-drawer__subtotal { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 1rem; }
.cart-drawer__note { font-size: 0.82rem; color: var(--muted); margin-top: 0.75rem; text-align: center; }

/* ==========================================================================
   Toast (add-to-cart confirmation)
   ========================================================================== */

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 110;
  transform: translate(-50%, 120%);
  background: var(--ink); color: var(--paper);
  padding: 0.85rem 1.4rem; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
  transition: transform 0.35s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 6.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.hero-copy .eyebrow { margin-bottom: 1.25rem; }
.hero-title { font-size: var(--fs-hero); }
.hero-title em { font-style: italic; color: var(--forest); }
.hero-sub { margin-top: 1.25rem; max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Product grid + card
   ========================================================================== */

.product-grid { display: grid; gap: 1.75rem 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card { display: block; }
.product-card__frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-raised); }
.product-card__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-card__frame img { transform: scale(1.045); }
.product-card__tag {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--forest); color: var(--paper);
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.3rem 0.55rem; border-radius: var(--radius);
}
.product-card__body { padding-top: 0.9rem; }
.product-card__cat { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.product-card__name { font-size: 1rem; font-weight: 600; margin-top: 0.3rem; transition: color 0.2s var(--ease); }
.product-card:hover .product-card__name { color: var(--forest-deep); }
.product-card__price { font-family: var(--font-mono); font-size: 0.88rem; color: var(--forest); margin-top: 0.35rem; }

/* ==========================================================================
   Filter bar (shop page)
   ========================================================================== */

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 2.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.filter-chip {
  min-height: 44px; padding: 0.5rem 1.1rem; display: inline-flex; align-items: center;
  border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  background: transparent; transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.is-active { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.sort-select {
  min-height: 44px; padding: 0.55rem 2.25rem 0.55rem 0.9rem; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23655F52' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  color: var(--ink); font-size: 0.85rem; appearance: none; -webkit-appearance: none;
}

/* ==========================================================================
   Product detail page
   ========================================================================== */

.product-detail { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .product-detail { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; } }
.product-detail__frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-raised); }
.product-detail__frame img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__cat { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.product-detail__name { font-size: var(--fs-h2); margin-top: 0.6rem; }
.product-detail__price { font-family: var(--font-mono); font-size: 1.15rem; color: var(--forest); margin-top: 0.75rem; }
.product-detail__desc { margin-top: 1.5rem; color: var(--muted); max-width: 32rem; }

.option-group { margin-top: 2rem; }
.option-group__label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; display: block; }
.size-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.size-chip {
  min-width: 46px; min-height: 44px; padding: 0.55rem 0.75rem;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 0.85rem; background: transparent; color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.size-chip:hover { border-color: var(--ink); }
.size-chip.is-selected { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.qty-stepper button { width: 44px; height: 44px; background: none; border: none; font-family: var(--font-mono); font-size: 1rem; color: var(--ink); }
.qty-stepper button:hover { background: var(--paper-raised); }
.qty-stepper__value { width: 34px; text-align: center; font-family: var(--font-mono); font-size: 0.9rem; }

.product-detail__actions { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.product-detail__hint { font-size: 0.82rem; color: var(--error); margin-top: 0.6rem; min-height: 1.2em; }

.accordion-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0; background: none; border: none; text-align: left;
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.accordion-item__icon { transition: transform 0.3s var(--ease); flex-shrink: 0; }
.accordion-item[open] .accordion-item__icon { transform: rotate(45deg); }
.accordion-item__panel { padding-bottom: 1.25rem; color: var(--muted); max-width: 34rem; }

.related-products { margin-top: 4.5rem; }

/* ==========================================================================
   Cart page (full page, not the drawer)
   ========================================================================== */

.cart-page-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cart-page-grid { grid-template-columns: 1.5fr 1fr; } }
.cart-page-line {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 1.25rem; align-items: start;
  padding-block: 1.5rem; border-bottom: 1px solid var(--line);
}
.cart-page-line:first-child { border-top: 1px solid var(--line); }
.cart-page-line__img { width: 84px; height: 100px; object-fit: cover; border-radius: var(--radius); background: var(--paper-raised); }
.cart-page-line__name { font-weight: 600; }
.cart-page-line__meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }
.cart-page-line__price { font-family: var(--font-mono); text-align: right; }
.cart-page-line__row-actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; }

.summary-card { background: var(--paper-raised); border-radius: var(--radius); padding: 1.75rem; height: fit-content; }
.summary-row { display: flex; justify-content: space-between; padding-block: 0.5rem; font-size: 0.92rem; }
.summary-row--total { border-top: 1px solid var(--line-strong); margin-top: 0.5rem; padding-top: 1rem; font-weight: 700; font-size: 1.05rem; }
.empty-cart { text-align: center; padding-block: 4rem; color: var(--muted); }
.empty-cart .btn { margin-top: 1.5rem; }

/* ==========================================================================
   Category tiles (home)
   ========================================================================== */

.category-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
.category-tile {
  display: flex; align-items: flex-end; padding: 1.25rem;
  aspect-ratio: 3 / 4; border-radius: var(--radius);
  background: var(--paper-raised); background-size: cover; background-position: center;
  position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease);
}
.category-tile:hover { transform: translateY(-3px); }
.category-tile__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--paper); position: relative; z-index: 1; }
.category-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(28,30,26,0.55));
  transition: background 0.35s var(--ease);
}
.category-tile:hover::after { background: linear-gradient(180deg, transparent 30%, rgba(28,30,26,0.68)); }

/* ==========================================================================
   Story / about
   ========================================================================== */

.story-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.story-figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.story-figure img { width: 100%; height: 100%; object-fit: cover; }

.value-list { display: grid; gap: 1.75rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 700px) { .value-list { grid-template-columns: repeat(3, 1fr); } }
.value-item__num { font-family: var(--font-mono); color: var(--forest); font-size: 0.85rem; }
.value-item h3 { margin-top: 0.75rem; font-size: 1.1rem; }
.value-item p { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   Quote / review
   ========================================================================== */

.quote-block { max-width: 42rem; margin-inline: auto; text-align: center; }
.quote-block blockquote { font-family: var(--font-display); font-size: clamp(1.3rem, 1.6vw + 1rem, 1.75rem); font-style: italic; line-height: 1.5; }
.quote-block cite { display: block; margin-top: 1.25rem; font-style: normal; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); }
.newsletter-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .newsletter-grid { grid-template-columns: 1.2fr 1fr; } }
.newsletter h2 { color: var(--paper); }
.newsletter .lead { color: rgba(247, 245, 240, 0.7); }
.newsletter-form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 12rem; padding: 0.8rem 1rem;
  border-radius: var(--radius); border: 1px solid rgba(247, 245, 240, 0.3);
  background: rgba(247, 245, 240, 0.08); color: var(--paper);
}
.newsletter-form input::placeholder { color: rgba(247, 245, 240, 0.5); }
.newsletter-note { font-size: 0.8rem; color: rgba(247, 245, 240, 0.55); margin-top: 0.75rem; }

/* ==========================================================================
   Contact / form
   ========================================================================== */

.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.form-grid { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row-split { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .form-row-split { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 0.75rem 0.9rem; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--forest); outline-offset: 1px; }
.form-note { font-size: 0.82rem; color: var(--muted); text-align: center; }

.contact-card { padding: 1.5rem; background: var(--paper-raised); border-radius: var(--radius); }
.contact-card + .contact-card { margin-top: 1.25rem; }
.contact-card__label { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.contact-card__value { margin-top: 0.6rem; font-size: 1rem; }
.contact-figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; margin-top: 1.25rem; }
.contact-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Page hero (non-home pages)
   ========================================================================== */

.page-hero { padding-block: 3rem 2.5rem; border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 1rem; max-width: 36rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
.footer-inner { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand p { color: var(--muted); margin-top: 0.75rem; max-width: 22rem; font-size: 0.92rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-heading { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.5rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--reveal-delay, 0s); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Utility */
.mono { font-family: var(--font-mono); }
.text-muted { color: var(--muted); }
