/* Kids’ Books With Heart: coming-soon page. Colors and type match the main app
   (apps/web/app/globals.css on main). Light only, like the main app. */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/public-sans-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --cream: #fff9f0;
  --navy: #003366;
  --burgundy: #960721;
  --teal: #008c95;
  --teal-deep: #00727a;
  --teal-deeper: #005a60;
  --text: #333333;
  --text-secondary: #555555;
  --text-muted: #666666;
  --rule: #ece3d6;
  --burgundy-tint: #f8eaeb;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 5.5vw, 80px);
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: var(--teal-deep);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--burgundy);
}
a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.accent {
  color: var(--burgundy);
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

/* ---- Utility bar ---------------------------------------------------------- */
.utility {
  background: var(--teal-deep);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ---- Masthead -------------------------------------------------------------- */
.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 34px;
  padding-bottom: 26px;
  text-align: center;
}
.lockup {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
}
.mark {
  width: clamp(48px, 5.4vw, 76px);
  height: auto;
  flex-shrink: 0;
}
.wordmark {
  font-family: var(--serif);
  font-size: clamp(26px, 1rem + 3.4vw, 58px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.with {
  font-style: italic;
  font-weight: 400;
}
.heart {
  color: var(--burgundy);
}
.tagline {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rules {
  height: 7px;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(48px, 7vw, 88px);
  text-align: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 1.4rem + 5.6vw, 6rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.lede {
  max-width: 640px;
  font-family: var(--serif);
  font-size: clamp(19px, 1rem + 0.5vw, 22px);
  line-height: 1.5;
  text-wrap: pretty;
}
.formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ---- Standards ------------------------------------------------------------- */
.standards {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px 64px;
  padding-bottom: clamp(48px, 7vw, 88px);
}
.standards::before {
  content: '';
  grid-column: 1 / -1;
  border-top: 1px solid var(--navy);
  margin-bottom: clamp(16px, 3vw, 40px);
}
.standards-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.standards h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-wrap: balance;
}
.standards h2 em {
  font-style: italic;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: #ffffff;
  border-top: 4px solid var(--teal);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.card .badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: var(--teal);
}
.card-burgundy {
  border-top-color: var(--burgundy);
}
.card-burgundy .badge {
  background: var(--burgundy);
}
.card h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--navy);
}
.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---- Lawley note ----------------------------------------------------------- */
.lawley {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 40px);
  background: var(--burgundy-tint);
  border-radius: 10px;
}
.lawley-heart {
  flex-shrink: 0;
  margin-top: 4px;
}
.lawley div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  line-height: 1.6;
}
.lawley-title {
  font-family: var(--serif);
  font-size: clamp(22px, 1rem + 1vw, 28px);
  line-height: 1.25;
  font-weight: 500;
  color: var(--navy);
}
.lawley-title a {
  color: var(--burgundy);
  font-style: italic;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.lawley-title a:hover {
  color: var(--navy);
}

/* ---- Contact --------------------------------------------------------------- */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(56px, 7vw, 88px);
  text-align: center;
}
.contact h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 1rem + 1.2vw, 32px);
  font-weight: 500;
  color: var(--navy);
}
.contact p {
  max-width: 560px;
  color: var(--text-secondary);
}
.contact a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---- Footer ---------------------------------------------------------------- */
.footer {
  background: var(--teal-deep);
  color: #ffffff;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

/* ---- 404 ------------------------------------------------------------------- */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
  text-align: center;
}
.not-found h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 500;
  color: var(--navy);
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--burgundy);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  background: #7a0519;
  color: #ffffff;
}

/* ---- Small screens --------------------------------------------------------- */
@media (max-width: 1080px) {
  .standards {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .utility-date {
    display: none;
  }
  .tagline {
    font-size: 11px;
    letter-spacing: 0.14em;
  }
  .lawley {
    flex-direction: column;
    gap: 12px;
  }
}

@media (forced-colors: active) {
  .card,
  .lawley {
    border: 1px solid canvastext;
  }
}
