:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --cream: #fcfaf4;
  --pine: #17392f;
  --ink: #223b31;
  --muted: #4b5b4f;
  --line: #d7d9cb;
  --warm: #e9e5d7;
  --ochre: #a57447;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 16px/1.65 var(--sans); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #9a5c2c; outline-offset: 4px; }
h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); color: var(--pine); font-weight: 400; }
h1 { font-size: clamp(3rem, 6.7vw, 6.9rem); line-height: .96; letter-spacing: -.066em; }
h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: 1.03; letter-spacing: -.048em; text-wrap: balance; }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.12; letter-spacing: -.025em; }
p { margin: 0; }
address { font-style: normal; }
.shell { width: min(calc(100% - 104px), 1360px); margin-inline: auto; }

.skip { position: fixed; top: .7rem; left: .7rem; z-index: 20; padding: 10px 18px; background: var(--cream); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 82px; align-items: center; gap: 30px; }
.brand { display: inline-flex; gap: 10px; align-items: center; justify-self: start; color: var(--pine); font-weight: 700; font-size: .99rem; line-height: 1.2; text-decoration: none; }
.brand-mark { flex: 0 0 auto; color: var(--ochre); }
.site-nav, .locales { display: flex; align-items: center; }
.site-nav { gap: clamp(20px, 3.2vw, 55px); }
.site-nav > a { display: flex; align-items: center; min-height: 44px; font-size: .88rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-nav > a:hover, .site-nav > a[aria-current] { text-decoration: underline; text-underline-offset: .37em; }
.locales { justify-self: end; gap: 2px; }
.locales > a { display: grid; place-items: center; width: 44px; height: 44px; text-decoration: none; font-size: .78rem; font-weight: 700; border: 1px solid transparent; border-radius: 50%; }
.locales [aria-current] { color: var(--cream); background: var(--pine); }
.locales a:hover:not([aria-current]) { border-color: var(--pine); }

.hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.24fr); align-items: center; gap: clamp(30px, 4.5vw, 80px); padding-block: 46px 62px; }
.hero-copy { padding: clamp(18px, 3vw, 52px) 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow > span { width: 22px; height: 1px; background: var(--ochre); }
.hero-intro { max-width: 39ch; margin: 27px 0 26px; font-size: clamp(1rem, 1.35vw, 1.18rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 17px; }
.solid-link { display: inline-flex; align-items: center; justify-content: center; gap: 22px; max-width: 100%; min-height: 50px; border: 1px solid var(--pine); padding: 12px 19px; color: var(--cream); background: var(--pine); font-size: .9rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.solid-link:hover { background: #275142; }
.solid-link > span, .arrow { font-size: 1.15em; line-height: 1; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 4px 15px; margin-top: 21px; color: var(--muted); font-size: .78rem; font-weight: 650; }
.hero-facts > span + span::before { content: "·"; padding-right: 15px; color: var(--ochre); }
.hero-figure { position: relative; }
.hero-figure picture { display: block; }
.hero-figure img { aspect-ratio: 1.33; object-fit: cover; object-position: 44% 60%; }
.hero-figure figcaption { position: absolute; right: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 5px 10px; color: var(--pine); background: var(--paper); font-size: .75rem; font-weight: 650; }

.map-section { border-block: 1px solid var(--line); background: #eeece1; padding-block: clamp(45px, 6.5vw, 90px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px 40px; margin-bottom: 27px; }
.section-heading p { max-width: 42ch; color: var(--muted); font-size: .97rem; }
.section-heading > div p { margin-top: 12px; }
.map-fallback { display: grid; grid-template-columns: 2fr 1fr; align-items: center; background: var(--cream); border: 1px solid var(--line); }
.map-fallback > div { padding: 24px; }
.map-fallback img { height: min(46vw, 470px); object-fit: cover; }

.story-section { display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; gap: clamp(30px, 6vw, 96px); padding-block: clamp(55px, 8vw, 109px); }
.story-section img { aspect-ratio: 1.28; object-fit: cover; object-position: right center; }
.story-copy > p { max-width: 43ch; margin: 17px 0 21px; color: var(--muted); }
.dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; max-width: 325px; margin-bottom: 21px; border-block: 1px solid var(--line); }
.dimensions > div { display: flex; flex-direction: column-reverse; gap: 2px; padding-block: 13px; }
.dimensions dt { color: var(--muted); font-size: .8rem; }
.dimensions dd { color: var(--pine); font: 1.6rem/1.1 var(--serif); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: .88rem; line-height: 1.4; text-decoration-line: underline; text-decoration-color: #9c9b82; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }
.text-link > span { text-decoration: none; }

.guide-section { background: var(--warm); padding-block: clamp(44px, 6.4vw, 98px); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(17px, 3.2vw, 42px); }
.guide-card { background: var(--cream); }
.guide-image { display: block; overflow: hidden; }
.guide-image img { aspect-ratio: 8 / 5; object-fit: cover; transition: transform .25s ease; }
.guide-image img[src$="/guide-vilkija-ferry.jpg"] { object-position: 50% 46%; }
.guide-image img[src$="/guide-merkine-dome.jpg"] { object-position: 50% 42%; }
:is(.guide-image, .guide-photo) img[src$="/guide-vilkija-ferry.jpg"] { filter: brightness(1.13) contrast(.96) saturate(.91); }
:is(.guide-image, .guide-photo) img[src$="/guide-merkine-dome.jpg"] { filter: brightness(1.08) contrast(1.04); }
.guide-image:hover img { transform: scale(1.025); }
.guide-card-body { padding: clamp(19px, 3vw, 32px); }
.guide-card-body h3 a { text-decoration: none; }
.guide-card-body h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.guide-card-body p { color: var(--muted); font-size: .93rem; margin-block: 10px 5px; max-width: 55ch; }
.trip-section { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(26px, 7vw, 106px); padding-block: clamp(53px, 8vw, 103px); }
.trip-section p { color: var(--muted); margin: 12px 0 16px; max-width: 46ch; }
.trip-section address { font-size: .95rem; font-weight: 700; margin-bottom: 17px; }
.trip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 20px; }
.feedback { align-self: center; background: var(--warm); padding: clamp(22px, 4vw, 46px); }
.feedback p { margin-bottom: 2px; }

.footer { background: var(--pine); color: var(--cream); padding-block: 40px 18px; }
.footer .brand { color: var(--cream); }
.footer .brand-mark { color: #dec198; }
.footer-top { display: flex; align-items: start; justify-content: space-between; gap: 23px 42px; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.footer-top address { margin-top: 17px; color: #e2e8de; font-size: .86rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 30px; border-top: 1px solid #567267; padding-top: 12px; color: #d8e2d9; font-size: .86rem; }
.footer-builder { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-inline-start: auto; color: var(--cream); text-underline-offset: .2em; }
.footer-builder img { width: 24px; height: 24px; flex: none; }
.footer a:focus-visible { outline-color: #ffd897; }

.content-intro { padding-block: clamp(37px, 6vw, 82px) 29px; }
.content-intro h1 { font-size: clamp(2.95rem, 6vw, 6rem); max-width: 17ch; margin-top: 10px; }
.content-intro p { margin-top: 18px; color: var(--muted); font-size: 1.13rem; max-width: 62ch; }
.guide-index { padding-block: 12px clamp(55px, 7vw, 90px); }
.article-photo img { max-height: 520px; aspect-ratio: 2.25; object-fit: cover; }
.article-photo.guide-photo img { width: auto; max-width: 100%; max-height: 34rem; height: auto; aspect-ratio: auto; margin-inline: auto; }
.guide-photo figcaption { margin-top: .5rem; font-size: .9rem; }
.photo-credit { display: block; font-size: .85rem; overflow-wrap: anywhere; }
.photo-credit a { text-decoration: underline; text-underline-offset: .15em; }
.article-body { width: min(100%, 720px); margin-inline: auto; padding-block: clamp(34px, 6vw, 76px); }
.article-body h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); margin-block: 30px 12px; }
.article-body p { margin-bottom: 1.2em; }
.article-body :is(ul, ol) { margin-block: .6rem 1.2rem; padding-inline-start: 1.5rem; }
.article-body li + li { margin-top: .55rem; }
.article-table { margin-bottom: 1.5rem; }
.article-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article-table :is(th, td) { padding: .55rem .4rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.article-sources, .article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-block: 16px; }
.article-actions { border-top: 1px solid var(--line); padding-top: 18px; }
.related { background: var(--warm); padding-block: 40px 57px; }
.related h2 { margin-bottom: 22px; font-size: clamp(2rem, 3vw, 3rem); max-width: 100%; }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 72px); }
  .hero { gap: 31px; }
  .hero-figure img { aspect-ratio: 1.17; }
}
@media (max-width: 830px) {
  .shell { width: calc(100% - 50px); }
  .masthead-inner { gap: 14px; }
  .site-nav { gap: 18px; }
  .hero { gap: 23px; padding-block: 27px 42px; }
  .hero-copy { padding-block: 14px; }
  .hero h1 { font-size: clamp(2.8rem, 7.6vw, 4.4rem); }
  .hero-figure img { aspect-ratio: .99; }
  .hero-intro { margin-block: 18px; }
  .section-heading { align-items: start; }
  .section-heading > p { max-width: 32ch; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 36px); }
  .masthead-inner { grid-template-columns: 1fr auto; min-height: 0; gap: 0 8px; padding-top: 8px; }
  .masthead .brand { font-size: .94rem; min-height: 49px; }
  .brand-mark { width: 34px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 7px; border-top: 1px solid var(--line); margin-top: 4px; }
  .site-nav > a { font-size: .77rem; }
  .hero { grid-template-columns: 1fr; gap: 10px; padding-block: 24px 37px; }
  .hero h1 { font-size: clamp(3.2rem, 14vw, 5rem); }
  .eyebrow { margin-bottom: 17px; font-size: .69rem; }
  .hero-copy { padding: 0 0 15px; }
  .hero-figure img { aspect-ratio: 1.46; object-position: 45% 68%; }
  .hero-facts { margin-top: 14px; }
  .section-heading { flex-direction: column; align-items: start; margin-bottom: 19px; }
  .section-heading > p { max-width: 42ch; }
  .story-section, .trip-section, .guide-grid, .map-fallback { grid-template-columns: 1fr; }
  .story-section { gap: 22px; }
  .story-section img { aspect-ratio: 1.52; }
  .guide-section .section-heading { gap: 4px; }
  .footer-top { flex-direction: column; }
  .footer-top nav { gap: 0 16px; }
  .footer-bottom { margin-top: 17px; }
  .article-photo img { aspect-ratio: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-image img { transition: none; }
}
