:root {
  --ink: #143139;
  --deep: #063c50;
  --blue: #0d6f83;
  --water: #68c6ce;
  --sun: #f4b44b;
  --tomato: #d44f31;
  --cream: #fff9ed;
  --paper: #f1eadb;
  --olive: #556738;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 0; left: 1rem; z-index: 200; padding: .7rem 1rem; transform: translateY(-120%); background: white; color: var(--deep); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 clamp(1.25rem, 4vw, 4.5rem); color: white; transition: background .3s, box-shadow .3s, height .3s; }
.site-header.scrolled { height: 66px; background: rgba(6,60,80,.94); box-shadow: 0 8px 30px rgba(1,30,40,.18); backdrop-filter: blur(12px); }
.brand { font: 700 clamp(1.3rem, 2vw, 1.65rem)/1 var(--serif); letter-spacing: -.045em; text-decoration: none; }
.brand span { color: var(--sun); font-style: italic; }
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 3rem); }
.site-nav a { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; position: relative; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 2px; background: var(--sun); transition: right .25s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; color: white; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: white; background: var(--deep); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 54%; animation: settle 1.4s ease both; }
@keyframes settle { from { scale: 1.04; opacity: .7; } to { scale: 1; opacity: 1; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,24,32,.72) 0%, rgba(3,24,32,.28) 52%, rgba(3,24,32,.08) 75%), linear-gradient(0deg, rgba(3,24,32,.58), transparent 52%); }
.hero-copy { position: relative; z-index: 2; width: min(760px, 88vw); margin: 0 0 clamp(5rem, 12vh, 9rem) clamp(1.25rem, 8vw, 8rem); }
.eyebrow, .kicker { margin: 0 0 1rem; font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { max-width: 800px; margin: 0; font: 400 clamp(4rem, 9.2vw, 9.5rem)/.82 var(--serif); letter-spacing: -.065em; text-shadow: 0 4px 35px rgba(0,0,0,.15); }
.hero-copy > p:not(.eyebrow) { max-width: 570px; margin: 2rem 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; }
.hero-copy > .hero-script { margin: 1.25rem 0 .5rem; color: var(--sun); font: italic 400 clamp(1.7rem, 3.2vw, 3rem)/1.1 var(--serif); letter-spacing: -.02em; }
.hero-copy > .hero-script + p { margin-top: .7rem; }
.down-link { display: inline-flex; gap: .75rem; align-items: center; padding-bottom: .35rem; border-bottom: 2px solid var(--sun); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.hero-note { position: absolute; right: clamp(1.25rem, 4vw, 4.5rem); bottom: 2rem; z-index: 2; max-width: 270px; margin: 0; font: italic 1rem/1.4 var(--serif); text-align: right; }

.chapter-nav { position: sticky; top: 66px; z-index: 40; display: grid; grid-template-columns: auto repeat(5, 1fr); align-items: center; gap: 0; padding: 0 clamp(1rem, 4vw, 4rem); border-bottom: 1px solid rgba(20,49,57,.14); background: rgba(255,249,237,.95); box-shadow: 0 10px 24px rgba(20,49,57,.06); backdrop-filter: blur(12px); }
.chapter-nav > span { padding-right: clamp(1rem, 3vw, 3rem); color: var(--tomato); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.chapter-nav a { padding: 1rem .7rem; border-left: 1px solid rgba(20,49,57,.11); font-size: .82rem; font-weight: 750; text-align: center; text-decoration: none; }
.chapter-nav a:hover, .chapter-nav a:focus-visible { color: white; background: var(--blue); }
.welcome, .chapter, .harbor-story, .sicily-chapter, .journal { scroll-margin-top: 120px; }

.welcome { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 8vw, 9rem); padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 8vw, 8rem); background: var(--cream); }
.kicker { color: var(--tomato); }
.welcome h2, .chapter-heading h2, .harbor-copy h2, .journal h2 { margin: 0; font: 400 clamp(3rem, 6vw, 6.5rem)/.92 var(--serif); letter-spacing: -.055em; }
.welcome-copy { max-width: 650px; padding-top: 2rem; border-top: 1px solid rgba(20,49,57,.25); }
.welcome-copy p:first-child { margin-top: 0; font: 400 clamp(1.3rem, 2.3vw, 2rem)/1.45 var(--serif); }

.chapter { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 5vw, 5rem); }
.sea-chapter { color: white; background: var(--deep); }
.chapter-heading { display: grid; grid-template-columns: 80px minmax(260px, .9fr) minmax(260px, .65fr); gap: 2rem; align-items: end; max-width: 1400px; margin: 0 auto clamp(3rem, 6vw, 6rem); }
.chapter-heading .chapter-number { align-self: start; margin: .2rem 0 0; padding-top: .75rem; border-top: 2px solid currentColor; font-weight: 800; }
.chapter-heading .kicker { color: var(--sun); }
.chapter-heading > p:last-child { max-width: 440px; margin: 0 0 .4rem; font-size: 1.05rem; opacity: .82; }
.photo-grid button { appearance: none; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; overflow: hidden; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s; }
.photo-grid button:hover img, .photo-grid button:focus-visible img { transform: scale(1.035); filter: saturate(1.08); }
.photo-grid button:focus-visible { outline: 4px solid var(--sun); outline-offset: 4px; }
.sea-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; grid-template-rows: 320px 320px; grid-auto-rows: 320px; gap: 1rem; max-width: 1500px; margin: auto; }
.sea-wide { grid-row: 1 / span 2; }
.sea-tall { grid-row: 1 / span 2; grid-column: 3; }

.harbor-story { display: grid; grid-template-columns: minmax(260px, .45fr) 1.55fr; gap: clamp(2rem, 6vw, 6rem); padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 5vw, 5rem); background: var(--paper); }
.harbor-copy { align-self: center; padding-left: clamp(0rem, 3vw, 3rem); }
.harbor-copy h2 { font-size: clamp(2.8rem, 5vw, 5.5rem); }
.harbor-copy p:last-child { margin-top: 2rem; }
.harbor-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.harbor-strip .photo { aspect-ratio: 4 / 3; }

.garden-chapter { background: #f4f0dd; }
.garden-chapter .chapter-heading .kicker { color: var(--olive); }
.garden-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: .85rem; max-width: 1500px; margin: auto; }
.garden-lead { grid-column: span 2; grid-row: span 2; }
.garden-wide { grid-column: span 2; }

.sicily-chapter { padding-bottom: clamp(5rem, 9vw, 9rem); color: white; background: var(--tomato); }
.light-heading .kicker { color: var(--cream); }
.postcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.25rem); max-width: 1400px; margin: auto; }
.postcard { position: relative; aspect-ratio: 4 / 5; text-align: left; }
.postcard::after { content: ''; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.postcard span { position: absolute; left: 1.5rem; bottom: 1.25rem; z-index: 2; color: white; font: italic clamp(1.4rem, 2.5vw, 2.2rem)/1 var(--serif); }

.journal { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 5vw, 5rem); background: var(--cream); }
.journal-title { max-width: 1400px; margin: 0 auto clamp(3rem, 6vw, 6rem); text-align: center; }
.journal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 1rem; max-width: 1500px; margin: auto; }
.journal-wide { grid-column: span 2; }
.journal-panorama { grid-column: span 2; }

.closing { padding: clamp(7rem, 13vw, 13rem) 1.25rem; color: white; background: var(--blue); text-align: center; }
.closing .kicker { color: var(--sun); }
.closing-script { margin: 0 0 .5rem; font: italic 400 clamp(3.5rem, 8vw, 8rem)/1 var(--serif); letter-spacing: -.06em; }
.closing > p:not(.kicker):not(.closing-script) { margin-bottom: 2rem; font-size: 1.1rem; }
.closing a { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-underline-offset: .4rem; }
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2rem clamp(1.25rem, 5vw, 5rem); color: white; background: #032a39; font-size: .75rem; }
footer p { margin: 0; }
footer p:nth-child(2) { text-align: center; }
footer p:last-child { text-align: right; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; padding: 3rem 5rem; border: 0; color: white; background: rgba(2,25,34,.96); }
.lightbox::backdrop { background: rgba(2,25,34,.88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; place-items: center; margin: 0; width: 100%; height: 100%; }
.lightbox figure img { max-width: min(1200px, 90vw); max-height: 82vh; object-fit: contain; box-shadow: 0 20px 80px rgba(0,0,0,.35); }
.lightbox figcaption { margin-top: .8rem; font: italic 1rem var(--serif); }
.lightbox-close, .lightbox-nav { position: fixed; z-index: 2; border: 0; color: white; background: transparent; cursor: pointer; }
.lightbox-close { top: 1rem; right: 1.5rem; width: 48px; height: 48px; font-size: 2.5rem; line-height: 1; }
.lightbox-nav { top: 50%; width: 60px; height: 80px; transform: translateY(-50%); font-size: 4rem; line-height: 1; }
.lightbox-nav.previous { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

@media (max-width: 900px) {
  .site-header { height: 66px; }
  .menu-button { display: block; z-index: 2; }
  .site-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 2rem; visibility: hidden; opacity: 0; background: var(--deep); transition: opacity .25s, visibility .25s; }
  .site-nav.open { visibility: visible; opacity: 1; }
  .site-nav a { font: 400 2.5rem var(--serif); letter-spacing: -.03em; text-transform: none; }
  .hero-copy { margin-left: 1.25rem; }
  .hero-note { display: none; }
  .welcome { grid-template-columns: 1fr; }
  .chapter-heading { grid-template-columns: 55px 1fr; }
  .chapter-heading > p:last-child { grid-column: 2; }
  .sea-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 390px 250px 250px; grid-auto-rows: 250px; }
  .sea-wide { grid-column: span 2; grid-row: auto; }
  .sea-tall { grid-column: auto; grid-row: span 2; }
  .harbor-story { grid-template-columns: 1fr; }
  .garden-grid { grid-template-columns: repeat(3, 1fr); }
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer p:nth-child(2), footer p:last-child { text-align: center; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: clamp(3.7rem, 18vw, 5.6rem); }
  .hero-copy { width: calc(100vw - 2.5rem); margin-bottom: 4rem; }
  .hero-copy > p:not(.eyebrow) { max-width: 92%; }
  .chapter-nav { top: 66px; grid-template-columns: repeat(6, max-content); overflow-x: auto; padding: 0; overscroll-behavior-inline: contain; scrollbar-width: none; }
  .chapter-nav::-webkit-scrollbar { display: none; }
  .chapter-nav > span, .chapter-nav a { padding: .85rem 1rem; white-space: nowrap; }
  .welcome, .chapter, .harbor-story, .journal { padding-left: 1.15rem; padding-right: 1.15rem; }
  .chapter-heading { grid-template-columns: 1fr; gap: 1rem; }
  .chapter-heading .chapter-number { width: 45px; }
  .chapter-heading > p:last-child { grid-column: 1; }
  .sea-grid { grid-template-columns: 1fr; grid-template-rows: 330px; grid-auto-rows: 260px; }
  .sea-wide, .sea-tall { grid-column: auto; grid-row: auto; }
  .harbor-strip { grid-template-columns: 1fr; }
  .garden-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; }
  .garden-lead { grid-column: span 2; grid-row: span 2; }
  .garden-wide { grid-column: span 2; }
  .postcards { grid-template-columns: 1fr; }
  .postcard { aspect-ratio: 5 / 4; }
  .journal-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: .65rem; }
  .journal-panorama, .journal-wide { grid-column: span 2; }
  .lightbox { padding: 3.5rem 1rem; }
  .lightbox-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
