/* Wool Street. Tokens from brand/palette.md: cream, green, ink; orange is reserved for bad
   financial decisions and is deliberately absent from the site chrome. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --cream: #F5F0E6;
  --paper: #FFFDF8;
  --green: #1B4D3E;
  --green-deep: #143A2F;
  --ink: #1A1A1A;
  --muted: #5A5A55;
  --rule: #E2DACB;
  --accent: #E07A3F;
  --focus: #1B4D3E;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }

/* masthead */
.masthead { background: var(--green); color: var(--cream); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.wordmark { font-weight: 800; letter-spacing: 0.08em; font-size: 20px; color: var(--cream); text-decoration: none; }
.tagline { font-size: 15px; opacity: 0.85; }

/* hero */
.hero { background: var(--green); color: var(--cream); padding-block: 8px 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: end; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 24px 0 14px; text-wrap: balance; font-weight: 800; }
.hero p { margin: 0 0 24px; max-width: 34ch; font-size: 19px; opacity: 0.92; }
.hero img {
  width: 100%; max-width: 720px; justify-self: end; margin-bottom: -2px;
  /* The illustration's green is a shade off brand green and has a soft corner glow:
     fade its edges into the page instead of showing a box. */
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 62% 55%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 85% at 62% 55%, #000 60%, transparent 100%);
}
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 0.9fr 1.1fr; }
  .hero .copy { padding-bottom: 56px; }
}

/* sections */
main section { padding-block: 56px; }
main section + section { border-top: 1px solid var(--rule); }
h2 { font-size: 30px; line-height: 1.15; margin: 0 0 12px; text-wrap: balance; font-weight: 800; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin: 0 0 8px; }
.lede { max-width: 58ch; margin: 0 0 22px; }
.small { font-size: 14px; color: var(--muted); }

.grid-2 { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }

/* signup card */
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 26px; }
form { display: grid; gap: 14px; }
label.field { display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
input[type="email"] {
  font: inherit; font-size: 18px; padding: 12px 14px; border: 1.5px solid #C9C0AE; border-radius: 6px;
  background: #fff; color: var(--ink); width: 100%;
}
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer;
  padding: 13px 22px; border-radius: 6px; border: 0; text-decoration: none; text-align: center;
  background: var(--green); color: var(--cream);
}
.btn:hover { background: var(--green-deep); }
.btn.secondary { background: var(--ink); }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.status { min-height: 1.5em; font-size: 15px; margin: 0; }
.status.ok { color: var(--green); font-weight: 600; }
.status.err { color: #8A2B13; font-weight: 600; }

/* episode */
.episode { display: grid; gap: 18px; }
.episode .meta { font-size: 15px; color: var(--muted); margin: 0; }

/* footer */
footer { background: var(--ink); color: #D9D4C9; font-size: 14px; }
footer .wrap { padding-block: 32px; display: grid; gap: 14px; }
footer a { color: #F5F0E6; }
footer .disclaimer { max-width: 70ch; margin: 0; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }

/* simple pages */
.page { padding-block: 48px 64px; max-width: 68ch; }
.page h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 16px; font-weight: 800; }
.page h2 { font-size: 22px; margin: 28px 0 8px; }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s ease; }
}
