/* ============================================================
   MySolat — Editorial design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink:        #16150F;   /* warm near-black */
  --ink-soft:   #3a382f;
  --paper:      #F4EFE3;   /* newsprint cream */
  --paper-2:    #FBF8F0;   /* card cream */
  --paper-line: #E2DAC8;
  --lime:       #9CFF65;   /* brand primary */
  --lime-ink:   #2E5A1B;   /* readable green for small text */
  --orange:     #FF6600;   /* brand secondary / interactive */
  --muted:      #807A6B;

  --serif-disp: 'Fraunces', Georgia, 'Times New Roman', serif;
  --serif-body: 'Newsreader', Georgia, serif;
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1080px;
  --readw: 660px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: var(--ink); }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--orange); }
a:hover { text-decoration-color: var(--ink); }

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

/* ---------- Masthead ---------- */
.masthead {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--lime);
}
.masthead .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.masthead .brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.masthead .brand img { height: 34px; width: auto; }
.masthead .brand .name {
  font-family: var(--serif-disp);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.4px;
  color: var(--paper);
}
.masthead nav { margin-left: auto; display: flex; gap: 26px; }
.masthead nav a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,239,227,0.72);
  text-decoration: none;
}
.masthead nav a:hover { color: var(--lime); }

/* thin dateline rule under masthead */
.dateline {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--paper-line);
}

/* ---------- Article ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.article { max-width: var(--readw); margin: 0 auto; padding: 64px 0 40px; }
.article.wide { max-width: 820px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime-ink);
  margin: 0 0 18px;
}

h1.title {
  font-family: var(--serif-disp);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -1.4px;
  margin: 0 0 20px;
}

.deck {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 26px;
}

.byline {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 0;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  margin-bottom: 40px;
}

.body > p:first-of-type::first-letter {
  /* editorial drop cap */
  font-family: var(--serif-disp);
  font-weight: 600;
  float: left;
  font-size: 4.6em;
  line-height: 0.82;
  padding: 6px 12px 0 0;
  color: var(--ink);
}
.no-dropcap > p:first-of-type::first-letter { all: unset; }

.body p { margin: 0 0 22px; }
.body .lead { font-size: 20px; }

h2.sec {
  font-family: var(--serif-disp);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.5px;
  margin: 46px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--paper-line);
}
h2.sec .num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--orange);
  display: block;
  margin-bottom: 6px;
}

.body ul, .body ol { padding-left: 1.2em; margin: 0 0 22px; }
.body li { margin: 8px 0; }
.body strong { font-weight: 600; }

/* callouts */
.note {
  font-family: var(--serif-body);
  background: var(--paper-2);
  border-left: 3px solid var(--lime);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 18px;
}
.note.alert { border-left-color: var(--orange); }
.note strong { font-weight: 600; }

/* numbered steps */
ol.steps { list-style: none; padding: 0; margin: 28px 0; counter-reset: s; }
ol.steps li {
  position: relative;
  padding: 18px 0 18px 64px;
  border-top: 1px solid var(--paper-line);
  min-height: 56px;
}
ol.steps li:last-child { border-bottom: 1px solid var(--paper-line); }
ol.steps li::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 16px;
  font-family: var(--serif-disp);
  font-weight: 600;
  font-size: 26px;
  color: var(--lime-ink);
}

/* email CTA */
.cta-mail {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 13px 24px;
  border-radius: 2px;
  text-decoration: none;
  margin: 8px 0 4px;
}
.cta-mail:hover { background: var(--orange); }

/* ---------- Landing ---------- */
.nameplate {
  text-align: center;
  padding: 70px 0 36px;
  border-bottom: 3px double var(--ink);
}
.nameplate img { height: 92px; width: auto; margin: 0 auto 26px; }
.nameplate h1 {
  font-family: var(--serif-disp);
  font-weight: 600;
  font-size: clamp(54px, 11vw, 120px);
  letter-spacing: -3px;
  line-height: 0.9;
  margin: 0;
}
.nameplate .tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}

.standfirst {
  max-width: 640px;
  margin: 44px auto 10px;
  text-align: center;
  font-size: 23px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-soft);
}

.contents { max-width: 760px; margin: 50px auto 80px; }
.contents .ch {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 8px;
}
.toc-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 26px 4px;
  border-top: 1px solid var(--paper-line);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left .18s ease;
}
.toc-item:last-child { border-bottom: 1px solid var(--paper-line); }
.toc-item:hover { padding-left: 12px; }
.toc-item .idx {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--orange); width: 32px; flex: none;
}
.toc-item .meta { flex: 1; }
.toc-item .meta h3 {
  font-family: var(--serif-disp); font-weight: 600;
  font-size: 28px; letter-spacing: -0.5px; margin: 0 0 2px;
}
.toc-item .meta p { font-family: var(--serif-body); color: var(--muted); margin: 0; font-size: 17px; }
.toc-item .arrow { font-family: var(--sans); font-size: 22px; color: var(--ink); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(244,239,227,0.72);
  margin-top: 40px;
}
footer .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
footer img { height: 30px; width: auto; }
footer nav { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
footer nav a {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(244,239,227,0.72); text-decoration: none;
}
footer nav a:hover { color: var(--lime); }
footer .copy {
  width: 100%;
  border-top: 1px solid rgba(244,239,227,0.14);
  padding-top: 22px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(244,239,227,0.5);
}
footer .copy a { color: var(--lime); text-decoration: none; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .masthead nav { display: none; }
  .dateline { font-size: 10px; }
  .article { padding: 44px 0 30px; }
  .toc-item .meta h3 { font-size: 23px; }
  footer nav { margin-left: 0; width: 100%; }
}
