/* ==========================================================================
   The Artist Buddy — handmade goods marketplace
   Design tokens
   ========================================================================== */

:root {
  /* Color — airy studio palette: paper-white surfaces, soft warm ink,
     glaze green, kiln-fired ochre. Deliberately away from cream+terracotta
     defaults, and bright enough to never read as a dark theme. */
  --bg: #fbf8f1;
  --bg-alt: #f3ecda;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #2b2318;
  --ink-soft: #6b6150;
  --ink-faint: #9b9178;
  --line: #e8e0cb;
  --line-strong: #d7cbab;
  --accent: #46695f;       /* glaze green */
  --accent-ink: #ffffff;
  --accent-soft: #e5efea;
  --ochre: #bd8a30;        /* kiln ochre */
  --ochre-soft: #f7ecd4;
  --rust: #a2543a;         /* clay rust — used sparingly */
  --danger: #a2543a;
  --shadow-sm: 0 1px 2px rgba(43, 35, 24, 0.05), 0 2px 10px rgba(43, 35, 24, 0.04);
  --shadow-md: 0 4px 16px rgba(43, 35, 24, 0.07), 0 1px 3px rgba(43, 35, 24, 0.05);

  /* Category accents — each craft gets a distinct thread color */
  --cat-pottery: #a2543a;
  --cat-textile: #7a569c;
  --cat-wood: #86652f;
  --cat-jewelry: #bd8a30;
  --cat-paper: #46695f;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --page-max: 1180px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --space-1: 0.5rem;
  --space-2: 0.85rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1913;
    --bg-alt: #242019;
    --surface: #262219;
    --surface-raised: #2c2820;
    --ink: #f2ecdc;
    --ink-soft: #cabfa2;
    --ink-faint: #8f8468;
    --line: #453f2f;
    --line-strong: #58513c;
    --accent: #7ea395;
    --accent-ink: #14201c;
    --accent-soft: #2c3b34;
    --ochre: #d6a558;
    --ochre-soft: #3a2f1c;
    --rust: #c98a6b;
  }
}

:root[data-theme="dark"] {
  --bg: #1c1913;
  --bg-alt: #242019;
  --surface: #262219;
  --surface-raised: #2c2820;
  --ink: #f2ecdc;
  --ink-soft: #cabfa2;
  --ink-faint: #8f8468;
  --line: #453f2f;
  --line-strong: #58513c;
  --accent: #7ea395;
  --accent-ink: #14201c;
  --accent-soft: #2c3b34;
  --ochre: #d6a558;
  --ochre-soft: #3a2f1c;
  --rust: #c98a6b;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4, p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

/* ==========================================================================
   Type scale
   ========================================================================== */

.display-1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.display-3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.2;
}
.lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}
.body-text { color: var(--ink-soft); line-height: 1.65; }
.body-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.section { padding: var(--space-5) 0; }
.section--tight { padding: var(--space-4) 0; }
.hairline { border-top: 1px solid var(--line); }

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand__mark { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.main-nav__links {
  display: flex;
  gap: var(--space-3);
  font-size: 0.97rem;
}
.main-nav__links a {
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav__links a:hover,
.main-nav__links a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ochre);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-count[data-empty="true"] { display: none; }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 820px) {
  .main-nav__links { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav.is-open .main-nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--space-3) 1rem;
  }
  .main-nav.is-open .main-nav__links a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
  .main-nav { position: static; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn--secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--line-strong); }
.btn--full { width: 100%; }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.87rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ==========================================================================
   Hero (home) — pegboard collage, not a gradient banner
   ========================================================================== */

.hero {
  padding: var(--space-5) 0 var(--space-4);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.hero__copy .eyebrow-note {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.hero__copy h1 { margin-bottom: 1.1rem; }
.hero__copy .lede { margin-bottom: var(--space-3); }
.hero__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.pegboard {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.peg-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.peg-tile svg { width: 34px; height: 34px; }
.peg-tile span { font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }
.peg-tile:nth-child(1) { transform: rotate(-2deg); margin-top: 1.4rem; }
.peg-tile:nth-child(2) { transform: rotate(1.5deg); }
.peg-tile:nth-child(3) { transform: rotate(-1deg); margin-top: 0.6rem; }
.peg-tile:nth-child(4) { transform: rotate(2deg); }
.peg-tile:nth-child(5) { transform: rotate(-1.5deg); margin-top: 1.8rem; }
.peg-tile:nth-child(6) { transform: rotate(1deg); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .pegboard { max-width: 420px; }
}

/* ==========================================================================
   Category strip
   ========================================================================== */

.cat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cat-strip__item {
  background: var(--surface);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: background 0.15s ease;
}
.cat-strip__item:hover { background: var(--surface-raised); }
.cat-strip__item svg { width: 30px; height: 30px; margin: 0 auto 0.6rem; }
.cat-strip__item span { font-size: 0.88rem; font-weight: 600; }

@media (max-width: 760px) {
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Section headers
   ========================================================================== */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.section-head p { color: var(--ink-soft); margin-top: 0.35rem; }
.section-head .link-more { font-weight: 600; color: var(--accent); white-space: nowrap; }
.section-head .link-more:hover { text-decoration: underline; }

/* ==========================================================================
   Product grid & cards
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-3);
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card__media {
  aspect-ratio: 4 / 3.2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-card__media svg { width: 46%; height: 46%; }
.product-card__body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.product-card__cat {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-faint);
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
}
.product-card__name a:hover { text-decoration: underline; }
.product-card__maker { font-size: 0.83rem; color: var(--ink-soft); }
.product-card__foot {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.product-card__price { font-weight: 700; font-size: 1.02rem; }
.product-card__add {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}
.product-card__add svg { width: 16px; height: 16px; }
.product-card__add:hover { background: var(--ink); color: var(--bg); }

/* ==========================================================================
   Filters (shop page)
   ========================================================================== */

.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-4);
  align-items: start;
}
.filters { position: sticky; top: 90px; }
.filters h2 { font-size: 0.95rem; margin-bottom: 0.8rem; }
.filter-group { margin-bottom: var(--space-3); }
.filter-group__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.filter-option input { accent-color: var(--accent); }
.filter-option:hover { color: var(--ink); }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.shop-toolbar select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  background: var(--surface);
  color: var(--ink);
}
.result-count { color: var(--ink-soft); font-size: 0.92rem; }

@media (max-width: 780px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1rem; }
}

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

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.pd-media {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-media svg { width: 42%; height: 42%; }
.pd-info .product-card__cat { margin-bottom: 0.4rem; }
.pd-info h1 { margin-bottom: 0.3rem; }
.pd-maker { color: var(--ink-soft); margin-bottom: 1rem; }
.pd-maker a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.pd-price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; margin-bottom: 1.1rem; }
.pd-desc { margin-bottom: var(--space-3); }
.pd-meta-list { margin-bottom: var(--space-3); }
.pd-meta-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.pd-meta-list li span:first-child { color: var(--ink-faint); }
.pd-buy-row { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.9rem; }
.stock-note { font-size: 0.85rem; color: var(--accent); }

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qty-control button {
  width: 36px;
  height: 42px;
  background: var(--surface);
  border: none;
  font-size: 1.1rem;
  color: var(--ink);
}
.qty-control button:hover { background: var(--surface-raised); }
.qty-control input {
  width: 42px;
  height: 42px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--ink);
}

@media (max-width: 780px) {
  .pd-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   How it works — legitimate numbered sequence
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.step__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ==========================================================================
   Cart page
   ========================================================================== */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-4);
  align-items: start;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-weight: 700;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.cart-table td {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.cart-item__media {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item__media svg { width: 60%; height: 60%; }
.cart-item__name { font-weight: 600; font-size: 0.95rem; }
.cart-item__cat { font-size: 0.8rem; color: var(--ink-faint); }
.cart-remove {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 0.83rem;
  text-decoration: underline;
  padding: 0;
  margin-top: 0.3rem;
}
.cart-remove:hover { color: var(--danger); }
.cart-line-total { font-weight: 700; }

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.summary-card h2 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.summary-row--total {
  border-top: 1px solid var(--line);
  margin-top: 0.4rem;
  padding-top: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
}
.promo-row { display: flex; gap: 0.5rem; margin: 0.9rem 0; }
.promo-row input {
  flex: 1;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
}

.empty-state {
  text-align: center;
  padding: var(--space-6) var(--space-3);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}
.empty-state svg { width: 54px; height: 54px; margin: 0 auto 1rem; color: var(--ink-faint); }
.empty-state h2 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--ink-soft); margin-bottom: 1.3rem; }

@media (max-width: 780px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table td { display: block; border-bottom: none; padding: 0.4rem 0; }
  .cart-table tr { display: block; border-bottom: 1px solid var(--line); padding: 1rem 0; }
}

/* ==========================================================================
   Checkout
   ========================================================================== */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-5);
  align-items: start;
}
.form-section { margin-bottom: var(--space-4); }
.form-section h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.pay-options { display: flex; gap: 0.7rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pay-option {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.pay-option input { accent-color: var(--accent); }
.pay-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.88rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.order-line__name { color: var(--ink-soft); }

@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Generic content blocks (about, contact, misc)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

.stat-row { display: flex; gap: var(--space-4); margin-top: var(--space-3); flex-wrap: wrap; }
.stat-row .num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; display: block; }
.stat-row .label { font-size: 0.85rem; color: var(--ink-soft); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-5);
}
@media (max-width: 780px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-detail { display: flex; gap: 0.8rem; margin-bottom: 1.2rem; }
.contact-detail svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-detail h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-detail p { color: var(--ink-soft); font-size: 0.9rem; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast svg { width: 16px; height: 16px; color: var(--accent-soft); }

/* Newsletter */
.newsletter {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.newsletter h2 { color: var(--bg); margin-bottom: 0.3rem; }
.newsletter p { color: var(--ink-faint); }
.newsletter form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.newsletter input {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  min-width: 230px;
  background: var(--bg);
  color: var(--ink);
}

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

.site-footer { border-top: 1px solid var(--line); padding: var(--space-4) 0 var(--space-3); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-grid h4 { font-size: 0.85rem; margin-bottom: 0.8rem; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--ink-soft); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand p { color: var(--ink-soft); margin-top: 0.7rem; max-width: 32ch; font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

/* ==========================================================================
   Breadcrumb + misc
   ========================================================================== */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: var(--space-3);
}
.breadcrumb a:hover { text-decoration: underline; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--ochre-soft);
  color: var(--ink);
}
