/* =============================================================================
   KATERINA ANDREEVA — PERSONAL SITE
   Foundation stylesheet. All pages share this file.
   No per-page font sizes or one-off colors — use tokens only.

   Layout decision (made at skeleton stage, keep unless explicitly changed):
   DARK EVERYWHERE (option a from design-notes.md).
   ============================================================================= */


/* =============================================================================
   1. DESIGN TOKENS
   ============================================================================= */

:root {

  /* -- Backgrounds -- */
  --bg-base:       #220A12;
  --bg-block:      #32121D;
  --bg-block-warm: #360D17;

  /* -- Accent -- */
  --bronze:        #A8824A;

  /* -- Text -- */
  --text-bright:   #F7F1E6;   /* wordmark, primary hovers */
  --text-primary:  #EAE2D7;   /* body text; #EAE2D7 on #220A12 passes WCAG AA */
  --text-muted:    #C9B79A;   /* muted body; borderline on blocks — 17px+ only */
  --text-faint:    #9A8B73;   /* captions, fine print, footer links */

  /* -- Fonts -- */
  --font-serif: 'Spectral', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* -- Type scale --
     H1: ~32px mobile → ~56px desktop (spec: 44-56px desktop, 32-36px mobile)
     Derived from linear interpolation between 375px and 1440px viewports.    */
  --size-h1:      clamp(2rem, 2.25vw + 1.5rem, 3rem);
  --size-h2:      clamp(1.625rem, 0.56vw + 1.49rem, 2rem);
  --size-body:    1.0625rem;   /* 17px — minimum for this audience */
  --size-eyebrow: 0.6875rem;  /* 11px */
  --size-fine:    0.8125rem;  /* 13px */

  --lh-heading: 1.1;
  --lh-body:    1.65;
  --ls-eyebrow: 0.22em;

  /* -- Layout -- */
  --max-prose: 900px;
  --max-wide:  1200px;
  --pad-x:     clamp(1.25rem, 5vw, 3rem);
  --pad-section: clamp(3rem, 8vw, 6rem);

  /* -- Spacing -- */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
}


/* =============================================================================
   2. RESET AND BASE
   ============================================================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--size-body);
  font-weight: 400;
  line-height: var(--lh-body);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

img, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, blockquote {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}


/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--text-primary);
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: 1.125rem; }

p {
  font-size: var(--size-body);
  color: var(--text-muted);
  max-width: var(--max-prose);
}

/* Eyebrow label: "For Companies", "Featured in", etc. */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--size-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--bronze);
  display: block;
  margin-bottom: var(--sp-4);
}

/* Lead / intro paragraph */
.lead {
  font-size: var(--size-body);
  font-weight: 300;
  color: var(--text-muted);
  max-width: var(--max-prose);
}

/* Fine print, captions */
.fine {
  font-size: var(--size-fine);
  color: var(--text-faint);
}

/* Key numbers in Spectral — large, bronze allowed */
.stat {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--bronze);
  line-height: 1;
}


/* =============================================================================
   4. LINKS
   ============================================================================= */

/* Body links: cream text, bronze underline — never bronze text in body copy */
a {
  color: var(--text-primary);
  text-decoration-color: var(--bronze);
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text-bright);
}

/* Inline arrow links: [Read the doctrine →] */
.link-arrow {
  font-family: var(--font-sans);
  font-size: var(--size-fine);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.link-arrow:hover {
  color: var(--text-bright);
  border-color: var(--bronze);
}


/* =============================================================================
   5. FOCUS AND ACCESSIBILITY
   ============================================================================= */

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =============================================================================
   6. SKIP LINK
   ============================================================================= */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--bronze);
  color: var(--bg-base);
  font-family: var(--font-sans);
  font-size: var(--size-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--sp-3) var(--sp-6);
  z-index: 9999;
  transition: top 0.1s ease;
}

.skip-link:focus {
  top: var(--sp-4);
}


/* =============================================================================
   7. BUTTONS AND CTAs
   ============================================================================= */

/* Primary: bronze fill, dark text, sentence case */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  background: var(--bronze);
  color: var(--bg-base);
  border: 1px solid var(--bronze);
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.08);
  color: var(--bg-base);
}

/* Ghost: transparent, bronze border */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--bronze);
  transition: background 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.btn-ghost:hover {
  background: var(--bronze);
  color: var(--bg-base);
  filter: brightness(1.08);
}


/* =============================================================================
   8. SITE HEADER AND NAVIGATION
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-base);
  border-bottom: 1px solid var(--bg-block);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--sp-6) var(--pad-x);
  gap: var(--sp-8);
}

/* Wordmark */
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-bright);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--text-bright);
}

/* Mobile: hide nav links by default */
.nav-links {
  display: none;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-bright);
}

/* Contact CTA button inside nav */
.nav-links .btn {
  padding: 0.625rem 1.375rem;
  font-size: 1rem;
  background: #B48D52;
  border-color: #B48D52;
}

.nav-links .btn:hover {
  color: var(--bg-base);
}

/* Active page indicator */
.nav-links a[aria-current="page"] {
  color: var(--text-bright);
}

.nav-links a[aria-current="page"]:not(.btn) {
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 2px;
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-shrink: 0;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Open state: X */
.nav-open .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-open .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile dropdown */
.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-6);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-block);
  padding: var(--sp-6) var(--pad-x) var(--sp-8);
  border-bottom: 1px solid var(--bg-base);
}

/* Desktop: always show links inline.
   1280px to give the full nav item list comfortable room without overflow. */
@media (min-width: 1280px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-6);
  }

  .nav-toggle {
    display: none;
  }

  .nav-open .nav-links {
    position: static;
    background: none;
    padding: 0;
    border: none;
    flex-direction: row;
  }
}


/* =============================================================================
   9. SITE FOOTER
   ============================================================================= */

.site-footer {
  background: var(--bg-block);
  border-top: 1px solid var(--bg-base);
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-12);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
}

.footer-nav a {
  font-size: var(--size-fine);
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--text-bright);
}

.footer-credit {
  font-size: var(--size-fine);
  color: var(--text-faint);
  max-width: none;
}


/* =============================================================================
   10. PAGE LAYOUT HELPERS
   ============================================================================= */

.container {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.prose {
  max-width: var(--max-prose);
}

.section {
  padding-top: 0;
  padding-bottom: 0;
}

/* Thin bronze rule at 25% opacity */
.rule {
  border: none;
  border-top: 1px solid var(--bronze);
  opacity: 0.25;
  margin: 3.5rem 0;
}

/* Accent block (AI Readiness Session, warm oxblood) */
.accent-block {
  background: var(--bg-block-warm);
  border-left: 3px solid var(--bronze);
  padding: var(--sp-8);
}

/* Testimonial / blockquote */
blockquote {
  border-left: 2px solid var(--bronze);
  padding-left: var(--sp-6);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: var(--max-prose);
}

blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: var(--size-fine);
  color: var(--text-faint);
  margin-top: var(--sp-4);
}

/* Content block on dark background */
.block {
  background: var(--bg-block);
  padding: var(--sp-8);
}

/* Numbered engagement list (01 / 02 / 03 style) */
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.numbered-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-6);
  align-items: start;
}

.numbered-item__body {
  min-width: 0;
}

.numbered-item__n {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--bronze);
  line-height: 1;
  min-width: 2.5rem;
  padding-top: 0.1em;
}

.numbered-item__body h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.numbered-item__body p {
  font-size: var(--size-body);
  max-width: var(--max-prose);
}

/* Badge strip (publication logos — text wordmarks until assets exist) */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-8);
  align-items: center;
  text-decoration: none;
  margin-top: var(--sp-6);
}

.badge-strip span {
  font-family: var(--font-sans);
  font-size: var(--size-fine);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.badge-strip:hover span,
.badge-strip:focus span {
  color: var(--text-muted);
}


/* =============================================================================
   11. FADE-UP ON SCROLL
   Controlled by IntersectionObserver in main.js.
   Elements with .fade-up start hidden (when .js class is on <html>)
   and become visible when .is-visible is added.
   With prefers-reduced-motion: reduce — no animation, always visible.
   ============================================================================= */

@media (prefers-reduced-motion: no-preference) {
  .js .fade-up {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .js .fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =============================================================================
   12. HOME PAGE
   ============================================================================= */

/* --- Hero --- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.hero-text {
  padding: var(--sp-16) var(--pad-x) var(--sp-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-6);
}

.hero-text h1 {
  color: var(--text-bright);
}

.hero-text .lead {
  color: var(--text-primary);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}

@media (max-width: 859px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

.hero-photo {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

@media (min-width: 860px) {
  .hero {
    /* 55% text / 45% photo; photo column reaches the right viewport edge */
    grid-template-columns: 55% 45%;
    min-height: 82vh;
  }

  .hero-text {
    /* max() keeps left edge aligned with the nav wordmark at all viewport widths
       without a separate @media block or a max-width cap on the element */
    padding: var(--sp-24) var(--sp-8) var(--sp-24)
             max(var(--pad-x), calc((100vw - var(--max-wide)) / 2 + var(--pad-x)));
  }

  /* Narrow fade on the photo's left edge — no tint, portrait at full contrast */
  .hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-base) 0%, transparent 25%);
    z-index: 1;
    pointer-events: none;
  }

  /* Pin figure to right viewport edge; face stays in the right quarter */
  .hero-photo img {
    object-position: right 25%;
  }
}

/* --- Home: second section --- */

.section-bio {
  padding: var(--pad-section) 0;
}

.section-bio .bio-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  max-width: var(--max-prose);
}

.section-bio .bio-inner .btn {
  align-self: flex-start;
  margin-top: var(--sp-4);
}

/* --- Home: press strip --- */

.section-press {
  padding-bottom: var(--pad-section);
}


/* =============================================================================
   13. INTERIOR PAGES
   Shared across all non-home pages.
   ============================================================================= */

/* --- Text-only page hero --- */

.page-hero {
  padding: var(--sp-12) 0 0;
}

.page-hero h1 {
  color: var(--text-bright);
  margin-top: var(--sp-12);
}

.page-hero .lead {
  margin-top: var(--sp-6);
  color: var(--text-primary);
}

/* --- Section heading defaults --- */

.section h2 {
  color: var(--text-bright);
  margin-bottom: var(--sp-6);
}

/* --- Prose: paragraph and blockquote spacing --- */

.prose p + p {
  margin-top: var(--sp-6);
}

.prose blockquote {
  margin-top: var(--sp-8);
}

/* --- Numbered list after lead text --- */

.section .lead + .numbered-list {
  margin-top: var(--sp-8);
}

/* --- Accent block overrides --- */

.accent-block h2 {
  color: var(--text-bright);
  margin-bottom: var(--sp-4);
}

.accent-block > * + * {
  margin-top: var(--sp-4);
}

.accent-block .btn {
  margin-top: var(--sp-6);
  display: inline-block;
}

/* --- Closing CTA strip --- */

.section-cta {
  padding: 0 0 clamp(2rem, 4vw, 3rem);
}


.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-6);
  max-width: var(--max-prose);
  margin-top: 0;
}

/* --- AI Readiness Session: price / meta line --- */

.session-meta {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--text-primary);
  max-width: none;
}

/* --- About page --- */

.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  padding: var(--sp-12) var(--pad-x) 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr clamp(260px, 34vw, 400px);
    gap: var(--sp-12);
    max-width: var(--max-wide);
    margin: 0 auto;
    align-items: start;
    padding-bottom: 0;
  }
}

.about-text {
  max-width: var(--max-prose);
}

.about-photo {
  position: relative;
  overflow: hidden;
  padding-top: var(--sp-8);
}

@media (min-width: 768px) {
  .about-photo {
    padding-top: 0;
  }

  .about-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to right,  var(--bg-base) 0%, transparent 15%),
      linear-gradient(to left,   var(--bg-base) 0%, transparent 10%),
      linear-gradient(to bottom, var(--bg-base) 0%, transparent 10%),
      linear-gradient(to top,    var(--bg-base) 0%, transparent 10%);
    z-index: 1;
    pointer-events: none;
  }
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 280px;
}

@media (min-width: 768px) {
  .about-photo img {
    max-width: 100%;
  }
}

/* --- Speaking and Judging page --- */

.pending-note {
  margin-top: var(--sp-8);
  color: var(--text-faint);
  font-size: 0.875rem;
}

.speaking-list {
  list-style: none;
  margin-top: var(--sp-8);
  max-width: 760px;
}

.speaking-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-6);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(168, 130, 74, 0.08);
}

.speaking-list li:first-child {
  border-top: 1px solid rgba(168, 130, 74, 0.08);
}

.speaking-event {
  color: var(--text-primary);
  min-width: 0;
}

.speaking-meta {
  color: var(--text-faint);
  font-size: 0.9375rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.stage-photo {
  position: relative;
  overflow: hidden;
  margin-top: var(--sp-8);
  max-width: var(--max-prose);
}

.stage-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  var(--bg-base) 0%, transparent 15%),
    linear-gradient(to left,   var(--bg-base) 0%, transparent 15%),
    linear-gradient(to bottom, var(--bg-base) 0%, transparent 15%),
    linear-gradient(to top,    var(--bg-base) 0%, transparent 15%);
  z-index: 1;
  pointer-events: none;
}

.stage-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.stage-photo figcaption {
  margin-top: 0.5rem;
  color: var(--text-faint);
  font-size: 0.8125rem;
}

/* --- Writing and Press page --- */

.doctrine-title {
  font-family: var(--font-serif);
  font-size: var(--size-h2);
  font-weight: 400;
  color: var(--text-bright);
  line-height: 1.2;
}

.doctrine-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.email-signup {
  margin-top: var(--sp-8);
  max-width: var(--max-prose);
}

.email-signup > p {
  color: var(--text-muted);
}

.email-form {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}

.email-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  background: transparent;
  border: 1px solid rgba(168, 130, 74, 0.3);
  color: var(--text-primary);
  padding: 0.625rem var(--sp-4);
  font-family: var(--font-sans);
  font-size: var(--size-body);
  outline: none;
}

.email-form input[type="email"]::placeholder {
  color: var(--text-faint);
}

.email-form input[type="email"]:focus {
  border-color: rgba(168, 130, 74, 0.6);
}

.form-success {
  color: var(--text-muted);
  font-size: var(--size-body);
}

.article-list {
  list-style: none;
  margin-top: var(--sp-8);
  max-width: var(--max-prose);
}

.article-item {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid rgba(168, 130, 74, 0.08);
}

.article-item:first-child {
  border-top: 1px solid rgba(168, 130, 74, 0.08);
}

.article-title a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(168, 130, 74, 0.35);
  text-underline-offset: 3px;
}

.article-title a:hover {
  color: var(--text-bright);
}

.article-meta {
  margin-top: 0.25rem;
  color: var(--text-faint);
  font-size: 0.8125rem;
}

.badge-strip-pending {
  margin-top: var(--sp-6);
  color: var(--text-faint);
  font-size: 0.8125rem;
}

.wordmark-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin-top: var(--sp-6);
  font-family: var(--font-sans);
  font-size: var(--size-fine);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.wordmark-strip span + span::before {
  content: '\00B7';
  letter-spacing: 0;
  margin: 0 0.5em;
}

@media (max-width: 639px) {
  .wordmark-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .wordmark-strip span + span::before {
    display: none;
  }
}

@media (max-width: 639px) {
  .badge-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }
}

/* --- Writing page geometry: left-axis, matching /investors/ --- */

.writing-page .page-hero h1 {
  max-width: 1100px;
}

.writing-page .page-hero .lead {
  max-width: 900px;
}

.writing-page .accent-block {
  display: flow-root;
  margin-top: var(--sp-6);
  max-width: 960px;
}

.writing-page .doctrine-actions .btn {
  margin-top: 0;
}

.writing-page .article-list {
  max-width: 900px;
}

.writing-page .email-signup {
  max-width: 900px;
}

.writing-page .wordmark-strip {
  max-width: none;
}


/* --- Contact form --- */

.contact-form {
  max-width: 720px;
  margin-top: var(--sp-4);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}

.contact-form-grid .form-full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.form-field label {
  font-family: var(--font-sans);
  font-size: var(--size-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(168, 130, 74, 0.3);
  color: var(--text-primary);
  padding: 0.625rem var(--sp-4);
  font-family: var(--font-sans);
  font-size: var(--size-body);
  outline: none;
}

.contact-form select {
  background-color: var(--bg-base);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A8824A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: 2.5rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
  line-height: var(--lh-body);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(168, 130, 74, 0.6);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-faint);
}

.form-submit {
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-8);
}

@media (max-width: 639px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}
