:root {
  --bg: #f4efe6;
  --bg-raise: #fbf8f3;
  --ink: #1a1612;
  --muted: #4e4840;
  --line: #d8cfc2;
  --link: #9a3412;
  --button: #9a3412;
  --button-hover: #7c2a0f;
  --on-button: #fffaf6;
  --input-border: #8a7d6c;
  --placeholder-bg: #f3e6d4;
  --placeholder-ink: #6b3a12;
  --band-bg: #1a1612;
  --band-fg: #f4efe6;
  --band-muted: #d9cfc2;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Times New Roman", ui-serif, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 40rem;
  --wide: 72rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131210;
    --bg-raise: #1c1a17;
    --ink: #f3eee6;
    --muted: #c8bbaa;
    --line: #3a342c;
    --link: #e8b89a;
    --input-border: #9a8b78;
    --placeholder-bg: #2a2218;
    --placeholder-ink: #f0c9a4;
    --band-bg: #f3eee6;
    --band-fg: #1a1612;
    --band-muted: #4e4840;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  border-top: 4px solid var(--button);
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--button);
  color: var(--on-button);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  z-index: 80;
  background: var(--button);
  color: var(--on-button);
  text-decoration: none;
  padding: 0.7rem 1rem;
  min-height: 44px;
}

.skip:focus {
  transform: translateY(0.5rem);
}

.frame {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.prose {
  max-width: var(--measure);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.75rem;
  min-height: 4.25rem;
  padding-block: 0.35rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  order: 1;
  margin-right: auto;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.mark rect {
  fill: var(--ink);
}

.mark text {
  fill: var(--bg);
}

.nav {
  order: 3;
  flex: 1 0 100%;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

.header-cta {
  order: 2;
  flex: none;
  position: relative;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  background: var(--button);
  color: var(--on-button);
  border: 1px solid var(--button);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  text-align: center;
}

.button:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
  color: var(--on-button);
}

.button-small {
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
}

.hero {
  padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem);
}

.kicker {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker .num {
  color: var(--link);
  margin-right: 0.55rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.7rem, 8vw, 5.35rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero h1 .line {
  display: block;
}

.hero h1 .soft {
  font-style: italic;
  font-weight: 450;
}

.lede {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.6rem;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 1.35rem;
  max-width: 36rem;
}

.subscribe-form label {
  font-size: 0.92rem;
  font-weight: 650;
}

.subscribe-form input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 1rem;
  background: var(--bg-raise);
  color: var(--ink);
  border: 1px solid var(--input-border);
  border-radius: 999px;
  font-size: 1rem;
}

.subscribe-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.subscribe-form input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--bg-raise) inset;
}

.fine {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 36rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}

.section h2,
.page h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
}

.tagline {
  margin: 1.4rem 0 0.35rem;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--button);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.tagline p {
  margin: 0;
}

.tagline-source {
  margin: 0.4rem 0 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.placeholder-note {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem 0.35rem;
  border: 1px dashed var(--link);
  background: var(--placeholder-bg);
  max-width: var(--measure);
}

.placeholder-label {
  margin: 0 0 0.35rem;
  color: var(--placeholder-ink);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.placeholder-note p:last-child {
  color: var(--placeholder-ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--link);
  font-weight: 650;
  text-underline-offset: 0.2em;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.prose p a:not(.button):not(.text-link) {
  color: var(--link);
  font-weight: 650;
  text-underline-offset: 0.18em;
}

.section-cta {
  margin: 1.5rem 0 0;
}

.band {
  background: var(--band-bg);
  color: var(--band-fg);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.band .kicker {
  color: var(--band-muted);
}

.band h2 {
  margin: 0 0 0.75rem;
  max-width: 18em;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.band p {
  max-width: 34rem;
  margin-bottom: 0;
}

.band .button {
  margin-top: 1.4rem;
  background: var(--band-fg);
  color: var(--band-bg);
  border-color: var(--band-fg);
}

.band .button:hover {
  background: transparent;
  color: var(--band-fg);
  border-color: var(--band-fg);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: min(100%, var(--measure));
  margin: 1.75rem auto 0;
}

.card {
  margin: 0;
  padding: 1.2rem 1.15rem 1.3rem;
  background: var(--bg-raise);
  border: 1px solid var(--line);
}

.card .num {
  margin: 0 0 0.55rem;
  color: var(--link);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}

.card p:last-child {
  margin: 0;
  color: var(--muted);
}

.link-list {
  margin-top: 0.5rem;
  max-width: var(--measure);
}

.link-list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  min-height: 44px;
  padding: 0.85rem 0;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.link-list li:last-child a {
  border-bottom: 1px solid var(--line);
}

.link-list a:hover .link-name {
  color: var(--link);
}

.link-name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  letter-spacing: -0.02em;
}

.link-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.band-form .subscribe-form {
  margin-top: 1.35rem;
}

.band-form .subscribe-form label,
.band-form .fine {
  color: var(--band-muted);
}

.band-form .subscribe-form input {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--input-border);
}

.band-form .subscribe-form button {
  background: var(--button);
  color: var(--on-button);
  border-color: var(--button);
}

.band-form .subscribe-form button:hover {
  background: var(--button-hover);
  color: var(--on-button);
  border-color: var(--button-hover);
}

.page {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
}

.page h1 {
  margin-bottom: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 1.8rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.will-reveal {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .will-reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (min-width: 560px) {
  .subscribe-form {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .subscribe-form label {
    grid-column: 1 / -1;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 760px) {
  .frame {
    width: min(100% - 4rem, var(--wide));
  }

  .header-inner {
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .wordmark,
  .nav,
  .header-cta {
    order: 0;
  }

  .nav {
    flex: 1 0 auto;
  }

  .header-cta {
    margin-left: auto;
  }
}

@media (max-width: 359px) {
  .wordmark {
    font-size: 1rem;
    gap: 0.4rem;
  }

  .mark {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-color-scheme: dark) {
  .button {
    border-color: #e8b89a;
  }

  .button:hover {
    border-color: #e8b89a;
  }

  .band .button {
    border-color: var(--band-fg);
  }

  .band .button:hover {
    border-color: var(--band-fg);
  }

  .band-form .subscribe-form button {
    border-color: #e8b89a;
  }

  .band-form .subscribe-form button:hover {
    border-color: #e8b89a;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .will-reveal,
  .will-reveal:not(.is-in) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (forced-colors: active) {
  .button,
  .placeholder-note,
  .card {
    border: 1px solid ButtonText;
  }
}
