/* Every Single Moment - public site */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --ink: #17224D;
  --ink-soft: #46507A;
  --paper: #FFFFFF;
  --cloud: #EAF6FC;
  --line: #C6E1F0;
  --blue: #189BD8;
  --mint: #89DDCD;
  --sky: #CFEAFF;
  --sky-strong: #0E76B8;
  --sun: #FFDD55;
  --coral: #FF5E6C;
  --tangerine: #FF9F1C;

  --tint-coral: #FFD3D7;   --art-coral: #FF9AA2;
  --tint-sky: #CDEBF8;     --art-sky: #189BD8;
  --tint-sun: #FFEFA6;     --art-sun: #FFCB3D;
  --tint-meadow: #C9F1E8;  --art-meadow: #5CCDB8;
  --tint-grape: #DFD7FF;   --art-grape: #B9A9FF;
  --tint-tangerine: #FFDFB3; --art-tangerine: #FFB85C;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Atkinson", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cloud); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--sky-strong); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--coral); }
:focus-visible { outline: 3px solid var(--sky-strong); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 640; line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.wrap-read { width: min(100% - 2.5rem, 42rem); }
.wrap-wide { width: min(100% - 2.5rem, 56rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----- buttons and chips ----- */
.btn { display: inline-block; font: inherit; font-weight: 700; line-height: 1.2; color: #fff; background: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: .8rem 1.5rem; cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--coral); }
.btn:active { transform: none; box-shadow: none; }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { box-shadow: 4px 4px 0 var(--sun); }
.btn-small { padding: .5rem 1.1rem; font-size: 1rem; }

.chip { display: inline-block; font-size: .9rem; font-weight: 700; line-height: 1; padding: .42rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--tint-sky); }
.chip:hover { outline: 2px solid var(--ink); }
.chip-coral { background: var(--tint-coral); } .chip-sky { background: var(--tint-sky); } .chip-sun { background: var(--tint-sun); }
.chip-meadow { background: var(--tint-meadow); } .chip-grape { background: var(--tint-grape); } .chip-tangerine { background: var(--tint-tangerine); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }

/* ----- masthead ----- */
.masthead { background: linear-gradient(90deg, var(--sun) 0, var(--sun) max(19.5rem, calc(50% - 34rem + 19rem)), var(--mint) max(19.5rem, calc(50% - 34rem + 19rem))); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.mark { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 22%; }
.brand-name { white-space: nowrap; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 700; font-size: 1.3rem; line-height: 1; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 1.4rem; font-weight: 700; }
.nav a:not(.btn) { text-decoration: none; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--ink); }

/* ----- hero ----- */
.hero { background: var(--blue); padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; }
.hero::before { right: 0; bottom: 0; width: 5.5rem; height: 5.5rem; background: var(--mint); box-shadow: -6.25rem 2.75rem 0 -1.4rem var(--sun), -4.4rem -3.6rem 0 -1.9rem var(--sun); }
.hero::after { right: 6.25rem; bottom: 0; width: 2.75rem; height: 2.75rem; background: var(--mint); opacity: .9; }
.hero-grid { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.hero-when { font-weight: 700; font-size: 1.1rem; margin: 0 0 1rem; display: inline-block; background: var(--paper); border-radius: 999px; padding: .35rem 1rem; }
.hero-prompt { color: #fff; font-size: clamp(2.1rem, 5.2vw, 4rem); font-weight: 620; line-height: 1.05; min-height: 3.2em; transition: opacity .18s ease; }
.hero-prompt.is-swapping { opacity: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.hero-sub { margin: 0; font-weight: 700; color: var(--ink); }
.hero .btn:hover { box-shadow: 4px 4px 0 var(--sun); }
.hero-art { justify-self: center; width: min(100%, 22rem); }
.hero-logo { width: 100%; height: auto; overflow: visible; }
.hero-rays { transform-origin: 16000px 16000px; animation: turn 150s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

/* ----- sections ----- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-tight { padding-top: 0; }
.section-cloud { background: var(--paper); padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.75rem; }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 38rem; }
.more { margin: 2rem 0 0; }

/* ----- covers ----- */
.cover { border-radius: var(--r-lg); overflow: hidden; background: var(--paper); aspect-ratio: 16 / 10; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-small { aspect-ratio: 1; border-radius: var(--r-md); }
.cover-article { aspect-ratio: 16 / 9; margin-bottom: 2.5rem; }
.cover-art { position: relative; }
.cover-mark { position: absolute; width: 62%; height: auto; right: -9%; bottom: -24%; opacity: .92; }
.cover-small .cover-mark { width: 96%; right: -24%; bottom: -24%; }
.cover-coral { background: var(--art-coral); } .cover-sky { background: var(--art-sky); } .cover-sun { background: var(--art-sun); }
.cover-meadow { background: var(--art-meadow); } .cover-grape { background: var(--art-grape); } .cover-tangerine { background: var(--art-tangerine); }

/* ----- feature and rows ----- */
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.feature-cover, .row-cover { display: block; text-decoration: none; }
.feature-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: .9rem 0 .8rem; }
.feature-title a, .row-title a { text-decoration: none; }
.feature-title a:hover, .row-title a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; }
.feature-excerpt { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.row-top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.meta { font-size: .95rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .55rem; }
.meta-sep { width: .3rem; height: .3rem; border-radius: 50%; background: var(--tangerine); display: inline-block; }

.rows { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.5rem; align-items: center; padding-block: 1.5rem; border-bottom: 2px solid var(--line); }
.row:last-child { border-bottom-color: var(--ink); }
.row-title { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin: .55rem 0 .35rem; }
.row-excerpt { margin: 0; color: var(--ink-soft); max-width: 44rem; }

/* ----- topics ----- */
.topic-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.topic-card { display: block; height: 100%; padding: 1.4rem 1.5rem 1.5rem; border-radius: var(--r-md); text-decoration: none; border: 2px solid transparent; transition: transform .12s ease; }
.topic-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.topic-name { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 660; font-size: 1.45rem; line-height: 1.15; margin-bottom: .4rem; }
.topic-desc { display: block; font-size: 1rem; line-height: 1.45; }
.topic-coral { background: var(--tint-coral); } .topic-sky { background: var(--tint-sky); } .topic-sun { background: var(--tint-sun); }
.topic-meadow { background: var(--tint-meadow); } .topic-grape { background: var(--tint-grape); } .topic-tangerine { background: var(--tint-tangerine); }

/* ----- signup band ----- */
.band { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band-sun { background: var(--sun); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.band-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .75rem; }
.band-text { margin: 0; font-size: 1.15rem; max-width: 28rem; }
.signup-label { display: block; font-weight: 700; margin-bottom: .45rem; }
.signup-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.signup input[type="email"] { flex: 1 1 14rem; min-width: 0; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: .75rem 1.2rem; }
.signup input[type="email"]::placeholder { color: #7B84A6; }
.signup-note { font-size: .95rem; margin: .7rem 0 0; }
.band-sun .btn:hover { box-shadow: 4px 4px 0 var(--paper); }

/* ----- forms (contact, unsubscribe) ----- */
.form { display: grid; gap: 1.1rem; margin-block: 1.75rem 2rem; max-width: 34rem; }
.field { display: block; font-weight: 700; }
.field-hint { font-weight: 400; font-size: .95rem; color: var(--ink-soft); margin-left: .35rem; }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: .4rem; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: .7rem .9rem; }
.field textarea { resize: vertical; line-height: 1.5; }
.field-check { display: flex; align-items: flex-start; gap: .6rem; }
.field-check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; flex: none; accent-color: var(--ink); }
.form p { margin: 0; }
.form-error { background: var(--tint-coral); border: 2px solid var(--ink); border-radius: 14px; padding: .8rem 1rem; font-weight: 700; max-width: 34rem; }
.kind-notes { display: grid; gap: .6rem; }
.kind-note { background: var(--tint-sun); border-radius: 14px; padding: .9rem 1.1rem; font-size: 1rem; }
.kind-note[hidden] { display: none; }

/* ----- page heads ----- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-title { font-size: clamp(2.3rem, 5.5vw, 3.75rem); margin-bottom: 1rem; }
.title-mark { padding: 0 .35em; border-radius: .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; margin-left: -.2em; }
.title-coral { background: var(--tint-coral); } .title-sky { background: var(--tint-sky); } .title-sun { background: var(--tint-sun); }
.title-meadow { background: var(--tint-meadow); } .title-grape { background: var(--tint-grape); } .title-tangerine { background: var(--tint-tangerine); }
.crumb { font-weight: 700; margin-bottom: .75rem; }
.page-message { min-height: 50vh; }
.page-message .signup { margin: 1.5rem 0 2rem; }
.page-subscribe { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.page-subscribe .lede { color: var(--ink); margin-bottom: 1.75rem; }

/* ----- article ----- */
.article-head { padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.article-title { font-size: clamp(2.3rem, 5.5vw, 3.6rem); margin: 1.1rem 0 0; }
.article-lede { font-size: 1.35rem; line-height: 1.45; color: var(--ink-soft); margin: 1.25rem 0 0; }
.prose { font-size: 1.22rem; line-height: 1.7; }
.prose-page { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: 1.85rem; margin-top: 2em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -1.15em; top: .62em; width: .5em; height: .5em; border-radius: 50%; background: var(--coral); }
.prose ol li::marker { font-weight: 700; color: var(--sky-strong); }
.prose li + li { margin-top: .45em; }
.prose blockquote { margin-inline: 0; padding: 1.4rem 1.6rem; background: var(--tint-sun); border-radius: var(--r-md); font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 1.45rem; line-height: 1.35; font-weight: 520; }
.prose blockquote p + p { margin-top: .6em; }
.prose hr { border: 0; height: 2rem; margin-block: 2.2em; background: radial-gradient(circle, var(--tangerine) 0 .28rem, transparent .3rem) center / 1.6rem 100% repeat-x; width: 4.8rem; margin-inline: auto; }
.prose figure { margin-inline: 0; }
.prose figure img { border-radius: var(--r-md); width: 100%; height: auto; }
.prose figcaption { font-size: .98rem; color: var(--ink-soft); margin-top: .6rem; text-align: center; }
.prose a { font-weight: 600; }

.pass { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding: 1.4rem 1.6rem; background: var(--tint-meadow); border-radius: var(--r-md); }
.pass-text { margin: 0; font-weight: 700; flex: 1 1 16rem; }
.near { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 2rem clamp(2.5rem, 6vw, 4rem); }
.near-link { background: var(--paper); display: block; text-decoration: none; padding: 1.1rem 1.3rem; border: 2px solid var(--line); border-radius: var(--r-md); }
.near-link:hover { border-color: var(--ink); }
.near-newer { grid-column: 2; text-align: right; }
.near-label { display: block; font-size: .95rem; font-weight: 700; color: var(--ink-soft); }
.near-title { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 620; font-size: 1.2rem; line-height: 1.25; margin-top: .2rem; }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 2rem; }
.pager > :last-child { justify-self: end; }
.pager-count { color: var(--ink-soft); font-weight: 600; }

/* ----- footer ----- */
.footer { background: var(--ink); color: #fff; padding-block: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer a { text-decoration-color: transparent; }
.footer a:hover { text-decoration-color: var(--sun); }
.footer-note { margin: 1rem 0 0; max-width: 22rem; color: #C9D3F2; }
.footer-head { font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--sun); margin-bottom: .7rem; letter-spacing: 0; }
.footer li + li { margin-top: .4rem; }

/* ----- small screens ----- */
@media (max-width: 46rem) {
  body { font-size: 1.06rem; }
  .brand-name { font-size: .98rem; white-space: nowrap; }
  .brand { gap: .45rem; }
  .masthead .btn-small { padding: .4rem .75rem; font-size: .92rem; }
  .nav { font-size: .95rem; }
  .mark { width: 1.9rem; height: 1.9rem; }
  .nav { gap: .7rem; }
  .nav a[href="/about"] { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: 8.5rem; justify-self: start; }
  .hero::before { width: 3.5rem; height: 3.5rem; box-shadow: -4rem 1.75rem 0 -.9rem var(--sun); }
  .hero::after { display: none; }
  .masthead { background: linear-gradient(90deg, var(--sun) 0, var(--sun) 14.4rem, var(--mint) 14.4rem); }
  .hero-prompt { min-height: 4.3em; }
  .feature, .band-grid, .footer-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1rem; align-items: start; }
  .prose { font-size: 1.12rem; }
  .near { grid-template-columns: 1fr; }
  .near-newer { grid-column: 1; text-align: left; }
}
@media (max-width: 30rem) {
  .nav a[href="/articles"] { display: none; }
}
@media (max-width: 22rem) {
  .brand-name { font-size: .84rem; }
  .mark { width: 1.7rem; height: 1.7rem; }
  .masthead .btn-small { padding: .35rem .6rem; font-size: .85rem; }
  .masthead { background: linear-gradient(90deg, var(--sun) 0, var(--sun) 12.3rem, var(--mint) 12.3rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-rays { animation: none; }
  .btn, .topic-card, .hero-prompt { transition: none; }
}
@media print {
  .masthead, .footer, .band, .pass, .near, .hero-actions { display: none; }
}
