/* ============================================================
   Ideation Labs — shared site styles
   Mobile-first. Breakpoints: 640 (sm), 768 (md), 1100 (lg).
   ============================================================ */

:root {
  --paper: #ede4cd;
  --paper-deep: #e1d4b3;
  --sage: #2f4a3a;
  --sage-deep: #1f3327;
  --clay: #b8593a;
  --honey: #d6a04a;
  --plum: #6a4ea3;
  --ink: #2b2620;
  --mute: #6a5f4e;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Crimson Pro", Georgia, serif;
  --ui: "Bricolage Grotesque", system-ui, sans-serif;

  --r-soft: 24px;
  --r-soft-lg: 40px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 120px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); }
body {
  font-family: var(--ui);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout primitives ---------- */
.page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden; /* so the rounded section corners clip cleanly */
}

.section {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--tight { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(60px, 8vw, 100px); }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(20px, 3vw, 32px) var(--gutter);
  gap: 16px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--sage); text-decoration: none;
  flex-shrink: 0;
}
.nav__logo .word {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: -0.02em; line-height: 1;
}
.nav__logo .dot { color: var(--clay); }
.nav__links { display: none; gap: clamp(20px, 2.6vw, 36px); align-items: center; }
.nav__links a:not(.nav__cta) {
  font-family: var(--ui); font-size: 15px; color: var(--ink);
  font-weight: 500; text-decoration: none;
}
.nav__cta {
  padding: 10px 18px; background: var(--sage); color: var(--paper);
  border: none; border-radius: 999px;
  font-family: var(--ui); font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav__cta:hover { background: var(--sage-deep); }
.nav__cta--compact { padding: 9px 14px; font-size: 13px; }
.nav__menu {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: transparent; border: 1.5px solid rgba(43,38,32,0.2);
  border-radius: 999px; color: var(--ink);
  margin-left: 8px;
}
.nav__menu svg { width: 18px; height: 18px; }

/* Mobile menu drawer */
.drawer {
  display: none;
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 100;
  padding: clamp(20px, 5vw, 40px);
  flex-direction: column;
}
.drawer.open { display: flex; }
.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 24px;
}
.drawer__close {
  width: 42px; height: 42px; border-radius: 999px;
  background: transparent; border: 1.5px solid rgba(43,38,32,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.drawer__links {
  display: flex; flex-direction: column; gap: 4px; margin-top: 12px;
}
.drawer__links a {
  font-family: var(--display);
  font-size: clamp(40px, 9vw, 64px);
  color: var(--sage);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.025em;
  padding: 6px 0;
  line-height: 1.05;
}
.drawer__links a:nth-child(2) { color: var(--clay); }
.drawer__links a:nth-child(3) { color: var(--honey); }
.drawer__footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid rgba(43,38,32,0.12);
  font-family: var(--body); font-style: italic;
  color: var(--mute); font-size: 16px;
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(20px, 4vw, 40px) var(--gutter) clamp(60px, 10vw, 100px); }
.hero__kicker {
  font-family: var(--ui); font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--clay);
  margin-bottom: clamp(16px, 2.6vw, 28px);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.hero__h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(72px, 17vw, 240px);
  line-height: 0.88;
  margin: 0;
  letter-spacing: -0.045em;
  color: var(--sage);
}
.hero__h1 em {
  color: var(--clay); font-style: italic; font-weight: 600;
}
.hero__h1 .end-dot { color: var(--clay); }
.hero__scribble {
  margin-top: 12px;
  width: 100%;
  height: clamp(20px, 2.5vw, 36px);
  color: var(--clay);
}

/* Eyebrow / section tag */
.tag {
  font-family: var(--ui); font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--sage);
}
.tag--mute { color: var(--mute); }
.tag--honey { color: var(--honey); }

/* ---------- Section header (h2 + eyebrow) ---------- */
.sh {
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start;
  padding-bottom: clamp(28px, 4vw, 40px);
}
.sh__h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(48px, 8.5vw, 92px);
  line-height: 0.98;
  margin: 0; color: var(--sage);
  letter-spacing: -0.03em;
}
.sh__lede {
  font-family: var(--body); font-size: clamp(17px, 1.7vw, 22px);
  color: var(--mute); line-height: 1.45;
  font-style: italic; max-width: 460px;
  margin: 0;
}
@media (min-width: 768px) {
  .sh { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; }
  .sh__lede { text-align: right; }
}

/* ---------- Services ---------- */
.services {
  background: var(--paper-deep);
  border-top-left-radius: var(--r-soft-lg);
  border-top-right-radius: var(--r-soft-lg);
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .services__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.card {
  background: var(--paper);
  padding: clamp(24px, 3vw, 32px) clamp(22px, 2.6vw, 28px) clamp(28px, 3.4vw, 36px);
  border-radius: var(--r-soft);
}
.card__icon { margin-bottom: clamp(16px, 2.4vw, 24px); }
.card__h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0; color: var(--ink);
  letter-spacing: -0.02em;
}
.card__body {
  font-family: var(--body); font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5; margin: 12px 0 0;
  color: var(--mute);
  text-wrap: pretty;
}

/* ---------- Products ---------- */
.products {
  background: var(--paper-deep);
}
.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1100px) {
  .products__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .products__grid .product--featured { grid-column: span 2; }
}

.product {
  background: var(--paper);
  border-radius: var(--r-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product__art {
  min-height: 200px;
  aspect-ratio: 16/9;
  width: 100%;
  flex-shrink: 0;
}
.product__art svg { width: 100%; height: 100%; }
.product__body {
  padding: clamp(24px, 3vw, 32px);
  display: flex; flex-direction: column;
  flex: 1;
}
.product__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: clamp(12px, 1.8vw, 18px);
}
.product__name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1; letter-spacing: -0.02em;
  margin: 0 0 6px; color: var(--ink);
}
.product__kicker {
  font-family: var(--body); font-style: italic;
  font-size: clamp(17px, 1.6vw, 20px);
  margin-bottom: 14px;
}
.product__body p {
  font-family: var(--body);
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.5; margin: 0;
  color: var(--mute);
  text-wrap: pretty;
}
.product__actions {
  display: flex; gap: 10px; margin-top: clamp(18px, 2.4vw, 22px);
  flex-wrap: wrap;
}

@media (min-width: 1100px) {
  .product--featured { flex-direction: row; }
  .product--featured .product__art { aspect-ratio: auto; min-height: 380px; flex: 1 1 50%; }
  .product--featured .product__body { padding: clamp(36px, 3.6vw, 48px) clamp(32px, 3vw, 44px); }
  .product--featured .product__name { font-size: clamp(48px, 5vw, 72px); }
  .product--featured .product__kicker { font-size: clamp(20px, 1.8vw, 24px); }
  .product--featured .product__body p { font-size: clamp(18px, 1.6vw, 20px); }
}

/* ---------- Buttons ---------- */
.btn {
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--ui); font-size: 13px; font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  border: none;
}
.btn--solid { background: var(--sage); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(43,38,32,0.18); }
.btn--clay { background: var(--clay); color: #fff; }
.btn--sage { background: var(--sage); color: var(--paper); }
.btn--honey { background: var(--honey); color: var(--sage-deep); }
.btn--plum { background: var(--plum); color: #fff; }
.btn:hover { filter: brightness(0.94); }
.btn--ghost:hover { background: rgba(43,38,32,0.04); filter: none; }

/* ---------- About ---------- */
.about {
  background: var(--sage);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.about__rings { position: absolute; top: -100px; right: -100px; opacity: 0.18; pointer-events: none; }
.about__grid {
  display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 24px;
  align-items: start;
  position: relative;
}
.about__h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(48px, 8.5vw, 92px);
  line-height: 0.98;
  margin: 0; letter-spacing: -0.03em;
}
.about__h2 em { color: var(--honey); font-style: italic; font-weight: 700; }
.about__body {
  font-family: var(--body);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.5;
  margin: 0; color: #e9dfba;
  text-wrap: pretty;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.3fr 1fr; gap: 80px; }
}

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 60px);
  align-items: end;
}
.contact__h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(56px, 11vw, 124px);
  line-height: 1.02;
  margin: 0; color: var(--sage);
  letter-spacing: -0.04em;
  text-wrap: balance;
  padding-bottom: 0.08em;
}
.contact__h2 em { color: var(--clay); font-style: italic; font-weight: 700; }
.contact__card {
  background: var(--sage); color: var(--paper);
  padding: clamp(28px, 3.4vw, 36px);
  border-radius: var(--r-soft);
}
.contact__card p {
  font-family: var(--body); font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.4; margin: 16px 0 24px;
}
.contact__email {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--honey); font-weight: 600;
  letter-spacing: -0.01em; text-decoration: none;
  word-break: break-all;
}
.contact__email:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.footer {
  padding: clamp(28px, 4vw, 40px) var(--gutter) clamp(36px, 5vw, 56px);
  background: var(--sage-deep);
  color: #a8a08a;
  display: flex; flex-direction: column; gap: 18px;
  align-items: flex-start;
}
.footer__meta {
  font-family: var(--ui); font-size: 13px; letter-spacing: 0.04em;
  line-height: 1.5;
}
.footer__tag {
  font-family: var(--ui); font-size: 13px; color: var(--honey);
  opacity: 0.95; letter-spacing: 0.02em;
}
@media (min-width: 900px) {
  .footer { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
}

/* ============================================================
   Product page bits (shared across /products/*.html)
   ============================================================ */

.crumb {
  font-family: var(--ui); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--mute);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(43,38,32,0.15);
  background: var(--paper);
  white-space: nowrap;
}
.crumb:hover { background: var(--paper-deep); }

.phero {
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(48px, 6vw, 80px);
}
.phero__top {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
  flex-wrap: wrap;
}
.phero__status {
  font-family: var(--ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--mute);
  display: inline-flex; align-items: center; gap: 8px;
}
.phero__status::before {
  content: ''; width: 8px; height: 8px; border-radius: 999px;
  background: currentColor;
}
.phero__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 900px) {
  .phero__grid { grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
}
.phero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(64px, 12vw, 144px);
  line-height: 0.9; margin: 0;
  color: var(--ink); letter-spacing: -0.04em;
}
.phero__kicker {
  font-family: var(--body); font-style: italic;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.2;
  margin: clamp(16px, 2vw, 24px) 0 0;
  max-width: 30ch;
}
.phero__body {
  font-family: var(--body);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.5;
  color: var(--mute); margin: clamp(20px, 2.4vw, 28px) 0 0;
  text-wrap: pretty;
  max-width: 52ch;
}
.phero__actions {
  display: flex; gap: 12px; margin-top: clamp(24px, 3vw, 32px);
  flex-wrap: wrap;
}
.phero__art {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-soft-lg);
  overflow: hidden;
  background: var(--paper-deep);
  position: relative;
}
.phero__art svg { width: 100%; height: 100%; }

/* Highlight strip */
.high {
  padding: clamp(40px, 5vw, 64px) var(--gutter);
  background: var(--paper-deep);
  border-top-left-radius: var(--r-soft-lg);
  border-top-right-radius: var(--r-soft-lg);
}
.high__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.4vw, 24px);
}
@media (min-width: 700px) { .high__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .high__grid { grid-template-columns: repeat(3, 1fr); } }
.high__item {
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--paper);
  border-radius: var(--r-soft);
}
.high__num {
  font-family: var(--display); font-weight: 700;
  font-size: 14px; color: var(--clay);
  letter-spacing: 0.04em;
}
.high__h {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.02em;
  margin: 10px 0 8px; color: var(--ink);
}
.high__p {
  font-family: var(--body);
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.5; color: var(--mute);
  margin: 0; text-wrap: pretty;
}
