/* Shared phone and tablet refinements for The Last Abbey. */
img, svg { max-width: 100%; }
button, a, input, textarea, select { touch-action: manipulation; }
button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
.bookitem > div, .bookgrid > div, .mapgrid > div, .contact-page > div { min-width: 0; }
@media (max-width: 900px) {
  .nav { gap: 16px; }
  .navlinks { gap: 18px; }
  .home-featured-book { gap: 36px; }
  .bookitem .btn { max-width: 100%; white-space: normal; }
}
@media (max-width: 700px) {
  .wrap { width: 90%; }
  .nav { height: 80px; gap: 10px; }
  .brand { gap: 9px; min-width: 0; }
  .brand-logo { width: 54px; height: 54px; }
  .brand span { font-size: 23px; white-space: nowrap; }
  .menu { display: block; min-width: 58px; min-height: 44px; padding: 8px 11px; margin-left: auto; font-size: 12px; color: var(--ink); border-color: #aaa48f; }
  .nav { position: relative; }
  .navlinks { display: none; position: absolute; top: 79px; left: -5.556%; right: -5.556%; padding: 16px 5%; background: var(--paper); z-index: 30; border-bottom: 1px solid var(--line); box-shadow: 0 12px 18px #24282012; }
  .navlinks.open { display: grid; grid-template-columns: 1fr; gap: 0; }
  .navlinks a { display: flex; align-items: center; min-height: 46px; padding: 10px 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
  .navlinks a:last-child { border-bottom: 0; }
  .navlinks .navcta { display: flex; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--ink); }
  section { padding-top: 48px; padding-bottom: 48px; }
  h2 { font-size: clamp(36px, 8.5vw, 48px); line-height: 1.08; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 34px 0 44px; gap: 28px; }
  .hero h1 { font-size: clamp(53px, 14.5vw, 78px); line-height: 1.01; letter-spacing: -.035em; margin: 22px 0; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .13em; gap: 9px; }
  .hero .eyebrow::before { width: 22px; flex-shrink: 0; }
  p.intro { font-size: 15px; max-width: 460px; line-height: 1.8; }
  .hero .art { max-width: 420px; width: 100%; margin: 0 auto; }
  .herofoot { font-size: 9px; letter-spacing: .12em; margin-top: 22px; }
  .artlabel { font-size: 8px; gap: 12px; letter-spacing: .07em; }
  .artlabel span:last-child { text-align: right; }
  .buttons { gap: 14px 20px; margin: 24px 0; }
  .btn { min-height: 48px; max-width: 100%; padding: 13px 17px; gap: 16px; font-size: 12px; line-height: 1.5; }
  .btn > span { flex-shrink: 0; }
  .textlink { display: inline-flex; align-items: center; min-height: 44px; }
  .ribbon { flex-wrap: wrap; gap: 8px 14px; padding: 15px 5%; line-height: 1.7; font-size: 8px; }
  .sectiontop { display: block; margin-bottom: 28px; }
  .sectiontop p { margin-top: 18px; font-size: 14px; }
  .stories { grid-template-columns: 1fr; gap: 34px; }
  .story h3 { font-size: 32px; }
  .story p { min-height: 0; font-size: 14px; margin-bottom: 12px; }
  .scene { height: 210px; }
  .read { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
  .mapgrid, .about, .bookgrid { grid-template-columns: 1fr; gap: 30px; }
  .mapsection { padding: 48px 0; }
  .mapcopy p { font-size: 14px; }
  .mapart { order: 2; padding: 15px; }
  .mapnote { font-size: 8px; letter-spacing: .09em; }
  .home-featured-book { grid-template-columns: 1fr; gap: 30px; text-align: center; padding: 48px 0; }
  .home-book-copy { margin: auto; }
  .home-book-copy .buttons { justify-content: center; }
  .home-book-copy .home-book-subtitle { font-size: 24px; }
  .home-book-cover { grid-row: 1; width: min(235px, 76%); }
  .about { padding: 44px 0; }
  .about h2 { font-size: 39px; }
  .about p { font-size: 14px; }
  .follow.wrap { width: 90%; }
  .follow { padding: 44px 0 48px; }
  .follow h2 { font-size: clamp(37px, 9vw, 48px); }
  .follow > p { font-size: 14px; line-height: 1.8; }
  .tiktok-carousel-top { gap: 10px; }
  .tiktok-carousel-top .eyebrow { font-size: 8px; letter-spacing: .12em; max-width: 160px; }
  .tiktok-carousel-controls { gap: 8px; flex-shrink: 0; }
  .tiktok-carousel-controls button { width: 44px; height: 44px; }
  .tiktok-track { gap: 16px; padding-bottom: 16px; }
  .story-gallery-card.abbey-tiktok-card { flex-basis: 87%; min-width: 0; }
  .story-gallery-copy { padding: 20px; }
  .story-gallery-copy h3 { font-size: 29px; }
  .story-gallery-action { min-height: 44px; }
  .books-page-intro { padding: 35px 0 0; }
  .books-page-intro h1 { font-size: clamp(54px, 14vw, 72px); margin: 20px 0; }
  .standalone-books { padding: 24px 0 48px; }
  .standalone-books .booklist { grid-template-columns: 1fr; gap: 20px; }
  .standalone-books .bookitem:first-of-type { grid-column: auto; }
  .standalone-books .bookitem h3 { font-size: 31px; }
  .standalone-books .bookitem p { font-size: 14px; line-height: 1.8; }
  .standalone-books .bookitem .featured-cover, .colour-book-cover { width: min(245px, 82%); }
  .about-page { padding: 35px 0 48px; }
  .about-page h1 { font-size: clamp(50px, 13vw, 70px); line-height: 1.03; }
  .about-lead { font-size: 26px; margin-bottom: 28px; }
  .about-body h2 { font-size: 34px; margin-top: 32px; }
  .about-body p { font-size: 15px; line-height: 1.85; }
  .contact-page { grid-template-columns: 1fr; padding: 35px 0 48px; gap: 28px; }
  .contact-page h1 { font-size: clamp(53px, 14vw, 72px); line-height: 1.04; }
  .contact-page .contact-email { font-size: 16px; overflow-wrap: anywhere; }
  .form-field label { font-size: 14px; margin-bottom: 8px; }
  .form-field input, .form-field textarea, .form-field select { min-height: 48px; font-size: 16px; padding: 13px 12px; }
  .form-field textarea { min-height: 160px; }
  .form-actions .btn { min-width: 150px; justify-content: center; }
  .contact-page .privacy-note { font-size: 12px; line-height: 1.8; }
  footer { padding: 24px 0; }
  .footerin { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-brand { gap: 12px; font-size: 10px; line-height: 1.8; }
  .footer-logo { width: 54px; height: 54px; }
  .footerlinks { display: flex; flex-wrap: wrap; gap: 0 22px; }
  .footerlinks a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
  dialog { width: calc(100% - 24px); padding: 22px; max-height: 88dvh; }
  dialog h2 { font-size: 36px; clear: both; padding-top: 12px; }
  dialog .close { min-height: 44px; }
}
@media (max-width: 360px) {
  .brand-logo { width: 46px; height: 46px; }
  .brand span { font-size: 21px; }
  .nav { gap: 8px; }
  .hero h1 { font-size: 51px; }
  .hero .eyebrow { font-size: 8px; }
  .storynum { font-size: 9px; letter-spacing: .08em; }
  .standalone-books .btn { font-size: 11px; padding: 12px; gap: 10px; }
  .story-gallery-copy { padding: 17px; }
}
