:root {
  --navy-950: #0c1e31;
  --navy-900: #102a43;
  --navy-800: #16324f;
  --navy-700: #244d70;
  --blue-100: #eaf1f7;
  --cream-50: #fdfbf6;
  --cream-100: #f6f0e4;
  --gold-500: #c28b35;
  --gold-400: #d5a95f;
  --ink: #16202a;
  --muted: #5e6a76;
  --white: #ffffff;
  --border: #d9e0e6;
  --shadow-sm: 0 10px 30px rgba(12, 30, 49, 0.08);
  --shadow-lg: 0 24px 70px rgba(12, 30, 49, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }

.container { width: min(calc(100% - 40px), var(--container)); 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: 16px; top: -80px; z-index: 999; padding: 12px 18px; background: var(--white); border-radius: 8px; box-shadow: var(--shadow-sm); }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 246, 0.92);
  border-bottom: 1px solid rgba(217, 224, 230, 0.8);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { flex: 0 0 auto; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; letter-spacing: 0.01em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.site-nav a:not(.nav-cta):hover { color: var(--navy-700); }
.nav-cta { padding: 10px 17px; border: 1px solid var(--navy-800); border-radius: 999px; }
.nav-cta:hover { color: var(--white); background: var(--navy-800); }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; }
.menu-button span:not(.sr-only) { display: block; width: 26px; height: 2px; margin: 5px 0; background: var(--navy-900); }

.hero { position: relative; overflow: hidden; padding: 86px 0 96px; background: radial-gradient(circle at 85% 18%, rgba(213,169,95,0.22), transparent 28%), linear-gradient(135deg, var(--cream-50), var(--cream-100)); }
.hero::after { content: ""; position: absolute; inset: auto -120px -210px auto; width: 500px; height: 500px; border: 1px solid rgba(22,50,79,0.12); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 12px; color: var(--gold-500); font-weight: 800; font-size: 0.76rem; letter-spacing: 0.15em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; color: var(--navy-950); line-height: 1.12; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(2.7rem, 5.5vw, 5.3rem); letter-spacing: -0.045em; }
h2 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.45rem); letter-spacing: -0.035em; }
h3 { margin-bottom: 10px; font-size: 1.42rem; }
.hero-lead { max-width: 670px; margin: 0; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; font-size: 0.9rem; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--navy-800); box-shadow: 0 10px 24px rgba(22,50,79,.16); }
.button-primary:hover { background: var(--navy-950); }
.button-secondary { color: var(--navy-900); background: transparent; border-color: var(--navy-800); }
.button-secondary:hover { background: var(--blue-100); }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; color: var(--muted); font-size: 0.84rem; list-style: none; }
.trust-list li::before { content: "✓"; margin-right: 8px; color: var(--gold-500); font-weight: 900; }
.hero-visual { position: relative; min-height: 520px; }
.hero-book { position: absolute; width: min(290px, 58vw); border-radius: 6px 14px 14px 6px; box-shadow: var(--shadow-lg); }
.hero-book-back { top: 22px; right: 0; transform: rotate(7deg); }
.hero-book-front { left: 0; bottom: 12px; z-index: 2; transform: rotate(-5deg); }
.hero-note { position: absolute; right: 0; bottom: 18px; z-index: 3; display: grid; gap: 2px; padding: 14px 18px; background: rgba(255,255,255,.93); border: 1px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.hero-note span { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.hero-note strong { color: var(--navy-900); font-size: .88rem; }

.catalog-section { padding: 96px 0 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading > p { max-width: 530px; margin: 0; color: var(--muted); }
.section-heading code { padding: 2px 5px; background: var(--blue-100); border-radius: 5px; color: var(--navy-900); font-size: .86em; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(250px, 1fr) auto auto; align-items: center; gap: 16px; padding: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--border); border-radius: 999px; background: var(--cream-50); }
.search-field svg { width: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-field input { width: 100%; min-height: 45px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--navy-900); font-weight: 750; font-size: .78rem; cursor: pointer; }
.filter-button:hover, .filter-button[aria-pressed="true"] { color: var(--white); background: var(--navy-800); border-color: var(--navy-800); }
.sort-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.sort-field select { min-height: 43px; padding: 0 34px 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--navy-900); }
.catalog-summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.catalog-summary p { margin: 0; color: var(--muted); font-size: .86rem; }
.text-button { border: 0; background: transparent; color: var(--navy-700); font-weight: 800; cursor: pointer; text-decoration: underline; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.product-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 12px 34px rgba(12,30,49,.06); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-image-button { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; overflow: hidden; background: var(--blue-100); cursor: pointer; }
.product-image { width: 100%; height: 100%; object-fit: contain; padding: 24px 34px 18px; filter: drop-shadow(0 12px 18px rgba(12,30,49,.12)); }
.product-badge { position: absolute; top: 14px; left: 14px; padding: 6px 10px; color: var(--white); background: var(--gold-500); border-radius: 999px; font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.product-badge:empty { display: none; }
.product-content { padding: 22px; }
.product-category { margin: 0 0 8px; color: var(--gold-500); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.product-title { min-height: 3.1rem; margin-bottom: 10px; font-size: 1.32rem; }
.product-description { display: -webkit-box; min-height: 4.8rem; margin: 0 0 16px; overflow: hidden; color: var(--muted); font-size: .9rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; min-height: 28px; margin-bottom: 18px; }
.product-meta span { padding: 5px 9px; background: var(--cream-100); border-radius: 999px; color: var(--navy-800); font-size: .68rem; font-weight: 750; }
.product-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9px; }
.product-actions .button { min-width: 0; padding-inline: 12px; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-md); }
.empty-state p { color: var(--muted); }

.feature-band { padding: 92px 0; color: var(--white); background: var(--navy-950); }
.light-heading h2 { color: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-grid article { padding: 28px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-md); background: rgba(255,255,255,.04); }
.steps-grid span { display: inline-grid; width: 42px; height: 42px; place-items: center; margin-bottom: 28px; border: 1px solid rgba(213,169,95,.55); border-radius: 50%; color: var(--gold-400); font-weight: 850; }
.steps-grid h3 { color: var(--white); }
.steps-grid p { margin: 0; color: rgba(255,255,255,.7); }

.about-section { padding: 110px 0; }
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 72px; }
.about-card { min-height: 430px; display: flex; flex-direction: column; justify-content: flex-end; padding: 38px; color: var(--white); background: linear-gradient(145deg, rgba(194,139,53,.78), rgba(16,42,67,.95)), repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.04) 10px, rgba(255,255,255,.04) 12px); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-card img { width: 104px; margin-bottom: auto; }
.about-card p { max-width: 390px; margin: 80px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.35; }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.02rem; }
.inline-link { display: inline-flex; gap: 8px; margin-top: 12px; color: var(--navy-800); font-weight: 850; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

.contact-section { padding: 0 0 110px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 50px; background: var(--cream-100); border: 1px solid rgba(194,139,53,.22); border-radius: var(--radius-lg); }
.contact-card h2 { margin-bottom: 10px; }
.contact-card p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); }

.site-footer { padding: 64px 0 34px; color: rgba(255,255,255,.75); background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .6fr 1.1fr; gap: 40px; }
.footer-brand { color: var(--white); }
.footer-brand small { color: rgba(255,255,255,.58); }
.footer-brand img { filter: none; }
.footer-note { max-width: 390px; font-size: .84rem; }
.footer-links { display: grid; align-content: start; gap: 10px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-legal { font-size: .77rem; }
.affiliate-disclosure { color: rgba(255,255,255,.48); }

.product-dialog { width: min(880px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.product-dialog::backdrop { background: rgba(6,17,28,.74); backdrop-filter: blur(4px); }
.dialog-close { position: sticky; top: 14px; left: calc(100% - 58px); z-index: 5; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); color: var(--navy-950); font-size: 1.7rem; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: .85fr 1.15fr; }
.dialog-image-wrap { display: grid; place-items: center; padding: 48px; background: var(--blue-100); }
.dialog-image-wrap img { max-height: 500px; filter: drop-shadow(0 18px 25px rgba(12,30,49,.18)); }
.dialog-copy { padding: 52px 48px 48px; }
.dialog-copy .product-category { margin-bottom: 14px; }
.dialog-copy h2 { font-size: clamp(2rem, 4vw, 3rem); }
.dialog-copy p { color: var(--muted); }
.dialog-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0; }
.dialog-details div { padding: 12px; background: var(--cream-100); border-radius: 10px; }
.dialog-details dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.dialog-details dd { margin: 2px 0 0; color: var(--navy-900); font-weight: 800; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(620px, 100%); margin-inline: auto; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .about-grid { gap: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 70px; }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 70px; left: 14px; right: 14px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .nav-cta { margin-top: 4px; text-align: center; }
  .hero { padding: 60px 0 70px; }
  h1 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .hero-visual { min-height: 390px; }
  .hero-book { width: min(225px, 60vw); }
  .hero-note { right: 6px; bottom: -2px; }
  .catalog-section, .about-section { padding: 76px 0; }
  .product-grid, .steps-grid, .about-grid, .footer-grid, .dialog-layout { grid-template-columns: 1fr; }
  .product-image { padding: 24px 46px 18px; }
  .about-card { min-height: 340px; }
  .contact-section { padding-bottom: 76px; }
  .contact-card { align-items: flex-start; flex-direction: column; padding: 32px; }
  .dialog-image-wrap { padding: 58px 70px 34px; }
  .dialog-copy { padding: 34px 26px 38px; }
}

@media (max-width: 480px) {
  .brand small { display: none; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 330px; }
  .hero-book { width: 190px; }
  .hero-note { max-width: 190px; }
  .product-image { padding: 22px 32px 16px; }
  .product-actions { grid-template-columns: 1fr; }
  .dialog-details { grid-template-columns: 1fr; }
}

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