/* manyarticles.com - shared stylesheet
   Publication identity (default) + offer identity (body.intake-flow).
   Mobile-first: base rules target 360px, min-width queries at 480 / 768 / 1024. */

:root {
  color-scheme: only light;
  --bg: #F3F9F5;
  --surface: #E3EFE7;
  --ink: #0F2E1F;
  --muted: #4D6B5A;
  --accent: #1B6B45;
  --accent-ink: #FFFFFF;
  --accent-deep: #14543A;
  --card: #FFFFFF;
  --line: #BFD8C8;
  --field: #8FB09D;
  --font-display: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pad: clamp(2.5rem, 6vw, 4.5rem);
}

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

html {
  background-color: #F3F9F5;
  color: #0F2E1F;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.has-intake { background-color: #FBF7F0; color: #14213D; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: break-word;
}

img, video, svg { max-width: 100%; }
img, video { height: auto; }

a { color: var(--accent); text-underline-offset: 0.2em; transition: color 0.2s ease; }
a:hover { color: var(--accent-deep); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background-color: var(--ink); color: #FFFFFF;
  padding: 0.75rem 1rem; border-radius: 8px; z-index: 100; text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

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

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 480px) { .wrap { padding-inline: 1.5rem; } }

/* ---------- Masthead: slim strip, then left-aligned wordmark ---------- */
.strip { background-color: var(--accent); color: var(--accent-ink); font-size: 0.8125rem; line-height: 1.3; }
.strip-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0.55rem; }
.strip-label { font-weight: 600; letter-spacing: 0.03em; }
.strip-date { white-space: nowrap; }

.masthead { background-color: var(--bg); color: var(--ink); padding-block: 1.1rem 0.6rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.mark { width: 2.5rem; height: 2.5rem; flex: none; color: var(--accent); }
.brand-text { display: block; }
.brand-name {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem); line-height: 1; letter-spacing: -0.01em;
}
.brand-domain { display: block; margin-top: 0.35rem; font-size: 0.75rem; letter-spacing: 0.05em; color: var(--muted); }

/* ---------- Opening: tinted panel, image overlaps its bottom edge ---------- */
.hero { padding-top: 0.5rem; }
.hero-panel {
  background-color: var(--surface); color: var(--ink);
  border-radius: 18px;
  padding: clamp(1.35rem, 4.5vw, 3.25rem);
}
.hero-panel--over { padding-bottom: calc(clamp(1.35rem, 4.5vw, 3.25rem) + 3.25rem); }
.kicker {
  margin: 0 0 0.9rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.hero h1, .page-title {
  margin: 0 0 1rem; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 2.5vw, 2.5rem); line-height: 1.22; letter-spacing: -0.015em;
  max-width: 22em; color: var(--ink);
}
.page-title { font-size: clamp(1.55rem, 1.1rem + 2vw, 2.25rem); }
.dek {
  margin: 0 0 1.25rem; max-width: 36em; color: var(--ink);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.6;
}
.meta { margin: 0; font-size: 0.8125rem; letter-spacing: 0.03em; color: var(--muted); }
.revision { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--muted); }

.hero-media { position: relative; margin: -3.25rem 1rem 0; }
.hero-media .frame {
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background-color: var(--surface);
  box-shadow: 0 22px 44px -24px rgba(15, 46, 31, 0.55);
}
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 38%; }
@media (min-width: 768px) {
  .hero-media { margin: -3.5rem 2rem 0; }
  .hero-media .frame { aspect-ratio: 2 / 1; }
}
@media (min-width: 1024px) {
  .hero-media { margin: -3.5rem 0 0 8.3333%; }
}

.cap { margin: 0.6rem 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }

/* ---------- Sections: asymmetric 12-column magazine grid ---------- */
.article-body { padding-top: 1.5rem; }
.sec { padding-block: var(--pad); border-top: 2px dotted var(--accent); }
.sec--intro { border-top: 0; padding-top: clamp(1.75rem, 4vw, 3rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec--tight { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.sec-head { margin-bottom: 1.25rem; }
.sec-head h2 {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem); line-height: 1.28; letter-spacing: -0.01em; color: var(--ink);
}
.sec-note { margin: 0.6rem 0 0; max-width: 20rem; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.sec-body { display: flow-root; max-width: 680px; }
.sec-body > :first-child { margin-top: 0; }
.sec-body > :last-child { margin-bottom: 0; }
.sec-body p { margin: 0 0 1.15rem; }
.sec-body ul { margin: 0 0 1.15rem; padding-left: 1.2rem; }
.sec-body li { margin-bottom: 0.4rem; }
.sec-body li::marker { color: var(--accent); }
.sec-body strong { font-weight: 600; }

@media (min-width: 1024px) {
  .sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; align-items: start; }
  .sec-head { grid-column: 1 / 5; margin: 0; padding-right: 1rem; position: sticky; top: 1.5rem; }
  .sec-body { grid-column: 5 / 13; }
}

/* Questions and answers */
.q {
  margin: 2rem 0 0.55rem; font-family: var(--font-display); font-weight: 600;
  font-size: 1.0625rem; line-height: 1.4; color: var(--ink);
}
.q::before {
  content: "Question"; display: block; margin-bottom: 0.3rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.sec-body > .q:first-child { margin-top: 0; }

/* Floating media */
.fig { margin: 1.6rem 0; }
.fig .frame { aspect-ratio: 40 / 21; overflow: hidden; border-radius: 12px; background-color: var(--surface); }
.fig--still .frame { aspect-ratio: 4 / 3; }
.fig img, .fig video { display: block; width: 100%; height: 100%; object-fit: cover; }
.fig--still img { object-position: 62% 40%; }
@media (min-width: 768px) {
  .fig { width: 45%; margin-top: 0.45rem; margin-bottom: 1rem; }
  .fig--r { float: right; margin-left: 1.75rem; }
  .fig--l { float: left; margin-right: 1.75rem; }
}

/* Definition cards */
.defs-lead { clear: both; margin-top: 1.75rem !important; margin-bottom: 0.85rem !important; font-weight: 600; }
.defs { clear: both; display: grid; gap: 1rem; margin: 0; padding: 0; }
.def {
  background-color: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem;
  font-variant-numeric: tabular-nums;
}
.def dt { margin: 0 0 0.4rem; font-weight: 600; font-size: 1rem; color: var(--accent); }
.def dd { margin: 0; font-size: 0.9375rem; line-height: 1.6; }
@media (min-width: 768px) { .defs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Walkthrough list: dotted rail, no numbered badges */
.walk { list-style: none; margin: 1.25rem 0 1.6rem !important; padding: 0 !important; }
.walk li {
  position: relative; margin: 0 !important; padding: 0 0 1.35rem 1.5rem;
  border-left: 2px dotted var(--accent);
}
.walk li:last-child { padding-bottom: 0.2rem; border-left-color: transparent; }
.walk li::before {
  content: ""; position: absolute; left: -6px; top: 0.7em;
  width: 10px; height: 10px; border-radius: 50%; background-color: var(--accent);
}
.walk strong { display: block; margin-bottom: 0.2rem; font-weight: 600; color: var(--accent); }

/* Checklist aside */
.needs {
  clear: both; margin: 1.75rem 0; padding: 1.25rem 1.35rem;
  background-color: var(--surface); color: var(--ink); border-radius: 14px;
}
.needs h3 { margin: 0 0 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.4; }
.needs ul { list-style: none; margin: 0; padding: 0; }
.needs li { position: relative; margin: 0; padding: 0.4rem 0 0.4rem 2rem; font-size: 0.9688rem; line-height: 1.55; }
.needs li::before {
  content: ""; position: absolute; left: 0; top: 0.6rem; width: 1.2rem; height: 1.2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%231B6B45'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 8.8' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Call-to-action card */
.cta-card {
  clear: both; margin: 2rem 0 0; padding: 1.4rem 1.35rem;
  background-color: var(--card); color: var(--ink);
  border: 2px solid var(--accent); border-radius: 16px;
  box-shadow: 0 18px 34px -26px rgba(15, 46, 31, 0.6);
}
.cta-title {
  margin: 0 0 0.4rem; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 1.02rem + 0.5vw, 1.3rem); line-height: 1.3;
}
.sec-body .cta-text { margin: 0 0 1.15rem; font-size: 0.9688rem; line-height: 1.6; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; padding: 0.8rem 1.5rem;
  background-color: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent); border-radius: 10px;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background-color: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
@media (min-width: 480px) { .btn { width: auto; } }

/* Principles list (about page) */
.principles { list-style: none; margin: 0 0 1.5rem !important; padding: 0 !important; }
.principles li { position: relative; margin: 0 !important; padding: 0.85rem 0 0.85rem 1.6rem; border-bottom: 2px dotted var(--line); }
.principles li:last-child { border-bottom: 0; }
.principles li::before { content: ""; position: absolute; left: 0; top: 1.5rem; width: 0.7rem; height: 2px; background-color: var(--accent); }

/* ---------- Footer: imprint + legal links, disclosure underneath ---------- */
.foot {
  margin-top: var(--pad); padding-block: 2.25rem 2.5rem;
  background-color: var(--surface); color: var(--ink);
  border-top: 4px solid var(--accent); font-size: 0.9375rem; line-height: 1.7;
}
.foot-grid { display: grid; gap: 1.5rem; }
.foot p { margin: 0 0 0.6rem; }
.foot-brand { font-weight: 600; }
.imprint { color: var(--ink); }
.foot a { color: var(--accent); }
.foot a:hover { color: var(--accent-deep); }
.legal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.legal li { margin: 0; }
.legal a { display: flex; align-items: center; min-height: 44px; }
.foot-about { margin-top: 0.4rem !important; }
.foot-about a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 1.25rem; }
.about-line {
  margin: 1.5rem 0 0 !important; padding-top: 1.25rem; border-top: 2px dotted var(--accent);
  color: var(--ink); font-size: 0.9375rem; line-height: 1.7;
}
@media (min-width: 1024px) { .about-line { padding-right: 12%; } }
@media (min-width: 768px) {
  .foot-grid { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
  .legal ul { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

/* =====================================================================
   OFFER PAGE IDENTITY - body.intake-flow
   Warm paper, midnight ink, terracotta accent, serif display + clean sans.
   ===================================================================== */
body.intake-flow {
  --bg: #FBF7F0;
  --surface: #F1E9DC;
  --ink: #14213D;
  --muted: #55607A;
  --accent: #B93C0B;
  --accent-deep: #8F2D07;
  --accent-ink: #FFFFFF;
  --card: #FFFFFF;
  --line: #DCCFBA;
  --field: #8D8168;
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #FBF7F0;
  color: #14213D;
}
.intake-flow .brand-name { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
.intake-flow .brand-domain { margin-top: 0.3rem; }
.intake-flow .foot { background-color: #F1E9DC; color: #14213D; border-top-color: #14213D; }
.intake-flow .foot a { color: #8F2D07; }
.intake-flow .about-line { border-top-color: #8F2D07; }
.intake-flow .btn { border-radius: 999px; }

.intake-top { background-color: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); padding-block: 0.75rem; }
.intake-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.intake-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; font-weight: 600; }

.intake-main { display: grid; gap: 2rem; padding-block: 2rem 1rem; }
.intake-lede .kicker { color: var(--accent); }
.intake-lede h1 {
  margin: 0 0 1rem; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink);
}
.intake-lede p { margin: 0 0 1.1rem; max-width: 34rem; }
.intake-lede .lede-note { margin-top: 1.5rem; }
.next-list { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: 34rem; }
.next-list li { position: relative; margin: 0; padding: 0.85rem 0 0.85rem 2rem; border-top: 1px solid var(--line); font-size: 0.9688rem; line-height: 1.6; }
.next-list li:last-child { border-bottom: 1px solid var(--line); }
.next-list li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem; width: 1.15rem; height: 1.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23B93C0B'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 8.8' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.next-list strong { font-weight: 700; }

.intake-card {
  background-color: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: 0 34px 60px -40px rgba(20, 33, 61, 0.55);
}
.intake-card h2 { margin: 0 0 0.35rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.card-intro { margin: 0 0 1.5rem; font-size: 0.9688rem; line-height: 1.6; color: var(--muted); }

.group { margin: 0 0 1.6rem; padding: 0; border: 0; min-width: 0; }
.group legend { display: block; width: 100%; margin: 0 0 0.7rem; padding: 0; font-weight: 700; font-size: 1rem; line-height: 1.4; }
.group-hint { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); margin-top: 0.15rem; }

.days { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill { position: relative; }
.pill input, .win input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pill label {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 3.9rem; min-height: 46px; padding: 0.5rem 1rem;
  background-color: var(--card); color: var(--ink);
  border: 1.5px solid var(--field); border-radius: 999px;
  font-weight: 600; font-size: 0.9688rem; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pill label:hover { border-color: var(--ink); }
.pill input:checked + label { background-color: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.pill input:focus-visible + label, .win input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }

.windows { display: grid; gap: 0.75rem; }
.win { position: relative; }
.win label {
  display: block; height: 100%; padding: 0.9rem 1rem;
  background-color: var(--card); color: var(--ink);
  border: 1.5px solid var(--field); border-radius: 16px; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.win label:hover { border-color: var(--ink); }
.win input:checked + label { background-color: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.win-name { display: block; font-weight: 700; font-size: 1rem; }
.win-sub { display: block; margin-top: 0.15rem; font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
@media (min-width: 480px) { .windows { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.slot-summary { margin: 0.8rem 0 0; min-height: 1.5em; font-size: 0.9375rem; color: var(--accent-deep); font-weight: 600; }

.field { margin: 0 0 1.15rem; }
.lbl { display: block; margin-bottom: 0.35rem; font-weight: 700; font-size: 0.9375rem; }
.lbl-opt { font-weight: 400; color: var(--muted); }
.input {
  display: block; width: 100%; min-height: 50px; padding: 0.7rem 0.95rem;
  background-color: #FFFFFF; color: var(--ink);
  border: 1.5px solid var(--field); border-radius: 12px;
  font-family: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea.input { min-height: 7rem; resize: vertical; }
.input:hover { border-color: var(--ink); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185, 60, 11, 0.28); }
.input[aria-invalid="true"] { border-color: #9B1C1C; }
.err { display: block; margin-top: 0.3rem; font-size: 0.875rem; line-height: 1.4; color: #9B1C1C; }
.err:empty { display: none; }

.consent { display: flex; align-items: flex-start; gap: 0.75rem; margin: 0 0 0.5rem; }
.consent input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; accent-color: #B93C0B; cursor: pointer; }
.consent label { font-size: 0.9375rem; line-height: 1.6; cursor: pointer; }
.consent a { color: var(--accent-deep); }
.form-actions { margin-top: 1.4rem; }
.form-actions .btn { width: 100%; min-height: 54px; font-size: 1.0625rem; }
.form-note { margin: 0.9rem 0 0; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }

.merci { display: none; padding: 1.25rem 1.35rem; background-color: var(--surface); border-left: 5px solid var(--accent); border-radius: 12px; }
.merci:target { display: block; }
.merci h2 { margin: 0 0 0.5rem; }
.merci p { margin: 0 0 0.75rem; }
.intake-card.sent form { display: none; }
.intake-card.sent .card-intro, .intake-card.sent .card-title { display: none; }

@media (min-width: 768px) {
  .intake-main { padding-block: 3rem 1.5rem; }
}
@media (min-width: 1024px) {
  .intake-main { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; align-items: start; padding-block: 4.5rem 2rem; }
  .intake-lede { position: sticky; top: 2rem; }
}
