/* =========================================================
   williambransford.com — shared stylesheet
   Palette: warm off-white + ember amber (personal-brand tone)
   Shared DNA with spacestudios.us: hairline grids, Inter + JB Mono
   Distinct layer: Fraunces display serif, warm light theme, amber
   ========================================================= */

:root {
  /* Base — warm paper, not pure white */
  --bg:       #f7f3ec;
  --bg-2:     #efe9df;
  --bg-3:     #e6dfd2;
  --ink:      #1a1613;
  --ink-soft: #3d332a;
  --muted:    #6b5e52;
  --dim:      #9c8e80;
  --border:   rgba(26, 22, 19, 0.09);
  --border-2: rgba(26, 22, 19, 0.16);

  /* Accent — ember amber */
  --accent:       #b8451a;  /* deep ember */
  --accent-soft:  #d65a2a;  /* hover */
  --accent-dim:   #8a3514;  /* pressed / footer */
  --accent-wash:  rgba(184, 69, 26, 0.07);

  /* Typography */
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', 'Inter', serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper grain on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(26, 22, 19, 0.025) 1px, transparent 0);
  background-size: 4px 4px;
  opacity: 0.6;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 20, "SOFT" 30;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.btn-primary {
  background: var(--accent);
  color: #fff9f1;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -12px rgba(184, 69, 26, 0.45);
}
.btn-ghost {
  border-color: var(--border-2);
  background: var(--bg-2);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: rgba(26, 22, 19, 0.32);
  background: var(--bg-3);
}
.btn-lg { padding: 12px 18px; font-size: 15px; }
.arrow { width: 14px; height: 14px; }

@media (max-width: 780px) {
  .nav-links { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 104px 0 88px;
  text-align: left;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 520px;
  background: radial-gradient(ellipse at center, rgba(184, 69, 26, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(26, 22, 19, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 22, 19, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 85%);
}
.hero > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(184, 69, 26, 0.3);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-dim);
  background: var(--accent-wash);
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(184, 69, 26, 0.55);
}

h1.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  max-width: 960px;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.hero-title .display {
  font-style: italic;
  font-weight: 400;
}
.hero-title .muted-line {
  color: var(--ink-soft);
  font-weight: 500;
  font-style: normal;
}
.hero-sub {
  margin: 32px 0 40px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
}
.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- SECTIONS ---------- */
section.block {
  padding: 104px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-kicker {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h2.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0 0 18px;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  color: var(--ink);
}
.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  line-height: 1.6;
}

/* ---------- OFFER GRID (homepage) ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.offer-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}
.offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(184, 69, 26, 0.08), transparent 55%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.offer-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 69, 26, 0.38);
  box-shadow: 0 24px 50px -28px rgba(26, 22, 19, 0.3);
}
.offer-card:hover::before { opacity: 1; }
.offer-card > * { position: relative; z-index: 1; }

.offer-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}
.offer-headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--ink);
  font-variation-settings: "opsz" 60, "SOFT" 30;
}
.offer-copy {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}
.offer-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.offer-list li {
  padding: 11px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.offer-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.85;
}
.offer-footer {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}
.offer-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.offer-price-num {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 60;
}
.offer-price-unit {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.offer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap .15s ease;
}
.offer-card:hover .offer-cta { gap: 10px; }

@media (max-width: 820px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer-card { min-height: auto; }
}

/* ---------- FOUNDER / ABOUT ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 56px;
  align-items: start;
}
.founder-photo {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  border: 1px solid var(--border-2);
  box-shadow: 0 24px 60px -30px rgba(26, 22, 19, 0.35);
}
.founder p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 560px;
}
.inline-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(184, 69, 26, 0.3);
  transition: border-color .15s ease, color .15s ease;
}
.inline-link:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }
.founder p:last-of-type { margin-bottom: 28px; }
.social-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .founder-photo { max-width: 280px; }
}

/* ---------- OFFER PAGES (structured long-form) ---------- */
.page-hero {
  padding: 80px 0 48px;
  position: relative;
}
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 800px;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
.page-hero h1 em {
  font-weight: 400;
  font-style: italic;
}
.page-hero .lede {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
}

.page-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.page-section h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
  font-variation-settings: "opsz" 60;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.spec-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px;
  line-height: 1.6;
}
.spec-list .spec-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 2px;
}
.spec-list .spec-body { color: var(--ink-soft); }
@media (max-width: 680px) {
  .spec-list li { grid-template-columns: 1fr; gap: 4px; }
}

.not-included {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 26px 30px;
  margin-top: 8px;
}
.not-included h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 500;
}
.not-included ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}
.not-included li { margin: 0; }

.scarcity-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--accent-wash);
  border: 1px solid rgba(184, 69, 26, 0.28);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-dim);
  margin-bottom: 28px;
}
.scarcity-bar .count {
  font-weight: 500;
  color: var(--accent);
  padding: 2px 8px;
  background: rgba(184, 69, 26, 0.14);
  border-radius: 5px;
}

.pricing-block {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 28px 0 12px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.pricing-block .num {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
.pricing-block .unit {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 8px;
}
.pricing-block .meta {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--muted);
  text-align: right;
  padding-bottom: 6px;
}

.cta-panel {
  margin-top: 40px;
  padding: 28px 30px;
  background: var(--ink);
  color: #f7f3ec;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-panel .cta-head {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "opsz" 60;
}
.cta-panel .cta-meta {
  font-size: 13.5px;
  color: #b5a89c;
  margin-top: 4px;
}
.cta-panel .btn-primary {
  background: var(--accent);
  color: #fff9f1;
  border-color: var(--accent);
}
.cta-panel .btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  text-align: center;
  padding: 128px 24px;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse at center top, rgba(184, 69, 26, 0.08), transparent 62%);
  position: relative;
}
.final-cta h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0 auto 20px;
  max-width: 720px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.final-cta p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 16.5px;
}
.final-cta .hero-ctas { justify-content: center; }
.final-cta .fine {
  margin-top: 28px;
  font-size: 12px;
  color: var(--dim);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 13px;
}
.footer-inner .brand { color: var(--muted); }
.footer-inner .brand b { color: var(--ink); font-weight: 600; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); transition: color .15s ease; }
.footer-links a:hover { color: var(--ink); }

/* ---------- A11Y ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
