/* Warm family magazine. Fraunces Soft and Source Sans 3 are self-hosted (OFL). */

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

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
}

:root {
  --paper: #fbf4ea;
  --paper-2: #fffdf8;
  --ink: #2a211c;
  --ink-soft: #5c5148;
  --terracotta: #c4623a;
  --terracotta-deep: #9c3b2a;
  --terracotta-dark: #7d2e20;
  --mustard: #e0a31a;
  --mustard-deep: #8a6410;
  --teal: #3e8f8a;
  --teal-deep: #1f5c58;
  --rule: #eadfce;
  --notice: #fff6df;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", monospace;
  --shadow: 0 12px 28px rgba(70, 40, 20, 0.08);
  --radius: 1.35rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(42rem 28rem at 110% -4rem, rgba(224, 163, 26, 0.18), transparent 60%),
    radial-gradient(36rem 26rem at -12rem 18rem, rgba(62, 143, 138, 0.16), transparent 62%),
    radial-gradient(28rem 22rem at 80% 110%, rgba(196, 98, 58, 0.12), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}

::selection {
  background: #f3d2c2;
}

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

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

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

a:visited {
  color: #6e3144;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  z-index: 8;
}

.skip:focus {
  top: 0.5rem;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 244, 234, 0.94);
}

.top-rule {
  height: 0.5rem;
  background: linear-gradient(90deg, var(--terracotta) 0 34%, var(--mustard) 34% 67%, var(--teal) 67% 100%);
}

.wrap {
  width: min(74rem, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: center;
  padding: 0.75rem 0 0.85rem;
}

.brand {
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 100%;
}

.brand-name {
  display: inline-block;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  line-height: 0;
}

.brand-name:visited {
  color: inherit;
}

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

.tagline {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.35;
  max-width: 28rem;
}

body.home .tagline {
  display: none;
}

.section-nav {
  font-family: var(--sans);
}

.nav-toggle {
  display: none;
  list-style: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font: 700 1rem/1 var(--sans);
  cursor: pointer;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-bars {
  width: 1.05rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-close-label {
  display: none;
}

.nav-details[open] .nav-open-label {
  display: none;
}

.nav-details[open] .nav-close-label {
  display: inline;
}

.nav-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem;
}

.nav-panel a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.3rem 0.55rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
}

.nav-panel a:visited {
  color: var(--ink);
}

.nav-panel a::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--ink-soft);
  flex: none;
}

.nav-panel a[href="/kids/"]::before {
  background: var(--terracotta);
}

.nav-panel a[href="/family/"]::before {
  background: var(--mustard);
}

.nav-panel a[href="/home/"]::before {
  background: var(--teal);
}

.nav-panel a[href="/homeschool/"]::before {
  background: #b9a898;
}

.nav-panel a[href="/about/"]::before {
  background: var(--ink);
}

.nav-panel a:hover,
.nav-panel a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.85);
}

.nav-panel a.nav-side {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

main {
  position: relative;
  z-index: 1;
  padding: 1.4rem 0 2.4rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 620;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0.15rem 0 0.8rem;
  font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  max-width: 16em;
}

.home h1 {
  max-width: 11em;
  font-size: clamp(2.45rem, 6.2vw, 4.7rem);
  line-height: 1.02;
}

.home h1::before {
  content: "";
  display: block;
  width: 7.2rem;
  height: 0.42rem;
  margin: 0 0 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta) 0 33%, var(--mustard) 33% 66%, var(--teal) 66% 100%);
}

.article h1 {
  max-width: 16em;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

h2 {
  margin: 2rem 0 0.6rem;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

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

p,
ul,
ol {
  max-width: 40rem;
}

.dek {
  margin-top: 0;
  font-size: 1.28rem;
  line-height: 1.45;
  max-width: 36rem;
  color: var(--ink-soft);
}

.domain-notice {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 1.1rem;
  box-shadow: 5px 5px 0 #efd48a;
  padding: 0.95rem 1.05rem;
  font-weight: 700;
  max-width: 42rem;
}

.age-band-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin: 0 0 1.1rem;
  max-width: none;
}

.age-kicker,
.age-bands {
  margin: 0;
}

.age-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}

.age-bands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  list-style: none;
  max-width: none;
}

.age-chip {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #f8d9cc;
  color: #7a321f;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.meta-line,
.byline,
.kicker,
.hint,
.chart-value,
.section-nav,
.site-footer,
button,
.button,
.age-kicker {
  font-family: var(--sans);
}

.meta-line,
.byline {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 42rem;
}

.byline {
  margin-bottom: 0.2rem;
}

.standfirst {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.35;
  max-width: 38rem;
}

.crumbs {
  font-size: 0.95rem;
  margin: 0 0 1rem;
  max-width: 48rem;
}

.crumbs a {
  color: inherit;
}

.crumbs [aria-current="page"] {
  color: var(--ink-soft);
}

.hubs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 1.6rem 0 0.4rem;
  max-width: none;
}

.hub-card {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}

.hub-card:visited {
  color: inherit;
}

.hub-card[href="/kids/"] {
  background:
    radial-gradient(12rem 9rem at 100% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    #f6d7c6;
}

.hub-card[href="/family/"] {
  background:
    radial-gradient(10rem 8rem at 100% 0%, rgba(255, 255, 255, 0.75), transparent 70%),
    #f8ecc4;
}

.hub-card[href="/home/"] {
  background:
    radial-gradient(10rem 8rem at 100% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    #d7efec;
}

.hub-card:hover {
  transform: translateY(-2px);
}

.hub-card h2 {
  margin: 0.2rem 0;
  font-size: 1.85rem;
}

.hub-card p {
  margin: 0.35rem 0 0;
  max-width: 28rem;
}

.hub-index {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hub-card[href="/kids/"] .hub-index {
  color: var(--terracotta-deep);
}

.hub-card[href="/family/"] .hub-index {
  color: var(--mustard-deep);
}

.hub-card[href="/home/"] .hub-index {
  color: var(--teal-deep);
}

.side-hub {
  margin: 1.15rem 0 0.25rem;
  max-width: none;
}

.side-hub > h2 {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hub-card-secondary {
  background: transparent;
  box-shadow: none;
  border: 2px dashed #cbb9a6;
  border-radius: 1.1rem;
}

.hub-card-secondary h2 {
  font-size: 1.35rem;
}

.hub-card-secondary:hover {
  background: rgba(255, 253, 248, 0.7);
}

.guide-list,
.planned {
  list-style: none;
  padding: 0;
  max-width: 42rem;
}

.guide-list li,
.planned li {
  margin: 0 0 0.55rem;
  padding: 0.85rem 1rem;
  background: var(--paper-2);
  border-radius: 1rem;
  border-left: 5px solid var(--terracotta);
  box-shadow: var(--shadow);
}

.section-family .planned li,
.section-family .guide-list li {
  border-left-color: var(--mustard);
}

.section-home .planned li,
.section-home .guide-list li {
  border-left-color: var(--teal);
}

.section-homeschool .planned li,
.section-homeschool .guide-list li {
  border-left-color: #b9a898;
}

.guide-list h3 {
  margin: 0.15rem 0;
  font-size: 1.4rem;
}

.guide-list p,
.planned li {
  margin-top: 0.2rem;
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}

.empty-guides {
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.7);
  border-radius: 1rem;
  padding: 0.8rem 1rem;
}

.page-disclosure {
  background: var(--notice);
  border-radius: 1rem;
  border-left: 5px solid var(--mustard-deep);
  padding: 0.9rem 1rem;
}

.product-box {
  background: var(--paper-2);
  border: 2px solid var(--terracotta);
  border-radius: 1.4rem;
  box-shadow: 0 14px 0 rgba(156, 59, 42, 0.12);
  padding: 1.15rem 1.2rem 1.25rem;
  margin: 1.5rem 0;
  max-width: 40rem;
}

.product-box h3 {
  margin-top: 0;
  font-size: 1.55rem;
}

.product-box dl {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.45rem 0.75rem;
  align-items: center;
  margin: 0.7rem 0 0.9rem;
  max-width: none;
}

.product-box dt {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.product-box dd {
  margin: 0;
}

.market-note {
  margin: 0 0 0.8rem;
  font-size: 0.98rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: none;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  background: var(--terracotta-deep);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--terracotta-dark);
}

.button:visited,
button:visited {
  color: #fff;
}

.button:hover,
button:hover {
  background: var(--terracotta-dark);
}

.button-market {
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  padding-left: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.table-wrap {
  max-width: 48rem;
  overflow-x: auto;
  margin: 1.2rem 0;
  background: var(--paper-2);
  border-radius: 1rem;
  border: 1px solid var(--rule);
}

table {
  border-collapse: collapse;
  width: 100%;
  background: transparent;
}

caption {
  text-align: left;
  font-family: var(--serif);
  font-weight: 620;
  padding: 0.8rem 0.8rem 0.35rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f8efe3;
}

.chart {
  position: relative;
  max-width: 48rem;
  margin: 1.4rem 0;
  background: var(--paper-2);
  border-radius: 1rem;
  padding: 0.9rem 1rem 1rem;
}

.chart .table-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(7rem, 14rem) 1fr auto;
  gap: 0.55rem 0.8rem;
  align-items: center;
  margin: 0.45rem 0;
}

.chart-svg {
  width: 100%;
  height: 0.85rem;
  background: #efe4d4;
  border-radius: 999px;
  display: block;
}

.chart-svg rect {
  fill: var(--terracotta);
}

.chart-value {
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.faq-item {
  max-width: 40rem;
  margin: 0.8rem 0 1rem;
  background: var(--paper-2);
  border-radius: 1rem;
  padding: 0.85rem 1rem 0.3rem;
}

.related {
  margin-top: 2rem;
  padding-top: 0.4rem;
  max-width: 40rem;
}

.field {
  margin: 0 0 1rem;
  max-width: 28rem;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

input,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 0.8rem;
  background: #fff;
  color: inherit;
  font: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.hint {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0.35rem 0 0;
}

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

.draft-banner {
  background: #f8d9cc;
  border: 2px solid var(--terracotta-deep);
  border-radius: 1rem;
  padding: 0.75rem 0.9rem;
  font-weight: 700;
}

blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 4px solid var(--teal);
  color: var(--ink-soft);
  max-width: 40rem;
}

code {
  font-family: var(--mono);
  font-size: 0.95em;
}

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

/* A later stock photo can sit in this frame. Illustrations stay in CSS and SVG until then. */
.media-slot,
.hub-card img,
.article img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  padding: 1.6rem 0 2.4rem;
  background: #2a211c;
  color: #fbf4ea;
  border-radius: 2rem 2rem 0 0;
  font-size: 1rem;
}

.footer-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 620;
}

.footer-name a,
.footer-name a:visited {
  color: inherit;
  text-decoration: none;
}

.footer-name a:hover {
  text-decoration: underline;
}

.footer-tag,
.domain-footer,
.associate,
.copyright {
  max-width: 40rem;
}

.site-footer nav a,
.site-footer nav a:visited {
  display: inline-block;
  margin: 0 1rem 0.35rem 0;
  padding: 0.25rem 0;
  color: #f6d7a2;
}

.associate {
  font-weight: 700;
  color: #fff;
}

.copyright,
.footer-tag {
  color: #d9cbb8;
}

.domain-footer a,
.domain-footer a:visited {
  color: #f6d7a2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 860px) {
  .home .hubs {
    grid-template-columns: 1.35fr 1fr;
    grid-template-areas:
      "kids family"
      "kids home";
  }

  .home .hub-card[href="/kids/"] {
    grid-area: kids;
  }

  .home .hub-card[href="/family/"] {
    grid-area: family;
  }

  .home .hub-card[href="/home/"] {
    grid-area: home;
  }

  .home .hub-card[href="/kids/"] h2 {
    font-size: 2.4rem;
  }

  .home .side-hub .hub-card-secondary {
    display: grid;
    grid-template-columns: minmax(12rem, 18rem) 1fr;
    gap: 0.2rem 1.5rem;
    align-items: center;
  }

  .home .side-hub .hub-card-secondary p {
    margin: 0;
  }
}

@media (max-width: 859px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .wordmark {
    width: 100%;
  }

  .tagline {
    grid-column: 1 / -1;
  }

  .section-nav {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-details {
    position: relative;
  }

  .nav-details:not([open]) .nav-panel {
    display: none;
  }

  .nav-details[open] .nav-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(18.5rem, calc(100vw - 2rem));
    padding: 0.4rem;
    background: var(--paper-2);
    border-radius: 1.15rem;
    box-shadow: 0 18px 40px rgba(42, 33, 28, 0.16);
  }

  .nav-panel a {
    border-radius: 0.8rem;
    padding: 0.45rem 0.75rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .chart-row {
    grid-template-columns: 1fr auto;
  }

  .chart-label {
    grid-column: 1;
    grid-row: 1;
  }

  .chart-value {
    grid-column: 2;
    grid-row: 1;
  }

  .chart-svg {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .product-box dl {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }

  .product-box dt {
    margin-top: 0.35rem;
  }
}

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

  .hub-card:hover {
    transform: none;
  }
}

@media print {
  .top-rule,
  .skip,
  .section-nav,
  .site-footer nav,
  body::before,
  body::after {
    display: none;
  }

  body,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .button::after {
    content: " (" attr(href) ")";
    font-size: 0.8rem;
    word-break: break-all;
  }
}
