/* ---------- Fonts ----------
   Latin (English) is self-hosted. Vietnamese and extended Latin
   (e.g. Lithuanian letters) load from Google Fonts only when needed. */

/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/archivo/v25/k3kQo8UDI-1M0wlSfdboLnnA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/archivo/v25/k3kQo8UDI-1M0wlSfdfoLnnA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/newsreader/v26/cY9CfjOCX1hbuyalUrK439vCgYhCFpY.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/newsreader/v26/cY9CfjOCX1hbuyalUrK439vCgIhCFpY.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/newsreader-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/newsreader/v26/cY9AfjOCX1hbuyalUrK439HyjJBG.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/newsreader/v26/cY9AfjOCX1hbuyalUrK439DyjJBG.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/newsreader-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  --accent: #FF4A1C; /* overridden from config.php in includes/head.php */
  --ink: #0F0F0F;
  --paper: #F7F6F2;
  --muted: #D9D7D0;
  --fine: #3A3935;
  --placeholder: #5E5C57;
  --error: #A51D00;
  --font-display: Archivo, 'Arial Narrow', sans-serif;
  --font-serif: Newsreader, Georgia, 'Times New Roman', serif;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); }
a:hover { color: var(--ink); text-decoration-thickness: 3px; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px dashed currentColor; outline-offset: 4px; }
input::placeholder { color: var(--placeholder); opacity: 1; }

.ed-page {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  overflow-x: hidden;
  overflow-x: clip;
}

/* ---------- Layout ---------- */

.ed-wrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.ed-section > .ed-wrap { padding-top: 96px; padding-bottom: 104px; }

/* Section colour schemes */
.ed-light { background: var(--paper); }
.ed-dark { background: var(--ink); color: var(--paper); }
.ed-accent { background: var(--accent); color: var(--ink); }

/* ---------- Type ---------- */

/* Small wide caps: labels, section kickers, meta lines */
.ed-label {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Tall condensed caps: every big headline */
.ed-display {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
}

/* "01 — Why paper" bar at the top of each section */
.ed-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding-top: 12px;
  border-top: 6px solid currentColor;
}
.ed-section-head h2 { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; }

.ed-headline { margin-top: 40px; font-size: clamp(48px, 7.4vw, 112px); line-height: 0.88; }
.ed-lines > span { display: block; } /* one span per line */

.ed-intro {
  margin: 32px 0 0;
  max-width: 36em;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.5;
}

.ed-highlight {
  padding: 0 0.06em;
  background: var(--accent);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */

.ed-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ed-btn:hover {
  color: var(--paper);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--paper), 5px 5px 0 2px var(--ink);
}
.ed-btn[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

.ed-btn--sm {
  min-height: 46px;
  padding: 0 20px;
  font-stretch: 115%;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.ed-btn--lg { min-height: 64px; padding: 0 28px; font-size: 24px; letter-spacing: 0.01em; }
.ed-btn--block {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  margin-top: 8px;
  padding: 0 24px;
  font-size: 24px;
}

.ed-arrow { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.ed-arrow path { fill: none; stroke: currentColor; stroke-width: 2.4px; stroke-linecap: square; }

/* ---------- Masthead (top bar, also used on privacy.php) ---------- */

.ed-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.ed-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.ed-nav { display: flex; align-items: center; gap: 30px; }
.ed-nav-link {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Hero ---------- */

.ed-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 10px 0;
  border-top: 2px solid var(--ink);
}

.ed-hero-title { margin: 0; padding: 28px 0 26px; border-top: 6px solid var(--ink); font-weight: 400; }
.ed-hero-title > span { display: block; }
.ed-hero-title .ed-display {
  font-size: clamp(60px, 12.4vw, 192px);
  line-height: 0.86;
  letter-spacing: -0.01em;
}
.ed-hero-title .ed-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(58px, 11.6vw, 180px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.ed-hero-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 56px;
  padding: 30px 0 76px;
  border-top: 2px solid var(--ink);
}
.ed-hero-lede { flex: 7 1 520px; margin: 0; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.38; }
.ed-hero-cta { flex: 5 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ed-hero-cta p { margin: 0; font-size: 18px; font-style: italic; line-height: 1.45; }

/* ---------- Marquee band ---------- */

.ed-marquee { overflow: hidden; padding: 20px 0; background: var(--ink); color: var(--paper); }
.ed-track { display: flex; width: max-content; animation: ed-marquee 36s linear infinite; }
.ed-marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.ed-marquee-word { padding: 0 28px; }
.ed-marquee-dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
@keyframes ed-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 01 Why paper ---------- */

.ed-why-title { font-size: clamp(52px, 8.4vw, 128px); letter-spacing: -0.005em; }

.ed-reasons {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
}
.ed-reason { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 2px solid var(--ink); }
.ed-reason h3 { font-weight: 800; font-size: 44px; line-height: 0.95; }
.ed-reason p { margin: 0; font-size: 19px; line-height: 1.55; }

/* ---------- 02 How it works ---------- */

.ed-steps {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px 32px;
}
.ed-step { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 2px solid var(--paper); }
.ed-step-num {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: 128px;
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 2px var(--paper);
}
.ed-step:last-child .ed-step-num { color: var(--accent); -webkit-text-stroke: 0; }
.ed-step h3 { font-weight: 800; font-size: 38px; line-height: 0.95; }
.ed-step p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }

/* ---------- 03 What we send ---------- */

.ed-send-intro { max-width: 34em; }

.ed-items { margin-top: 40px; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.ed-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 48px;
  padding: 22px 0 26px;
  border-bottom: 2px solid var(--ink);
}
.ed-item h3 { font-size: clamp(64px, 10.4vw, 160px); line-height: 0.84; }
.ed-item p { flex: 0 1 440px; margin: 0; padding-bottom: 8px; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.5; }
.ed-amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.02em;
}

/* ---------- 04 Free sample ---------- */

.ed-section.ed-sample > .ed-wrap { padding-bottom: 112px; }

.ed-sample-grid { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; }
.ed-sample-copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 24px; }
.ed-sample-copy h2 { font-size: clamp(56px, 8.8vw, 136px); line-height: 0.86; }
.ed-sample-lede { margin: 0; max-width: 26em; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.45; }
.ed-sample-note { margin: 0; max-width: 30em; font-size: 18px; font-style: italic; line-height: 1.5; }

.ed-card {
  flex: 1 1 520px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

.ed-form { display: flex; flex-direction: column; gap: 20px; }
.ed-field { display: flex; flex-direction: column; gap: 4px; }
.ed-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 20px 24px;
}
.ed-field input {
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
}
.ed-field input[aria-invalid="true"] { border-bottom-color: var(--error); }
.ed-error { color: var(--error); }
.ed-form-status { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--error); }
.ed-fineprint { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fine); }

/* Honeypot field, kept out of sight */
.ed-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* "It's in the post" message shown after sending */
.ed-sent { display: flex; flex-direction: column; gap: 18px; padding: 8px 0; }
.ed-sent h3 { font-size: clamp(56px, 6vw, 96px); line-height: 0.86; }
.ed-sent p { margin: 0; font-size: 20px; line-height: 1.5; }
.ed-link-btn {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ---------- Footer ---------- */

.ed-foot > .ed-wrap { padding-top: 72px; padding-bottom: 32px; }

.ed-foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px 48px;
  padding-top: 24px;
  border-top: 6px solid var(--paper);
}
.ed-foot-top p { flex: 1 1 320px; max-width: 30em; margin: 0; font-size: 20px; line-height: 1.45; color: var(--muted); }

.ed-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ed-foot-nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--paper); text-decoration: none; }
.ed-foot-nav a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }

.ed-foot-word {
  margin-top: 40px;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(88px, 25vw, 372px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--paper);
}

.ed-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px solid var(--paper);
  color: var(--muted);
}

/* ---------- Privacy page ---------- */

.ed-legal { padding-top: 72px; padding-bottom: 104px; }
.ed-legal-body { max-width: 46em; }
.ed-legal-date { padding-top: 12px; border-top: 6px solid var(--ink); }
.ed-legal-body h1 { margin: 32px 0; font-size: clamp(52px, 8.4vw, 112px); line-height: 0.88; }
.ed-legal-body h2 { margin: 48px 0 12px; font-size: 40px; line-height: 0.95; }
.ed-legal-body p { margin: 0 0 16px; font-size: 19px; line-height: 1.55; }

.ed-legal-foot { background: var(--ink); color: var(--muted); }
.ed-legal-foot > .ed-wrap {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.ed-legal-foot a, .ed-legal-foot a:hover { color: var(--paper); }

/* ---------- Responsive & motion ---------- */

@media (max-width: 760px) { .ed-hide-sm { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ed-track { animation: none; } }
