/* Loaves & Algorithms — self-hosted fonts, no third-party requests. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/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;
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/newsreader-italic-ampersand.woff2") format("woff2");
  unicode-range: U+0026;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/dm-sans-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;
}

:root {
  --sage: #34503F;
  --wheat: #EFD08F;
  --text: #253A2E;
  --gold: #A9792A;
  --cream: #F7F1E6;
  --muted: #5A6B5E;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 40rem;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sage);
}

a:hover {
  color: var(--text);
}

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

.wrap {
  width: min(100% - 2 * var(--space), var(--measure));
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: clamp(1.5rem, 5vw, 2.75rem) 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover,
.brand:focus-visible {
  color: inherit;
}

.brand img {
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  border-radius: 0.72rem;
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 5.4vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sage);
}

.amp {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
  padding-inline: 0.02em;
}

/* Main */
.site-main {
  flex: 1;
  padding: clamp(1.75rem, 4.5vw, 2.75rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

.tagline {
  margin: 0;
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 38rem;
}

/* Subscribe embed */
#beehiiv-embed {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  /* iframe is ~61px after the compact Beehiiv restyle; 5rem leaves a little room for font/size settle without a large gap */
  min-height: 5rem;
}

/* On small screens, give the embed the full viewport width. Beehiiv's
   "regular" layout uses 80px padding inside the iframe, so the extra
   pixels keep the email field and button usable. */
@media (max-width: 39.99rem) {
  #beehiiv-embed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

#beehiiv-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.subscribe-fallback {
  margin: 0;
  text-align: center;
}

.subscribe-fallback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border: 1.5px solid var(--sage);
  border-radius: 0.4rem;
  background: var(--sage);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}

.subscribe-fallback a:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--cream);
}

@media (min-width: 36rem) {
  .brand img {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0.82rem;
  }
}

/* What you get */
.what-you-get {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--wheat);
}

.what-you-get h2 {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--sage);
}

.offerings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .offerings {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.75rem;
  }
}

.offerings h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--sage);
}

.offerings p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
}
