:root {
  color-scheme: light;
  --ink: #20312e;
  --muted: #64726f;
  --cream: #fff9ed;
  --paper: #ffffff;
  --red: #e6332a;
  --red-text: #b32420;
  --red-action: #b92721;
  --red-dark: #961b17;
  --yellow: #ffd75e;
  --mint: #dff3ea;
  --blue: #dceeff;
  --shadow: 7px 7px 0 var(--ink);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

/* The catalog is the working surface, so the welcome stays compact. */
.hero.shell { min-height: 0; padding-block: 38px 42px; gap: 48px; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .65fr); }
.hero-copy h1 { max-width: 16ch; font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -.045em; }
.hero-copy .hero-intro { font-size: 1rem; margin-bottom: 20px; max-width: 55ch; }
.hero .hero-facts { margin-top: 24px; }
.hero-facts dd, .brand-copy small { font-size: .75rem; }
.catalog-section { scroll-margin-top: 20px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(100% - 40px, 1200px); margin-inline: auto; }
.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; }
.skip-link { position: fixed; left: 18px; top: 12px; z-index: 20; transform: translateY(-160%); padding: 11px 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid rgba(32, 49, 46, .16); background: rgba(255, 249, 237, .94); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand img { width: 68px; height: auto; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 1rem; font-weight: 950; letter-spacing: .11em; }
.brand-copy small { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { font-size: .9rem; font-weight: 800; text-decoration: none; }
.header-action { display: inline-flex; align-items: center; gap: 11px; padding: 12px 17px; border-radius: 999px; background: var(--ink); color: white; }
.header-action span { font-size: 1.05rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(390px, .82fr); gap: clamp(42px, 7vw, 96px); align-items: center; min-height: 570px; padding-block: 64px 74px; }
.eyebrow { margin: 0 0 16px; color: var(--red-text); font-size: .78rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow--dark { color: var(--ink); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 8ch; margin-bottom: 24px; font-size: clamp(3.7rem, 7.4vw, 6.5rem); line-height: .86; letter-spacing: -.065em; }
.hero-intro { max-width: 610px; margin-bottom: 30px; color: #52615e; font-size: clamp(1.05rem, 1.6vw, 1.23rem); line-height: 1.62; }
.primary-action { display: inline-flex; align-items: center; gap: 16px; padding: 15px 20px; border: 2px solid var(--ink); border-radius: 15px; background: var(--red-action); box-shadow: 4px 4px 0 var(--ink); color: white; font-weight: 900; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary-action:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); background: var(--red-dark); }
.hero-facts { display: flex; gap: clamp(22px, 4vw, 48px); margin: 39px 0 0; }
.hero-facts div { display: grid; gap: 1px; }
.hero-facts dt { font-size: 1.5rem; font-weight: 950; line-height: 1; }
.hero-facts dd { margin: 0; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.featured-card { position: relative; min-height: 410px; padding: 24px; overflow: hidden; border: 2px solid var(--ink); border-radius: 30px; background: var(--mint); box-shadow: 10px 10px 0 var(--ink); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.featured-card::after { content: ""; position: absolute; right: -78px; bottom: -82px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 215, 94, .88); }
.featured-card:hover { transform: translate(-3px, -3px); box-shadow: 14px 14px 0 var(--ink); }
.featured-heading { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .7rem; font-weight: 950; letter-spacing: .12em; }
.featured-heading i { padding: 7px 10px 6px; border-radius: 999px; background: var(--red-action); color: white; font-size: .62rem; font-style: normal; }
.featured-body { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; align-items: end; height: 340px; }
.mini-deck { position: relative; height: 300px; }
.mini-deck img { position: absolute; bottom: -21px; left: 7%; width: 150px; border: 1px solid rgba(32, 49, 46, .22); border-radius: 9px; box-shadow: 0 12px 22px rgba(32, 49, 46, .2); transform: rotate(-8deg); }
.mini-deck img:nth-child(2) { left: 25%; bottom: -8px; transform: rotate(1deg); }
.mini-deck img:nth-child(3) { left: 43%; bottom: -18px; transform: rotate(10deg); }
.featured-cover { display: grid; place-items: center; height: 300px; }
.featured-cover img { max-width: 190px; max-height: 270px; border-radius: 8px; box-shadow: 9px 10px 0 var(--ink); object-fit: contain; }
.featured-letters { display: grid; place-items: center; align-content: center; gap: 4px; height: 280px; }
.featured-letters b { font-size: 7rem; line-height: 1; letter-spacing: -.09em; }
.featured-letters span { font-weight: 950; letter-spacing: .16em; }
.featured-copy { position: relative; z-index: 3; padding: 0 4px 11px 0; }
.featured-copy p { margin-bottom: 10px; color: var(--red-text); font-size: .67rem; font-weight: 950; letter-spacing: .09em; }
.featured-copy h2 { margin-bottom: 20px; font-size: clamp(2rem, 3vw, 3.1rem); line-height: .93; letter-spacing: -.045em; }
.featured-copy span { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .88rem; font-weight: 900; }
.featured-copy b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: white; font-size: 1.2rem; }
.featured-card--banner { min-height: 0; padding: 0; background: #071e35; }
.featured-card--banner::after { display: none; }
.featured-card--banner .featured-heading { position: absolute; inset: 17px 17px auto; color: white; }
.featured-card--banner .featured-heading span { padding: 8px 10px 7px; border-radius: 999px; background: rgba(7, 30, 53, .86); }
.featured-card--banner .featured-body { display: block; height: auto; }
.featured-banner { aspect-ratio: 16 / 9; overflow: hidden; background: #071e35; }
.featured-banner img { width: 100%; height: 100%; object-fit: cover; }
.featured-card--banner .featured-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 20px; align-items: center; padding: 18px 22px 20px; background: var(--mint); }
.featured-card--banner .featured-copy p { grid-column: 1 / -1; margin-bottom: 0; }
.featured-card--banner .featured-copy h2 { margin-bottom: 0; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1; }
.featured-card--banner .featured-copy span { align-self: end; }

.catalog-section { padding-block: 82px 92px; border-block: 2px solid var(--ink); background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 44px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .95; letter-spacing: -.05em; }
.section-heading > p { max-width: 440px; margin-bottom: 3px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.catalog-tools { display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 18px; align-items: center; padding: 18px; border: 2px solid var(--ink); border-radius: 22px; background: #f5f7f6; box-shadow: 5px 5px 0 var(--ink); }
.search-field { position: relative; display: flex; align-items: center; min-height: 54px; padding-inline: 49px 12px; border: 2px solid var(--ink); border-radius: 14px; background: white; }
.search-icon { position: absolute; left: 18px; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; right: -6px; bottom: -4px; width: 7px; height: 2px; background: var(--ink); transform: rotate(45deg); transform-origin: left center; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .96rem; font-weight: 700; }
.search-field input::placeholder { color: #7b8784; opacity: 1; }
.search-field button { flex: none; padding: 7px 9px; border: 0; border-radius: 8px; background: #edf1ef; cursor: pointer; font-size: .72rem; font-weight: 850; }
.filter-group { display: flex; gap: 8px; }
.filter-group button { min-height: 44px; padding: 10px 13px; border: 1.5px solid var(--ink); border-radius: 12px; background: white; cursor: pointer; font-size: .78rem; font-weight: 850; }
.filter-group button b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; border-radius: 999px; background: #edf1ef; font-size: .68rem; }
.filter-group button.is-active { background: var(--ink); color: white; }
.filter-group button.is-active b { background: var(--yellow); color: var(--ink); }
.results-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 2px 18px; }
.results-line strong { font-size: .93rem; }
.results-line span { color: var(--muted); font-size: .8rem; }

.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; }
.resource-card { min-width: 0; list-style: none; }
.resource-card[hidden] { display: none; }
.resource-card > article { height: 100%; }
.resource-card > article > a { display: grid; grid-template-rows: 255px 1fr; height: 100%; overflow: hidden; border: 2px solid var(--ink); border-radius: 25px; background: var(--paper); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.resource-card > article > a:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink); }
.resource-visual { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; border-bottom: 2px solid var(--ink); }
.alphabet-visual { background: var(--yellow); }
.alphabet-main { font-size: 7rem; font-weight: 950; line-height: 1; letter-spacing: -.09em; }
.letter-chip { position: absolute; display: grid; place-items: center; width: 47px; height: 47px; border: 2px solid var(--ink); border-radius: 14px; background: white; box-shadow: 3px 3px 0 var(--ink); font-size: 1.35rem; font-weight: 950; transform: rotate(-8deg); }
.letter-chip--one { top: 25px; left: 27px; }
.letter-chip--two { right: 30px; top: 43px; transform: rotate(8deg); background: var(--mint); }
.letter-chip--three { right: 49px; bottom: 24px; transform: rotate(-4deg); background: var(--red-action); color: white; }
.cover-visual { padding: 25px; background: var(--blue); }
.cover-visual img { width: 120px; height: 160px; border: 1px solid rgba(32, 49, 46, .2); border-radius: 4px; box-shadow: 10px 11px 0 rgba(32, 49, 46, .9); object-fit: cover; }
.cover-visual > span { position: absolute; right: 25px; bottom: 22px; display: grid; place-items: center; width: 84px; height: 84px; border: 2px solid var(--ink); border-radius: 50%; background: var(--red-action); color: white; font-size: 1.7rem; font-weight: 950; line-height: .74; text-align: center; transform: rotate(7deg); }
.cover-visual small { font-size: .56rem; letter-spacing: .04em; text-transform: uppercase; }
.verb-visual { background: var(--mint); }
.verb-visual::after { content: "85"; position: absolute; right: 18px; top: 13px; color: rgba(32, 49, 46, .12); font-size: 5rem; font-weight: 950; }
.verb-visual img { position: absolute; bottom: -24px; width: 128px; border: 1px solid rgba(32, 49, 46, .22); border-radius: 7px; box-shadow: 0 10px 18px rgba(32, 49, 46, .2); transform: translateX(-46px) rotate(-9deg); }
.verb-visual img:nth-child(2) { z-index: 2; transform: translateX(0) rotate(1deg); }
.verb-visual img:nth-child(3) { transform: translateX(48px) rotate(10deg); }
.banner-visual { background: #071e35; }
.banner-visual img { width: 100%; height: 100%; object-fit: contain; }
.single-card-visual { padding: 15px; background: var(--mint); }
.single-card-visual::before { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; background: var(--yellow); }
.single-card-visual img { position: relative; z-index: 1; width: auto; height: 225px; border: 1px solid rgba(32, 49, 46, .22); border-radius: 8px; box-shadow: 7px 8px 0 rgba(32, 49, 46, .92); object-fit: contain; }
.single-card-visual > span { position: absolute; z-index: 2; right: 22px; top: 20px; padding: 9px 11px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--red-action); color: white; font-size: .7rem; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; transform: rotate(5deg); }
.image-visual { padding: 24px; background: #f1e8ff; }
.place-value-visual { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: var(--mint); }
.place-value-visual > div { display: grid; justify-items: center; gap: 5px; width: 76px; padding: 14px 8px; border: 2px solid var(--ink); border-radius: 13px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.place-value-visual > div:nth-child(2) { background: #b92721; color: white; }
.place-value-visual > div:nth-child(3) { background: #1c70c4; color: white; }
.place-value-visual span { font-size: 14px; font-weight: 850; }
.place-value-visual b { font-size: 56px; line-height: 1.1; }
.place-value-visual small { font-size: 14px; font-weight: 750; }
.image-visual img { width: 100%; height: 100%; border-radius: 12px; object-fit: contain; }
.resource-copy { display: grid; grid-template-rows: auto auto 1fr auto; gap: 13px; padding: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 6px 9px 5px; border-radius: 999px; background: #eef2f0; color: #53605d; font-size: .64rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.resource-copy h3 { margin-bottom: 0; font-size: 1.55rem; line-height: 1.02; letter-spacing: -.035em; }
.resource-copy > p { margin-bottom: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 17px; border-top: 1px solid #dfe5e2; }
.card-footer > span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.card-footer b { display: flex; align-items: center; gap: 9px; font-size: .82rem; }
.card-footer i { font-size: 1.12rem; font-style: normal; }

.empty-state { padding: 58px 24px; border: 2px dashed #8a9693; border-radius: 24px; background: #f7f9f8; text-align: center; }
.empty-state > span { display: inline-grid; place-items: center; width: 70px; height: 70px; margin-bottom: 16px; border: 2px solid var(--ink); border-radius: 20px; background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); font-size: 1.8rem; font-weight: 950; transform: rotate(-4deg); }
.empty-state h3 { margin-bottom: 8px; font-size: 1.5rem; }
.empty-state p { margin-bottom: 18px; color: var(--muted); }
.empty-state button { padding: 11px 15px; border: 2px solid var(--ink); border-radius: 11px; background: white; cursor: pointer; font-weight: 850; }

.growing-library { display: grid; grid-template-columns: auto minmax(260px, .8fr) minmax(300px, 1fr); gap: 34px; align-items: center; padding-block: 72px; }
.growing-mark { display: grid; place-items: center; width: 90px; height: 90px; border: 2px solid var(--ink); border-radius: 24px; background: var(--yellow); box-shadow: 6px 6px 0 var(--ink); transform: rotate(-4deg); }
.growing-mark span { font-size: 3.5rem; font-weight: 700; line-height: 1; transform: rotate(4deg); }
.growing-library h2 { margin-bottom: 0; font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: .96; letter-spacing: -.045em; }
.growing-library > p { margin-bottom: 0; color: var(--muted); font-size: 1rem; line-height: 1.62; }

footer { padding-block: 34px; border-top: 2px solid var(--ink); background: var(--ink); color: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand--footer { color: white; }
.brand--footer img { width: 58px; padding: 4px; border-radius: 13px; background: white; }
.brand--footer .brand-copy small { color: #afbbb8; }
.footer-meta { display: grid; justify-items: end; gap: 10px; }
.footer-meta > p { max-width: 380px; margin: 0; color: #c6cfcc; font-size: .84rem; text-align: right; }
.footer-store-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: white; font-size: .82rem; font-weight: 850; text-decoration: underline; text-decoration-color: #ffd75e; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.footer-store-link:hover { color: var(--yellow); }

:focus-visible { outline: 4px solid #1f78d1; outline-offset: 4px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 720px; }
  .featured-card { min-height: 380px; }
  .featured-card--banner { width: min(100%, 600px); min-height: 0; }
  .featured-body { height: 310px; }
  .catalog-tools { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .growing-library { grid-template-columns: auto 1fr; }
  .growing-library > p { grid-column: 2; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 620px); }
  .header-inner { min-height: 78px; }
  .brand img { width: 57px; }
  .brand-copy strong { font-size: .88rem; }
  .brand-copy small { font-size: .58rem; }
  .header-action { padding: 10px 13px; font-size: .76rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 50px 60px; }
  h1 { font-size: clamp(3.5rem, 17vw, 5.2rem); }
  .hero-facts { justify-content: space-between; gap: 14px; }
  .featured-card { min-height: 390px; }
  .featured-body { grid-template-columns: 1.08fr .92fr; height: 320px; }
  .mini-deck { height: 280px; }
  .mini-deck img { width: 138px; bottom: -18px; left: 2%; }
  .mini-deck img:nth-child(2) { left: 20%; bottom: -5px; }
  .mini-deck img:nth-child(3) { left: 38%; bottom: -16px; }
  .featured-copy { display: block; }
  .featured-copy h2 { margin-bottom: 18px; }
  .catalog-section { padding-block: 62px 72px; }
  .section-heading { display: grid; gap: 16px; }
  .section-heading > p { margin-bottom: 0; }
  .filter-group { overflow-x: auto; padding: 3px 2px 6px; }
  .filter-group button { flex: none; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card > article > a { grid-template-rows: 245px 1fr; }
  .growing-library { grid-template-columns: auto 1fr; gap: 24px; }
  .growing-mark { width: 72px; height: 72px; border-radius: 20px; }
  .growing-library > p { grid-column: 1 / -1; }
  .footer-inner { align-items: flex-start; }
  .footer-meta > p { max-width: 260px; }
}

@media (max-width: 480px) {
  .brand-copy small { max-width: 18ch; line-height: 1.2; }
  .header-action { width: 43px; height: 43px; justify-content: center; padding: 0; border-radius: 50%; font-size: 0; }
  .header-action span { font-size: 1rem; }
  .hero { gap: 38px; }
  .hero-intro { font-size: 1rem; }
  .hero-facts dd { font-size: .62rem; }
  .featured-card { min-height: 420px; padding: 20px; }
  .featured-card--banner { min-height: 0; padding: 0; }
  .featured-card--banner .featured-body { display: block; height: auto; }
  .featured-card--banner .featured-copy { display: grid; padding: 16px 18px 18px; }
  .featured-card--banner .featured-copy h2 { margin: 0; }
  .featured-body { grid-template-columns: 1fr; height: 350px; }
  .mini-deck { height: 208px; }
  .mini-deck img { width: 112px; left: 9%; bottom: -5px; }
  .mini-deck img:nth-child(2) { left: 27%; bottom: 4px; }
  .mini-deck img:nth-child(3) { left: 45%; bottom: -5px; }
  .featured-copy { display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .featured-copy p { grid-column: 1 / -1; }
  .featured-copy h2 { margin: 0; }
  .featured-copy span { align-self: center; }
  .catalog-tools { padding: 13px; border-radius: 18px; }
  .search-field { padding-left: 46px; }
  .search-field input { font-size: .86rem; }
  .filter-group button { padding-inline: 11px; }
  .results-line span { display: none; }
  .footer-inner { display: grid; }
  .footer-meta { justify-items: start; }
  .footer-meta > p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.catalog-section { padding-block: 38px 60px; }
.catalog-section .section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); }
.filter-group button, .search-field button, .tags span, .card-footer, .results-line span { font-size: .875rem; }
.hero-copy .hero-facts dd, .brand-copy small { font-size: .75rem; }
.search-field input { font-size: 1rem; }
@media (min-width: 1100px) { .resource-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hero.shell { grid-template-columns: 1fr; gap: 22px; padding-block: 28px; }
  .hero-copy h1 { font-size: clamp(2.2rem, 8vw, 3rem); max-width: 18ch; }
  .hero .featured-card { display: none; }
  .hero-facts { flex-wrap: wrap; gap: 18px; }
  .header-inner { min-height: 74px; gap: 10px; }
  .header-inner .brand img { width: 50px; }
  .header-action { padding: 12px; font-size: .875rem; }
}
