/* Method — Design System */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@300;400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Palette */
  --method-green: #2A4F3E;
  --method-green-deep: #1F3D2F;
  --bone: #F4EFE6;
  --bone-warm: #ECE5D6;
  --graphite: #1F1F1F;
  --graphite-soft: #3A3A38;
  --vital-blue: #6B8CAE;
  --rule: rgba(31, 31, 31, 0.12);
  --rule-soft: rgba(31, 31, 31, 0.06);
  --muted: rgba(31, 31, 31, 0.55);

  /* Type */
  --serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Density */
  --section-y: 140px;
  --container: 1320px;
  --gutter: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bone);
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- Type scale ---- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow--muted { color: var(--muted); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.05; }
h1 { font-size: clamp(48px, 7vw, 104px); }
h2 { font-size: clamp(36px, 4.4vw, 64px); }
h3 { font-size: clamp(24px, 2.4vw, 36px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); }

p { font-size: 15px; line-height: 1.6; max-width: 60ch; }
.lead { font-size: 19px; line-height: 1.55; max-width: 56ch; font-weight: 300; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: 1640px; }
.container--narrow { max-width: 760px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 var(--gutter);
  max-width: 1640px;
  margin: 0 auto;
}
.site-nav { display: flex; gap: 32px; font-size: 13px; font-weight: 500; }
.site-nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-nav a:hover, .site-nav a.is-active { border-bottom-color: var(--graphite); }
.site-logo {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.01em;
  font-style: italic;
  text-align: center;
}
.site-utils { display: flex; justify-content: flex-end; gap: 24px; font-size: 13px; font-weight: 500; }
.site-utils button:hover { opacity: 0.6; }
.cart-count {
  display: inline-block;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--muted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--graphite);
  color: var(--bone);
  border: 1px solid var(--graphite);
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--method-green); border-color: var(--method-green); }
.btn--ghost { background: transparent; color: var(--graphite); }
.btn--ghost:hover { background: var(--graphite); color: var(--bone); }
.btn--full { width: 100%; }
.btn--lg { padding: 20px 36px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--graphite);
  padding-bottom: 4px;
  transition: gap .2s ease;
}
.link-arrow:hover { gap: 16px; }
.link-arrow .arrow { font-family: var(--serif); font-style: italic; font-size: 14px; }

/* ---- Sections ---- */
section { padding: var(--section-y) 0; }
.section-rule { height: 1px; background: var(--rule); width: 100%; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 64px;
}
.section-head__title { font-size: clamp(36px, 4vw, 56px); }
.section-head__lede { padding-top: 12px; }

@media (max-width: 800px) {
  :root { --section-y: 80px; --gutter: 20px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .site-nav { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto 1fr; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--graphite);
  color: var(--bone);
  padding: 100px 0 40px;
}
.site-footer .container { color: var(--bone); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
.footer-grid h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
  margin-bottom: 20px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 13px; }
.footer-grid li a { color: rgba(244, 239, 230, 0.85); }
.footer-grid li a:hover { color: var(--bone); }
.footer-mark { font-family: var(--serif); font-size: 36px; font-style: italic; margin-bottom: 20px; }
.footer-mark + p { font-size: 13px; color: rgba(244, 239, 230, 0.65); max-width: 30ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(244, 239, 230, 0.15);
  padding-top: 28px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(244, 239, 230, 0.55);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ---- Tweaks Panel ---- */
.tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 320px;
  background: var(--bone);
  border: 1px solid var(--graphite);
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  display: none;
}
.tweaks-panel.is-open { display: block; }
.tweaks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}
.tweaks-head h6 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tweaks-body { padding: 20px; max-height: 60vh; overflow-y: auto; }
.tweak-group { margin-bottom: 24px; }
.tweak-group:last-child { margin-bottom: 0; }
.tweak-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.tweak-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tweak-swatch {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--rule); cursor: pointer;
  position: relative;
}
.tweak-swatch.is-active::after {
  content: ''; position: absolute; inset: -4px;
  border: 1px solid var(--graphite); border-radius: 50%;
}
.tweak-pill {
  padding: 8px 14px; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; border: 1px solid var(--rule); cursor: pointer;
  background: transparent;
}
.tweak-pill.is-active { background: var(--graphite); color: var(--bone); border-color: var(--graphite); }
