/* Base styles — shared across the publication */

  :root {
    --spring: #0a3f3f;
    --spring-deep: #062a2b;
    --spring-mid: #114e50;
    --spring-pale: #c8e8dd;
    --cream: #f5ecdd;
    --cream-warm: #fbe9c8;
    --coral: #ff6b4a;
    --coral-deep: #e04a2a;
    --mango: #ffb02e;
    --mango-deep: #d88f10;
    --ink: #072325;
    --fern: #3a8c67;
    --fern-bright: #5fc090;
    --rule: rgba(245, 236, 221, 0.18);
    --rule-strong: rgba(245, 236, 221, 0.45);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html, body {
    background: var(--spring);
    color: var(--cream);
    font-family: "Newsreader", "Iowan Old Style", Georgia, serif;
    font-size: 17.5px;
    line-height: 1.55;
    font-variation-settings: "opsz" 16;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 60% 40% at 12% 8%, rgba(95, 192, 144, 0.12), transparent 60%),
      radial-gradient(ellipse 50% 60% at 92% 80%, rgba(255, 107, 74, 0.08), transparent 55%),
      radial-gradient(ellipse 40% 30% at 50% 45%, rgba(255, 176, 46, 0.05), transparent 60%);
    z-index: 0;
  }

  .wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
    z-index: 1;
  }

  /* ===== Mono utility ===== */
  .mono {
    font-family: "Figtree", "Helvetica Neue", sans-serif;
    font-feature-settings: "tnum";
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 500;
  }

  /* ===== MASTHEAD ===== */
  .masthead {
    padding: 32px 0 18px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 32px;
  }
  .masthead-left, .masthead-right {
    color: var(--spring-pale);
    line-height: 1.7;
  }
  .masthead-left { font-family: "Figtree", sans-serif; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; opacity: 0.75; }
  .masthead-right {
    text-align: right;
    font-family: "Figtree", sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
  }
  .masthead-right .date { color: var(--mango); }
  .masthead-right a {
    color: var(--cream);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
  }
  .masthead-right a:hover { color: var(--mango); border-color: var(--mango); }

  .wordmark {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    color: var(--cream);
    line-height: 0.9;
    letter-spacing: -0.035em;
    text-align: center;
    font-size: clamp(42px, 5.5vw, 78px);
    white-space: nowrap;
  }
  .wordmark .my {
    font-variation-settings: "opsz" 96, "wdth" 75;
    color: var(--spring-pale);
    font-weight: 500;
  }
  .wordmark .west {
    font-family: "Caprasimo", serif;
    font-weight: 400;
    color: var(--coral);
    font-style: normal;
    margin: 0 0.06em;
  }
  .wordmark .volusia {
    font-variation-settings: "opsz" 96, "wdth" 125;
    color: var(--cream);
  }
  .wordmark a { color: inherit; text-decoration: none; }

  /* Double rule */
  .rule-double {
    border-top: 1px solid var(--rule-strong);
    border-bottom: 3px double var(--rule-strong);
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    color: var(--spring-pale);
    font-family: "Figtree", sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 22px;
  }
  .rule-single {
    border-top: 1px solid var(--rule-strong);
    margin-bottom: 22px;
  }
  .rule-double em {
    font-family: "Caprasimo", serif;
    font-style: normal;
    text-transform: none;
    color: var(--mango);
    letter-spacing: 0.02em;
    font-size: 14px;
  }
  .rule-double a {
    color: var(--cream);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
  }
  .rule-double a:hover { color: var(--mango); border-color: var(--mango); }


  /* ===== FOOTER (the Friday Letter) ===== */
  footer {
    background: var(--spring-deep);
    margin: 80px 0 0;
    padding: 96px 48px 20px;
    color: var(--cream);
    position: relative;
    overflow: hidden;
  }
  footer::before {
    content: "";
    position: absolute;
    top: -100px; left: -90px;
    width: 280px; height: 280px;
    background: var(--coral);
    border-radius: 50%;
    opacity: 0.07;
  }
  footer::after {
    content: "";
    position: absolute;
    bottom: -140px; right: -80px;
    width: 320px; height: 320px;
    background: var(--mango);
    border-radius: 50%;
    opacity: 0.06;
  }
  .foot-inner {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  .foot-letter {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--rule);
  }
  .foot-letter h2 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-variation-settings: "opsz" 96, "wdth" 88;
    font-size: clamp(46px, 5.5vw, 80px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--cream);
    margin-bottom: 22px;
    max-width: 14ch;
  }
  .foot-letter h2 em {
    font-family: "Caprasimo", serif;
    font-style: normal;
    color: var(--mango);
    font-weight: 400;
  }
  .foot-letter p {
    font-family: "Newsreader", serif;
    font-size: 17.5px;
    line-height: 1.55;
    color: var(--spring-pale);
    max-width: 40ch;
  }
  .foot-letter p b { color: var(--mango); font-weight: 600; }

  .check-inbox h1,
  .check-inbox h2 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-variation-settings: "opsz" 96, "wdth" 88;
    font-size: clamp(46px, 5.5vw, 80px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--cream);
    margin-bottom: 22px;
    max-width: 14ch;
  }
  .check-inbox h1 em,
  .check-inbox h2 em {
    font-family: "Caprasimo", serif;
    font-style: normal;
    color: var(--mango);
    font-weight: 400;
  }
  .check-inbox p {
    font-family: "Newsreader", serif;
    font-size: 17.5px;
    line-height: 1.55;
    color: var(--spring-pale);
    max-width: 40ch;
  }
  .check-inbox-standalone {
    padding: 56px 0 96px;
    max-width: 720px;
  }
  .check-inbox-standalone .foot-meta {
    margin-top: 32px;
  }
  .check-inbox-standalone .foot-meta a {
    color: var(--mango);
    border-bottom: 1px solid rgba(255, 176, 46, 0.4);
    text-decoration: none;
  }
  .check-inbox-standalone .foot-meta a:hover {
    border-bottom-color: var(--mango);
  }
  .check-inbox p b.check-inbox-email {
    color: var(--mango);
    font-weight: 700;
  }
  .check-inbox .foot-meta {
    margin-top: 14px;
  }

  /* Collapsible "find it in spam" disclosure under the check-inbox state. */
  .spam-help {
    margin-top: 22px;
    max-width: 46ch;
  }
  .spam-help summary {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--mango);
    cursor: pointer;
    list-style: none;
    display: inline-block;
    border-bottom: 1px solid rgba(255, 176, 46, 0.4);
    padding-bottom: 2px;
    transition: border-color 160ms ease-out;
  }
  .spam-help summary:hover {
    border-bottom-color: var(--mango);
  }
  .spam-help summary::-webkit-details-marker {
    display: none;
  }
  .spam-help[open] summary {
    margin-bottom: 16px;
  }
  .spam-help-body p {
    font-family: "Newsreader", serif;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--spring-pale);
    margin-bottom: 14px;
  }
  .spam-help-body p b {
    color: var(--mango);
    font-weight: 600;
    word-break: break-word;
  }
  /* Per-app list: each provider is its own block — label header, faint
     divider, and the step beneath — so the four don't read as one clump. */
  .spam-help-body dl {
    margin: 0;
  }
  .spam-help-body dt {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mango);
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
  }
  .spam-help-body dl > dt:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .spam-help-body dd {
    margin: 4px 0 0;
    font-family: "Newsreader", serif;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--spring-pale);
  }
  .spam-help-body em {
    font-style: normal;
    color: var(--cream);
    font-weight: 500;
  }
  /* Numbered "two things help" steps, shown above the per-app list. */
  .spam-help-step {
    padding-left: 2px;
  }
  .spam-help-step b:first-child {
    color: var(--mango);
  }
  /* Secondary toggle nested inside the disclosure for the app-mismatch case. */
  .spam-help-other {
    margin: 4px 0 14px;
  }
  .spam-help-other summary {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--spring-pale);
    cursor: pointer;
    list-style: none;
    display: inline-block;
    border-bottom: 1px dotted rgba(200, 232, 221, 0.4);
    padding-bottom: 1px;
  }
  .spam-help-other summary:hover {
    color: var(--cream);
    border-bottom-color: var(--cream);
  }
  .spam-help-other summary::-webkit-details-marker {
    display: none;
  }
  .spam-help-other[open] summary {
    margin-bottom: 12px;
  }
  .spam-help-body .foot-meta a {
    color: var(--mango);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 176, 46, 0.4);
  }
  .spam-help-body .foot-meta a:hover {
    border-bottom-color: var(--mango);
  }

  /* HTMX swap fade — newly added content fades in, removed content fades out. */
  .signup-block .check-inbox.htmx-added,
  .signup-block .htmx-swapping {
    opacity: 0;
  }
  .signup-block .check-inbox {
    transition: opacity 240ms ease-out;
    opacity: 1;
  }

  /* Animated dots on the "Sending..." state. */
  .check-inbox.sending .ellipsis {
    display: inline-block;
    margin-left: 2px;
  }
  .check-inbox.sending .ellipsis span {
    display: inline-block;
    color: var(--mango);
    opacity: 0;
    animation: dot-pulse 1.4s ease-in-out infinite both;
  }
  .check-inbox.sending .ellipsis span:nth-child(1) { animation-delay: 0s; }
  .check-inbox.sending .ellipsis span:nth-child(2) { animation-delay: 0.22s; }
  .check-inbox.sending .ellipsis span:nth-child(3) { animation-delay: 0.44s; }
  @keyframes dot-pulse {
    0%, 80%, 100% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
  }

  .signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
  }
  .foot-sub {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  /* Pull the "No password…" line up tight under the input pill (the form's
     16px gap + the base .foot-meta 8px top margin would otherwise leave 24px). */
  .signup-form .foot-meta { margin-top: -10px; }
  /* The 24px inset aligns the widget's left edge with the input + meta text,
     which sit 24px in from the pill border. No height is reserved: the widget
     renders `interaction-only`, so it stays invisible unless a reader turns
     out to need a real challenge, and a permanently empty 65px band under the
     form would be dead space on every page. Turnstile's before- and
     after-interactive callbacks add and drop `is-interactive`, which is the
     only moment the room is actually wanted. */
  .foot-turnstile { padding-left: 24px; }
  .foot-turnstile.is-interactive { min-height: 65px; }
  /* The challenge runs between the click and the POST, which is long enough
     for a button that still says "Subscribe" to read as broken. */
  .foot-sub button[aria-busy="true"] {
    background: var(--coral-deep);
    cursor: progress;
    opacity: 0.8;
  }
  .foot-sub button[aria-busy="true"]:hover { transform: none; }
  .foot-sub input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 0;
    color: var(--cream);
    font-family: "Newsreader", serif;
    font-size: 17px;
    font-style: italic;
    outline: none;
  }
  .foot-sub input::placeholder { color: var(--spring-pale); opacity: 0.55; }
  .foot-sub button {
    background: var(--coral);
    color: var(--cream);
    border: none;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: "Figtree", sans-serif;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
  }
  .foot-sub button:hover { background: var(--coral-deep); transform: translateY(-1px); }
  .foot-meta {
    font-family: "Figtree", sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--spring-pale);
    opacity: 0.65;
    margin-top: 8px;
    padding-left: 24px;
    font-weight: 500;
  }

  .foot-archive {
    padding: 56px 0 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    border-bottom: 1px solid var(--rule);
  }
  .foot-archive h3 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-variation-settings: "opsz" 72, "wdth" 95;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--cream);
    margin-bottom: 6px;
  }
  .foot-archive h3 em {
    font-family: "Caprasimo", serif;
    font-style: normal;
    color: var(--mango);
    font-weight: 400;
  }
  .foot-archive p {
    font-family: "Newsreader", serif;
    font-size: 16px;
    color: var(--spring-pale);
  }
  .foot-archive a {
    background: var(--cream);
    color: var(--spring-deep);
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 999px;
    font-family: "Figtree", sans-serif;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
  }
  .foot-archive a:hover { background: var(--mango); color: var(--spring-deep); }

  .colophon {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    color: var(--spring-pale);
    font-family: "Figtree", sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.65;
    font-weight: 500;
  }
  .colophon b { color: var(--mango); font-weight: 600; }
  .colophon a {
    color: var(--cream);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
  }
  .colophon a:hover { color: var(--mango); border-color: var(--mango); }


  /* ===== Subscribe landing (the print-QR destination) ===== */
  .subscribe-page {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 72px;
    align-items: center;
    padding: 64px 0 104px;
  }
  .subscribe-copy h1 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-variation-settings: "opsz" 96, "wdth" 88;
    font-size: clamp(48px, 6vw, 86px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--cream);
    margin-bottom: 24px;
    max-width: 12ch;
  }
  .subscribe-copy h1 em {
    font-family: "Caprasimo", serif;
    font-style: normal;
    color: var(--coral);
    font-weight: 400;
  }
  .subscribe-lede {
    font-family: "Newsreader", serif;
    font-size: 19px;
    line-height: 1.55;
    color: var(--spring-pale);
    max-width: 46ch;
  }
  .subscribe-lede b { color: var(--mango); font-weight: 600; }
  .subscribe-points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 46ch;
  }
  .subscribe-points li {
    font-family: "Newsreader", serif;
    font-size: 16.5px;
    line-height: 1.5;
    color: var(--spring-pale);
    padding-left: 26px;
    position: relative;
  }
  /* Coral tick before each point, baseline-aligned with the first line. */
  .subscribe-points li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--coral);
    font-weight: 700;
  }
  .subscribe-points li b { color: var(--cream); font-weight: 600; }

  /* Card-less, mirroring the footer's signup treatment — the form sits on the
     teal page so the pill spans full width and reads the same as the footer. */
  .subscribe-form-title {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-variation-settings: "opsz" 64, "wdth" 95;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--cream);
    margin-bottom: 22px;
  }
  .subscribe-form-title em {
    font-family: "Caprasimo", serif;
    font-style: normal;
    color: var(--mango);
    font-weight: 400;
  }
  /* The form pill should fill the card rather than cap at its footer width. */
  .subscribe-form .signup-form { max-width: 100%; }

  /* Phones: the desktop headline + lede stack into a wall above the form, so
     dial back the type and vertical rhythm to bring the signup nearer the
     fold. (The 960px shared block handles the single-column switch.) */
  @media (max-width: 560px) {
    .subscribe-page { gap: 26px; padding: 24px 0 60px; }
    .subscribe-copy h1 { font-size: 38px; margin-bottom: 16px; max-width: 16ch; }
    .subscribe-lede { font-size: 16.5px; line-height: 1.5; }
    .subscribe-points { margin-top: 20px; gap: 11px; }
    .subscribe-points li { font-size: 15.5px; padding-left: 22px; }
    .subscribe-form-title { font-size: 25px; margin-bottom: 18px; }
  }

  /* ===== Responsive (shared shell) ===== */
  @media (max-width: 960px) {
    .wrap { padding: 0 24px; }
    .subscribe-page { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 72px; }
    .subscribe-page > * { min-width: 0; }
    .masthead { grid-template-columns: 1fr; text-align: center; gap: 14px; }
    .masthead-left, .masthead-right { text-align: center; }
    .rule-double { flex-direction: column; gap: 6px; align-items: center; text-align: center; }
    .foot-letter { grid-template-columns: 1fr; gap: 32px; }
    .foot-letter > * { min-width: 0; }
    .foot-sub { max-width: 100%; }
    .foot-sub input { min-width: 0; }
    .foot-sub button { padding: 14px 18px; font-size: 11.5px; letter-spacing: 0.12em; }
    .foot-archive { grid-template-columns: 1fr; gap: 20px; }
    .colophon { flex-direction: column; gap: 8px; align-items: flex-start; }
    footer { margin: 60px 0 0; padding: 64px 24px 16px; }
  }
