/* Double G HQ — shared stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --stone-50: #faf7f0;
  --stone-100: #f3eee3;
  --stone-200: #d8d2c4;
  --stone-300: #c7bfa9;
  --stone-500: #5b6b62;
  --stone-600: #46564d;
  --stone-700: #33453f;
  --stone-900: #1a2b2a;

  --moss: #2f4a3e;
  --moss-light: #4a6b5a;
  --clay: #c1623d;
  --clay-light: #e8d9c8;
  --clay-dark: #a8512f;

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wide-width: 980px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--stone-900);
  background: var(--stone-50);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 130px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Layout shells ---------- */

.wrap {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  display: block;
}

/* ---------- Header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--stone-200);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.wordmark {
  font-family: var(--sans);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--moss);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 28px;
}

.wordmark img {
  height: 64px;
  width: auto;
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  padding: 9px 16px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--stone-900);
  transition: border-color 0.15s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--stone-900);
}

.nav-toggle svg {
  transition: transform 0.15s ease;
}

.nav-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.main-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(26, 43, 42, 0.12);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}

.main-nav.is-open {
  display: flex;
}

.main-nav a {
  font-size: 0.9rem;
  color: var(--stone-600);
  padding: 10px 12px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--stone-100);
  color: var(--stone-900);
}

.main-nav a.is-active {
  color: var(--stone-900);
  font-weight: 600;
}

@media (max-width: 480px) {
  .wordmark {
    gap: 14px;
    font-size: 1.25rem;
  }

  .wordmark img {
    height: 40px;
  }

  .nav-toggle__label {
    display: none;
  }

  .nav-toggle {
    padding: 9px 12px;
  }
}


/* ---------- Ledger rule — signature divider ---------- */

.ledger-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 64px 0 40px;
  color: var(--moss-light);
}

.ledger-rule::before,
.ledger-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--stone-200);
}

.ledger-rule__label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ledger-rule--plain {
  margin: 48px 0;
}

.ledger-rule--plain::after {
  display: none;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--stone-900);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--stone-700);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
  display: block;
}

.lede {
  font-size: 1.125rem;
  color: var(--stone-600);
  max-width: 680px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn--primary {
  background: var(--moss);
  color: var(--stone-50);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--moss-light);
}

.btn--secondary {
  background: transparent;
  border-color: var(--stone-300);
  color: var(--stone-900);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  border-color: var(--stone-900);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: wait;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--stone-200);
  padding: 32px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 100;
}

.site-footer__inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--stone-500);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__brand img {
  height: 20px;
  width: auto;
}

.site-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__links a:hover {
  color: var(--stone-900);
}

@media (max-width: 640px) {
  .site-footer {
    position: static;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  body {
    padding-bottom: 0;
  }
}

/* ---------- Focus visibility ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Legal page placeholder ---------- */

.legal-placeholder {
  padding-top: 48px;
  padding-bottom: 96px;
}

/* ---------- Store page ---------- */

.store-hero {
  padding-top: 56px;
}

.store-hero__eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.store-hero__eyebrow-row .eyebrow {
  margin-bottom: 0;
}

.sandbox-badge {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--clay-light);
  color: var(--clay);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.store-hero__tag {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-hero__tag::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--clay);
  display: inline-block;
}

.store-hero .lede {
  max-width: 640px;
  margin: 16px 0 0;
}

.field-notes {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin: 40px 0 0;
}

.field-notes > div {
  max-width: 260px;
}

.field-notes .figure {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--moss);
  display: block;
}

.field-notes .label {
  font-size: 0.8rem;
  color: var(--stone-600);
  display: block;
  margin-top: 2px;
}

.product-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 48px 0;
}

.product-card {
  border: 1px solid var(--stone-200);
  border-radius: 6px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: #fff;
}

.product-card--featured {
  border-color: var(--moss);
  border-width: 1.5px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f4 100%);
}

.product-card--featured .btn--primary {
  background: var(--clay);
}

.product-card--featured .btn--primary:hover,
.product-card--featured .btn--primary:focus-visible {
  background: var(--clay-dark);
}

.product-card__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
}

.product-card h3 {
  margin-bottom: 12px;
}

.product-card p {
  font-size: 0.9rem;
  max-width: 56ch;
}

.product-card ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--stone-700);
}

.product-card ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.product-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--moss-light);
}

.product-card__requires {
  font-size: 0.8rem;
  color: var(--stone-500);
  margin-top: 14px;
}

.product-card__price-block {
  text-align: right;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.product-card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.product-card__price .amount {
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 600;
}

.product-card__price .terms {
  font-size: 0.8rem;
  color: var(--stone-500);
}

.product-card .btn {
  white-space: nowrap;
}

@media (max-width: 680px) {
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card__price-block {
    text-align: left;
    align-items: flex-start;
    margin-top: 8px;
  }

  .product-card__price {
    align-items: flex-start;
  }

  .field-notes {
    gap: 28px;
  }
}
