/* =========================================================
   BSpoke — Shared design tokens
   ========================================================= */

:root {
  /* Brand palette */
  --navy:        #1B2F5E;
  --navy-light:  #2A4A8A;
  --navy-dark:   #111E3C;
  --gold:        #B8963E;
  --gold-light:  #D4AD5A;
  --gold-soft:   #E8D9B3;
  --teal:        #7DBDBA;
  --teal-dark:   #4A8A88;
  --cream:       #F5F0EB;
  --cream-warm:  #EDE5DA;
  --cream-deep:  #E5DACB;
  --terracotta:  #C85A2A;
  --terracotta-soft: #D88B5C;

  /* Text */
  --ink:         #14181F;
  --ink-2:       #3A3F47;
  --ink-3:       #6B7079;
  --ink-4:       #9AA0A8;
  --inverse:     #F5F0EB;

  /* Surfaces */
  --paper:       #FBF8F4;
  --paper-2:     #F5F0EB;
  --paper-3:     #EDE5DA;
  --card:        #FFFFFF;
  --line:        #E2D9CC;
  --line-strong: #C9BCA7;

  /* Type */
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:  'Newsreader', 'Cormorant Garamond', Georgia, serif;
  --font-mono:   'JetBrains Mono', 'Roboto Mono', ui-monospace, monospace;

  --tracking-tight:  -0.025em;
  --tracking-snug:   -0.012em;
  --tracking-label:   0.14em;
  --tracking-wide:    0.04em;
}

/* =========================================================
   Resets within artboards
   ========================================================= */

.bspoke-site,
.bspoke-site * {
  box-sizing: border-box;
}

.bspoke-site {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

.bspoke-site p { margin: 0; }
.bspoke-site h1, .bspoke-site h2, .bspoke-site h3, .bspoke-site h4 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: var(--tracking-tight); }
.bspoke-site a { color: inherit; text-decoration: none; }
.bspoke-site button { font: inherit; cursor: pointer; }
.bspoke-site img { display: block; max-width: 100%; }

/* Common utilities */
.bspoke-site .wrap   { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 64px; }
.bspoke-site .wrap-narrow { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 64px; }
.bspoke-site .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.bspoke-site .rule-gold {
  display: block;
  width: 56px;
  height: 1.5px;
  background: var(--gold);
  border: 0;
}
.bspoke-site .rule-gold.thin { height: 1px; }
.bspoke-site .rule-gold.wide { width: 96px; }

/* Buttons */
.bspoke-site .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.bspoke-site .btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.bspoke-site .btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(184, 150, 62, 0.25);
}
.bspoke-site .btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.bspoke-site .btn-outline:hover {
  background: var(--navy);
  color: var(--inverse);
}
.bspoke-site .btn-ghost-light {
  background: transparent;
  color: var(--inverse);
  border-color: rgba(245, 240, 235, 0.4);
}
.bspoke-site .btn-ghost-light:hover {
  background: var(--inverse);
  color: var(--navy-dark);
  border-color: var(--inverse);
}

/* Arrow link */
.bspoke-site .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--navy);
  position: relative;
}
.bspoke-site .arrow-link::after {
  content: "→";
  color: var(--gold);
  transition: transform 200ms ease;
}
.bspoke-site .arrow-link:hover::after {
  transform: translateX(4px);
}

/* Placeholder image — striped, with mono caption */
.bspoke-site .ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(27, 47, 94, 0.08) 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(180deg, #E8DECE 0%, #D9CBB4 100%);
  color: var(--ink-3);
  overflow: hidden;
}
.bspoke-site .ph::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(27, 47, 94, 0.55);
  text-align: center;
  padding: 24px;
}

.bspoke-site .ph.dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(180deg, #1F3568 0%, #0E1A36 100%);
}
.bspoke-site .ph.dark::before {
  color: rgba(245, 240, 235, 0.5);
}

/* Sections */
.bspoke-site section {
  position: relative;
  padding: 120px 0;
}
.bspoke-site .section-cream { background: var(--cream); }
.bspoke-site .section-paper { background: var(--paper); }
.bspoke-site .section-white { background: #FFFFFF; }
.bspoke-site .section-navy  { background: var(--navy-dark); color: var(--inverse); }

/* Section heading composition */
.bspoke-site .section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 64px;
}
.bspoke-site .section-head h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
  max-width: 760px;
}
.bspoke-site .section-head .deck {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
}

/* Side numbers */
.bspoke-site .numlabel {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
  align-items: center;
}
.bspoke-site .numlabel .dot { color: var(--gold); }

/* Pull quote */
.bspoke-site .pullquote {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 24px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: var(--tracking-snug);
}

/* ICP callouts */
.bspoke-site .icp {
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 22px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}
.bspoke-site .icp .icp-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 6px;
}

/* =========================================================
   DIRECTION OVERRIDES
   ========================================================= */

/* Direction 1 — EDITORIAL
   Cream-dominant, type-led, restrained, big whitespace */
.dir-editorial {
  --paper:        #FBF8F4;
  --paper-2:      #F5F0EB;
  --line:         #E2D9CC;
}
.dir-editorial section { padding: 140px 0; }
.dir-editorial h1, .dir-editorial h2 {
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* Direction 2 — ATMOSPHERIC
   Photo-led, warm, dramatic, serif headlines */
.dir-atmospheric {
  --paper:        #F2EBE0;
  --paper-2:      #EBE2D2;
  --line:         #D7C9B3;
  --line-strong:  #BFAE8E;
  --cream:        #EBE2D2;
}
.dir-atmospheric h1,
.dir-atmospheric h2,
.dir-atmospheric .section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.04;
}
.dir-atmospheric h3 { letter-spacing: -0.012em; }
.dir-atmospheric .pullquote { font-family: var(--font-serif); font-weight: 400; font-style: italic; font-size: 26px; }
.dir-atmospheric .btn-gold { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.dir-atmospheric .btn-gold:hover { background: var(--terracotta-soft); }
.dir-atmospheric .rule-gold { background: var(--terracotta); }
.dir-atmospheric .numlabel .dot { color: var(--terracotta); }
.dir-atmospheric .arrow-link::after { color: var(--terracotta); }
.dir-atmospheric .arrow-link { color: #5C2E1A; }

/* Direction 3 — OPERATOR
   Structured, architectural, navy-balanced, mono labels prominent */
.dir-operator {
  --paper:        #F7F4EE;
  --paper-2:      #EFE9DD;
  --line:         #D5C7B0;
}
.dir-operator section { padding: 110px 0; }
.dir-operator h1, .dir-operator h2 {
  font-weight: 700;
  letter-spacing: -0.028em;
}
.dir-operator .section-head h2 { font-weight: 700; }
.dir-operator .numlabel { color: var(--navy); font-weight: 600; }
.dir-operator .numlabel .dot { color: var(--gold); }
.dir-operator .rule-gold { background: var(--navy); }
.dir-operator .pullquote { border-left-color: var(--navy); border-left-width: 3px; }

/* =========================================================
   CANVAS HOST
   ========================================================= */
html, body {
  margin: 0;
  background: var(--paper-2);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}
body { overflow-x: hidden; }

/* Anchor-target offset for sticky nav. Sections set scroll-margin-top so that
   clicking a nav link lands the section heading below the navbar, not under it. */
.sp-section {
  scroll-margin-top: 110px; /* matches nav height (76 + 32 meta strip) + a touch of breathing room */
}

/* Each artboard wraps its own .bspoke-site */
.artboard-content {
  background: var(--paper-2);
}
