:root {
  color-scheme: light;
  --cream: #f8f5ed;
  --paper: #fefcf7;
  --forest: #18382d;
  --forest-dark: #122b23;
  --ink: #20372d;
  --muted: #49594e;
  --border: #dbdbce;
  --gold: #edc788;
  --heading: Georgia, 'Times New Roman', serif;
  --body: 'Segoe UI', system-ui, sans-serif;
  --page-width: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.6 var(--body); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.08; }
h2 { font-size: clamp(2.3rem, 4.5vw, 4rem); font-weight: 500; letter-spacing: -.055em; }
h3 { font-size: 1.6rem; font-weight: 500; letter-spacing: -.035em; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #a05329; outline-offset: 4px; }
.hero :focus-visible, .community :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.container { width: min(var(--page-width), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: clamp(3rem, 6vw, 5.25rem); }
[id] { scroll-margin-top: 1.25rem; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  transform: translateY(calc(-100% - .75rem));
  padding: .6rem 1rem;
  background: var(--paper);
  border-radius: .35rem;
  font-weight: 650;
}
.skip-link:focus { transform: none; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header { background: var(--cream); }
.header-inner { display: flex; min-height: 5.25rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; flex: none; gap: .7rem; text-decoration: none; }
.brand-mark { display: grid; width: 2.65rem; aspect-ratio: 1; place-items: center; border-radius: 50%; color: var(--cream); background: var(--forest); }
.brand-mark .icon { width: 1.65rem; height: 1.65rem; }
.brand-type { display: flex; flex-direction: column; gap: .25rem; line-height: 1; }
.brand-type strong { font: 600 1.65rem/.95 var(--heading); letter-spacing: -.05em; }
.brand-type > span { color: var(--muted); font-size: .64rem; letter-spacing: .14em; font-weight: 750; text-transform: uppercase; }
.primary-nav, .site-footer nav { display: flex; align-items: center; gap: clamp(.9rem, 1.65vw, 1.65rem); }
.primary-nav a, .site-footer nav a { font-size: .92rem; text-decoration: none; font-weight: 650; }
.primary-nav a:hover, .site-footer nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.header-contact { padding: .48rem .95rem; border: 1px solid #87938a; border-radius: .3rem; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  border: 1px solid #87938a;
  border-radius: .3rem;
  padding: .45rem .65rem;
  background: transparent;
  color: var(--forest);
  font-weight: 650;
  cursor: pointer;
}
.menu-toggle .icon { width: 1.25rem; height: 1.25rem; }

.hero { background: var(--forest-dark); color: var(--cream); }
.hero-image { display: block; max-width: 2033px; margin-inline: auto; }
.hero-image img { width: 100%; height: auto; }
.hero-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem 2rem;
  padding-block: clamp(1.7rem, 3.5vw, 2.85rem);
}
.eyebrow { font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .15em; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); font-weight: 500; line-height: 1; letter-spacing: -.065em; }
.hero h1 em { color: var(--gold); font-weight: inherit; white-space: nowrap; }
.hero-intro { max-width: 40rem; margin-top: .8rem; color: #e4e9df; font-size: clamp(1rem, 1.25vw, 1.125rem); }
.hero-copy > .button { flex: none; margin-top: 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.8rem;
  padding: .57rem 1rem;
  border: 1px solid transparent;
  border-radius: .32rem;
  font-size: .94rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}
.button-gold { margin-top: 1.55rem; background: var(--gold); color: #263326; }
.button-gold:hover { background: #f6d79e; }

.section-heading { margin-bottom: 1.85rem; }
.section-heading p, .coloring-intro > p, .about-copy > p { margin-top: .65rem; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.moss { --tint: #e3ead7; --accent: #324b35; }
.ochre { --tint: #f3e8ce; --accent: #624b24; }
.clay { --tint: #f3e1d7; --accent: #713c2b; }
.fern { --tint: #e0eae4; --accent: #314d42; }
.category-card {
  display: grid;
  align-content: start;
  gap: .48rem;
  padding: clamp(.8rem, 1.8vw, 1.4rem);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: .48rem;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.category-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px #20372d12; }
.category-card:hover h3 { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.category-icon { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: .38rem; background: var(--tint); color: var(--accent); }
.category-icon .icon { width: 1.65rem; height: 1.65rem; }
.category-card h3 { margin-top: .4rem; font-size: clamp(1.35rem, 2.1vw, 1.85rem); }
.category-card p { color: var(--muted); }

.coloring { background: #e9ede1; border-block: 1px solid #dce1d3; }
.coloring-layout { display: grid; grid-template-columns: .85fr 1.4fr; align-items: center; gap: clamp(1.5rem, 5vw, 4.75rem); }
.coloring-intro { max-width: 26rem; }
.availability { color: var(--accent, var(--forest)); font-size: .9rem; font-weight: 700; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.book-card { background: var(--paper); border: 1px solid #cbd3c5; border-radius: .5rem; overflow: hidden; }
.book-display { min-height: 13rem; padding: 1.15rem .75rem; display: grid; place-items: center; background: var(--backdrop); }
.treasure-cover { --backdrop: #d6dec8; }
.coast-cover { --backdrop: #dce8e6; }
.book-preview { height: 9.8rem; width: auto; object-fit: contain; border-radius: 2px 5px 5px 2px; box-shadow: .3rem .32rem 0 #fff8e6, .55rem .62rem .75rem #24362c45; }
.book-details { display: grid; justify-items: start; gap: .7rem; padding: 1rem; }
.book-details h3 { font-size: 1.37rem; }
.book-details p { color: var(--muted); font-size: .92rem; }
.button-download { background: var(--forest); color: var(--paper); }
.button-download:hover { background: var(--forest-dark); }
.button-download .icon { width: 1.05rem; height: 1.05rem; }

.puzzle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.puzzle-panel { padding: clamp(1.4rem, 3.5vw, 3rem); border: 1px solid var(--border); border-radius: .48rem; background: var(--tint); }
.puzzle-panel .category-icon { margin-bottom: 1rem; background: var(--paper); }
.puzzle-panel h2 { font-size: clamp(1.9rem, 3vw, 2.85rem); }
.puzzle-panel p { margin-top: .7rem; }
.puzzle-panel .availability { margin-top: 1.15rem; }
.puzzle-panel .activity-title { margin-top: 1.1rem; font-size: 1.35rem; }
.puzzle-panel .button-download { margin-top: 1.1rem; }

.community { background: var(--forest); color: var(--cream); padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.community-inner { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(1.75rem, 6vw, 5rem); align-items: center; }
.community h2 { max-width: 28rem; }
.community p { max-width: 30rem; margin-top: .7rem; color: #e4e9df; }
.drop-note { padding: clamp(1.15rem, 3vw, 2.1rem); border: 1px solid #8d9c8980; border-radius: .5rem; background: #f8f5ed0c; }
.drop-note h3 { margin-top: .75rem; }
.ad-wrap { padding-top: clamp(2.25rem, 5vw, 4.25rem); }
.ad-space { display: grid; min-height: 7.2rem; align-content: center; justify-items: center; gap: .2rem; padding: 1.25rem; border: 1px dashed #a8aca0; border-radius: .4rem; background: #f0eee5; color: var(--muted); text-align: center; }
.ad-space .eyebrow { font-size: .75rem; }

.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 6vw, 5rem); padding-block: clamp(2.8rem, 6vw, 5rem); }
.about-copy p { max-width: 33rem; }
.community-links { display: grid; gap: 1.25rem; }
.community-links section { border-top: 1px solid var(--border); padding-top: 1rem; }
.community-links p { color: var(--muted); margin-top: .35rem; }
.community-links a { color: var(--forest); font-weight: 650; text-underline-offset: .2em; }
.site-footer { padding-block: 1.55rem; background: var(--forest-dark); color: var(--cream); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.35rem; align-items: center; justify-content: space-between; }
.site-footer .brand-mark { color: var(--forest); background: #e0e8d9; }
.site-footer .brand-type > span { color: #e0e8d9; }
.site-footer nav { flex-wrap: wrap; }

@media (max-width: 1020px) {
  .header-inner { min-height: 4.55rem; flex-wrap: wrap; gap: 0 1rem; padding-block: .8rem; }
  .primary-nav { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem .75rem; margin-top: .75rem; padding-top: .55rem; border-top: 1px solid var(--border); }
  .primary-nav a { display: flex; align-items: center; min-height: 2.75rem; padding: .35rem .25rem; }
  .header-contact { border: 0; }
}

@media (max-width: 800px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desktop-break { display: none; }
  .coloring-layout { grid-template-columns: 1fr; }
  .coloring-intro h2 br { display: none; }
  .coloring-intro { max-width: 36rem; }
}

@media (max-width: 600px) {
  .hero-copy { flex-direction: column; align-items: flex-start; }
  .category-grid, .book-grid { gap: .65rem; }
  .puzzle-grid, .community-inner, .about-layout { grid-template-columns: 1fr; }
  .book-display { min-height: 10.2rem; }
  .book-details { padding: .7rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .book-grid { grid-template-columns: 1fr; }
}

@media (max-width: 345px) {
  .category-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .category-card { transition: none; }
}
