:root {
  --ink: #f0f3f1;
  --muted: #b0bec3;
  --paper: #0c1b27;
  --panel: #132937;
  --accent: #c6d6d3;
  --line: #39505a;
  --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; }
:where(a, button, select, input, textarea, [role="button"], [tabindex]):focus-visible { outline: 3px solid #d5ef75; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.visually-hidden { 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; z-index: 2000; top: 12px; left: 12px; min-height: 44px; padding: 12px 16px; color: #0c1b27; background: #d5ef75; font-size: 14px; font-weight: 700; transform: translateY(calc(-100% - 16px)); }
.skip-link:focus-visible { transform: translateY(0); }
.site-header { position: sticky; z-index: 1100; top: 0; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 6%; background: #0a1924; }
.brand { display: flex; align-items: center; min-height: 44px; gap: 12px; font-size: 11px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.brand-mark { font-size: 22px; font-weight: 400; }
.brand-dot { color: #9eb4ba; }
nav { display: flex; gap: 36px; font-size: 12px; color: #c4d1d2; }
nav a, .header-link, .hero-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
nav a:hover, .header-link:hover { color: #fff; }
.site-header nav a { border-bottom: 2px solid transparent; }
.site-header nav a[aria-current="location"] { color: #d5ef75; border-bottom-color: #d5ef75; }
.brand[aria-current="location"] .brand-mark { color: #d5ef75; text-decoration: underline; text-underline-offset: .25em; }
.header-link { font-size: 11px; font-weight: 700; }
.header-link span { margin-left: 12px; }
.hero { position: relative; display: flex; align-items: center; min-height: 650px; height: min(820px, 85vh); overflow: hidden; color: white; background: #35556a; }
.hero-art { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 20, 32, .8), rgba(6, 20, 32, .15) 70%), linear-gradient(0deg, rgba(6, 20, 32, .6), transparent 50%), url("images/A008.jpg") center 58% / cover no-repeat; }
.hero-content { position: relative; z-index: 1; width: min(1180px, 88%); margin: 0 auto; padding: 80px 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 25px; color: #a7bdc1; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.eyebrow > span:first-child { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #c4d9d3; }
.eyebrow.light { color: #e2eceb; }
h1, h2, h3, .footer-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.045em; }
h1 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: clamp(64px, 10.5vw, 150px); line-height: .87; letter-spacing: -.065em; font-weight: 800; }
h1 span { color: #d3e2e4; }
h2 em, h3 em, .footer-title em { font-weight: 400; }
.hero-intro { max-width: 370px; margin: 32px 0 28px; font-size: 16px; line-height: 1.75; color: #f0f4f3; }
.hero-link { display: inline-flex; gap: 36px; align-items: center; min-height: 44px; border-bottom: 1px solid #e6eeed; padding-bottom: 13px; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.hero-link span { font-size: 18px; }
.hero-bottom { position: absolute; z-index: 1; bottom: 30px; left: 6%; right: 6%; display: flex; justify-content: space-between; gap: 20px; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.hero-bottom a span { margin-left: 10px; }
.section-wrap { width: min(1180px, 88%); margin: 0 auto; }
.intro { display: grid; grid-template-columns: 1fr 2fr; padding-top: 135px; padding-bottom: 100px; }
.section-label { display: flex; gap: 15px; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .13em; color: #b3c4c6; }
.section-label span { color: #78959b; }
.intro-copy { max-width: 720px; }
h2 { font-size: clamp(39px, 5vw, 68px); line-height: 1.08; margin: 0 0 26px; }
.intro-copy > p:not(.eyebrow), .route-copy > p:not(.eyebrow), .diary-heading > p, .memories-heading > p, .diary-content > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 560px; }
.story-image { margin-top: 0; margin-bottom: 150px; }
.story-image img { width: 100%; max-height: 660px; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 57%; }
.story-image figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; color: #a7bbbe; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.route-section { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 140px; }
.route-copy .section-label { margin-bottom: 65px; }
.route-copy > p:not(.eyebrow) { max-width: 720px; }
.route-copy .route-note { font-size: 13px; color: #b3c5c6; }
.map-panel { min-width: 0; color: #e9f1ef; background: #101f2a; border: 1px solid #304550; }
.map-card { position: relative; overflow: hidden; background: #172630; }
#route-map { display: block; width: 100%; height: clamp(380px, 60vh, 640px); background: #172630; }
#route-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) saturate(.5) brightness(.72); }
.map-heading { position: absolute; z-index: 700; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; pointer-events: none; color: #eef4ed; background: linear-gradient(180deg, rgba(7, 18, 27, .92), transparent); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.map-heading-dot { padding: 0 5px; }
.map-status { position: absolute; z-index: 700; top: 50%; left: 50%; max-width: calc(100% - 32px); padding: 12px 16px; transform: translate(-50%, -50%); color: #f0f3f1; background: rgba(8, 21, 31, .96); font-size: 13px; line-height: 1.5; text-align: center; }
.map-status[hidden] { display: none; }
.route-marker { border: 0; background: transparent; }
.route-marker span { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #e0edca; border-radius: 50%; color: #f8faf1; background: #162d36; box-shadow: 0 0 0 4px rgba(9, 22, 29, .45), 0 2px 8px rgba(0, 0, 0, .7); font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.route-marker:hover span, .route-marker.is-active span, .route-marker:focus span { color: #142920; background: #d5ef75; }
.route-marker:focus-visible { outline: 3px solid #d5ef75; outline-offset: 3px; border-radius: 50%; }
.map-card .leaflet-container .leaflet-control-attribution { color: #d9e4e3; background: rgba(8, 21, 31, .9); font-size: 10px; }
.map-card .leaflet-container .leaflet-control-attribution a { color: #e4f2dc; }
.map-card .leaflet-bar a { color: #e9f1ef; background: #10232e; border-color: #506773; }
.map-card .leaflet-bar a:hover, .map-card .leaflet-bar a:focus-visible { color: #fff; background: #294350; }
.map-card .leaflet-control-scale-line { color: #edf2eb; background: rgba(8, 21, 31, .85); border-color: #c6d6d3; }
.map-card .leaflet-tooltip { color: #eef4ed; background: #10232e; border-color: #69818a; box-shadow: none; }
.leaflet-control-attribution a { display: inline-flex; align-items: center; min-height: 24px; }
.map-controls { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 28px 28px 12px; }
.map-selection { display: grid; gap: 10px; flex: 1; }
.map-selection label { font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.map-selection select { width: min(100%, 360px); min-height: 44px; padding: 12px; border: 1px solid #69818a; border-radius: 0; color: #f0f3f1; background: #0c1b27; }
.point-details { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 8px 14px; min-width: 230px; }
.point-count { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #72918d; border-radius: 50%; background: #1c3539; color: #d5ef75; font-family: Georgia, serif; font-size: 18px; }
.point-details strong, .point-details div span { display: block; }
.point-details strong { font-size: 13px; }
.point-details div span { margin-top: 6px; color: #b7c8c8; font-size: 12px; font-variant-numeric: tabular-nums; }
.point-details a { display: inline-flex; align-items: center; grid-column: 2; min-height: 44px; color: #d5ef75; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-decoration: underline; text-underline-offset: .25em; }
.point-details a[hidden] { display: none; }
.map-credit { margin: 12px 28px 20px; color: #b0bec3; font-size: 11px; line-height: 1.6; }
.map-credit a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: underline; text-underline-offset: .2em; }
.diary-section { padding: 125px 0; background: #132a38; }
.diary-heading, .memories-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.diary-heading .section-label, .memories-heading .section-label { margin-bottom: 65px; }
.diary-heading > p, .memories-heading > p { max-width: 340px; margin-bottom: 30px; }
.day-picker { display: grid; gap: 12px; margin: 45px 0 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.day-picker label { font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.day-picker select { width: min(100%, 520px); min-height: 44px; padding: 14px; border: 1px solid #688089; border-radius: 0; color: #f0f3f1; background: #0d202d; }
.diary-map-notice { padding: 16px 20px; border-left: 3px solid #d5ef75; background: #19313e; color: #e4eeeb; font-size: 14px; line-height: 1.6; }
.diary-map-notice[hidden] { display: none; }
.diary-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 370px; background: #0e202d; }
.diary-media { min-width: 0; align-self: start; }
.diary-image { align-self: start; position: relative; margin: 0; }
.diary-photo-frame { position: relative; }
.diary-image #diary-photo { width: 100%; min-height: 370px; max-height: 580px; object-fit: cover; }
.diary-image #diary-photo[hidden], .diary-image-empty[hidden] { display: none; }
.diary-image-empty { display: grid; place-items: center; min-height: 370px; padding: 35px; color: #b0bec3; background: #19313e; text-align: center; font-size: 14px; line-height: 1.6; }
.diary-image figcaption { padding: 14px; color: #a9bdc0; font-size: 9px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
.diary-content { display: flex; flex-direction: column; padding: 55px 11%; min-width: 0; }
.diary-content #day-text { white-space: pre-line; overflow-wrap: anywhere; }
h3 { margin: 0 0 15px; font-size: clamp(34px, 3.2vw, 46px); line-height: 1.1; }
.diary-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: #a7babe; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.diary-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #d5ef75; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-decoration: underline; text-underline-offset: .25em; }
.diary-footer span:last-child { font-size: 10px; }
.diary-extra { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 16px; background: linear-gradient(transparent, rgba(6, 18, 27, .88)); }
.diary-extra[hidden] { display: none; }
.diary-extra p { margin: 0 0 8px; color: #f0f3f1; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.diary-extra-grid { display: flex; gap: 8px; overflow-x: auto; padding: 8px; scrollbar-color: #a7babe transparent; scrollbar-width: thin; }
.diary-thumbnail { display: block; flex: 0 0 70px; width: 70px; padding: 0; border: 1px solid rgba(240, 243, 241, .65); background: transparent; cursor: pointer; }
.diary-thumbnail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.diary-thumbnail:hover { border-color: #d5ef75; }
.diary-navigation { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px 4%; border-top: 1px solid var(--line); }
.diary-navigation a { display: flex; flex-direction: column; align-items: flex-start; justify-self: start; gap: 5px; min-width: 0; min-height: 44px; padding: 4px 0; color: var(--ink); }
.diary-navigation a:hover > span { text-decoration: underline; text-underline-offset: .25em; }
.diary-navigation a[hidden] { display: none; }
.diary-navigation span { color: #a7babe; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.diary-navigation #next-entry { grid-column: 2; justify-self: end; text-align: right; align-items: flex-end; }
.comments { grid-column: 2; justify-self: center; width: min(480px, calc(100% - 32px)); margin-bottom: 16px; padding: 24px 4%; border: 1px solid #293f49; background: #0b1c28; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .2); }
.comments h3 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.comments p { color: var(--muted); line-height: 1.6; }
.comments > p { margin: 8px 0 0; font-size: 14px; }
.comments > p:empty { margin: 0; }
.comments-list:empty { display: none; }
.comments-list { list-style: none; padding: 0; margin: 16px 0 0; }
.comments-list li { padding: 14px 0; border-top: 1px solid #526e76; }
.comments-list time { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.comments-list p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.comments form { display: grid; gap: 12px; max-width: 620px; margin-top: 18px; border-top: 1px solid #526e76; padding-top: 20px; }
.comments form[hidden] { display: none; }
.comments form p { margin: 0; }
.comments h4 { margin: 0; font-size: 18px; }
.comments label { font-weight: 700; font-size: 13px; }
.comments input, .comments textarea { width: 100%; padding: 12px; border: 1px solid #688089; color: var(--ink); background: #0c1b27; }
.comments button { justify-self: start; min-height: 44px; padding: 12px 18px; border: 1px solid #d5ef75; color: #0c1b27; background: #d5ef75; cursor: pointer; }
.comments button:disabled { opacity: .6; cursor: default; }
.comments button[hidden] { display: none; }
.diary-caption { display: flex; justify-content: space-between; color: #a7babe; margin: 18px 0 0; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.memories { padding-top: 140px; padding-bottom: 140px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.photo-card { min-width: 0; border: 0; padding: 0; color: #dce5e4; background: #132937; text-align: left; cursor: pointer; overflow: hidden; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease, opacity .3s ease; }
.photo-card:hover img { transform: scale(1.025); opacity: .85; }
.photo-card span { position: relative; display: block; padding: 16px; font-size: 12px; line-height: 1.4; background: #132937; }
.lightbox { width: min(1100px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 1px solid #536b75; color: #f1f5f4; background: #0c1b27; }
.lightbox::backdrop { background: rgba(2, 9, 15, .9); }
.lightbox-inner { display: flex; flex-direction: column; max-height: 94vh; padding: 20px; }
.lightbox-top, .lightbox-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.lightbox-top { padding-bottom: 16px; color: #bacccc; font-size: 11px; letter-spacing: .14em; }
.lightbox button { min-width: 44px; min-height: 44px; border: 1px solid #607782; padding: 10px 15px; color: #f1f5f4; background: transparent; cursor: pointer; }
.lightbox button:hover { background: #263f4c; }
.lightbox button:disabled { opacity: .5; cursor: default; }
.lightbox-close { font-size: 10px; letter-spacing: .12em; }
.lightbox-close span { padding-left: 8px; font-size: 18px; }
.lightbox-image { min-height: 0; display: flex; justify-content: center; }
.lightbox-image img { max-width: 100%; max-height: calc(94vh - 160px); object-fit: contain; }
.lightbox-bottom { padding-top: 14px; }
.lightbox-bottom p { margin: 0; line-height: 1.5; }
.lightbox-navigation { display: flex; gap: 8px; }
.lightbox-navigation button { font-size: 20px; line-height: 1; }
footer { color: #f5f7ed; background: #08151f; padding: 80px 6% 25px; }
.footer-main { display: flex; align-items: end; justify-content: space-between; padding-bottom: 75px; }
.footer-title { margin: 0; font-size: clamp(40px, 5vw, 66px); line-height: 1.05; }
.back-to-top { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid #839895; padding-bottom: 12px; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.back-to-top span { margin-left: 20px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid #506765; color: #a4b8bb; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
@media (max-width: 720px) {
  :root { --header-height: 64px; }
  .site-header { gap: 12px; padding: 0 4%; }
  .site-header .brand { flex: 0 0 auto; }
  .site-header .brand > span:not(.brand-mark) { display: none; }
  .site-header nav { flex: 0 1 auto; min-width: 0; gap: 10px; padding: 8px; overflow-x: auto; font-size: 11px; }
  .site-header nav a { flex: 0 0 auto; min-width: 44px; justify-content: center; }
  nav { gap: 14px; font-size: 11px; }
  .header-link { display: none; }
  .hero { height: auto; min-height: 650px; }
  .hero-art { background-position: center, center, 59% center; }
  .hero-content { padding: 110px 0 140px; }
  h1 { font-size: clamp(42px, 13vw, 75px); }
  .hero-bottom span:last-child { display: none; }
  .intro { grid-template-columns: 1fr; gap: 40px; padding-top: 90px; padding-bottom: 70px; }
  .story-image { margin-bottom: 100px; }
  .story-image img { aspect-ratio: 4 / 3; }
  .route-section { gap: 36px; padding-bottom: 90px; }
  .route-copy .section-label, .diary-heading .section-label, .memories-heading .section-label { margin-bottom: 45px; }
  .map-panel { padding: 0; }
  #route-map { height: min(62vh, 520px); min-height: 380px; }
  .map-heading { top: 0; left: 0; right: 0; padding: 15px; font-size: 9px; }
  .map-controls { align-items: stretch; flex-direction: column; padding: 22px 18px 8px; }
  .map-credit { margin: 12px 18px 18px; }
  .map-selection select { width: 100%; }
  .point-details { min-width: 0; }
  .diary-section { padding: 90px 0; }
  .diary-heading, .memories-heading { display: block; }
  .day-picker { margin-top: 35px; }
  .diary-card { grid-template-columns: 1fr; }
  .diary-image #diary-photo { min-height: 260px; max-height: 360px; }
  .diary-image-empty { min-height: 260px; }
  .diary-content { padding: 40px 8%; }
  .comments { grid-column: 1; padding: 24px 8%; }
  .diary-navigation { padding: 20px 8%; }
  .diary-caption { gap: 20px; font-size: 8px; }
  .memories { padding-top: 90px; padding-bottom: 90px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .photo-card span { padding: 12px; font-size: 11px; }
  .lightbox-inner { padding: 14px; }
  .footer-main { display: block; }
  .back-to-top { display: inline-block; margin-top: 40px; }
  .footer-bottom { flex-wrap: wrap; line-height: 1.6; }
}
@media (max-width: 380px) {
  .site-header { gap: 8px; }
  nav { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .photo-card:hover img { transform: none; }
}
