@font-face {
  font-family: "Lucas Hand";
  src: url("assets/KGPrimaryPenmanship.woff") format("woff");
  font-display: swap;
}

:root {
  --navy: #123a70;
  --navy-deep: #082e5e;
  --teal: #35afa5;
  --teal-soft: #dff3ee;
  --ivory: #fff9ed;
  --paper: #fffdf7;
  --gold: #d79c2d;
  --ink: #173554;
  --muted: #53697c;
  --line: rgba(18, 58, 112, .13);
  --shadow: 0 18px 55px rgba(18, 58, 112, .13);
  --display: "Lucas Hand", "Trebuchet MS", sans-serif;
  --body: "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 108px;
  padding: 8px clamp(24px, 5vw, 76px);
  display: grid;
  grid-template-columns: 155px minmax(420px, 1fr) 150px;
  align-items: center;
  gap: 24px;
  background: rgba(255, 249, 237, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  grid-column: 1;
  width: 128px;
  position: static;
  justify-self: start;
  align-self: center;
  filter: drop-shadow(0 8px 12px rgba(18,58,112,.08));
}
.main-nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 3vw, 48px);
  font-size: .94rem;
  font-weight: 700;
}
.main-nav a {
  position: relative;
  padding: 13px 2px 8px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 3px;
  border-radius: 9px;
  background: var(--teal);
  transition: .2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { left: 0; right: 0; }
.languages {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--teal);
  font-size: .78rem;
  letter-spacing: .08em;
}
.languages a { color: var(--muted); }
.menu-button { display: none; }

.hero {
  min-height: 740px;
  padding: 74px clamp(24px, 6vw, 100px) 82px;
  display: grid;
  grid-template-columns: minmax(320px, .88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(50px, 7vw, 120px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,249,237,.95) 0%, rgba(255,249,237,.9) 35%, rgba(255,249,237,.74) 64%, rgba(237,247,243,.76) 100%),
    url("assets/spread-7-web.webp") 72% 45% / cover no-repeat,
    radial-gradient(circle at 81% 13%, rgba(215,156,45,.12) 0 2px, transparent 3px),
    radial-gradient(circle at 73% 27%, rgba(53,175,165,.16) 0 2px, transparent 3px),
    linear-gradient(145deg, var(--ivory), #fffdf8 48%, #edf7f3);
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -5% -125px;
  height: 270px;
  z-index: -1;
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
  background: var(--teal-soft);
  transform: rotate(-2deg);
}
.hero::after {
  content: "✦";
  position: absolute;
  left: 4%;
  bottom: 13%;
  font-size: 28px;
  color: var(--gold);
  opacity: .65;
}
.hero-mist {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .42;
  background: linear-gradient(145deg, transparent 5%, #c8ddd6 65%, transparent);
}
.hero-mist-one { width: 420px; height: 120px; left: -110px; top: 45%; transform: rotate(-12deg); }
.hero-mist-two { width: 380px; height: 105px; right: -60px; top: 27%; transform: rotate(8deg); }
.eyebrow {
  margin: 0 0 14px;
  color: #a36c16;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.55vw, 1.55rem);
  letter-spacing: .02em;
}
h1, h2, h3 { margin-top: 0; font-family: var(--display); line-height: 1.05; }
h1 {
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(3.4rem, 5.3vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -.025em;
}
h1 em { color: var(--teal); font-style: normal; }
.hero-intro {
  max-width: 480px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.3vw, 1.25rem);
}
.button {
  min-width: 148px;
  min-height: 47px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
a.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18,58,112,.2); }
.button-primary { color: white; background: var(--navy); }
.button-muted { color: var(--navy); background: #eaf0f1; }
.availability {
  min-height: 47px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  color: #24796f;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .05em;
}
.hero-book {
  position: relative;
  min-height: 610px;
}
.thin-book {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: min(385px, 61%);
  transform: translateX(-50%) rotate(2.5deg);
  filter: drop-shadow(13px 24px 20px rgba(18,58,112,.22));
}
.thin-book::before {
  content: "";
  position: absolute;
  inset: 5px -5px -5px 5px;
  z-index: -1;
  border-radius: 2px;
  background: #e9e1cd;
  box-shadow: 2px 0 #cbbf9f;
}
.thin-book img { border-radius: 2px; }
.open-book {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 72px;
  width: min(760px, 112%);
  height: 350px;
  display: flex;
  transform: translateX(-50%) perspective(1000px) rotateX(4deg);
  filter: drop-shadow(0 22px 22px rgba(18,58,112,.2));
}
.open-book::after {
  content: "";
  position: absolute;
  top: 3%;
  bottom: 3%;
  left: 50%;
  width: 12px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(18,58,112,.18), rgba(255,255,255,.7), rgba(18,58,112,.18));
  border-radius: 50%;
}
.open-page {
  width: 50%;
  height: 100%;
  overflow: hidden;
  border: 5px solid #f8f1df;
  background: #fffaf0;
}
.open-page img { width: 100%; height: 100%; object-fit: cover; }
.open-page-left {
  transform: rotate(-3deg) skewY(-1deg);
  transform-origin: right center;
  border-radius: 8px 2px 8px 18px;
}
.open-page-right {
  transform: rotate(3deg) skewY(1deg);
  transform-origin: left center;
  border-radius: 2px 8px 18px 8px;
}
.book-note {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 0;
  width: min(520px, 90%);
  transform: translateX(-50%);
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 1.05rem;
}
.book-note span { color: var(--navy); font-weight: 800; }
.sparkle, .blossom { position: absolute; color: var(--gold); }
.sparkle-one { top: 5%; left: 7%; font-size: 30px; }
.sparkle-two { right: 8%; bottom: 20%; font-size: 24px; color: var(--teal); }
.blossom { color: #e8a9a0; opacity: .85; font-size: 29px; }
.blossom-one { top: 2%; right: -2%; }
.blossom-two { top: 13%; right: 3%; font-size: 18px; }

.books-section {
  padding: 96px clamp(24px, 6vw, 92px) 110px;
  position: relative;
  background:
    radial-gradient(circle at 8% 30%, rgba(53,175,165,.1), transparent 22%),
    var(--teal-soft);
}
.section-heading { margin-bottom: 52px; text-align: center; }
.section-heading h2,
.story-copy h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2.8rem, 4.1vw, 4.5rem);
  font-weight: 400;
}
.section-heading .eyebrow { color: var(--teal); }
.ornament { display: block; color: var(--gold); font-size: 20px; }
.book-grid {
  width: min(1180px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.book-card {
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(18,58,112,.08);
  border-radius: 25px;
  background: rgba(255,253,247,.92);
  box-shadow: var(--shadow);
  text-align: center;
}
.cover-wrap {
  height: 330px;
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.cover-wrap img {
  max-height: 100%;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 14px 24px rgba(18,58,112,.16);
}
.book-category {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.book-card h3 {
  min-height: 2.25em;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 1.85rem;
  font-weight: 400;
}
.book-card > p:not(.book-category) {
  flex: 1;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
}
.collection-cta {
  margin-top: 42px;
  display: flex;
  justify-content: center;
}
.collection-cta .button { min-width: 250px; }

.story-section {
  padding: 100px clamp(24px, 10vw, 160px);
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(360px, 1.25fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  background:
    linear-gradient(90deg, rgba(255,249,237,.97), rgba(255,253,247,.96)),
    repeating-linear-gradient(0deg, rgba(18,58,112,.025) 0 1px, transparent 1px 4px);
}
.lucas-portrait {
  width: min(390px, 100%);
  aspect-ratio: 1;
  margin: auto;
  overflow: hidden;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 13px var(--ivory), 0 0 0 15px var(--navy), var(--shadow);
}
.lucas-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateY(6%) scale(1.12);
}
.story-copy .eyebrow {
  color: var(--teal);
}
.story-copy > p:not(.eyebrow):not(.story-signoff) {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.12rem;
}
.story-signoff { color: var(--navy); font-weight: 900; }

.values {
  padding: 72px clamp(24px, 8vw, 130px) 84px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #eef8f4;
}
.values article { padding: 8px clamp(25px, 4vw, 65px); text-align: center; }
.values article + article { border-left: 1px solid rgba(53,175,165,.35); }
.value-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 2px solid var(--teal);
  border-radius: 50%;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 2.5rem;
}
.values h3 { margin-bottom: 9px; color: var(--teal); font-size: 1.8rem; }
.values p { max-width: 300px; margin: auto; color: var(--muted); font-size: 1rem; }

.site-footer {
  padding: 55px clamp(24px, 6vw, 92px) 20px;
  display: grid;
  grid-template-columns: 1.5fr .55fr .4fr;
  gap: 55px;
  align-items: center;
  color: white;
  background: var(--navy-deep);
  border-radius: 50% 50% 0 0 / 12% 12% 0 0;
}
.footer-brand { display: flex; align-items: center; gap: 24px; }
.footer-avatar {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  overflow: hidden;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 0 0 5px rgba(255,255,255,.08);
}
.footer-avatar img {
  width: 162%;
  max-width: none;
  transform: translate(-19.2%, -8.2%);
}
.footer-brand strong { display: grid; gap: 4px; font-family: var(--body); }
.footer-brand strong span { font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; }
.footer-brand strong small { color: #6ed6cf; font-size: 1rem; font-weight: 500; letter-spacing: .025em; }
.footer-brand p { max-width: 430px; margin: 10px 0 0; color: #cfdfeb; font-size: 1rem; line-height: 1.55; }
.site-footer nav { display: grid; gap: 6px; font-size: .86rem; }
.site-footer nav a:hover { color: var(--teal); }
.footer-mark { color: var(--gold); font-size: 4.2rem; text-align: center; }
.copyright {
  grid-column: 1 / -1;
  margin: 15px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: #bed0df;
  font-size: .72rem;
  text-align: center;
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: 105px 1fr 115px; }
  .brand { width: 88px; }
  .main-nav { gap: 20px; font-size: .84rem; }
  .hero { min-height: auto; grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-book { min-height: 535px; }
  .open-book { width: 112%; height: 300px; }
  .cover-wrap { height: 275px; }
  .book-card { padding-inline: 20px; }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 76px;
    grid-template-columns: 1fr auto;
    padding: 9px 20px;
  }
  .brand { grid-column: 1; width: 72px; position: static; }
  .menu-button {
    grid-column: 2;
    width: 44px;
    height: 44px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 10px;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
  }
  .menu-button span:not(.sr-only) { height: 2px; border-radius: 2px; background: white; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 24px 25px;
    background: var(--ivory);
    box-shadow: 0 15px 24px rgba(18,58,112,.12);
  }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 10px 0; }
  .languages { display: none; }
  .hero {
    padding: 95px 24px 78px;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy { display: grid; justify-items: center; }
  h1 { font-size: clamp(3.15rem, 15vw, 5.25rem); }
  .hero-book { margin-top: 15px; }
  .hero-book { min-height: 520px; }
  .thin-book { width: min(300px, 68%); transform: translateX(-50%) rotate(1.5deg); }
  .open-book { width: min(620px, 112%); height: 275px; bottom: 65px; }
  .books-section { padding: 78px 18px 85px; }
  .book-grid { grid-template-columns: 1fr; max-width: 420px; }
  .cover-wrap { height: 340px; }
  .story-section { padding: 86px 28px; grid-template-columns: 1fr; text-align: center; }
  .lucas-portrait { width: min(270px, 78vw); }
  .values { padding: 62px 26px; grid-template-columns: 1fr; gap: 42px; }
  .values article + article { padding-top: 42px; border-top: 1px solid rgba(53,175,165,.35); border-left: 0; }
  .site-footer {
    padding: 55px 28px 20px;
    grid-template-columns: 1fr;
    gap: 28px;
    border-radius: 45% 45% 0 0 / 5% 5% 0 0;
    text-align: center;
  }
  .footer-brand { flex-direction: column; }
  .footer-brand p { margin-inline: auto; }
  .footer-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

img{height:auto}

.apps-section {
  padding: 96px clamp(24px, 6vw, 92px) 108px;
  background: linear-gradient(140deg, #fffdf7 0%, #f0faf6 100%);
}
.apps-intro { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }
.apps-grid { width: min(1180px, 100%); margin: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.app-card { min-height: 305px; padding: 30px 23px 26px; display: flex; flex-direction: column; align-items: center; border: 1px solid rgba(18,58,112,.11); border-radius: 24px; background: rgba(255,255,255,.82); box-shadow: 0 12px 30px rgba(18,58,112,.08); text-align: center; }
.app-card-live { border: 2px solid var(--teal); background: #fff; box-shadow: 0 17px 37px rgba(18,58,112,.15); }
.app-symbol { width: 58px; height: 58px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 16px; color: white; background: var(--navy); font-size: 2rem; font-weight: 900; line-height: 1; }
.app-symbol.apple { font-size: 1.55rem; }.app-symbol.windows { font-size: 2.55rem; }
.app-card h3 { margin-bottom: 10px; color: var(--navy); font-size: 1.7rem; }
.app-card p { flex: 1; margin: 0 0 20px; color: var(--muted); font-size: .96rem; }
.store-soon { padding: 9px 12px; border-radius: 999px; color: #39746e; background: var(--teal-soft); font-size: .77rem; font-weight: 900; line-height: 1.2; }
@media (max-width: 980px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .apps-grid { grid-template-columns: 1fr; max-width: 400px; }.app-card{min-height:250px;} }
