:root {
  --ink: #1e2625;
  --paper: #f4f0e6;
  --paper-deep: #e4dccd;
  --accent: #bf5939;
  --sun: #ffd45b;
  --mist: #75847a;
  --line: rgba(30, 38, 37, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.site-header {
  height: 72px;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); font-family: Georgia, serif; font-size: 1.75rem; font-weight: 700; text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
nav a { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 700; letter-spacing: -.035em; text-decoration: none; }
nav a:hover { color: var(--accent); }
/* The return link is deliberately the same small, yellow signpost used on the other sections. */
nav a:first-child { background: var(--sun); border: 1.5px solid var(--ink); display: inline-block; padding: .32rem .5rem; }
nav a:first-child:hover { color: var(--ink); transform: translate(-1px, -1px); }

.hero { height: min(76vw, 720px); min-height: 510px; position: relative; overflow: hidden; background: #273531; }
.hero > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 20, 19, .72), rgba(13, 20, 19, .08) 68%); }
.hero-copy { position: absolute; left: clamp(1.25rem, 9vw, 9rem); bottom: clamp(2.5rem, 9vw, 7rem); color: white; max-width: 760px; }
.eyebrow, .section-label { color: var(--accent); font-size: .73rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 1rem; text-transform: uppercase; }
.eyebrow { color: #ffd0ac; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.04em; line-height: .95; }
h1 { font-size: clamp(3.5rem, 9vw, 8.25rem); margin: 0; }
.hero-date { font-size: 1rem; margin: 1.5rem 0 0; }

.story, .gallery-section, .manuscript { padding: clamp(4.5rem, 10vw, 9rem) clamp(1.25rem, 9vw, 9rem); }
.story { max-width: 1450px; margin: auto; }
.story-intro { max-width: 850px; }
.lead { font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.55rem); letter-spacing: -.025em; line-height: 1.2; margin: 0; }
.story-columns { display: grid; gap: 4rem; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); margin-top: clamp(3rem, 7vw, 7rem); }
h2 { font-size: clamp(2.5rem, 5vw, 5rem); margin: 0 0 1.5rem; }
.story-columns p { font-size: 1.08rem; max-width: 650px; }
.lead, .story-columns p, .diary-copy > p:not(.section-label), .gallery-section .section-heading > p, .manuscript-note, .chapter-note { hyphens: auto; text-align: justify; text-justify: inter-word; }
.route-card { border-top: 2px solid var(--accent); padding-top: 1.2rem; }
.route-card ol { margin: 0; padding-left: 1.2rem; }
.route-card li { padding: .45rem 0; }
.route-map-link { align-items: center; border-bottom: 1px solid currentColor; color: var(--accent); display: inline-flex; font-size: .93rem; font-weight: 800; gap: .45rem; margin: -.55rem 0 1.35rem; text-decoration: none; }
.route-map-link:hover { color: var(--ink); }
.route-map-link span { font-size: 1.15rem; line-height: 1; }
.route-map { box-shadow: 0 18px 35px rgba(50, 49, 38, .12); display: block; height: auto; margin: .65rem 0 1.8rem; overflow: hidden; width: 100%; }
.route-map .map-grid path { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.route-map .country-shape { fill: #edf0e4; stroke: #9ea89d; stroke-linejoin: round; stroke-width: 1.4; }
.route-map .route-out, .route-map .route-back, .route-map .route-ferry { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 6; }
.route-map .route-out { stroke: #bd5a3b; }
.route-map .route-back { stroke: #456a62; }
.route-map .route-ferry { stroke: #315e67; stroke-dasharray: 12 12; }
.route-map .map-stops circle { fill: #f8f5eb; stroke: #bd5a3b; stroke-width: 4; }
.route-map .place-labels text, .route-map .country-labels text, .route-map .map-key text, .route-map .ferry-mark text { font-family: Inter, ui-sans-serif, sans-serif; font-weight: 800; letter-spacing: .07em; }
.route-map .place-labels text { fill: #293530; font-size: 16px; }
.route-map .country-labels text { fill: #7e8a82; font-size: 16px; letter-spacing: .13em; }
.route-map .country-labels text:nth-last-child(-n+2) { fill: #547d82; font-size: 18px; }
.route-map .ferry-mark circle { fill: #f8f5eb; stroke: #315e67; stroke-width: 3; }
.route-map .ferry-mark path { fill: #315e67; }
.route-map .ferry-mark text { fill: #315e67; font-size: 12px; }
.route-map .map-key text { fill: #47534f; font-size: 15px; letter-spacing: .02em; }

.diary-cta { align-items: center; background: #bd5a3b; color: #fff9ed; display: grid; gap: clamp(2rem, 6vw, 7rem); grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr); padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 9vw, 9rem); }
.diary-cta .section-label { color: #f7c8a6; }
.diary-cta h2 { margin: 0 0 1.2rem; }
.diary-copy > p:not(.section-label) { font-family: Georgia, serif; font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.35; max-width: 680px; }
.diary-graphic { justify-self: center; max-width: 360px; width: 100%; }
.diary-graphic svg { height: auto; overflow: visible; width: 100%; }
.book-shadow { fill: rgba(67, 38, 27, .25); transform: translate(9px, 11px); }
.book-left, .book-right { fill: #f8ebd2; stroke: #6a3426; stroke-width: 3; }
.book-spine { stroke: #6a3426; stroke-width: 4; }
.route-scribble { fill: none; stroke: #bd5a3b; stroke-dasharray: 6 5; stroke-width: 4; }
.diary-graphic circle { fill: #315e67; stroke: #f8ebd2; stroke-width: 3; }
.writing { stroke: #c5a88b; stroke-linecap: round; stroke-width: 3; }
.diary-graphic text { fill: #6a3426; font-family: Georgia, serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.chapter-stop { font-family: Inter, ui-sans-serif, sans-serif !important; font-size: 7px !important; font-weight: 800 !important; letter-spacing: .04em !important; }
.chapter-stop--return { font-size: 8px !important; }
.diary-jump { border-bottom: 1px solid currentColor; color: #fff9ed; display: inline-flex; font-size: .95rem; font-weight: 800; gap: .6rem; margin-top: .7rem; text-decoration: none; }
.diary-jump span { font-size: 1.2rem; line-height: .9; }

.diary-chapters { padding: clamp(4.5rem, 10vw, 9rem) clamp(1.25rem, 9vw, 9rem); }
.diary-chapters > div, .diary-chapters > ol, .chapter-note { margin-left: auto; margin-right: auto; max-width: 1000px; }
.diary-chapters ol { border-top: 1px solid var(--line); list-style: none; margin-bottom: 1.5rem; margin-top: 3rem; padding: 0; }
.diary-chapters li { border-bottom: 1px solid var(--line); }
.diary-chapters li a { align-items: baseline; color: inherit; display: grid; gap: 1rem; grid-template-columns: 56px minmax(0, 1fr) minmax(150px, .45fr); padding: 1.25rem 0; text-decoration: none; }
.diary-chapters li a:hover { color: var(--accent); }
.diary-chapters li span { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.diary-chapters li strong { font-family: Georgia, serif; font-size: clamp(1.08rem, 2vw, 1.45rem); font-weight: 500; }
.diary-chapters li em, .chapter-note { color: #56625c; font-size: .93rem; font-style: normal; }
.diary-byline { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-style: italic; margin: -1rem 0 0; }
.diary-intro { color: #56625c; font-family: Georgia, "Times New Roman", serif; font-size: 1.13rem; font-style: italic; margin: 0 auto 3rem; max-width: 1000px; }
.diary-outro { border-top: 2px solid var(--accent); margin: clamp(4rem, 8vw, 7rem) auto 0; max-width: 760px; padding-top: 2rem; }
.diary-outro p { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-style: italic; line-height: 1.4; margin: 0; text-align: center; }
.diary-entry { border-top: 1px solid var(--line); margin: clamp(3rem, 7vw, 6rem) auto 0; max-width: 760px; padding-top: clamp(2.5rem, 5vw, 4.5rem); scroll-margin-top: 1.5rem; }
.diary-entry h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin: 0 0 2rem; }
.diary-entry h4 { color: var(--accent); font-size: .75rem; letter-spacing: .12em; margin: 2.7rem 0 1rem; text-transform: uppercase; }
.diary-entry p { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 1.7vw, 1.26rem); hyphens: auto; line-height: 1.62; margin: 0 0 1.45rem; text-align: justify; text-justify: inter-word; }
.diary-entry em { font-style: italic; }.diary-entry strong { font-weight: 700; }
.diary-entry a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .16em; }
.diary-photo-strip { display: flex; flex-wrap: wrap; gap: .7rem; margin: 2rem 0 .4rem; }
.diary-photo-inline { margin: 1.7rem 0; }
.diary-photo { background: var(--paper-deep); border: 0; cursor: zoom-in; height: 92px; overflow: hidden; padding: 0; width: 122px; }
.diary-photo img { display: block; height: 100%; object-fit: cover; transition: transform .25s ease; width: 100%; }
.diary-photo:hover img { transform: scale(1.06); }

.gallery-section { background: #25312e; color: #f4f0e6; }
.gallery-section .section-heading { max-width: 710px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.gallery-section .section-label { color: #d98d68; }
.gallery-section h2 { margin-bottom: 1rem; }
.gallery-section p { color: #dce2dc; }
.gallery { display: grid; gap: 12px; grid-auto-flow: dense; grid-auto-rows: 205px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: auto; max-width: 1450px; }
.gallery-item { border: 0; cursor: zoom-in; min-height: 0; overflow: hidden; padding: 0; position: relative; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { display: block; height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span { background: linear-gradient(transparent, rgba(0,0,0,.7)); bottom: 0; color: white; font-size: .85rem; font-weight: 650; left: 0; opacity: 0; padding: 2.5rem .8rem .7rem; position: absolute; text-align: left; transition: opacity .25s ease; width: 100%; }
.gallery-item:hover span { opacity: 1; }

.manuscript { background: var(--paper-deep); display: grid; gap: 3rem; grid-template-columns: .8fr 1.2fr; }
.manuscript h2 { margin-bottom: 0; }
blockquote { border-left: 3px solid var(--accent); font-family: Georgia, serif; font-size: clamp(1.45rem, 2.8vw, 2.5rem); line-height: 1.25; margin: 0; padding-left: clamp(1.25rem, 4vw, 3.25rem); }
blockquote p { margin: 0 0 1.25rem; }
cite, .manuscript-note { color: #56625c; font-family: Inter, ui-sans-serif, sans-serif; font-size: .9rem; font-style: normal; }
.manuscript-note { grid-column: 2; margin: -1.5rem 0 0; }

footer { background: var(--ink); color: #eef0e9; padding: 2rem clamp(1.25rem, 9vw, 9rem); }
footer p { display: flex; font-family: Georgia, "Times New Roman", serif; gap: .65rem; margin: 0; }
footer span { color: #aeb9b1; }

.lightbox { background: #101514; border: 0; max-height: 92vh; max-width: min(1100px, 94vw); padding: 0; }
.lightbox::backdrop { background: rgba(0,0,0,.86); }
.lightbox img { display: block; max-height: 82vh; max-width: 100%; object-fit: contain; }
.lightbox p { color: white; margin: 0; padding: .8rem 1rem 1rem; }
.lightbox-close { background: var(--paper); border: 0; border-radius: 999px; cursor: pointer; font-size: 1.8rem; height: 42px; line-height: 1; position: absolute; right: .7rem; top: .7rem; width: 42px; }

@media (max-width: 760px) {
  .site-header { height: 64px; }
  nav { gap: 1rem; }
  nav a { font-size: .88rem; }
  .hero { min-height: 530px; }
  .hero > img { object-position: 57% 50%; }
  .story-columns, .manuscript { grid-template-columns: 1fr; }
  .diary-cta { grid-template-columns: 1fr; }
  .manuscript-note { grid-column: auto; margin: -1.5rem 0 0; }
  .diary-chapters li a { grid-template-columns: 42px 1fr; }
  .diary-chapters li em { grid-column: 2; }
  .gallery { grid-auto-rows: 145px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
