/* ==========================================================================
   2 Acre Studios, Brand System (watercolor / editorial / 2026-05-09)
   --------------------------------------------------------------------------
   Single source of truth for visual identity. Every page imports this.
   Watercolor + editorial. Warm cream paper, river blue, bridge rust, sage.
   See /Volumes/FILES/2acrestudios-site/DESIGN-SPEC.md for the canonical spec.
   ========================================================================== */


:root {
  /* ----------------------------------------------------------------------
     Watercolor palette (canonical, 2026-05-09).
     ---------------------------------------------------------------------- */

  /* Paper, warm cream, the watercolor surface. Visible texture under washes. */
  --paper:        #F5F1EA;   /* page background */
  --paper-2:      #EFE9DD;   /* secondary surfaces */
  --paper-3:      #E8E0D1;   /* tertiary surfaces, deeper card backgrounds */

  /* Ink, warm charcoal, never pure black. */
  --ink:          #2C2D33;   /* body text */
  --ink-soft:     #565862;   /* secondary text */
  --ink-faint:    #6A6C75;   /* labels, captions, fine print (darkened to 4.65:1 AA on paper) */

  /* River blue, primary brand accent. Matches the watercolor sky/water washes. */
  --blue:         #3D5878;   /* PRIMARY, links, headlines on accent, brand blue */
  --blue-deep:    #28415F;   /* hover, pressed */
  --blue-light:   #7A95B5;   /* secondary accent, soft sky/water wash */
  --blue-soft:    rgba(61, 88, 120, 0.06);   /* subtle background wash */
  --blue-medium:  rgba(61, 88, 120, 0.18);   /* selection, hover surface */
  --blue-on-dark: #A8BED8;   /* legible blue on dark/photo backgrounds (WCAG AA) */

  /* Bridge rust, warm accent. Numbered step markers, kickers, italic in-headline accents,
     occasional CTA emphasis. Real value now (no longer aliased to --blue). */
  --rust:         #D87159;   /* coral, watercolor numbered markers */
  --rust-deep:    #B85A45;   /* hover, pressed */
  --rust-soft:    rgba(216, 113, 89, 0.10);   /* highlighted background wash */
  --rust-medium:  rgba(216, 113, 89, 0.22);
  --rust-on-dark: #E89B85;   /* legible coral on dark backgrounds */
  --rust-text:    #A8492F;   /* WCAG-AA text/link rust on paper (5.10:1). Use for links + labels; keep --rust for markers/washes/borders. */

  /* Sage, soft green, supporting accent. Foliage, plants, second logo square. */
  --sage:         #9DAE93;
  --sage-deep:    #7C9082;
  --sage-soft:    rgba(157, 174, 147, 0.12);

  /* Sunset peach, wash accent only. Behind hero text, behind quotes. Never a button fill. */
  --peach:        #E5B58F;
  --peach-soft:   #F0DBC9;

  /* Rules + dividers, warm, lower contrast than ink. */
  --rule:         #D6CFC1;   /* section dividers */
  --rule-soft:    #E5DFD3;   /* within-section dividers */

  /* Success, warm sage-shifted, harmonizes with the palette. */
  --success:      #6B8270;
  --success-soft: rgba(107, 130, 112, 0.10);

  /* ----------------------------------------------------------------------
     Back-compat aliases. Existing pages still reference --warm-white-* names.
     Keep these so /assessment/, /self-assessment/, /r/{slug} still render
     correctly during the migration. New code should use --paper-* directly.
     ---------------------------------------------------------------------- */
  --warm-white:   var(--paper);
  --warm-white-2: var(--paper-2);
  --warm-white-3: var(--paper-3);

  /* ----------------------------------------------------------------------
     Type scale (unchanged from prior brand).
     ---------------------------------------------------------------------- */
  --t-xs: 11px;
  --t-sm: 13px;
  --t-base: 17px;
  --t-md: 19px;
  --t-lg: 22px;
  --t-xl: 26px;
  --t-2xl: 36px;
  --t-3xl: 48px;
  --t-4xl: 56px;
  --t-5xl: 68px;

  /* Space scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Radii, sparse use, the brand is mostly square but softer than brutalist. */
  --r-sm: 2px;
  --r-md: 4px;

  /* Container, widened 20% on 2026-05-09 per Marc directive */
  --container-max: 1296px;     /* was 1080px */
  --container-narrow: 816px;   /* was 680px */
  --container-wide: 1488px;    /* was 1240px */

  /* Subtle paper-lift shadow. Used very sparingly. */
  --shadow-paper: 0 4px 20px rgba(44, 45, 51, 0.04);
}

/* ==========================================================================
   Reset + base
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--t-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--rust-text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--rust-deep); text-decoration: underline; }

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

::selection { background: var(--rust); color: var(--paper); }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: "Newsreader", "Charter", "Iowan Old Style", Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: var(--t-4xl);
  line-height: 1.08;
  letter-spacing: -0.8px;
}

h1.display {
  font-size: var(--t-5xl);
  letter-spacing: -1.2px;
  line-height: 1.04;
}

h2 {
  font-size: var(--t-2xl);
  line-height: 1.15;
  letter-spacing: -0.4px;
}

h2.section-close {
  font-size: var(--t-3xl);
  letter-spacing: -0.6px;
  line-height: 1.1;
}

h3 {
  font-size: var(--t-lg);
  line-height: 1.2;
}

h4 {
  font-size: var(--t-md);
  line-height: 1.25;
}

p { margin: 0 0 var(--s-4) 0; max-width: 840px; }

.deck {
  font-family: "Newsreader", Georgia, serif;
  font-size: var(--t-lg);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 768px;
  margin: 0;
}

/* Handwritten accent, sparing use only. Marc's signature, P.S. close, margin notes. */
.handwritten {
  font-family: "Caveat", "Brush Script MT", cursive;
  font-weight: 400;
  font-size: var(--t-lg);
  color: var(--rust-text);
  line-height: 1.3;
}

.kicker, .section-label, .nav-meta, .mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--rust-text);
  text-transform: uppercase;
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 6px;
  margin: 0 0 var(--s-5) 0;
}

.section-label .num { color: var(--ink-faint); }

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.container.narrow { max-width: var(--container-narrow); }
.container.wide { max-width: var(--container-wide); }

section {
  padding: var(--s-7) 0;
  border-bottom: 1px solid var(--rule);
}

.section-tight { padding: var(--s-6) 0; }
.section-loose { padding: var(--s-9) 0; }

/* ==========================================================================
   Nav + footer
   ========================================================================== */

.nav {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo, .brand-mark, .header-brand {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.2px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo:hover, .brand-mark:hover, .header-brand:hover { color: var(--ink); text-decoration: none; }

/* Logo mark, two small squares. Rust accent first, blue trailing (left-to-right reading). */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.logo-mark .logo-square {
  display: block;
  width: 16px;
  height: 16px;
}

.logo-mark .logo-square:first-child  { background: var(--rust); }
.logo-mark .logo-square:last-child   { background: var(--blue); }

footer .brand-mark { gap: 10px; }
footer .brand-mark .logo-mark { gap: 2px; }
footer .brand-mark .logo-mark .logo-square {
  width: 12px;
  height: 12px;
}

.header-brand { gap: 10px; }
.header-brand .logo-mark { gap: 2px; }
.header-brand .logo-mark .logo-square {
  width: 14px;
  height: 14px;
}

.nav-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--t-xs);
  letter-spacing: 1px;
  color: var(--rust-text);
  text-transform: uppercase;
}

footer {
  padding: var(--s-6) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
}

.footer-inner .brand-mark {
  font-size: 14px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.footer-nav .footer-col h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--rust-text);
  margin: 0 0 var(--s-3) 0;
}
.footer-nav .footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav .footer-col li {
  margin: 0 0 6px 0;
}
.footer-nav .footer-col a {
  font-family: "Newsreader", Georgia, serif;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.4;
}
.footer-nav .footer-col a:hover {
  color: var(--rust-text);
  text-decoration: underline;
}
@media (max-width: 900px) {
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .footer-nav { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--rule);
}

.hero .kicker { margin: 0 0 18px 0; }
.hero h1 { margin: 0 0 24px 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2px;
  text-decoration: none;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: var(--paper);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.2;
  border-radius: var(--r-md);
}

.btn:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--paper);
  text-decoration: none;
}

.btn.btn-secondary {
  background: transparent;
  color: var(--blue);
}

.btn.btn-secondary:hover {
  background: var(--blue);
  color: var(--paper);
}

.btn.btn-large {
  padding: 20px 44px;
  font-size: 17px;
}

.btn.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn[disabled], .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-fineprint {
  margin-top: var(--s-3);
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--t-xs);
  letter-spacing: 1px;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.field { margin-bottom: var(--s-5); }

label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  transition: border-color 0.15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
}

textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.field-help {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
  font-family: "Inter", sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* ==========================================================================
   Cards + panels
   ========================================================================== */

.panel {
  background: var(--paper-2);
  padding: var(--s-6);
  border-top: 2px solid var(--rust);
}

.panel.success { border-top-color: var(--success); background: var(--success-soft); }

.card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  padding: var(--s-6);
  border-radius: var(--r-md);
}

/* ==========================================================================
   CTA section (dark)
   ========================================================================== */

.cta-section {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0;
  border: none;
  text-align: center;
}

.cta-section .kicker { color: var(--rust-on-dark); }

.cta-section h2 {
  color: var(--paper);
  font-size: var(--t-3xl);
  margin: 0 0 18px 0;
}

.cta-section p {
  color: rgba(245, 241, 234, 0.82);
  font-size: 18px;
  margin: 0 auto 36px;
  max-width: 696px;
}

.cta-section .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.cta-section .btn:hover {
  background: var(--peach-soft);
  border-color: var(--peach-soft);
  color: var(--ink);
}

.cta-section .btn-fineprint {
  margin-top: 22px;
  color: rgba(245, 241, 234, 0.55);
}

/* ==========================================================================
   Chat / assessment UI (preserved, used by /assessment/ and /self-assessment/)
   ========================================================================== */

.assessment-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.assessment-header {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 5;
}

.progress-track {
  height: 3px;
  background: var(--rule-soft);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--rust);
  width: 0%;
  transition: width 0.4s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--t-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.progress-meta .phase { color: var(--rust-text); font-weight: 500; }

.chat-stream {
  flex: 1;
  padding: var(--s-6) 0 200px 0;
  overflow-y: auto;
}

.message {
  max-width: 720px;
  margin: 0 auto var(--s-5) auto;
  padding: 0 var(--s-6);
  display: flex;
  gap: var(--s-4);
  animation: fade-in 0.3s ease;
}

.message-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Newsreader", serif;
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
}

.message.from-agent .message-avatar {
  background: var(--blue);
  color: var(--paper);
}

.message.from-user .message-avatar {
  background: var(--rust);
  color: var(--paper);
}

.message-body {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

.message.from-agent .message-body {
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
}

.message-body p { margin: 0 0 var(--s-3) 0; max-width: none; }
.message-body p:last-child { margin-bottom: 0; }

.composer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: var(--s-4) 0 var(--s-5);
  z-index: 6;
}

.composer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: flex;
  gap: var(--s-3);
  align-items: flex-end;
}

.composer textarea {
  flex: 1;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 12px 14px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  resize: none;
  min-height: 48px;
  max-height: 180px;
  line-height: 1.5;
}

.composer textarea:focus { border-color: var(--blue); outline: none; }

.composer-send {
  height: 48px;
  padding: 0 22px;
  background: var(--blue);
  color: var(--paper);
  border: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: var(--r-sm);
}

.composer-send:hover { background: var(--blue-deep); }
.composer-send:disabled { opacity: 0.4; cursor: not-allowed; background: var(--blue); }

.composer-meta {
  max-width: 720px;
  margin: 8px auto 0;
  padding: 0 var(--s-6);
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--t-xs);
  letter-spacing: 1px;
  color: var(--ink-faint);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 1em;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  animation: typing-pulse 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-pulse {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.quick-replies {
  max-width: 720px;
  margin: -8px auto var(--s-5);
  padding: 0 var(--s-6);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-reply {
  padding: 8px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
  border-radius: var(--r-sm);
}

.quick-reply:hover {
  background: var(--rust-soft);
  border-color: var(--rust);
  color: var(--rust-text);
}

/* ==========================================================================
   Report page
   ========================================================================== */

.report {
  padding: var(--s-7) 0;
  max-width: var(--container-max);
  margin: 0 auto;
}

.report-section {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--rule-soft);
}

.report-section:first-child { border-top: none; }

.matrix {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--rule);
  margin: var(--s-5) 0;
}

.matrix-header,
.matrix-cell {
  padding: var(--s-4);
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.matrix-header {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--t-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--paper-2);
  text-align: center;
}

.matrix-cell.quick-wins { background: var(--rust-soft); }
.matrix-cell.strategic { background: var(--success-soft); }

.matrix-cell h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--t-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rust-text);
  margin: 0 0 var(--s-3) 0;
}

.matrix-chip {
  display: block;
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}

.opportunity {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--rule-soft);
}

.opportunity:last-child { border-bottom: none; }

.opportunity h3 { margin-bottom: var(--s-3); }

.opportunity-stat {
  display: inline-block;
  padding: 4px 10px;
  background: var(--rust-soft);
  color: var(--rust-text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 8px;
  margin-bottom: 8px;
}

.roi-banner {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-7) var(--s-6);
  margin: var(--s-6) 0;
  text-align: center;
}

.roi-banner .number {
  font-family: "Newsreader", Georgia, serif;
  font-size: var(--t-3xl);
  font-weight: 700;
  color: var(--paper);
  line-height: 1;
  margin-bottom: var(--s-3);
}

.roi-banner .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--t-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.7);
}

/* ==========================================================================
   Utility
   ========================================================================== */

.text-center { text-align: center; }
.text-soft { color: var(--ink-soft); }
.text-faint { color: var(--ink-faint); }

.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--s-3); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }

.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: var(--s-3); }
.mb-5 { margin-bottom: var(--s-5); }

.hidden { display: none !important; }

/* Watercolor-image utility, drop a master illustration as a section visual. */
.watercolor-frame {
  background: var(--paper-2);
  padding: var(--s-5);
  border-radius: var(--r-md);
}

.watercolor-frame img {
  border-radius: var(--r-sm);
  display: block;
  width: 100%;
}

/* ==========================================================================
   Accent on dark
   --------------------------------------------------------------------------
   On dark (--ink) backgrounds, --rust (#D87159) and --blue (#3D5878) both
   benefit from a lighter variant for legibility. Use --rust-on-dark and
   --blue-on-dark inside dark sections.
   ========================================================================== */

.cta-section .kicker,
.pressure .kicker,
.pressure h2 .accent,
.pressure .accent,
.sa-score-banner .score-kicker,
.sa-score-banner h2 .accent,
.sa-score-banner .accent,
.dark-section .kicker,
.dark-section .accent,
[data-bg="dark"] .kicker,
[data-bg="dark"] .accent {
  color: var(--rust-on-dark);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --t-5xl: 44px;
    --t-4xl: 38px;
    --t-3xl: 32px;
    --t-2xl: 26px;
  }

  .container { padding: 0 var(--s-5); }
  .hero { padding: 56px 0 40px; }
  .deck { font-size: 18px; }
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cta-section { padding: 56px 0; }
  .matrix { grid-template-columns: 1fr; }
  .matrix-cell { border-right: none; }
  .composer-inner { padding: 0 var(--s-5); }
  .message { padding: 0 var(--s-5); }
}

/* ==========================================================================
   Menu strip (subpage mini-menu, links to homepage /#menu)
   ========================================================================== */
.sub-menu-preview {
  padding: 64px 0 56px;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.sub-menu-preview .inner { max-width: 1100px; margin: 0 auto; padding: 0 var(--s-6); }
.sub-menu-preview h2 { margin: 0 0 12px 0; font-family: Newsreader, Georgia, serif; }
.sub-menu-preview .menu-strip-lede {
  color: var(--ink-soft);
  font-family: Newsreader, Georgia, serif;
  font-size: var(--t-md);
  max-width: 720px;
  margin: 0 0 var(--s-5) 0;
  font-style: italic;
}
.menu-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.menu-strip-tier {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.menu-strip-tier:hover { border-color: var(--rust); transform: translateY(-2px); }
.menu-strip-tier--featured {
  border-color: var(--rust);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.menu-strip-tier .tier-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--t-xs);
  letter-spacing: 2px;
  color: var(--rust-text);
  text-transform: uppercase;
  border-top: 2px solid var(--rust);
  padding-top: 10px;
}
.menu-strip-tier .tier-price {
  font-family: Newsreader, Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.3px;
}
.menu-strip-tier .tier-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: auto;
}
.menu-strip-footer {
  margin: var(--s-5) 0 0 0;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--t-sm);
}
.menu-strip-footer a {
  color: var(--rust-text);
  text-decoration: none;
  border-bottom: 1px solid var(--rust);
  padding-bottom: 1px;
}
@media (max-width: 1000px) {
  .menu-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .menu-strip { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Playbook entry banner (above sub-menu-preview on each subpage)
   ========================================================================== */
.playbook-entry-banner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  background: var(--paper-3);
  border: 2px dashed var(--rust);
  border-radius: var(--r-md);
  margin: 0 0 var(--s-5) 0;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.playbook-entry-banner:hover {
  background: var(--paper);
  transform: translateY(-1px);
}
.playbook-entry-banner .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--t-xs);
  letter-spacing: 2px;
  color: var(--rust-text);
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.playbook-entry-banner .content { display: flex; flex-direction: column; gap: 3px; }
.playbook-entry-banner .title {
  font-family: Newsreader, Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.playbook-entry-banner .sub {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.playbook-entry-banner .price {
  font-family: Newsreader, Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.5px;
  text-align: right;
}
.playbook-entry-banner .cta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--rust);
  color: #F5F1EA;
  padding: 10px 16px;
  border-radius: 4px;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .playbook-entry-banner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .playbook-entry-banner .num { grid-column: 1 / -1; }
  .playbook-entry-banner .content { grid-column: 1 / 2; grid-row: 2; }
  .playbook-entry-banner .price { text-align: right; }
  .playbook-entry-banner .cta { grid-column: 1 / -1; text-align: center; padding: 12px; }
}

/* ==========================================================================
   Accessibility (WCAG 1.4.1 use-of-color, 2.4.7 focus visible) - 2026-05-30
   ========================================================================== */

/* Body-copy + FAQ links carry an underline so they are distinguishable
   without relying on color alone. Nav/footer/buttons are unaffected
   (they live outside <p> and are excluded via :not(.btn)). */
p a:not(.btn):not(.text-link-small),
.faq-a a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* Visible keyboard focus ring (blue is 6.51:1 on paper). Restores the
   indicator that `outline: none` strips on form fields, without showing
   a ring on mouse click. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}
