/* Robbins Marsh: a "printed poster" look taken from the book covers.
   Navy + snowflakes, white rounded panels, ribbon banners, red seals, dashed gold rings.
   System fonts only (no external requests). Large, high-contrast text for older readers. */
:root {
  --navy: #1d4677;
  --navy-deep: #12305a;
  --navy-ink: #0f2747;
  --ice: #e8f0f8;
  --cream: #f7f2e7;
  --paper: #ffffff;
  --gold: #d4a63c;
  --red: #b3232b;
  --red-deep: #8e1a21;
  --ink: #18202b;
  --muted: #3f4855;
  --radius: 22px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --heavy: "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* season-neutral pattern: faint puzzle letters and dots */
  --flakes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23ffffff' fill-opacity='.10' font-family='Arial,Helvetica,sans-serif' font-weight='700' font-size='26'%3E%3Ctext x='18' y='44'%3EA%3C/text%3E%3Ctext x='104' y='72'%3EW%3C/text%3E%3Ctext x='52' y='132'%3EK%3C/text%3E%3Ctext x='138' y='160'%3EE%3C/text%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.16'%3E%3Ccircle cx='150' cy='26' r='2.5'/%3E%3Ccircle cx='20' cy='160' r='2'/%3E%3Ccircle cx='96' cy='112' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 19px; line-height: 1.6; overflow-x: hidden; }
@media (min-width: 900px) { body { font-size: 20px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .45em; color: var(--navy-ink); }
h1 { font-family: var(--heavy); font-size: clamp(2.1rem, 7.5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-family: var(--heavy); font-size: clamp(1.55rem, 5vw, 2.3rem); }
h3 { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; }

/* Navy "cover" surfaces with snowflakes */
.navy { background: var(--navy) var(--flakes); color: #fff; }
.navy h1, .navy h2, .navy h3 { color: #fff; }

/* Header */
.site-header { background: var(--navy-deep) var(--flakes); color: #fff; border-bottom: 6px solid var(--red); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; border: 3px solid #fff; background: #fff; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.brand:hover { color: #fff; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { display: inline-block; color: #fff; text-decoration: none; padding: 9px 12px; border-radius: 999px; font-weight: 700; font-size: 1rem; min-height: 44px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.16); color: #fff; }

/* Hamburger menu (phones and small tablets) */
.menu-btn { display: none; align-items: center; gap: 10px; background: #fff; color: var(--navy-ink); border: 0; border-radius: 999px;
  padding: 10px 18px 10px 14px; min-height: 48px; font: 800 1.05rem var(--sans); cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.menu-btn .bars { display: inline-grid; gap: 4px; width: 24px; }
.menu-btn .bars span { display: block; height: 3px; border-radius: 2px; background: var(--navy-ink); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 899px) {
  .site-header .wrap { gap: 8px 10px; }
  .brand { gap: 9px; }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: 1.22rem; }
  .menu-btn { display: inline-flex; padding: 8px 14px 8px 12px; gap: 8px; }
  @media (max-width: 385px) { .brand img { width: 36px; height: 36px; } .brand span { font-size: 1.05rem; } .site-header .wrap { padding-left: 12px; padding-right: 12px; } }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 6px; padding: 8px 0 6px; }
  .site-nav a { display: block; font-size: 1.15rem; padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,.08); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--sans); font-weight: 800; font-size: 1.12rem; text-decoration: none; text-align: center;
  padding: 14px 26px; min-height: 56px; border-radius: 999px; border: 3px solid transparent; line-height: 1.25; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-deep); }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 4px 0 var(--navy-ink); }
.btn-navy:hover { background: var(--navy-ink); color: #fff; }
.btn-white { background: #fff; color: var(--navy-ink); border-color: #fff; }
.btn-white:hover { background: var(--ice); color: var(--navy-ink); }
.btn-amazon { background: #fff; color: var(--navy-ink); border-color: var(--navy); width: 100%; }
.btn-amazon:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Ribbon banner (like "for Seniors" on the covers) */
.ribbon { display: inline-block; position: relative; background: var(--navy); color: #fff; font-family: var(--heavy); font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  padding: 8px 26px; margin: 0 22px .6em; letter-spacing: .02em; }
.ribbon::before, .ribbon::after { content: ""; position: absolute; top: 8px; border: 19px solid var(--navy-deep); z-index: -1; }
.ribbon::before { left: -22px; border-left-color: transparent; }
.ribbon::after { right: -22px; border-right-color: transparent; }
.ribbon.red { background: var(--red); }
.ribbon.red::before, .ribbon.red::after { border-color: var(--red-deep); }
.ribbon.red::before { border-left-color: transparent; }
.ribbon.red::after { border-right-color: transparent; }
.section-head { text-align: center; max-width: 44em; margin: 0 auto 30px; position: relative; z-index: 0; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.navy .section-head p { color: #dbe6f4; }

/* Seal badge (red with dashed gold ring) */
.seal { display: inline-grid; place-items: center; text-align: center; width: 118px; height: 118px; border-radius: 50%; background: var(--red); color: #fff;
  font-family: var(--heavy); font-size: .95rem; line-height: 1.05; box-shadow: 0 0 0 5px #fff, 0 6px 16px rgba(0,0,0,.25); position: relative; text-transform: uppercase; padding: 10px; }
.seal::after { content: ""; position: absolute; inset: 7px; border: 2px dashed var(--gold); border-radius: 50%; }
.seal.white { background: #fff; color: var(--navy-ink); box-shadow: 0 0 0 5px var(--navy), 0 6px 16px rgba(0,0,0,.25); }
.seal b { display: block; font-size: 1.6rem; }

/* Hero: a white poster panel on navy */
.hero { padding: 26px 0 40px; }
.poster { background: #fff; color: var(--ink); border-radius: 28px; padding: 26px 20px 28px; box-shadow: 0 10px 0 rgba(0,0,0,.18); display: grid; gap: 24px; position: relative; }
.poster h1 { color: var(--navy-ink); margin-bottom: .2em; }
.poster h1 .flake { color: var(--navy); font-family: var(--sans); }
.poster .lead { font-size: 1.18rem; color: var(--muted); max-width: 32em; }
.poster .art { position: relative; justify-self: center; max-width: 330px; width: 100%; }
.poster .art img { border-radius: 10px; transform: rotate(3deg); box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.poster .art .seal { position: absolute; left: -14px; bottom: -18px; }
@media (min-width: 880px) {
  .hero { padding: 40px 0 60px; }
  .poster { grid-template-columns: 1.25fr .9fr; align-items: center; padding: 44px 48px; }
}
.trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; color: var(--navy-ink); }
.trust li::before { content: "\2714\FE0E"; color: var(--red); margin-right: 7px; }

/* Sections */
section { padding: 52px 0; }
.paper { background: var(--paper); }
.ice { background: var(--ice); }

/* Chooser tiles */
.chooser { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .chooser { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .chooser { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 18px; padding: 16px 18px; text-decoration: none; color: var(--ink);
  border: 3px solid var(--navy); box-shadow: 0 5px 0 var(--navy); min-height: 96px; }
.tile:hover { transform: translateY(-2px); color: var(--ink); border-color: var(--red); box-shadow: 0 7px 0 var(--red); }
.tile .ico { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); font-size: 1.6rem; }
.tile b { display: block; font-size: 1.08rem; color: var(--navy-ink); }
.tile span { color: var(--muted); font-size: .98rem; }

/* Book cards */
.grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; position: relative;
  box-shadow: 0 6px 0 rgba(18,48,90,.14); border: 2px solid #d9e3ef; }
.card::before { content: ""; position: absolute; inset: 9px; border: 2px dashed rgba(212,166,60,.55); border-radius: 15px; pointer-events: none; }
.card .cover { border-radius: 8px; box-shadow: 0 10px 22px rgba(0,0,0,.22); margin: 0 auto; max-width: 290px; width: 100%; }
.card h3 { margin: 4px 0 0; color: var(--navy-ink); }
.card p { margin: 0; color: var(--muted); }
.card .facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card .facts li { background: var(--navy); color: #fff; border-radius: 999px; padding: 5px 13px; font-size: .9rem; font-weight: 800; }
.card .facts li.r { background: var(--red); }
.card .btn { margin-top: auto; position: relative; }
.card .badge { position: absolute; top: 14px; right: 14px; z-index: 2; width: 92px; height: 92px; font-size: .78rem; }
.card .badge b { font-size: 1.25rem; }
.card.small { padding: 18px; }
.card.small .cover { max-width: 210px; }
.card.small h3 { font-size: 1.18rem; }

/* Free stuff: coupon look */
.coupon { background: #fff; border: 4px dashed var(--red); border-radius: var(--radius); padding: 24px 20px; position: relative; display: grid; gap: 20px; align-items: center; }
.coupon .scissors { position: absolute; top: -20px; left: 26px; background: var(--cream); padding: 0 8px; font-size: 1.5rem; color: var(--red); line-height: 1; }
.ice .coupon .scissors { background: var(--ice); }
.coupon .cover { max-width: 250px; margin: 0 auto; border-radius: 8px; box-shadow: 0 10px 22px rgba(0,0,0,.22); }
.coupon h3 { font-family: var(--heavy); font-size: 1.5rem; color: var(--navy-ink); }
.coupon .who { font-weight: 700; color: var(--red); margin-bottom: .6em; }
.coupon ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.coupon li { margin-bottom: .35em; }
.coupon .note { font-size: .95rem; color: var(--muted); margin: 12px 0 0; }
@media (min-width: 780px) { .coupon { grid-template-columns: 250px 1fr; padding: 32px; } .coupon .cover { margin: 0; } }
.coupons { display: grid; gap: 40px; }

/* Tips */
.tips { counter-reset: tip; display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .tips { grid-template-columns: repeat(2, 1fr); } }
.tips li { counter-increment: tip; background: #fff; color: var(--ink); border-radius: 18px; padding: 18px 18px 18px 78px; position: relative; min-height: 88px; }
.tips li::before { content: counter(tip); position: absolute; left: 16px; top: 16px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff;
  font-family: var(--heavy); font-size: 1.3rem; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold); }
.tips b { display: block; color: var(--navy-ink); font-size: 1.1rem; }

/* German panel */
.de { background: #fff; border-radius: 28px; padding: 28px 18px; border: 4px solid var(--navy); box-shadow: 0 8px 0 var(--navy); }
@media (min-width: 700px) { .de { padding: 36px; } }

/* Text pages */
.page-head { padding: 34px 0 30px; text-align: center; }
.page-head .lead { color: #dbe6f4; font-size: 1.15rem; max-width: 36em; margin: 0 auto; }
.prose { max-width: 40em; margin: 0 auto; padding: 40px 0 56px; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }
.contact-box { background: #fff; border: 4px dashed var(--red); border-radius: var(--radius); padding: 26px; text-align: center; margin: 24px 0; }
.contact-box a.email { font-size: 1.45rem; font-weight: 800; word-break: break-word; }

/* Footer */
.site-footer { background: var(--navy-deep) var(--flakes); color: #fff; padding: 34px 0; font-size: 1rem; border-top: 6px solid var(--red); }
.site-footer a { color: #fff; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .small { opacity: .9; font-size: .95rem; margin-top: 16px; }
