:root {
  --navy: #30306f;
  --navy-dark: #232354;
  --red: #d93c3c;
  --ink: #20212a;
  --muted: #646675;
  --paper: #ffffff;
  --wash: #ececf0;
  --line: #e2e3e9;
  --shadow: 0 18px 50px rgba(28, 31, 55, .12);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: var(--navy); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: #fff; padding: .7rem 1rem; border: 2px solid var(--navy); }
.skip-link:focus { left: 8px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-top: 6px solid var(--red); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-row { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-dark); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.brand:hover { color: var(--navy-dark); }
.brand-mark { display: grid; place-items: center; width: 56px; height: 56px; border: 3px solid var(--red); color: var(--navy); font-size: .86rem; letter-spacing: .06em; }
.brand-text small { font-size: .76rem; font-weight: 700; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: .55rem .68rem; border-radius: 8px; text-decoration: none; font-size: .94rem; font-weight: 700; color: var(--navy-dark); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #f0f0f7; color: var(--red); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .6rem .8rem; font: inherit; font-weight: 700; }
.hero { overflow: hidden; background: #ececf0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; padding: 74px 0 78px; }
.eyebrow { margin: 0 0 .75rem; color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
h1,h2,h3 { color: var(--navy-dark); line-height: 1.12; letter-spacing: -.03em; }
h1 { margin: 0 0 1.25rem; font-size: clamp(2.5rem, 6vw, 5rem); max-width: 900px; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 1rem; }
h3 { font-size: 1.32rem; margin: 0 0 .55rem; }
.lede { font-size: clamp(1.08rem, 2vw, 1.3rem); color: #444653; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .72rem 1.08rem; border-radius: 9px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--navy-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--navy); }
.button.secondary:hover { background: #f4f4f8; }
.button.red { background: var(--red); border-color: var(--red); }
.button[disabled], .button.disabled { opacity: .55; cursor: not-allowed; }
.book-frame { width: min(380px, 100%); margin-left: auto; padding: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transform: none; align-self: start; }
.book-frame img { display: block; width: 100%; }
.section { padding: 72px 0; }
.section.alt { background: var(--wash); border-block: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: 34px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 8px 28px rgba(30, 31, 50, .05); }
.card p:last-child { margin-bottom: 0; }
.quote { border-left: 5px solid var(--red); padding: 8px 0 8px 24px; font-size: 1.08rem; color: #3f414d; }
.page-hero { padding: 58px 0 44px; background: #f0f0f3; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.prose { max-width: 800px; }
.prose p { margin: 0 0 1.2rem; }
.contents-list { columns: 2; column-gap: 40px; padding-left: 1.25rem; }
.contents-list li { break-inside: avoid; margin: 0 0 .62rem; }
.photo-strip { display: grid; grid-template-columns: .85fr 1.3fr .85fr; gap: 14px; align-items: stretch; }
.photo-strip img { width: 100%; height: 250px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.resource-photo { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.meta { color: var(--muted); font-size: .94rem; }
.price { color: var(--navy-dark); font-size: 2.7rem; font-weight: 850; letter-spacing: -.04em; margin: 8px 0 0; }
.notice { padding: 18px 20px; border-radius: 12px; background: #fff6e6; border: 1px solid #ead2a2; color: #5d4828; }
.notice.info { background: #f2f4fb; border-color: #d6d9ec; color: #373a5a; }
.form-grid { display: grid; gap: 18px; max-width: 720px; }
.form-row { display: grid; gap: 7px; }
label { font-weight: 800; color: var(--navy-dark); }
input, textarea { width: 100%; border: 1px solid #c8cad4; border-radius: 9px; padding: .78rem .85rem; font: inherit; color: var(--ink); background: #fff; }
input:focus, textarea:focus { outline: 3px solid rgba(48,48,111,.16); border-color: var(--navy); }
textarea { min-height: 180px; resize: vertical; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.alert { border-radius: 10px; padding: 15px 17px; margin-bottom: 20px; }
.alert.success { background: #edf8ef; border: 1px solid #b8dbbe; }
.alert.error { background: #fff0f0; border: 1px solid #e7bcbc; }
.site-footer { border-top: 6px solid var(--red); background: var(--navy-dark); color: #fff; padding: 38px 0; }
.site-footer a { color: #fff; }
.site-footer p { margin: .25rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.muted { color: #c9c9d8; }
.inline-list { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; list-style: none; }
hr.rule { border: 0; height: 4px; background: var(--red); width: 72px; margin: 22px 0 28px; }

.purchase-showcase { background: #ececf0; }
.resource-image-link { display: block; border-radius: 12px; overflow: hidden; }
.resource-image-link:focus-visible { outline: 3px solid rgba(48,48,111,.35); outline-offset: 3px; }
.resource-image-link img { transition: transform .18s ease, box-shadow .18s ease; }
.resource-image-link:hover img { transform: scale(1.015); box-shadow: 0 8px 22px rgba(28,31,55,.12); }
.success-panel { max-width: 820px; }
.success-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-details { align-self: start; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 84px 20px auto 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .hero-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; padding: 54px 0; }
  .book-frame { margin-inline: auto; }
  .contents-list { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .brand-text { display: none; }
  .header-row { min-height: 72px; }
  .site-nav { inset-block-start: 72px; }
  .section { padding: 54px 0; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { height: auto; }
}
