/* =========================================================
   VANTA SHADE CO — Design System
   ========================================================= */

:root {
  /* Core palette (warm residential, navy + linen + bronze) */
  --ink:        #1A2535;   /* navy / primary ink */
  --ink-2:     #0F1822;    /* deeper navy */
  --paper:     #F4F1EC;    /* warm white / linen */
  --paper-2:   #ECE7DE;    /* shaded linen */
  --bone:      #E4DCCB;    /* fabric */
  --mushroom:  #B8AFA1;    /* warm gray */
  --char:      #2B3340;    /* soft charcoal */
  --slate:     #6B7280;    /* secondary text */
  --bronze:    #B68A4E;    /* restrained metallic accent */
  --bronze-2:  #C9A961;    /* lighter bronze */

  /* Type */
  --display: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --body:    "Manrope", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Type scale */
  --t-eyebrow: 11px;
  --t-body: 16px;
  --t-lead: 19px;
  --t-h3: clamp(22px, 2vw, 28px);
  --t-h2: clamp(32px, 3.6vw, 56px);
  --t-h1: clamp(44px, 6.4vw, 96px);
  --t-mega: clamp(64px, 9vw, 140px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  font-weight: 350;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--char);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
hr { border: 0; border-top: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); margin: 0; }

/* Type */
.display, h1, h2, h3 { font-family: var(--display); font-weight: 400; color: inherit; letter-spacing: -0.01em; }
h1 { font-size: var(--t-h1); line-height: 1.02; margin: 0; }
h2 { font-size: var(--t-h2); line-height: 1.06; margin: 0; }
h3 { font-size: var(--t-h3); line-height: 1.2; margin: 0; }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--char); max-width: 58ch; }
.eyebrow {
  font-family: var(--body);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}
.italic-serif { font-family: var(--display); font-style: italic; font-weight: 400; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--tight { padding: clamp(48px, 7vw, 96px) 0; }
.grid { display: grid; gap: clamp(24px, 4vw, 64px); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
}
.nav--dark {
  background: color-mix(in oklab, var(--ink) 92%, transparent);
  border-bottom-color: color-mix(in oklab, var(--paper) 8%, transparent);
  color: var(--paper);
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__brand svg { height: 36px; width: auto; }
.nav__links { display: flex; gap: 34px; align-items: center; }
.nav__links a {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  color: inherit; opacity: 0.78;
  position: relative; padding: 6px 0;
  transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }
.nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--bronze);
}
.nav__cta {
  padding: 11px 20px;
  border: 1px solid currentColor;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  transition: background .25s, color .25s;
}
.nav--dark .nav__cta:hover { background: var(--paper); color: var(--ink); }
.nav:not(.nav--dark) .nav__cta:hover { background: var(--ink); color: var(--paper); }

.nav__hamburger { display: none; }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__hamburger { display: inline-flex; }
}
@media (max-width: 540px) {
  .nav__cta { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-2); }
.btn--ghost { border-color: currentColor; }
.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn__arrow { width: 14px; height: 1px; background: currentColor; position: relative; transition: width .25s; }
.btn__arrow::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.btn:hover .btn__arrow { width: 22px; }

/* Image placeholders (architectural, restrained) */
.ph {
  position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--bone) 75%, var(--ink) 4%), color-mix(in oklab, var(--paper-2) 88%, var(--ink) 0%));
  color: color-mix(in oklab, var(--ink) 55%, transparent);
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg,
      color-mix(in oklab, var(--ink) 6%, transparent) 0 1px,
      transparent 1px 14px);
  opacity: .8;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 20% 30%, color-mix(in oklab, var(--paper) 70%, transparent), transparent 60%);
  pointer-events: none;
}
.ph__label {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em;
  color: color-mix(in oklab, var(--ink) 70%, transparent);
  background: color-mix(in oklab, var(--paper) 70%, transparent);
  padding: 5px 9px; border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  z-index: 2;
}
.ph--dark {
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--ink) 95%, var(--bronze) 6%), color-mix(in oklab, var(--ink-2) 88%, transparent));
  color: color-mix(in oklab, var(--paper) 65%, transparent);
}
.ph--dark::before {
  background-image:
    repeating-linear-gradient(0deg,
      color-mix(in oklab, var(--paper) 7%, transparent) 0 1px,
      transparent 1px 14px);
}
.ph--dark::after {
  background: radial-gradient(120% 80% at 80% 20%, color-mix(in oklab, var(--bronze) 14%, transparent), transparent 60%);
}
.ph--dark .ph__label {
  color: color-mix(in oklab, var(--paper) 70%, transparent);
  background: color-mix(in oklab, var(--ink) 60%, transparent);
  border-color: color-mix(in oklab, var(--paper) 14%, transparent);
}

/* Footer */
.footer {
  background: var(--ink);
  color: color-mix(in oklab, var(--paper) 80%, transparent);
  padding: 96px var(--gutter) 36px;
}
.footer__inner { max-width: var(--maxw); margin: 0 auto; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 64px; border-bottom: 1px solid color-mix(in oklab, var(--paper) 12%, transparent);
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper); margin: 0 0 18px;
}
.footer a, .footer p { color: inherit; font-size: 14px; line-height: 1.8; }
.footer a:hover { color: var(--bronze-2); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 28px; font-size: 12px; letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
}
.footer__bottom svg { height: 32px; opacity: .85; }

/* Common section helpers */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head__copy { max-width: 56ch; }
.section-head__copy .eyebrow { margin-bottom: 14px; display: block; }
.section-head__aside { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--slate); text-transform: uppercase; }
@media (max-width: 720px) { .section-head { flex-direction: column; align-items: start; } }

/* Pull quote */
.pullquote {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.3;
  color: var(--ink);
  max-width: 22ch;
}
.pullquote__source { display: block; margin-top: 18px; font-family: var(--body); font-style: normal; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); }

/* Forms */
.form { display: grid; gap: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--ink);
}
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
  color: var(--ink);
  border-radius: 0;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field--inline { grid-template-columns: 1fr; }
.field__note { font-size: 12px; color: var(--slate); }

.radio-group, .check-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-group label, .check-group label {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 10px 16px; border: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
  font-size: 13px; letter-spacing: 0; text-transform: none; cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s;
}
.radio-group input, .check-group input { position: absolute; opacity: 0; pointer-events: none; }
.radio-group label:has(input:checked), .check-group label:has(input:checked) {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

/* Hide visually but keep for forms (honeypot etc.) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Editorial small caps badge */
.tag { display: inline-block; padding: 5px 10px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); border: 1px solid color-mix(in oklab, var(--bronze) 40%, transparent); }

/* Subtle reveal */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .24s; }
