@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Kalam:wght@400;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --ink: #142d50;
  --teal: #007e91;
  --yellow: #ffd455;
  --cream: #fff7e7;
  --body: 'DM Sans', Arial, sans-serif;
  --heading: 'Outfit', 'Trebuchet MS', sans-serif;
  --hand: 'Kalam', 'Segoe Print', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 25px; }
body { margin: 0; color: var(--ink); background: white; font: 17px/1.75 var(--body); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.1; letter-spacing: -.025em; }
p + p { margin-top: 18px; }
a:focus-visible, button:focus-visible { outline: 3px solid #dc602a; outline-offset: 6px; }
.skip { position: fixed; top: -100px; left: 15px; z-index: 10; background: white; padding: 10px; }
.skip:focus { top: 10px; }
.header { max-width: 1280px; margin: auto; padding: 28px 45px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.wordmark, .footer-name { font-family: var(--body); font-size: 18px; font-weight: 300; letter-spacing: .25em; line-height: 1.5; white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: 25px; font-size: 14px; font-weight: 700; }
nav a:hover, .text-button:hover { color: var(--teal); }
.section { max-width: 1160px; margin: auto; padding: 75px 45px; }
.eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: .15em; font-weight: 700; color: var(--teal); margin-bottom: 20px; }
h2, .help-heading h1, .sisters-heading h1 { font-size: clamp(34px, 4vw, 50px); font-weight: 700; }
.series-banner { background: var(--teal); overflow: hidden; color: white; }
.banner-inner { max-width: 1160px; margin: auto; padding: 36px 45px 0; min-height: 420px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; }
.series-title { padding-bottom: 40px; position: relative; z-index: 1; }
.series-title .eyebrow { color: var(--yellow); margin-bottom: 17px; font-size: 11px; }
.series-title h1 { font-size: clamp(76px, 8.5vw, 110px); font-weight: 800; line-height: .91; letter-spacing: -.035em; }
.banner-caption { font-size: 20px; font-weight: 500; margin-top: 23px; }
.banner-goose { width: 440px; max-height: 440px; object-fit: contain; justify-self: center; align-self: end; }
.series-intro { text-align: center; max-width: 920px; padding-top: 40px; padding-bottom: 42px; font-size: 20px; line-height: 1.65; }
.series-intro p + p { margin-top: 14px; font-size: 16px; }
.series-intro strong { font-weight: 600; }
.book-section { background: var(--cream); }
.featured-book { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 65px; padding-top: 65px; padding-bottom: 65px; }
.book-cover img { width: 100%; box-shadow: 0 8px 20px #142d5025; }
.book-number { display: inline-block; background: var(--yellow); padding: 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; margin-bottom: 20px; }
.book-copy h1 { font-size: clamp(35px, 4.1vw, 52px); margin-bottom: 16px; }
.book-authors { font-size: 13px; font-weight: 500; line-height: 1.65; margin-bottom: 22px; }
.book-copy > p:not(.book-number):not(.book-authors) { font-size: 16px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; gap: 14px; padding: 13px 22px; border-radius: 3px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.primary { background: var(--ink); color: white; }
.primary:hover { background: var(--teal); }
.text-button { padding: 8px 0; background: none; border: 0; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.next-stories { background: var(--ink); color: white; }
.next-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px 70px; padding-top: 42px; padding-bottom: 46px; align-items: center; }
.next-inner .eyebrow { grid-column: 1 / -1; color: var(--yellow); margin-bottom: 2px; }
.next-inner h2 { font-size: 40px; }
.next-inner > p:last-child { font-size: 20px; margin: 0; }
.help { background: #eef7f8; }
.help-heading { text-align: center; max-width: 720px; margin: 0 auto 45px; }
.help-heading h1 { margin-bottom: 18px; }
.help-heading > p:last-child { color: #42576a; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 65px; }
.steps article { display: flex; gap: 18px; padding-top: 22px; border-top: 2px solid #bfdce0; }
.step-number { color: var(--teal); font: 24px var(--heading); }
.steps h3 { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.steps p { font-size: 15px; }
.sisters-heading { text-align: center; margin: 0 auto 70px; }
.sisters-heading h1 { margin-bottom: 20px; }
.bio { display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; align-items: center; }
.bio + .bio { margin-top: 95px; }
.portrait { position: relative; max-width: 360px; width: 100%; }
.portrait img { width: 100%; border: 7px solid var(--cream); }
.bio-copy h3 { font-size: 31px; margin-bottom: 22px; }
.bio-copy h3 span { white-space: nowrap; }
.bio-copy p:not(.eyebrow) { font-size: 15px; line-height: 1.8; }
.bio-second { grid-template-columns: 1.2fr .8fr; }
.bio-second .portrait { grid-column: 2; grid-row: 1; }
.bio-second .bio-copy { grid-column: 1; grid-row: 1; }
.photo-label { position: absolute; top: -30px; color: var(--ink); font: 24px var(--hand); }
.photo-label svg { display: block; fill: none; stroke: #d6552c; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.molly-label { left: -10px; }
.bridget-label { right: -15px; }
.bridget-label svg { width: 130px; height: 82px; margin-left: auto; }
.author-social { text-align: center; margin-top: 52px; }
.author-social p { font-size: 14px; margin-top: 8px; }
.closing { background: var(--yellow); }
.closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-top: 40px; padding-bottom: 40px; }
.closing h2 { font-size: 36px; }
.closing h2 img { width: min(460px, 100%); margin-top: 12px; }
.dog-photo-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #d6552c;
  stroke-width: .95;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
footer { max-width: 1280px; margin: auto; padding: 30px 45px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 11px; }
.footer-name { font-size: 12px; }
footer p { font-size: 13px; }
dialog { width: min(1140px, 94vw); max-height: 92vh; padding: 30px; border: 0; background: white; color: var(--ink); overflow: auto; }
dialog::backdrop { background: #142d50e6; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.dialog-header .eyebrow { margin-bottom: 8px; }
.dialog-header h2 { font-size: 30px; }
.close { width: 40px; height: 40px; background: white; border: 1px solid #b9c5cd; border-radius: 50%; font-size: 28px; line-height: 1; flex-shrink: 0; }
.preview-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.preview-pages img { width: 100%; }
.preview-caption { font-size: 13px; margin: 18px 0; }
body.modal-open { overflow: hidden; }

@media (max-width: 960px) {
  .header { padding: 24px 30px; flex-direction: column; gap: 18px; }
  nav { justify-content: center; }
  .banner-inner { gap: 15px; padding-left: 35px; padding-right: 35px; min-height: 350px; }
  .series-title h1 { font-size: 85px; }
  .banner-goose { max-height: 365px; }
  .banner-caption { font-size: 17px; }
  .section { padding-left: 35px; padding-right: 35px; }
  .featured-book { gap: 40px; }
  .bio { gap: 45px; }
  .next-inner { gap: 15px 35px; }
  footer { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .header { padding: 22px 18px; gap: 16px; }
  .wordmark { font-size: 15px; letter-spacing: .23em; }
  nav { gap: 10px 22px; font-size: 12px; }
  .banner-inner { grid-template-columns: 1.05fr 1fr; gap: 0; min-height: 285px; padding: 28px 20px 0; }
  .series-title { padding-bottom: 28px; }
  .series-title .eyebrow { font-size: 9px; max-width: 170px; margin-bottom: 15px; }
  .series-title h1 { font-size: clamp(47px, 12.8vw, 76px); }
  .banner-caption { max-width: 170px; font-size: 13px; margin-top: 17px; }
  .banner-goose { width: 225px; max-width: 130%; height: 260px; object-fit: contain; object-position: bottom; margin-left: -8px; }
  .section { padding: 45px 23px; }
  .series-intro { font-size: 18px; padding-top: 30px; padding-bottom: 30px; }
  .series-intro p + p { font-size: 15px; }
  .featured-book { grid-template-columns: 1fr; gap: 35px; }
  .book-cover { max-width: 360px; width: 86%; margin: auto; }
  .book-copy h1 { font-size: 38px; }
  .book-number { margin-bottom: 18px; }
  .next-inner { display: block; }
  .next-inner .eyebrow { margin-bottom: 18px; }
  .next-inner h2 { font-size: 35px; margin-bottom: 18px; }
  .next-inner > p:last-child { font-size: 18px; }
  .help-heading { margin-bottom: 30px; }
  .help-heading h1 { font-size: 34px; }
  .steps { grid-template-columns: 1fr; gap: 23px; }
  .steps h3 { font-size: 21px; }
  .sisters-heading { margin-bottom: 65px; }
  .sisters-heading h1 { font-size: 35px; }
  .bio, .bio-second { display: flex; flex-direction: column; gap: 30px; }
  .portrait { width: 85%; align-self: center; }
  .bio + .bio { margin-top: 75px; }
  .bio-copy h3 { font-size: 30px; }
  .bio-copy .eyebrow { font-size: 10px; margin-bottom: 16px; }
  .photo-label { font-size: 22px; }
  .closing-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .closing h2 { font-size: 32px; }
  footer { padding: 27px 23px; flex-direction: column; align-items: flex-start; gap: 10px; }
  dialog { padding: 18px; }
  .dialog-header h2 { font-size: 24px; }
  .preview-pages { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.penny-label {
  top: auto;
  right: -12px;
  bottom: 10px;
  padding: 1px 7px;
  background: #ffffffed;
}


.lettering-filter { position: absolute; pointer-events: none; }
.series-lettering { width: 470px; height: auto; filter: url(#crisp-lettering); }
@media (max-width: 620px) {
  .series-lettering { width: 100%; }
}

nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-underline-offset: 5px; }
