@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-normal-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-italic-400.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/InterTight-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f2f4f7;
  --ink: #101317;
  --soft: #424a54;
  --muted: #6b7480;
  --line: #e3e7ec;
  --accent: #2f55d4;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
section[id] { scroll-margin-top: 72px; }
a { color: inherit; }
em { font-style: italic; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, .brand, .card-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}
h1 em, h2 em, .brand em { color: var(--accent); }

.eyebrow, .tag {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
}
.brand { font-size: 26px; line-height: 1; text-decoration: none; }
.nav nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--soft); }
.nav nav a:hover { color: var(--ink); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--surface); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(32px, 6vw, 88px) var(--gutter) clamp(56px, 8vw, 120px);
  max-width: 1440px;
  margin: 0 auto;
}
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 7rem);
  line-height: 0.95;
}
.lede { margin: 28px 0 0; max-width: 46ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--soft); }
.hero-img {
  margin: 0;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Feature: children's book */
.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) var(--gutter);
}
.feature-img {
  display: block;
  padding: clamp(20px, 4vw, 56px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
}
.feature-img img {
  border-radius: 8px;
  box-shadow: 0 30px 60px -30px rgba(16, 19, 23, 0.45);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.feature-img:hover img { transform: translateY(-6px) rotate(-1deg); }
.feature h2, .section-head h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
}
.feature-copy p:not(.eyebrow) { max-width: 48ch; color: var(--soft); margin: 20px 0 30px; }

/* Guides */
.guides {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 120px) var(--gutter);
}
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p:not(.eyebrow) { color: var(--soft); margin: 18px 0 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 212px), 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(16, 19, 23, 0.5); }
.card:hover img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; background: var(--surface); position: relative; }
.tag { margin: 0; font-size: 11px; }
.card-title { font-size: 28px; line-height: 1.05; }
.card-link { margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--accent); }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.foot nav { display: flex; gap: 24px; }
.foot nav a { text-decoration: none; color: var(--soft); }
.foot nav a:hover { color: var(--ink); }
.muted { color: var(--muted); }

@media (max-width: 860px) {
  .hero, .feature { grid-template-columns: 1fr; }
  .hero-img { order: -1; aspect-ratio: 5 / 4; }
  .nav nav a:not(.nav-ig) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
