/* Self-hosted OFL fonts. No request leaves this site for type. */

@font-face {
  font-family: Epilogue;
  src: url("/fonts/epilogue-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

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

@font-face {
  font-family: Figtree;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --cream: #f6efe4;
  --ink: #1c2430;
  --soft: #534e48;
  --coral: #e26a3c;
  --coral-deep: #ba441e;
  --coral-hover: #a03c1a;
  --coral-ink: #ba441e;
  --sun: #f4c430;
  --teal: #2a9d8f;
  --teal-deep: #1c756b;
  --sky: #6ec8e3;
  --on-vivid: #1c2430;
  --card: #ffffff;
  --line: #e6eef2;
  --sage: #145e56;
  --display: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --word: Epilogue, "Avenir Next", "Segoe UI", sans-serif;
  --ui: Figtree, "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #ffffff;
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 3;
  padding: 0.55rem 0.8rem;
  background: var(--card);
  color: var(--ink);
  border-radius: 0.5rem;
}

.skip:focus {
  top: 0.75rem;
}

.shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  padding-block: 1.1rem 2.75rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--word);
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: auto;
  height: 3.6rem;
}

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

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
}

.nav a[aria-current="page"] {
  background: #fff;
  color: var(--coral-ink);
}

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 1.6rem 1.25rem;
  border-radius: 0;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(1.25rem, calc(50vw - 36rem));
  background: var(--sky);
  color: var(--on-vivid);
}

.hero-photo,
.scene-photo,
.llama-pair figure {
  margin: 0;
}

.hero-photo img,
.scene-photo img,
.llama-pair img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.15rem;
}

.scene-photo {
  margin-bottom: 1rem;
}

.llama-pair {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0.4rem;
}

.llama-pair figcaption {
  margin-top: 0.45rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
}

.hero-copy {
  display: grid;
  gap: 0.35rem;
}

.otis {
  width: min(100%, 16rem);
  height: auto;
  display: block;
}

.icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.55rem;
  border-radius: 0.8rem;
  color: var(--on-vivid);
}

.icon svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.icon.sun { background: var(--sun); }
.icon.teal { background: var(--teal); }
.icon.coral { background: var(--coral); color: var(--ink); }
.icon.sky { background: var(--sky); }

.band {
  margin-top: 0;
  padding: 2rem 1.25rem;
  border-radius: 0;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(1.25rem, calc(50vw - 36rem));
  color: var(--on-vivid);
}

.band-sun { background: var(--sun); }
.band-sky { background: var(--teal); }
.band-teal { background: var(--coral); }
.band h2 { margin-top: 0; }
.hero a,
.band a { color: var(--ink); }
.signup a,
.book-card a,
.cards a,
.points a,
.day a,
.prose a { color: var(--coral-deep); }
.hero .kicker,
.band .kicker,
.band .pill { color: var(--ink); }

.health-line {
  max-width: 40rem;
}

.subtitle {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.25;
}

.lawyer {
  color: var(--soft);
  font-size: 0.95rem;
}

.challenge {
  display: grid;
  gap: 1.25rem;
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--coral-ink);
  font-family: var(--word);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  text-wrap: balance;
}

.lede {
  max-width: 38rem;
  margin: 0.85rem 0 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.rule {
  width: 3rem;
  height: 3px;
  margin: 1rem 0 0;
  background: var(--coral);
  border: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--coral-deep);
  color: var(--white);
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.quiet {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

button:hover,
.button:hover {
  background: var(--coral-hover);
  color: var(--white);
}

.button.quiet:hover {
  background: var(--white);
  color: var(--coral-deep);
  box-shadow: inset 0 0 0 1.5px var(--coral-deep);
}

.layout {
  display: grid;
  gap: 1.25rem;
}

.panel,
.book-card,
.note-card,
.day,
.signup {
  background: var(--card);
  border: 1px solid rgba(28, 36, 48, 0.08);
  border-radius: 1.15rem;
  padding: 1.15rem 1.15rem 1.2rem;
}

.book-card {
  display: grid;
  gap: 1rem 1.5rem;
  align-items: center;
  border-top: 4px solid var(--coral);
}

.book-mark {
  width: 7.5rem;
  height: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--coral-ink);
  font-family: var(--word);
  font-size: 0.85rem;
  font-weight: 700;
}

.pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--coral);
}

h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.section {
  margin-top: 2.4rem;
}

.section > p,
.prose p,
.prose li {
  max-width: 40rem;
}

.points {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.points li,
.cards a,
.day {
  background: var(--white);
  border: 1px solid rgba(31, 42, 68, 0.08);
  border-radius: 1.15rem;
  box-shadow: 0 10px 24px rgba(31, 42, 68, 0.05);
}

.cards a:nth-child(3n + 1) { border-top: 4px solid var(--coral); }
.cards a:nth-child(3n + 2) { border-top: 4px solid var(--teal); }
.cards a:nth-child(3n) { border-top: 4px solid var(--sun); }
.points li:nth-child(1) { border-top: 4px solid var(--sun); }
.points li:nth-child(2) { border-top: 4px solid var(--teal); }
.points li:nth-child(3) { border-top: 4px solid var(--coral); }

.points li {
  padding: 0.95rem 1rem;
}

.points strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 560;
  margin-bottom: 0.2rem;
}

.cards {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.cards a {
  display: block;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

.cards a span,
.meta {
  color: var(--soft);
  font-size: 0.92rem;
}

.help-strip {
  margin-top: 2rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--line);
}

.help-strip p {
  margin: 0.3rem 0 0;
}

.prose h2 {
  margin-top: 1.8rem;
}

.prose ul,
.prose ol {
  max-width: 40rem;
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.practice {
  margin: 1.2rem 0;
  padding: 0.95rem 1rem;
  border-left: 3px solid var(--coral);
  background: #fff;
  border-radius: 0 0.8rem 0.8rem 0;
}

.sources {
  margin-top: 1.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.95rem;
}

.sources a {
  overflow-wrap: anywhere;
}

.chapter-list {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.chapter-list li {
  margin: 0.2rem 0;
}

.days {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 1.4rem;
}

.day p:last-child {
  margin-bottom: 0;
}

.photo-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 0;
}

.photo-slot {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 0.65rem;
  border: 1.5px dashed var(--coral-ink);
  border-radius: 0.9rem;
  background: var(--cream-deep);
  color: var(--coral-ink);
  font-family: var(--word);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.author-name {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 560;
}

.signup {
  position: relative;
}

.fields {
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field span,
.consent,
.fine,
.status {
  font-family: var(--ui);
}

input[type="email"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d9cbb8;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink);
  font: 1rem var(--ui);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.45;
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--coral-ink);
  flex-shrink: 0;
}

.fine,
.meta,
.sources {
  color: var(--soft);
}

.status.ok {
  color: var(--sage);
  font-weight: 650;
}

.status.err {
  color: var(--coral-ink);
  font-weight: 650;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.draft-note {
  margin: 0 0 1.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid #efc2ae;
  border-radius: 0.9rem;
  background: #fde8df;
}

.facts {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}

.facts div {
  display: grid;
  gap: 0.15rem;
}

.facts dt {
  color: var(--soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
}

.todo {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  background: #fff;
}

.help-numbers {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.help-numbers li {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.help-numbers strong {
  font-family: var(--word);
}

.site-footer {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.8rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.95rem;
}

.site-footer p,
.site-footer ul {
  margin: 0;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  padding: 0;
  list-style: none;
}

.powered {
  color: var(--ink);
  font-family: var(--word);
  font-weight: 650;
}

a {
  color: var(--coral-deep);
  text-underline-offset: 0.16em;
}

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

.hero a:hover,
.band a:hover {
  color: var(--ink);
}

.signup a:hover,
.book-card a:hover,
.cards a:hover,
.points a:hover,
.day a:hover,
.prose a:hover {
  color: var(--coral-hover);
}

.nav a:hover,
.brand:hover,
.cards a:hover h3 {
  text-decoration: underline;
}

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

@media (min-width: 800px) {
  .shell {
    width: min(100% - 4rem, 72rem);
    padding-top: 1.4rem;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero-photo {
    grid-column: 1 / -1;
  }

  .llama-pair {
    grid-template-columns: 1fr 1fr;
  }

  .challenge {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .challenge-intro {
    grid-column: 1;
  }

  .challenge .signup-wrap {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .challenge-days {
    grid-column: 1;
  }

  .layout.two {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

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

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

  .signup-wrap {
    position: sticky;
    top: 1rem;
  }
}

@media (max-width: 380px) {
  .photo-row {
    grid-template-columns: 1fr;
  }

  .photo-slot {
    width: 7.5rem;
  }
}

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