/* Cozy Amore. Loaded only by /cozyamore, and scoped to body.page-cozy. */

.page-cozy {
  /* Re-point the shared tokens so the shared header, footer and sections follow the app. */
  --serif: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --sans: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --beige: #faf7f2;
  --ivory: #faf7f2;
  --white: #ffffff;
  --ink: #2e2723;
  --ink-soft: #5f544b;
  --teal: #2e2723;
  --forest: #2e2723;
  --gold: #c0705a;
  --gold-deep: #5f544b;
  --parchment: #e8e1d8;
  --sage: #94877b;

  /* App palette. Terracotta and muted are under 4.5:1 on the page background,
     so they are for large numerals and marks only, never small text. */
  --cozy-accent: #c0705a;
  --cozy-accent-soft: #f3e2da;
  --cozy-muted: #94877b;
  --cozy-line: #e8e1d8;

  font-weight: 600;
  background: #faf7f2;
}

.page-cozy [id] {
  scroll-margin-top: var(--header-h);
}

/* Nunito is loaded upright, from 600 to 900. */

.page-cozy .brand__name {
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
}

.page-cozy .nav a {
  font-weight: 700;
}

.page-cozy .mobile-nav a {
  font-weight: 800;
}

.page-cozy .eyebrow {
  font-weight: 800;
  letter-spacing: 0.16em;
}

.page-cozy .prose {
  font-weight: 600;
}

.page-cozy .section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.page-cozy .section__intro h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.page-cozy h3 {
  margin: 0;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Hero */

.cozy-hero {
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem)) 0 clamp(2rem, 5vw, 3.5rem);
}

.cozy-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.cozy-hero__icon {
  order: 2;
  width: 100%;
  height: auto;
  border-radius: 22%;
  border: 1px solid var(--cozy-line);
}

.cozy-hero h1 {
  font-weight: 900;
  font-size: clamp(3.1rem, 8vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.cozy-hero__subtitle {
  margin-top: 0.7rem;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--ink-soft);
}

.cozy-hero__line {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  line-height: 1.5;
}

.cozy-stores {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.55rem 1rem;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.4;
  background: var(--cozy-accent-soft);
  border-radius: 12px;
}

.cozy-hero__devices {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.cozy-pen-link {
  display: block;
  width: fit-content;
  margin-top: 1.75rem;
  font-weight: 800;
  font-size: 1.08rem;
  text-decoration: none;
}

.cozy-pen-link__line {
  width: 100%;
  height: 8px;
  margin-top: 0.1rem;
  overflow: visible;
}

/* Books */

.cozy-books {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 2.5rem;
}

.cozy-book--home {
  --book: #f5d6c6;
}

.cozy-book--fall {
  --book: #f5e5ad;
}

.cozy-book--christmas {
  --book: #a8b5a0;
}

.cozy-book {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: #ffffff;
  border: 1px solid var(--cozy-line);
  border-radius: 20px;
}

.cozy-book__cover {
  position: relative;
  width: 100%;
  margin-bottom: 1.15rem;
}

.cozy-book__cover img {
  width: 100%;
  height: auto;
}

/* Sits across the cover's top-left corner, at the angle the app uses. */
.cozy-book__tape {
  position: absolute;
  z-index: 1;
  top: 0.45rem;
  left: -1.05rem;
  width: 5.25rem;
  height: 1.48rem;
  transform: rotate(-28deg);
  pointer-events: none;
}

.cozy-book p {
  margin: 0.35rem 0 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.cozy-book__pages {
  margin-top: auto;
  padding: 0.15rem 0.65rem;
  font-weight: 800;
  font-size: 0.82rem;
  background: var(--book);
  border-radius: 999px;
}

/* How it works */

.cozy-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
  padding-block: 1.75rem;
  border-block: 1px solid var(--cozy-line);
}

.cozy-steps__num {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--cozy-accent);
}

.cozy-steps p {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.cozy-features,
.cozy-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.cozy-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cozy-pair {
  margin-top: 2.5rem;
}

.cozy-card {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: #ffffff;
  border: 1px solid var(--cozy-line);
  border-radius: 20px;
}

.cozy-card p {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* For parents */

.cozy-parents {
  background: var(--cozy-accent-soft);
}

.page-cozy .cozy-parents .prose {
  color: var(--ink);
}

.cozy-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1rem);
  margin-top: 2.5rem;
}

.cozy-facts li {
  padding: 1.25rem 1.4rem;
  background: #ffffff;
  border-radius: 16px;
}

.page-cozy .cozy-facts h3 {
  font-size: 1.12rem;
}

.cozy-facts h3::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.55rem;
  vertical-align: 0.1em;
  background: var(--cozy-accent);
  border-radius: 50%;
}

.cozy-facts p {
  margin-top: 0.3rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.cozy-facts__wide {
  grid-column: 1 / -1;
}

/* Studio, in this page's light palette */

.page-cozy .section--studio {
  background: #faf7f2;
  color: var(--ink);
}

.page-cozy .studio__mark {
  width: 4.5rem;
  margin-bottom: 1rem;
  filter: none;
}

.page-cozy .section--studio .studio__name {
  font-style: normal;
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  color: var(--ink);
}

.page-cozy .studio__line {
  margin-top: 0.6rem;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
}

/* Footer */

.page-cozy .site-footer {
  border-top-color: var(--cozy-line);
}

.page-cozy .footer__nav a {
  font-weight: 700;
}

.page-cozy .footer__nav a[aria-current="page"] {
  color: var(--ink);
}

.page-cozy .footer__copy {
  color: var(--ink-soft);
}

/* Tablet and phone */

@media (max-width: 860px) {
  .cozy-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cozy-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .cozy-hero__icon {
    order: 0;
    width: 7.5rem;
  }

  .cozy-books,
  .cozy-steps,
  .cozy-features,
  .cozy-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .cozy-book {
    max-width: 26rem;
  }

  .cozy-steps li {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: 0.5rem;
    align-items: baseline;
  }

  .cozy-steps__num {
    grid-row: 1 / span 2;
    margin-bottom: 0;
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .cozy-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Shared rules in styles.css already shorten transitions and show .reveal content. */
@media (prefers-reduced-motion: reduce) {
  .page-cozy .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
