/*
 * DecisionsMatter.in — Main Stylesheet
 * Version: v1.1
 * Built: May 2026 | Updated: May 2026
 * Design tokens mirror decisionsmatter.ai ver_5 brand system
 */

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --ink:       #0A0E1A;
  --paper:     #FFFFFF;
  --accent:    #E8431A;
  --gold:      #D4A843;
  --mist:      #E8EAF0;
  --fog:       #C8CBD6;
  --steel:     #6B7280;
  --border:    #E2E0DC;
  --white:     #FFFFFF;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-ui:      'Instrument Sans', system-ui, -apple-system, sans-serif;

  --max-width:     1100px;
  --content-width: 720px;
  --radius:        6px;
  --radius-lg:     12px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-ui);
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: #c03414; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-width {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section { padding: 4rem 0; }
.section--sm { padding: 2.5rem 0; }
.section--lg { padding: 6rem 0; }

.bg-mist  { background: var(--mist); }
.bg-ink   { background: var(--ink); color: var(--paper); }
.bg-white { background: var(--white); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-brand__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.nav-brand__name strong {
  font-weight: 700;
  color: var(--ink);
}

.nav-brand__sub {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-menu a {
  color: #2D2D2D;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.nav-menu a:hover {
  background: rgba(232,67,26,0.1);
  color: var(--accent);
}

.nav-menu a.active {
  color: var(--accent);
  background: rgba(232,67,26,0.08);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--radius) !important;
  font-weight: 500 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em !important;
  transition: background 0.15s !important;
}

.nav-cta:hover {
  background: #c03414 !important;
  color: var(--white) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    gap: 0.15rem;
  }

  .nav-menu.open { display: flex; }

  .nav-menu a {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
  }

  .nav-cta { margin-top: 0.5rem; }
}

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.hero {
  padding: 5rem 0 4rem;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__headline {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 760px;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--steel);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2.25rem;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: #c03414;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(232,67,26,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(10,14,26,0.04);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { color: #c03414; }

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* ============================================================
   BADGE / TAG
   ============================================================ */
.badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid;
}

.badge--accent {
  color: var(--accent);
  border-color: rgba(232,67,26,0.3);
  background: rgba(232,67,26,0.06);
}

.badge--gold {
  color: var(--gold);
  border-color: rgba(212,168,67,0.35);
  background: rgba(212,168,67,0.08);
}

.badge--mist {
  color: var(--steel);
  border-color: var(--fog);
  background: var(--mist);
}

/* ============================================================
   CARD GRID — Field Note listing
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.card__number {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.06em;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.card__excerpt {
  font-size: 0.88rem;
  color: var(--steel);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.card__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card__link::after {
  content: '→';
  transition: transform 0.15s;
}

.card:hover .card__link::after { transform: translateX(3px); }

/* ============================================================
   FIELD NOTE — article page
   ============================================================ */
.fn-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.fn-header__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.fn-header__number {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fn-header__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.fn-header__deck {
  font-size: 1.05rem;
  color: var(--steel);
  line-height: 1.65;
  max-width: 640px;
  font-weight: 300;
}

/* Article body */
.fn-body {
  padding: 3rem 0 4rem;
}

.fn-body h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.fn-body h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.fn-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #1C2235;
  margin-bottom: 1.25rem;
}

.fn-body ul, .fn-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.fn-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: #1C2235;
  margin-bottom: 0.35rem;
}

/* Answer block — first paragraph after H1, gets visual emphasis */
.fn-answer {
  background: var(--mist);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}

.fn-answer p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 0;
}

/* Bias callout box */
.fn-bias {
  background: rgba(212,168,67,0.08);
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.fn-bias__label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.fn-bias h3 {
  margin-top: 0;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.fn-bias p { font-size: 0.93rem; margin-bottom: 0; color: var(--steel); }

/* ============================================================
   APP CTA BLOCK — mid-article
   ============================================================ */
.fn-cta {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fn-cta__text h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.fn-cta__text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Force white text inside dark fn-cta block —
   overrides the .fn-body p and global h3 colour rules */
.fn-cta p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 0;
}

.fn-cta h3 {
  color: var(--white);
}

/* Links inside fn-cta paragraph (not buttons) */
.fn-cta a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fn-cta a:not(.btn):hover {
  color: #ff6b47;
}

/* ============================================================
   EMAIL CAPTURE BLOCK
   ============================================================ */
.fn-email {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  text-align: center;
}

.fn-email h3,
.fn-email__heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.fn-email p {
  font-size: 0.9rem;
  color: var(--steel);
  margin-bottom: 1.25rem;
}

.fn-email p.fn-email__heading {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* Beehiiv embed will inject inside .fn-email__form */
.fn-email__form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.fn-email__form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}

.fn-email__form input[type="email"]:focus { border-color: var(--accent); }


/* ============================================================
   RELATED FRAMEWORKS BLOCK
   ============================================================ */
.fn-related {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--mist);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.fn-related__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.9rem;
}

.fn-related__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fn-related__list li a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.fn-related__list li a::before {
  content: "→";
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.fn-related__list li a:hover { color: var(--accent); }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq { margin: 2.5rem 0; }

.faq__title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.faq__item {
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
}

.faq__item:last-child { border-bottom: 1px solid var(--border); }

.faq__question,
.faq__q {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.faq__answer,
.faq__a {
  font-size: 0.9rem;
  color: var(--steel);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   SEASONAL PAGE — hero variant
   ============================================================ */
.seasonal-hero {
  padding: 5rem 0 4rem;
  background: var(--mist);
  border-bottom: 1px solid var(--border);
}

.seasonal-hero__tag {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.seasonal-hero__headline {
  font-size: clamp(1.75rem, 4.5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 700px;
}

.seasonal-hero__sub {
  font-size: 1rem;
  color: var(--steel);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2rem;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 2rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.8fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.footer-brand__name strong {
  font-weight: 700;
  color: var(--white);
}

.footer-brand__tag {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col__heading {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom__links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom__links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.15s;
}

.footer-bottom__links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

/* About the site — below hero */
.about-strip {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.about-strip__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .about-strip__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

.about-item__icon {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.about-item__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.about-item__text {
  font-size: 0.87rem;
  color: var(--steel);
  line-height: 1.6;
}

/* Section headers */
.section-head {
  margin-bottom: 2.5rem;
}

.section-head__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-head__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section-head__sub {
  font-size: 0.95rem;
  color: var(--steel);
  margin-top: 0.5rem;
  max-width: 540px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--steel);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { opacity: 0.4; }

/* ============================================================

/* ============================================================
   REFERENCES SECTION (above footer)
   ============================================================ */
.fn-refs {
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding: 1.5rem 0;
  background: var(--paper);
}

.fn-refs__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.6rem;
}

.fn-refs__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fn-refs__list li {
  font-size: 0.75rem;
  color: var(--steel);
  line-height: 1.5;
}

.fn-refs__list li a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fn-refs__list li a:hover { color: var(--ink); }

.fn-refs__copy {
  font-size: 0.68rem;
  color: rgba(107,114,128,0.75);
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}
/* ============================================================
   COMPARISON TABLES
   ============================================================ */
.cmp-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-family: var(--font-ui);
}

.cmp-table th {
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cmp-table th:first-child { width: 30%; }

.cmp-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
  color: var(--ink);
}

.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table tr:nth-child(even) td { background: var(--mist); }

.cmp-table td:first-child {
  font-weight: 600;
  color: var(--steel);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cmp-caption {
  font-size: 0.78rem;
  color: var(--steel);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}
