/* Lighthouse Librarian
   Layout idea: calm cream pages, one bold moment (the beacon in the hero), soft sea-mist bands,
   cards with a turned-down page corner. */
:root {
  --navy: #1E3A5F;
  --navy-deep: #142B48;
  --butter: #F6C453;
  --butter-soft: #FCEFC7;
  --coral: #D9532F;
  --coral-ink: #B8452B;
  --coral-soft: #FBE3DA;
  --cream: #FBF5E9;
  --paper: #FFFDF8;
  --mist: #CFE0EA;
  --mist-soft: #E6EFF4;
  --ink: #16253A;
  --ink-soft: #33425A;
  --line: #E7DCC4;
  --field: #6F849A;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream) url("dots.svg") 0 0 / 640px 640px;
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--coral-ink); }
:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--butter); }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0 0 .6em; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.8vw, 4.1rem); line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); line-height: 1.12; font-weight: 700; }
h3 { font-size: 1.4rem; line-height: 1.2; font-weight: 600; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--navy); color: var(--cream); padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.measure { max-width: 66ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1.05rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-deep); color: var(--butter); }
.btn-gold { background: var(--butter); color: var(--navy); }
.btn-gold:hover { background: #FFD677; color: var(--navy); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: var(--cream) url("dots.svg") 0 0 / 640px 640px; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 64px; height: auto; display: block; }
.brand-name { line-height: 1.02; font-family: var(--display); font-size: 1.45rem; }
.brand-name b { display: block; color: var(--navy); font-weight: 700; }
.brand-name i { display: block; color: var(--coral); font-weight: 700; font-style: italic; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { margin: 0; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-weight: 700; text-decoration: none; color: var(--navy);
  border-bottom: 4px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--coral-ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--butter); }
.site-nav .btn { margin-left: 8px; min-height: 46px; }
.menu-toggle {
  display: none; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--navy);
  background: transparent; color: var(--navy); font: 700 1rem var(--body); cursor: pointer;
}

/* Hero */
.hero { position: relative; padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-place { font-weight: 700; color: var(--coral-ink); margin-bottom: .9rem; }
.tagline { font: italic 600 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.2 var(--display); color: var(--coral-ink); margin: 0 0 1.1rem; }
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.6rem; }
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 520px; padding: 6%; }
.bubbles { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bubbles circle { mix-blend-mode: multiply; }
.beacon { position: relative; width: 100%; max-width: 460px; margin: 0 auto; display: block; filter: drop-shadow(0 18px 28px rgba(30, 58, 95, .22)); }
.beam { animation: sweep 7s ease-in-out infinite; }
.beam.b2 { animation-delay: -3.5s; }
@keyframes sweep { 0%, 100% { opacity: .12; } 50% { opacity: .85; } }
.wave { display: block; width: 100%; height: clamp(34px, 6vw, 70px); color: var(--mist-soft); position: absolute; left: 0; bottom: -1px; }

/* Intro band */
.band-mist { background: var(--mist-soft) url("dots.svg") 0 0 / 640px 640px; }
.intro-text { font: 400 clamp(1.25rem, 1.1rem + .6vw, 1.55rem)/1.55 var(--body); color: var(--ink); max-width: 62ch; }

/* Service cards */
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius) 0 var(--radius) var(--radius);
  padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.card::after {
  content: ""; position: absolute; top: -1px; right: -1px; width: 38px; height: 38px;
  background: linear-gradient(225deg, var(--cream) 50%, rgba(30, 58, 95, .14) 50%); border-bottom-left-radius: 10px;
}
.card h3 { margin: 0; }
.card p { margin: 0; }
.card .meta { font-weight: 700; color: var(--ink-soft); font-size: 1rem; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 700; }
.card .icon { width: 48px; height: 48px; stroke: var(--navy); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card.c-tutor { grid-column: span 7; background: var(--butter-soft); border-color: #EBD08A; }
.card.c-clubs { grid-column: span 5; background: var(--mist-soft); border-color: #BFD3DF; }
.card.c-story { grid-column: span 4; background: var(--paper); }
.card.c-author { grid-column: span 4; background: var(--coral-soft); border-color: #EFC3B3; }
.card.c-work { grid-column: span 4; background: var(--paper); }
.c-tutor .big { font: 600 1.45rem/1.3 var(--display); color: var(--navy); }

/* Meet Danielle */
.band-butter { background: var(--butter-soft) url("dots.svg") 0 0 / 640px 640px; }
.meet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.frame { margin: 0; }
.frame img { display: block; width: 100%; height: auto; border-radius: 22px 22px 22px 6px; border: 6px solid var(--paper); box-shadow: 0 14px 30px rgba(30, 58, 95, .2); }
.frame figcaption { font-size: .98rem; color: var(--ink-soft); margin-top: 10px; }
.price-note { font-weight: 700; color: var(--navy); }

/* Testimonials */
.quote-card {
  margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.quote-card blockquote { margin: 0; font: 500 1.2rem/1.5 var(--display); color: var(--ink); }
.quote-card blockquote::before { content: "\201C"; display: block; font: 700 3.2rem/.6 var(--display); color: var(--butter); margin-bottom: 6px; }
.quote-card figcaption { font-weight: 700; color: var(--coral-ink); font-size: 1rem; margin-top: auto; }
.quotes-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quotes-wall { column-count: 3; column-gap: 20px; }
.quotes-wall .quote-card { break-inside: avoid; margin-bottom: 20px; }

/* Pull quote band */
.band-navy { background: var(--navy) url("dots-light.svg") 0 0 / 640px 640px; color: var(--cream); }
.pull { text-align: center; max-width: 46rem; margin: 0 auto; }
.pull p { font: italic 600 clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem)/1.3 var(--display); color: var(--cream); margin: 0; }
.pull .glow { width: 70px; height: auto; margin: 0 auto 18px; display: block; }

/* CTA */
.cta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { margin: 0; }
.contact-list strong { display: block; font-size: .98rem; color: var(--ink-soft); }
.contact-list a { font-weight: 700; font-size: 1.2rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }

/* Interior pages */
.page-head { background: var(--mist-soft) url("dots.svg") 0 0 / 640px 640px; padding-block: clamp(2.2rem, 1.5rem + 3vw, 4rem); }
.page-head h1 { margin-bottom: .4em; }
.page-head p { max-width: 60ch; color: var(--ink-soft); margin: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.jump li { margin: 0; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--paper);
  border: 2px solid var(--navy); font-weight: 700; text-decoration: none; color: var(--navy);
}
.jump a:hover { background: var(--navy); color: var(--cream); }

.service { padding-block: clamp(2.6rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.service:last-of-type { border-bottom: 0; }
.service-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); }
.service-side { display: flex; flex-direction: column; gap: 10px; align-content: start; }
.service-side .icon { width: 56px; height: 56px; stroke: var(--navy); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.service-side h2 { margin: 0; }
.pill { display: inline-block; align-self: flex-start; background: var(--butter-soft); border: 1px solid #EBD08A; border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 1rem; color: var(--navy); }
.service-body h3 { margin-top: 1.8rem; }
.service-body h3:first-child { margin-top: 0; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.checks li { margin: 0; padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; background: var(--butter); border: 2px solid var(--navy); border-radius: 50%; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 1rem; }
.skills li { margin: 0; background: var(--mist-soft); border: 1px solid #BFD3DF; border-radius: 999px; padding: 6px 16px; font-weight: 700; color: var(--navy); }
.callout { background: var(--butter-soft); border: 1px solid #EBD08A; border-radius: var(--radius); padding: 20px 24px; margin: 1.2rem 0; }
.callout h3 { font-size: 1.15rem; margin-bottom: .3em; }
.callout p { margin: 0; }
.big-line { font: 600 1.45rem/1.35 var(--display); color: var(--navy); }
.sub { padding-top: 1.6rem; margin-top: 1.6rem; border-top: 1px dashed #C9BC9D; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.photo-stack { display: grid; gap: 22px; }
.photo-stack .frame:nth-child(2) { width: 82%; justify-self: end; }
.facts { list-style: none; padding: 0; display: grid; gap: 12px; }
.facts li { margin: 0; padding: 14px 18px 14px 52px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--butter); border: 2px solid var(--navy); border-radius: 3px 14px 3px 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.contact-grid > section { scroll-margin-top: 16px; }
.dashed { border: 2px dashed #8EA7BA; border-radius: var(--radius); padding: 20px 22px; background: var(--mist-soft); margin-top: 1.2rem; }
.dashed h3 { font-size: 1.2rem; margin-bottom: .3em; }
.dashed p:last-child { margin-bottom: 0; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--field); background: #fff; color: var(--ink); font: 400 1.05rem var(--body);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 2px; }
.hint { font-size: 1rem; color: var(--ink-soft); }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 12px; border: 2px solid; }
.form-status:focus { outline: 3px solid var(--navy); outline-offset: 3px; }
.form-status.info { background: var(--mist-soft); border-color: #8EA7BA; }
.form-status.ok { background: #E4F3E6; border-color: #3C7A47; }
.form-status.err { background: var(--coral-soft); border-color: var(--coral-ink); }

/* Footer */
.site-footer { background: var(--navy-deep) url("dots-light.svg") 0 0 / 640px 640px; color: var(--cream); padding-block: 3rem 2rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--butter); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1fr); gap: 2rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-brand img { width: 64px; height: auto; }
.footer-brand .brand-name b { color: var(--cream); }
.footer-brand .brand-name i { color: var(--butter); }
.footer-tag { font: italic 600 1.2rem/1.3 var(--display); color: var(--butter); margin: 1rem 0 0; }
.site-footer h2 { font: 700 1.1rem var(--body); color: var(--butter); margin-bottom: .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.legal { border-top: 1px solid rgba(251, 245, 233, .25); margin-top: 2rem; padding-top: 1.2rem; font-size: .98rem; color: #D6DEE8; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .meet, .cta, .about-grid, .contact-grid, .service-grid { grid-template-columns: minmax(0, 1fr); }
  .beacon { max-width: 380px; }
  .card.c-tutor, .card.c-clubs { grid-column: span 12; }
  .card.c-story, .card.c-author, .card.c-work { grid-column: span 6; }
  .card.c-work { grid-column: span 12; }
  .quotes-3 { grid-template-columns: minmax(0, 1fr); }
  .quotes-wall { column-count: 2; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .service-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); box-shadow: 0 14px 24px rgba(30, 58, 95, .12); }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .site-nav a:not(.btn) { min-height: 50px; border-bottom: 0; border-left: 4px solid transparent; }
  .js .site-nav a[aria-current="page"] { border-left-color: var(--butter); }
  .js .site-nav .btn { margin: 10px 0 0; width: 100%; }
  .no-js-wrap { flex-wrap: wrap; }
  html:not(.js) .header-bar { flex-wrap: wrap; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
  .brand img { width: 54px; }
  .brand-name { font-size: 1.25rem; }
}
@media (max-width: 600px) {
  .card.c-story, .card.c-author, .card.c-work { grid-column: span 12; }
  .quotes-wall { column-count: 1; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { width: 100%; }
  .photo-stack .frame:nth-child(2) { width: 100%; }
  .card { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam { animation: none; opacity: .5; }
  .btn { transition: none; }
}

/* ---- Extra warmth ---- */
:root { --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; }
.hero-place { font: 700 1.7rem/1 var(--hand); color: var(--coral-ink); margin-bottom: .7rem; }
.squig { display: block; width: 190px; height: 12px; margin: -.5rem 0 1.2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* credential chips */
.chips { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { margin: 0; background: var(--paper); border: 2px solid var(--navy); border-radius: 999px; padding: 6px 16px 6px 38px; font-weight: 700; font-size: 1rem; color: var(--navy); position: relative; }
.chips li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--butter); border: 2px solid var(--navy); border-radius: 50%; }

/* trust tiles */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { grid-column: span 2; margin: 0; background: var(--paper); border: 2px dashed #B7C9D6; border-radius: 22px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.tile:nth-child(4) { grid-column: 2 / span 2; }
.tile:nth-child(5) { grid-column: 4 / span 2; }
.tile .icon { width: 44px; height: 44px; stroke: var(--navy); fill: var(--butter-soft); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tile:nth-child(even) .icon { fill: var(--coral-soft); }
.tile p { margin: 0; font-weight: 600; line-height: 1.45; }

/* bookworm */
.hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: .4rem; }
.hd h1, .hd h2 { margin-bottom: .2em; }
.worm { width: 128px; height: auto; flex: none; margin-bottom: -4px; }

/* polaroids */
.polaroids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; padding: 10px 0 24px; }
.polaroid { margin: 0; background: #fff; padding: 12px 12px 14px; box-shadow: 0 12px 26px rgba(30, 58, 95, .22); position: relative; border-radius: 4px; }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { font: 700 1.35rem/1.1 var(--hand); color: var(--navy); text-align: center; padding-top: 10px; }
.polaroid::before { content: ""; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px; margin-left: -46px; transform: rotate(-3deg);
  background: repeating-linear-gradient(135deg, rgba(246, 196, 83, .88) 0 8px, rgba(252, 239, 199, .88) 8px 16px); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.polaroid.p1 { transform: rotate(-3deg); }
.polaroid.p2 { transform: rotate(2.6deg); margin-top: 34px; }
.polaroid.p2::before { transform: rotate(4deg); background: repeating-linear-gradient(135deg, rgba(217, 83, 47, .55) 0 8px, rgba(251, 227, 218, .9) 8px 16px); }
.meet { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }

/* speech-bubble reviews */
.quote-card { --q: var(--paper); background: var(--q); border-radius: 24px; }
.quote-card:nth-child(3n+2) { --q: var(--butter-soft); }
.quote-card:nth-child(3n) { --q: var(--mist-soft); }
.quote-card::after { content: ""; position: absolute; left: 38px; bottom: -11px; width: 20px; height: 20px; background: var(--q); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg) skew(8deg, 8deg); border-bottom-right-radius: 5px; }
.quote-card figcaption { font: 700 1.5rem/1 var(--hand); color: var(--coral-ink); padding-left: 28px; position: relative; }
.quote-card figcaption::before { content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 18px; margin-top: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21S1 14 1 7a5.5 5.5 0 0 1 11-1.6A5.5 5.5 0 0 1 23 7c0 7-11 14-11 14z' fill='%23D9532F'/%3E%3C/svg%3E") center / contain no-repeat; }
.quotes-3 { gap: 26px 20px; }

/* library card */
.library-card { position: relative; background: #FFFBEF; border: 1px solid #D8CBB0; border-radius: 8px; box-shadow: 0 14px 28px rgba(30, 58, 95, .18); transform: rotate(1.4deg); overflow: hidden; max-width: 460px; justify-self: center; width: 100%; }
.lc-head { background: var(--navy); color: var(--cream); font: 700 1.35rem/1 var(--display); padding: 16px 22px; }
.lc-rows { margin: 0; padding: 4px 22px 22px 52px; position: relative; background: repeating-linear-gradient(to bottom, transparent 0 55px, #BFD3DF 55px 57px); }
.lc-rows::before { content: ""; position: absolute; left: 36px; top: 0; bottom: 0; width: 2px; background: #E7A99A; }
.lc-rows div { padding: 14px 0 6px; min-height: 57px; }
.lc-rows dt { font: 700 1.2rem/1 var(--hand); color: var(--ink-soft); }
.lc-rows dd { margin: 2px 0 0; font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.stamp { position: absolute; right: 12px; bottom: 14px; width: 112px; height: 112px; border: 3px double var(--coral-ink); border-radius: 50%; display: grid; place-items: center; text-align: center; transform: rotate(-14deg); color: var(--coral-ink); background: rgba(255, 251, 239, .72); }
.stamp span { font: 700 .88rem/1.1 var(--body); padding: 0 12px; }

/* shelf of book spines above the footer */
.shelf { height: clamp(78px, 10vw, 130px); background: url("../assets/shelf.svg") left bottom / auto 100% repeat-x; margin-top: -1px; }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile:nth-child(4), .tile:nth-child(5) { grid-column: auto; }
  .tile:nth-child(5) { grid-column: 1 / -1; }
  .polaroids { max-width: 520px; margin: 0 auto; }
  .library-card { transform: rotate(0.8deg); }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .worm { width: 92px; }
  .polaroids { gap: 12px; }
  .polaroid { padding: 8px 8px 10px; }
  .polaroid figcaption { font-size: 1.1rem; }
  .stamp { width: 96px; height: 96px; }
  .stamp span { font-size: .78rem; }
  .hero-place { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .worm { transform-origin: 50% 100%; animation: peek 5s ease-in-out infinite; }
  @keyframes peek { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-2deg); } }
}
.hero { overflow-x: clip; }
@media (max-width: 960px) { .meet { grid-template-columns: minmax(0, 1fr); } }
.library-card { overflow: visible; }
.lc-head { border-radius: 7px 7px 0 0; }
.lc-rows { background: none; padding-bottom: 14px; }
.lc-rows div { min-height: 0; border-bottom: 2px solid #BFD3DF; padding: 12px 0 8px; }
.lc-rows div:last-child { border-bottom: 0; }
.stamp { right: -16px; bottom: auto; top: 58px; background: rgba(255, 251, 239, .94); }
@media (max-width: 600px) { .stamp { right: -6px; top: 64px; } }
.big-line { font-weight: 500; font-size: 1.3rem; }
.c-tutor .big { font: 400 1.125rem/1.6 var(--body); color: var(--ink); }
