/* Homepage only. Other pages keep publication.css. */

body.theme-publication .home {
  background: var(--gtw-paper);
  color: var(--gtw-ink);
}

body.theme-publication .home .pub-masthead {
  background: color-mix(in srgb, var(--home-cream) 68%, white);
  border-bottom: 0;
}

.home-wrap {
  width: min(38rem, calc(100% - 2rem));
  margin-inline: auto;
}

.home-wrap--wide {
  width: min(68rem, calc(100% - 1.5rem));
}

.home-hero {
  padding: 1.75rem 0 0.5rem;
  background: var(--home-cream);
  overflow-x: clip;
}

.home-kicker {
  margin: 0 0 0.85rem;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-terracotta);
}

.home-hero h1,
.home-band h2,
.home-pair h3 {
  font-family: Fraunces, "Iowan Old Style", Palatino, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  color: inherit;
}

body.theme-publication .home .home-hero h1 {
  margin: 0;
  max-width: 11em;
  font-size: clamp(2.35rem, 4vw, 3.55rem);
  line-height: 1.02;
  text-wrap: wrap;
}

.home-hero-accent {
  display: block;
  color: var(--home-terracotta);
}

body.theme-publication .home .home-hero-grid {
  width: min(68rem, calc(100% - 1.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(16rem, 0.88fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
}

body.theme-publication .home .home-hero-copy .home-kicker {
  margin: 0 0 0.7rem;
}

body.theme-publication .home .home-hero-copy .home-lede {
  max-width: 34rem;
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

body.theme-publication .home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.15rem 0 0;
}

body.theme-publication .home .home-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.45rem 1.05rem;
  border: 2px solid var(--gtw-terracotta);
  border-radius: var(--gtw-radius-action);
  background: var(--gtw-terracotta);
  color: var(--gtw-cream);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

body.theme-publication .home .home-hero-btn:hover {
  background: #7c2e25;
  border-color: #7c2e25;
  color: var(--gtw-cream);
}

body.theme-publication .home .home-hero-btn--quiet {
  background: transparent;
  border-color: var(--home-ink);
  color: var(--home-ink);
}

body.theme-publication .home .home-hero-btn--quiet:hover {
  background: var(--home-ink);
  color: var(--home-paper);
}

body.theme-publication .home .home-hero-btn:focus-visible {
  outline: 3px solid var(--home-ink);
  outline-offset: 3px;
  box-shadow: none;
}

.home-hero-board {
  position: relative;
  padding: 0.7rem 0.35rem 0.2rem;
}

.home-hero-board::before,
.home-hero-board::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.home-hero-board::before {
  width: 3.4rem;
  height: 3.4rem;
  top: 0;
  right: 0.15rem;
  border-radius: 0.85rem;
  background: #e7b08a;
}

.home-hero-board::after {
  width: 0.95rem;
  height: 0.95rem;
  left: 0.35rem;
  bottom: 0.7rem;
  border-radius: 999px;
  background: var(--home-terracotta);
}

.home-hero-sheet {
  position: relative;
  z-index: 1;
  padding: 1rem 1.05rem 0.9rem;
  border: 1px solid #cbb59d;
  border-left: 4px solid var(--home-terracotta);
  border-radius: 1rem;
  background: var(--home-paper);
  box-shadow: 0 14px 32px rgba(36, 24, 18, 0.07);
}

.home-hero-sheet-label,
.home-hero-note {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-terracotta);
}

body.theme-publication .home .home-hero-sheet ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

body.theme-publication .home .home-hero-sheet li,
.home-hero-result {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin: 0;
  padding: 0.55rem 0;
  border-top: 1px solid var(--home-line);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  color: var(--home-ink);
}

body.theme-publication .home .home-hero-sheet li + li {
  margin-top: 0;
}

.home-hero-result {
  font-weight: 600;
}

.home-hero-result strong {
  font-family: Fraunces, "Iowan Old Style", Palatino, serif;
  font-size: 1.85rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--home-terracotta);
}

.home-hero-note {
  margin-top: 0.35rem;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 500;
  color: var(--home-muted);
}

.home-lede,
.home-slot {
  max-width: 28rem;
  margin: 1.1rem 0 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  line-height: 1.45;
}

.home-band {
  padding: clamp(3.25rem, 7vw, 5.75rem) 0;
}

.home-band--cream {
  background: var(--home-cream);
}

.home-band--coffee {
  background: var(--home-coffee);
}

.home-band--sunset {
  background: var(--home-sunset);
}

.home-band--ink {
  background: var(--home-espresso);
  color: var(--home-paper);
  --pub-ink: var(--home-paper);
  --pub-link: var(--home-paper);
  --pub-link-hover: #e7b08a;
  --pub-canvas: var(--home-espresso);
  --pub-navy: var(--home-paper);
}

.home-band--terracotta {
  background: var(--home-terracotta);
  color: var(--home-paper);
  --pub-ink: var(--home-paper);
  --pub-link: var(--home-paper);
  --pub-canvas: var(--home-terracotta);
  --pub-navy: var(--home-paper);
}

.home-band h2 {
  margin: 0;
  max-width: 16ch;
  font-size: var(--gtw-type-display);
  line-height: 1.05;
}

body.theme-publication .home .home-helps,
body.theme-publication .home .home-preview ul,
body.theme-publication .home .home-cycle ol,
body.theme-publication .home .home-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.theme-publication .home .home-helps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
  border-top: 1px solid #d3bea8;
  counter-reset: none;
}

#home-helps.home-band {
  padding: clamp(2.4rem, 5vw, 3.75rem) 0;
}

#home-helps h2 {
  max-width: 10em;
}

.home-areas-top {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem 2.5rem;
  align-items: end;
}

body.theme-publication .home .home-areas-intro {
  max-width: 36rem;
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--home-ink);
}

body.theme-publication .home .home-helps > li {
  min-width: 0;
  margin: 0;
  padding: 1.25rem 1.25rem 0.15rem;
}

body.theme-publication .home .home-helps > li:first-child {
  padding-left: 0;
}

body.theme-publication .home .home-helps > li:last-child {
  padding-right: 0;
}

body.theme-publication .home .home-helps > li + li {
  margin-top: 0;
  border-left: 1px solid #d3bea8;
}

body.theme-publication .home .home-preview li + li,
body.theme-publication .home .home-cycle li + li {
  margin-top: 0;
}

body.theme-publication .home .home-helps h3 {
  margin: 0;
  font-family: Fraunces, "Iowan Old Style", Palatino, serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--home-ink);
}

.home-area-index {
  display: block;
  margin-bottom: 0.55rem;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--home-terracotta);
}

.home-area-index::after {
  content: "";
  display: block;
  width: 1.65rem;
  height: 2px;
  margin-top: 0.4rem;
  background: var(--home-terracotta);
}

body.theme-publication .home .home-helps p {
  margin: 0.75rem 0 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--home-ink);
}

body.theme-publication .home .home-area-link {
  display: inline-block;
  margin-top: 0.95rem;
  color: var(--home-terracotta);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

body.theme-publication .home .home-area-link:hover {
  color: #7c2e25;
}

body.theme-publication .home .home-area-link:focus-visible {
  outline: 3px solid var(--home-ink);
  outline-offset: 3px;
  box-shadow: none;
}

.home-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
  grid-template-areas: "copy preview";
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.home-feature--flip {
  grid-template-areas: "preview copy";
}

.home-feature-copy {
  grid-area: copy;
  max-width: 34rem;
}

.home-feature-copy p,
.home-pair-item p,
.home-link-list {
  margin: 1rem 0 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

.home-text-link {
  color: inherit;
  text-underline-offset: 0.18em;
}

.home-band--ink .home-kicker,
.home-band--terracotta .home-kicker {
  color: #e7b08a;
}

.home-preview,
.home-cycle {
  grid-area: preview;
  margin: 0;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--home-paper);
  color: var(--home-ink);
  box-shadow: 0 18px 40px rgba(36, 24, 18, 0.08);
}

.home-band--ink .home-preview,
.home-band--ink .home-cycle {
  background: #f3e6d4;
  box-shadow: none;
}

.home-preview-kicker {
  margin: 0 0 0.9rem;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-terracotta);
}

.home-preview ul,
.home-cycle ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-preview li,
.home-preview-out {
  display: grid;
  grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  padding: 0.7rem 0;
  border-top: 1px solid var(--home-line);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.home-preview-out {
  font-weight: 600;
}

.home-track {
  display: block;
  height: 0.55rem;
  border-radius: 999px;
  background: #ead9c4;
}

.home-track--out {
  background: #e7b08a;
}

.home-section-lead {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.home-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.home-pair h3 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  line-height: 1.1;
}

.home-pair .home-preview {
  margin-top: 1.25rem;
}

.home-link-list {
  padding: 0;
  list-style: none;
}

.home-link-list li + li {
  margin-top: 0.45rem;
}

.home-openings-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 2rem;
  margin: 1.25rem 0 1.5rem;
}

.home-openings-list li + li {
  margin-top: 0;
}

@media (min-width: 720px) {
  .home-openings-list {
    grid-template-columns: 1fr 1fr;
  }
}

.home-cycle ol {
  display: grid;
  gap: 0.7rem;
}

.home-cycle li {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  background: #fffaf3;
  font-family: Fraunces, "Iowan Old Style", Palatino, serif;
  font-size: 1.55rem;
}

.home-cycle li:nth-child(2) {
  background: #e7b08a;
}

.home-cta {
  text-align: left;
}

.home-cta h2 {
  max-width: none;
}

body.theme-publication .home .home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.25rem;
  padding: 0.55rem 1.2rem;
  border: 2px solid var(--home-paper);
  border-radius: 999px;
  background: var(--home-paper);
  color: var(--home-ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

body.theme-publication .home .home-btn:hover {
  background: transparent;
  color: var(--home-paper);
}

@media (max-width: 800px) {
  body.theme-publication .home .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-board {
    max-width: 28rem;
  }

  .home-areas-top,
  body.theme-publication .home .home-helps {
    grid-template-columns: 1fr;
  }

  .home-areas-top {
    gap: 0.75rem;
    align-items: start;
  }

  body.theme-publication .home .home-helps {
    border-top: 0;
  }

  body.theme-publication .home .home-helps > li,
  body.theme-publication .home .home-helps > li:first-child,
  body.theme-publication .home .home-helps > li:last-child,
  body.theme-publication .home .home-helps > li + li {
    padding: 1.1rem 0 0.2rem;
    border-left: 0;
    border-top: 1px solid #d3bea8;
  }

  .home-feature,
  .home-feature--flip {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "preview";
  }

  .home-preview,
  .home-cycle {
    max-width: 28rem;
  }

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

@media (max-width: 640px) {
  .home-wrap,
  .home-wrap--wide {
    width: min(100% - 1.5rem, 40rem);
  }

  .home-band {
    padding: 2.75rem 0;
  }

  .home-hero {
    padding: 1.35rem 0 1.75rem;
  }

  body.theme-publication .home .home-hero h1 {
    font-size: clamp(2.15rem, 9vw, 2.7rem);
  }

  body.theme-publication .home .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.theme-publication .home .home-hero-btn {
    width: 100%;
  }

  .home-hero-board {
    max-width: 28rem;
    padding-inline: 0.15rem;
  }

  .home-lede,
  .home-slot {
    font-size: 1.05rem;
  }

  .home-preview li,
  .home-preview-out {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-btn {
    transition: none;
  }
}
