/*
Theme Name: Nicholas Maxwell Author
Theme URI: https://nicholasmaxwellmd.me/
Author: Nicholas Maxwell, MD
Description: A professional author website featuring Life in the Pits and Life on the Cutting Edge while preserving Dr. Maxwell's authentic operating-room photography.
Version: 1.0.8
Text Domain: nicholas-maxwell-author
*/

:root {
  --navy: #071a2a;
  --navy-2: #0d2a41;
  --blue: #1c4d70;
  --brass: #c99a4d;
  --brass-light: #eed5a9;
  --paper: #f5f3ee;
  --white: #fff;
  --ink: #152333;
  --muted: #617080;
  --line: #d8dde0;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 1rem; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: #fff; color: #000; }
.skip-link:focus { top: 12px; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.24); }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.6); color: var(--brass-light); font: 700 .83rem var(--serif); letter-spacing: .08em; }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand strong { font-family: var(--serif); font-size: .98rem; letter-spacing: .01em; }
.brand small { margin-top: 4px; color: rgba(255,255,255,.7); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { position: relative; font-size: .88rem; font-weight: 600; text-decoration: none; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--brass-light); transition: right .2s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.45); padding: 8px 12px; color: #fff; background: transparent; font: 600 .85rem var(--sans); }

.hero { position: relative; min-height: 800px; display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; background: var(--navy); }
.hero-photo { position: absolute; inset: 0; opacity: 0; background-position: center; background-size: cover; transform: scale(1.035); animation: hero-crossfade 24s infinite; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,13,23,.96) 0%, rgba(2,13,23,.8) 42%, rgba(2,13,23,.18) 84%); }
.photo-one { background-image: url("assets/original-5595.jpeg"); animation-delay: 0s; }
.photo-two { background-image: url("assets/original-5597.jpeg"); animation-delay: 6s; }
.photo-three { background-image: url("assets/original-5489.jpeg"); animation-delay: 12s; }
.photo-four { background-image: url("assets/original-5336.jpeg"); animation-delay: 18s; }
@keyframes hero-crossfade {
  0% { opacity: 0; transform: scale(1.035); }
  5%, 25% { opacity: 1; }
  30%, 100% { opacity: 0; transform: scale(1.09); }
}
.hero-content { position: relative; padding-top: 96px; }
.hero-content > * { max-width: 690px; }
.eyebrow { margin: 0 0 20px; color: var(--brass-light); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.dark { color: #8a642a; }
h1, h2, h3 { margin: 0; font-family: var(--serif); line-height: 1.18; }
h1 { max-width: 820px !important; font-size: clamp(3rem, 6vw, 5.7rem); font-weight: 400; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.035em; }
h3 { font-size: 1.3rem; }
.hero-lede { margin: 28px 0 0; color: rgba(255,255,255,.8); font-size: 1.16rem; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 22px; border: 1px solid transparent; font-size: .84rem; font-weight: 700; letter-spacing: .045em; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #081826; background: var(--brass-light); }
.button-primary:hover { background: #f5dfb9; }
.button-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.04); }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.button-outline { border-color: #23445c; color: #14354e; background: transparent; }
.button-light { color: var(--navy); background: #fff; }
.scroll-cue { position: absolute; right: 52px; bottom: 36px; display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.6); font-size: .74rem; letter-spacing: .15em; text-decoration: none; text-transform: uppercase; }
.scroll-cue span { color: var(--brass-light); font-size: 1.1rem; }

.section { padding-block: 110px; }
.book-feature { display: grid; grid-template-columns: minmax(260px, 440px) 1fr; gap: clamp(60px, 8vw, 120px); align-items: center; }
.book-feature + .book-feature { border-top: 1px solid rgba(255,255,255,.22); }
.book-feature-new .book-art { order: 2; }
.book-feature-new .book-copy { order: 1; }
.book-art { position: relative; padding: 28px 0 28px 32px; }
.book-art img { position: relative; z-index: 1; width: min(340px, 90%); margin: 0 auto; box-shadow: 0 28px 70px rgba(2,16,27,.25); }
.book-halo { position: absolute; inset: 8% 0 0; background: var(--navy-2); }
.book-copy h2 em { font-weight: 400; }
.subtitle { margin: 10px 0 26px; color: #8b6730; font: italic 1.05rem var(--serif); }
.book-copy > p:not(.eyebrow):not(.subtitle) { max-width: 640px; color: #46576a; }
.purchase-actions { margin-top: 28px; }
.where-to-buy { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.where-to-buy h3 { margin-bottom: 18px; color: var(--navy-2); }
.retailer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin: 0; padding-left: 1.4rem; color: #46576a; }
.retailer-list li { padding-left: 4px; }
.retailer-list strong, .retailer-list span { display: block; }
.retailer-list strong { color: var(--ink); }
.retailer-list span { font-size: .9rem; }
.retailer-list a { color: #164969; }
.text-link { display: inline-flex; gap: 10px; margin-top: 22px; color: #164969; font-weight: 700; text-decoration: none; border-bottom: 1px solid #9eb2bf; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }

.quote-band { padding: 70px 0; color: #fff; background: var(--navy-2); }
.quote-grid { display: grid; grid-template-columns: 80px 1fr auto; gap: 34px; align-items: center; }
.quote-mark { margin: 0; color: var(--brass); font: 5.5rem/1 var(--serif); }
blockquote { margin: 0; max-width: 820px; font: italic clamp(1.55rem, 3vw, 2.55rem)/1.45 var(--serif); }
.quote-attribution { color: rgba(255,255,255,.6); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(60px, 8vw, 110px); align-items: center; }
.about-copy > p:not(.eyebrow) { max-width: 680px; color: #4d5e6d; }
.about-copy h2 { margin-bottom: 28px; }
.portrait-card { position: relative; margin: 0; padding: 18px 18px 0; background: #fff; box-shadow: 0 20px 50px rgba(12,33,50,.12); transform: rotate(1.2deg); }
.portrait-card img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center; filter: saturate(.8) contrast(1.03); }
.portrait-card figcaption { padding: 14px 4px 16px; color: #6b7781; font-size: .78rem; }
.credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.credentials strong, .credentials span { display: block; }
.credentials strong { color: var(--blue); font: 700 2.15rem var(--serif); }
.credentials span { color: #6a7782; font-size: .77rem; line-height: 1.45; }

.essays { background: #e9edef; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section-heading .text-link { margin: 0 0 8px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.essay-card { min-height: 300px; padding: 34px; background: #fff; border-top: 3px solid var(--brass); box-shadow: 0 10px 30px rgba(12,35,52,.06); }
.card-number { margin: 0 0 50px; color: #9a7a46; font: .8rem var(--serif); }
.essay-card h3 { margin-bottom: 16px; }
.essay-card p:last-child { color: #5f6e79; font-size: .94rem; }

.sailing-panel { position: relative; min-height: 610px; display: grid; align-items: center; overflow: hidden; color: #fff; }
.sailing-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,20,34,.1) 30%, rgba(3,20,34,.86) 75%, rgba(3,20,34,.96)), url("assets/sailing.png") center/cover no-repeat; }
.sailing-content { position: relative; display: grid; justify-items: start; padding-left: min(52%, 620px); }
.sailing-content h2 { max-width: 500px; }
.sailing-content p:not(.eyebrow) { max-width: 510px; color: rgba(255,255,255,.8); }

.events .section-heading { align-items: center; }
.event-note { max-width: 280px; color: var(--muted); }
.event-list { border-top: 1px solid #bdc6cb; }
.event-list article { display: grid; grid-template-columns: 92px 1fr; gap: 32px; align-items: center; padding: 26px 10px; border-bottom: 1px solid #bdc6cb; }
.event-list time { display: grid; grid-template-columns: auto auto; gap: 8px; align-items: baseline; color: var(--blue); }
.event-list time strong { font: 700 2rem var(--serif); }
.event-list time span { color: #8d6a33; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.event-list h3 { font-size: 1.2rem; }
.event-list p { margin: 3px 0 0; color: var(--muted); }

.contact { padding: 84px 0; color: #fff; background: var(--blue); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact .eyebrow { color: var(--brass-light); }
.contact p:not(.eyebrow) { color: rgba(255,255,255,.75); }
.contact .button { margin-top: 12px; }
footer { padding: 28px 0; color: rgba(255,255,255,.63); background: var(--navy); font-size: .75rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #fff; text-decoration: none; }
.inner-page { background: #fff; }
.inner-header { position: relative; width: 100%; padding-inline: max(24px, calc((100% - 1160px) / 2)); color: #fff; background: var(--navy); }
.content-page { min-height: 65vh; padding-block: 80px; }
.content-page > article > h1:first-child { margin-bottom: 32px; color: var(--navy); }

/* Dedicated Books page */
.books-page { background: var(--navy); }
.books-header { position: absolute; background: transparent; }
.books-hero { position: relative; min-height: 570px; display: grid; align-items: end; overflow: hidden; color: #fff; background: linear-gradient(90deg, rgba(2,13,23,.96), rgba(2,13,23,.68) 58%, rgba(2,13,23,.35)), url("assets/or-doors.png") center/cover no-repeat; }
.books-hero-copy { position: relative; padding-block: 170px 86px; }
.books-hero-copy h1 { max-width: 800px !important; font-size: clamp(2.8rem, 5.5vw, 5rem); }
.books-hero-copy > p:last-child { max-width: 760px; margin: 26px 0 0; color: rgba(255,255,255,.82); font-size: 1.1rem; }
.books-showcase { background: var(--navy); }
.book-page-card { display: grid; grid-template-columns: minmax(250px, 390px) 1fr; gap: clamp(55px, 8vw, 110px); align-items: center; padding-block: 100px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.2); }
.book-page-card-reverse { grid-template-columns: 1fr minmax(250px, 390px); }
.book-page-card-reverse .book-page-cover { order: 2; }
.book-page-card-reverse .book-page-copy { order: 1; }
.book-page-cover { padding: 24px; background: var(--navy-2); }
.book-page-cover img { width: 100%; box-shadow: 0 28px 60px rgba(0,0,0,.35); }
.book-page-copy h2 { color: #fff; }
.book-page-copy .subtitle { color: var(--brass-light); }
.book-page-copy > p:not(.eyebrow):not(.subtitle) { max-width: 650px; color: rgba(255,255,255,.82); }
.book-page-copy .text-link { color: var(--brass-light); border-color: rgba(238,213,169,.55); }
.buy-section { padding-block: 100px; color: #fff; background: var(--navy-2); }
.buy-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 42px; }
.buy-heading > p { max-width: 360px; color: rgba(255,255,255,.72); }
.retailer-list-page { grid-template-columns: repeat(2, minmax(0, 1fr)); color: rgba(255,255,255,.78); }
.retailer-list-page li { padding: 14px 8px 14px 4px; border-bottom: 1px solid rgba(255,255,255,.16); }
.retailer-list-page strong { color: #fff; }
.retailer-list-page a { color: var(--brass-light); }
.online-retailers { margin-top: 64px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.35); }
.online-retailers h3 { margin-bottom: 24px; }
.online-book { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.16); }
.online-book > strong { font: 700 1.08rem var(--serif); }
.online-book .actions { margin: 0; }
.online-book .button-outline { color: #fff; border-color: rgba(255,255,255,.65); }

/* Dedicated About page */
.about-page { background: var(--navy); }
.about-header { position: absolute; background: transparent; }
.about-hero { position: relative; min-height: 750px; display: grid; align-items: center; overflow: hidden; color: #fff; background: radial-gradient(circle at 76% 45%, rgba(28,77,112,.5), transparent 34%), var(--navy); }
.about-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background: url("assets/original-5597.jpeg") center/cover no-repeat; }
.about-hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr .65fr; gap: clamp(55px, 8vw, 115px); align-items: center; padding-block: 150px 90px; }
.about-hero-copy h1 { max-width: 760px !important; font-size: clamp(2.7rem, 5.3vw, 5.1rem); }
.about-hero-copy > p:last-child { max-width: 670px; margin: 28px 0 0; color: rgba(255,255,255,.8); font-size: 1.12rem; }
.about-portrait { margin: 0; padding: 18px 18px 0; background: #fff; box-shadow: 0 28px 65px rgba(0,0,0,.38); transform: rotate(1.2deg); }
.about-portrait img { width: 100%; aspect-ratio: 4 / 4.75; object-fit: cover; }
.about-portrait figcaption { padding: 14px 4px 16px; color: #6b7781; font-size: .78rem; }
.about-story { padding-block: 105px; color: #fff; background: var(--navy-2); }
.about-story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 9vw, 130px); }
.about-story h2 { max-width: 520px; }
.about-story-copy p { margin-top: 0; color: rgba(255,255,255,.8); }
.about-story-copy em { color: var(--brass-light); font-family: var(--serif); }
.career-section { padding-block: 105px; color: #fff; background: var(--navy); }
.career-heading h2 { max-width: 680px; }
.career-timeline { border-top: 1px solid rgba(255,255,255,.3); }
.career-timeline article { display: grid; grid-template-columns: 180px 1fr; gap: 50px; padding: 28px 8px; border-bottom: 1px solid rgba(255,255,255,.22); }
.career-timeline time { color: var(--brass-light); font: 700 1.1rem var(--serif); }
.career-timeline h3 { color: #fff; }
.career-timeline p { margin: 4px 0 0; color: rgba(255,255,255,.66); }
.about-quote { padding-block: 90px; color: #fff; text-align: center; background: var(--blue); }
.about-quote blockquote { max-width: 900px; margin-inline: auto; }
.about-quote p { margin: 25px 0 0; color: var(--brass-light); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }

/* Dedicated Adventures page */
.adventures-page { background: var(--navy); }
.adventures-header { position: absolute; background: transparent; }
.adventures-hero { position: relative; min-height: 790px; display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--navy); }
.adventures-hero-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,13,23,.93), rgba(2,13,23,.55) 52%, rgba(2,13,23,.14)), url("assets/sailing.png") center/cover no-repeat; }
.adventures-hero-copy { position: relative; padding-top: 90px; }
.adventures-hero-copy h1 { max-width: 740px !important; }
.adventures-hero-copy > p:last-child { max-width: 650px; margin-top: 28px; color: rgba(255,255,255,.82); font-size: 1.14rem; }
.journey-intro { padding-block: 105px; color: #fff; background: var(--navy-2); }
.journey-intro-grid { display: grid; grid-template-columns: .45fr 1.15fr .75fr; gap: 46px; align-items: start; }
.journey-intro h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
.journey-intro > .shell > p:last-child { margin-top: 0; color: rgba(255,255,255,.7); }
.adventure-stories { background: var(--navy); }
.adventure-feature { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(55px, 8vw, 110px); align-items: center; padding-block: 100px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.2); }
.adventure-feature-reverse { grid-template-columns: .85fr 1.15fr; }
.adventure-feature-reverse figure { order: 2; }
.adventure-feature-reverse > div { order: 1; }
.adventure-feature figure { margin: 0; padding: 16px; background: var(--navy-2); box-shadow: 0 25px 60px rgba(0,0,0,.3); }
.adventure-feature img { width: 100%; max-height: 610px; object-fit: cover; }
.adventure-feature h2 { margin-bottom: 24px; }
.adventure-feature div > p:last-child { color: rgba(255,255,255,.76); }
.destination-section { padding-block: 105px; color: #fff; background: var(--navy-2); }
.destination-heading { display: grid; grid-template-columns: 1fr .75fr; gap: clamp(45px, 8vw, 110px); align-items: end; margin-bottom: 52px; }
.destination-heading > p { margin: 0; color: rgba(255,255,255,.72); }
.destination-gallery { display: grid; gap: 22px; align-items: end; }
.destination-gallery-alaska, .destination-gallery-peru { grid-template-columns: .72fr 1.28fr; }
.photo-card { margin: 0; padding: 14px 14px 0; color: var(--ink); background: #fff; box-shadow: 0 25px 60px rgba(0,0,0,.25); }
.photo-card img { width: 100%; object-fit: cover; }
.photo-card-portrait img { aspect-ratio: 3 / 4; }
.photo-card-landscape img { aspect-ratio: 4 / 3; }
.photo-card figcaption { min-height: 66px; padding: 13px 4px 15px; color: #596876; font-size: .82rem; line-height: 1.5; }
.destination-peru > .destination-heading { padding-top: 100px; }
.destination-gallery-peru { padding-bottom: 100px; border-bottom: 1px solid rgba(255,255,255,.2); }
.nicaragua-story { color: #fff; background: var(--navy-2); }
.nicaragua-intro { position: relative; min-height: 570px; display: grid; align-items: end; background: linear-gradient(90deg, rgba(2,13,23,.93), rgba(2,13,23,.42) 67%, rgba(2,13,23,.18)), url("assets/adventure-cerro-background.jpeg") center/cover no-repeat; }
.nicaragua-intro .shell { padding-block: 110px 78px; }
.nicaragua-intro h2 { max-width: 650px; }
.nicaragua-intro p:last-child { max-width: 650px; margin: 25px 0 0; color: rgba(255,255,255,.8); }
.nicaragua-gallery { display: grid; grid-template-columns: .82fr 1.25fr .82fr; gap: 20px; align-items: center; padding-block: 90px 105px; }
.nicaragua-gallery .photo-card-tall img { aspect-ratio: 3 / 4; }
.nicaragua-gallery .photo-card-wide img { aspect-ratio: 4 / 3; }
.flight-story { padding-block: 105px; color: #fff; background: var(--navy-2); }
.flight-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 46px; }
.flight-heading > p { color: var(--brass-light); font-style: italic; }
.flight-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.flight-gallery figure { margin: 0; overflow: hidden; }
.flight-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.flight-gallery figure:hover img { transform: scale(1.025); }
.adventures-closing { padding-block: 95px; color: #fff; text-align: center; background: var(--blue); }
.adventures-closing blockquote { max-width: 920px; margin-inline: auto; }

/* Dedicated Essays page */
.essays-page { background: var(--paper); }
.essays-header { position: absolute; background: transparent; }
.essays-hero { position: relative; min-height: 690px; display: grid; align-items: end; overflow: hidden; color: #fff; background: linear-gradient(90deg, rgba(2,13,23,.95), rgba(2,13,23,.65) 52%, rgba(2,13,23,.2)), url("assets/essays-operating-room.jpeg") center/cover no-repeat; }
.essays-hero-copy { padding-block: 180px 95px; }
.essays-hero-copy h1 { max-width: 780px !important; font-size: clamp(2.9rem, 5.7vw, 5.3rem); }
.essays-hero-copy > p:last-child { max-width: 680px; margin: 27px 0 0; color: rgba(255,255,255,.82); font-size: 1.14rem; }
.essay-archive { padding-block: 105px; background: var(--paper); }
.essay-archive-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 60px; align-items: end; margin-bottom: 52px; }
.essay-archive-heading > p { margin: 0; color: var(--muted); }
.essay-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.essay-archive-card { overflow: hidden; background: #fff; border-top: 3px solid var(--brass); box-shadow: 0 14px 35px rgba(12,35,52,.08); }
.essay-card-image { display: block; overflow: hidden; }
.essay-card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.essay-card-image:hover img { transform: scale(1.025); }
.essay-card-body { padding: 30px; }
.essay-card-body time { color: #8b6730; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.essay-card-body h2 { margin: 12px 0 16px; font-size: 1.45rem; letter-spacing: -.02em; }
.essay-card-body h2 a { text-decoration: none; }
.essay-card-body > p { color: #5f6e79; font-size: .94rem; }
.essay-card-body .text-link { margin-top: 12px; }
.essay-empty { padding: 55px; text-align: center; background: #fff; border-top: 3px solid var(--brass); }
.essay-empty p { color: var(--muted); }

@media (max-width: 850px) {
  .shell, .site-header { width: min(100% - 32px, 700px); }
  .menu-toggle { display: block; }
  nav { position: absolute; top: 78px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; color: var(--navy); background: #fff; box-shadow: 0 16px 35px rgba(0,0,0,.2); }
  nav.is-open { display: flex; }
  nav a { padding: 12px; }
  nav a::after { display: none; }
  .hero { min-height: 760px; }
  .hero-photo { background-position: 58% center; }
  .hero-photo::after { background: linear-gradient(90deg, rgba(2,13,23,.94), rgba(2,13,23,.52)); }
  .scroll-cue { display: none; }
  .book-feature, .about, .contact-inner { grid-template-columns: 1fr; }
  .book-feature { gap: 64px; }
  .book-feature-new .book-art, .book-feature-new .book-copy { order: initial; }
  .book-art { max-width: 460px; margin-inline: auto; }
  .quote-grid { grid-template-columns: 55px 1fr; }
  .quote-attribution { grid-column: 2; }
  .portrait-card { max-width: 430px; }
  .card-grid { grid-template-columns: 1fr; }
  .essay-card { min-height: 240px; }
  .card-number { margin-bottom: 28px; }
  .sailing-bg { background: linear-gradient(0deg, rgba(3,20,34,.94), rgba(3,20,34,.12) 72%), url("assets/sailing.png") 35% center/cover no-repeat; }
  .sailing-content { align-self: end; padding: 0 0 64px; }
  .contact-inner { gap: 30px; }
  .book-page-card, .book-page-card-reverse { grid-template-columns: 1fr; }
  .book-page-card-reverse .book-page-cover, .book-page-card-reverse .book-page-copy { order: initial; }
  .book-page-cover { width: min(430px, 100%); margin-inline: auto; }
  .about-hero-grid, .about-story-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; }
  .journey-intro-grid, .adventure-feature, .adventure-feature-reverse, .destination-heading, .essay-archive-heading { grid-template-columns: 1fr; }
  .adventure-feature-reverse figure, .adventure-feature-reverse > div { order: initial; }
  .nicaragua-gallery { grid-template-columns: 1fr 1fr; align-items: start; }
  .nicaragua-gallery .photo-card-wide { grid-column: 1 / -1; grid-row: 1; }
  .essay-archive-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: .98rem; }
  .brand strong { font-size: .86rem; }
  .brand small { font-size: .68rem; }
  .hero { min-height: 720px; }
  h1 { font-size: 2.8rem; }
  .hero-lede { font-size: 1rem; }
  .section { padding-block: 78px; }
  .actions .button { width: 100%; }
  .book-art { padding-left: 18px; }
  .book-art img { width: 80%; }
  .retailer-list { grid-template-columns: 1fr; }
  .quote-band { padding: 54px 0; }
  .quote-grid { grid-template-columns: 1fr; gap: 10px; }
  .quote-mark { height: 55px; }
  .quote-attribution { grid-column: 1; }
  .credentials { grid-template-columns: 1fr; gap: 15px; }
  .credentials div { display: grid; grid-template-columns: 55px 1fr; align-items: center; gap: 15px; }
  .section-heading { display: block; }
  .section-heading .text-link { margin-top: 22px; }
  .event-list article { grid-template-columns: 74px 1fr; gap: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .books-hero { min-height: 600px; }
  .books-hero-copy { padding-block: 150px 65px; }
  .book-page-card { padding-block: 74px; }
  .buy-heading, .online-book { display: block; }
  .retailer-list-page { grid-template-columns: 1fr; }
  .online-book .actions { margin-top: 16px; }
  .about-hero { min-height: auto; }
  .about-hero-grid { padding-block: 145px 75px; }
  .career-timeline article { grid-template-columns: 1fr; gap: 8px; }
  .adventures-hero { min-height: 720px; }
  .adventures-hero-bg { background: linear-gradient(0deg, rgba(2,13,23,.94), rgba(2,13,23,.22) 72%), url("assets/sailing.png") 38% center/cover no-repeat; }
  .adventures-hero-copy { align-self: end; padding: 0 0 70px; }
  .flight-heading { display: block; }
  .flight-gallery { grid-template-columns: 1fr; }
  .destination-gallery-alaska, .destination-gallery-peru, .nicaragua-gallery { grid-template-columns: 1fr; }
  .nicaragua-gallery .photo-card-wide { grid-column: auto; grid-row: auto; }
  .nicaragua-intro { min-height: 520px; background-position: 58% center; }
  .essays-hero { min-height: 620px; background-position: 45% center; }
  .essays-hero-copy { padding-block: 155px 70px; }
  .essay-archive-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .hero-photo { display: none; animation: none; }
  .hero-photo.photo-one { display: block; opacity: 1; transform: none; }
}

/* Strong-contrast treatment for the text sections. */
body.home { background: #071a2a !important; }
.book-feature,
.about,
.events {
  background: #071a2a !important;
  box-shadow: 0 0 0 100vmax #071a2a;
  clip-path: inset(0 -100vmax);
}
.book-feature h2,
.book-feature h3,
.book-feature p,
.retailer-list,
.retailer-list strong,
.about h2,
.about-copy > p:not(.eyebrow),
.credentials span,
.events h2,
.events h3,
.events p {
  color: #ffffff !important;
}
.book-feature .eyebrow,
.book-feature .subtitle,
.book-feature a:not(.button),
.about .eyebrow,
.events .eyebrow,
.credentials strong,
.events time strong {
  color: #eed5a9 !important;
}
.book-feature .button-outline {
  color: #ffffff !important;
  border-color: #ffffff !important;
}
.where-to-buy,
.credentials,
.event-list,
.event-list article {
  border-color: rgba(255, 255, 255, .35) !important;
}
