@font-face {
  font-family: Instrument Serif;
  src: url('./fonts/serif.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: Instrument Serif;
  src: url('./fonts/serif-italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Instrument Sans;
  src: url('./fonts/sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f7f3eb;
  --limestone: #efe8db;
  --ink: #29312f;
  --muted: #535951;
  --navy: #102c37;
  --rust: #844531;
  --teal: #356568;
  --rule: #ccbeac;
  --white: #fffbf3;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Instrument Sans', Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.0625rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .19em; }
a:hover { color: var(--rust); }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid #227c8a; outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font: 400 1em/1.01 var(--serif); text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 7vw, 7.25rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.45rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
p { margin: 0 0 1em; }
.wrap { width: min(88%, 82rem); margin-inline: auto; }
.section { margin-block: clamp(3rem, 8vw, 7.6rem); }
.eyebrow {
  margin: 0 0 .7rem;
  color: var(--rust);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.skip { position: fixed; z-index: 5; top: .65rem; left: .65rem; padding: .55rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-head { background: var(--white); color: var(--navy); }
.site-bar, .guide-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-bar { min-height: 4.45rem; }
.wordmark { display: grid; gap: .25rem; width: max-content; color: var(--navy); text-decoration: none; font-size: 1rem; font-weight: 700; letter-spacing: .22em; line-height: 1; }
.wordmark span { font-size: .65rem; font-weight: 500; letter-spacing: .32em; }
.brand-links, .guide-bar nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem clamp(.8rem, 2.4vw, 2rem); font-size: .91rem; }
.brand-links a, .guide-bar nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.brand-links a:hover, .guide-bar nav a:hover, .guide-bar nav a[aria-current] { text-decoration: underline; }
.plan-link { border: 1px solid var(--navy); padding: .3rem 1rem; }
.guide-bar { background: var(--paper); color: var(--ink); border-block: 1px solid var(--rule); }
.guide-bar-inner { min-height: 3.6rem; }
.journal-mark { flex: none; font: 2rem/1.08 var(--serif); text-decoration: none; }
.journal-mark em { color: var(--rust); }
.guide-bar nav a[aria-current] { color: var(--rust); font-weight: 700; }
.guide-bar nav a[href="/cagliari/stay"] { color: var(--rust); font-weight: 700; }

.cover { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(29rem, min(54vw, 76svh), 49rem); overflow: hidden; background: var(--navy); color: var(--white); }
.cover > picture, .cover-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cover picture img { width: 100%; height: 100%; object-fit: cover; }
.cover-shade { background: linear-gradient(90deg, #122526dc 0, #15222692 45%, transparent 91%), linear-gradient(0deg, #14232790, transparent 74%); }
.cover-copy { padding-block: clamp(2.45rem, 5vw, 6.4rem); }
.cover-copy .eyebrow { color: #fff3db; }
.cover-copy h1 { font-size: clamp(5rem, 12vw, 13rem); line-height: .83; margin: .4rem 0 1.5rem; }
.cover-copy h1 em { display: block; color: #faecda; }
.cover-copy p:not(.eyebrow) { max-width: 35ch; margin-bottom: 1rem; font-size: clamp(1.06rem, 2vw, 1.55rem); }
.cover-link, .editorial-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; font-weight: 700; text-underline-offset: .35em; }
.cover-link:hover { color: #ffdfb8; }
.cover-link:focus-visible { outline-color: #f4cbb1; }
.cover-credit { color: var(--muted); font-size: .82rem; padding-block: .65rem; margin-block: 0; }
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.35rem; }
.stay-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .6rem 1rem; border: 1px solid transparent; text-align: center; text-decoration: none; font-size: .94rem; font-weight: 700; }
.stay-button-light { background: var(--white); color: var(--navy); }
.stay-button-light:hover { background: var(--limestone); color: var(--navy); }
.stay-button-dark { background: var(--navy); color: var(--white); }
.stay-button-dark:hover { background: var(--teal); color: var(--white); }
.stay-button-light:focus-visible { outline-color: #f4cbb1; }
.stay-feature { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; background: var(--limestone); margin-block: clamp(1.35rem, 4vw, 3.2rem); }
.stay-feature-copy { padding: clamp(1.5rem, 4vw, 4rem); }
.stay-feature-copy h2 { margin-bottom: .9rem; }
.stay-feature-copy p { max-width: 39ch; }
.stay-feature-photo { align-self: stretch; display: grid; grid-template-rows: 1fr auto; }
.stay-feature-photo img { aspect-ratio: 5/3; height: 100%; object-fit: cover; }
.stay-feature-photo figcaption { padding: .55rem 1rem .65rem; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.35rem; }
.section-heading h2 { text-align: left; }
.section-intro { max-width: 65ch; margin-block: .2rem 1.45rem; }
.section-intro.wrap { margin-block: 1.8rem 0; }
.cards, .chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: clamp(1rem, 2.9vw, 2.6rem); }
.chapter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards:has(> article:only-child) { grid-template-columns: minmax(0, 42rem); }
.story-card { background: var(--white); border-bottom: 1px solid var(--rule); }
.story-card a { display: block; height: 100%; text-decoration: none; }
.story-card a:is(:hover, :focus-visible) h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.card-image { overflow: hidden; background: var(--limestone); }
.card-image img { aspect-ratio: 4 / 2.7; object-fit: cover; }
.card-image.archive-plate img { object-fit: contain; }
.card-caption { display: block; padding: .55rem clamp(.9rem, 2vw, 1.55rem) 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.card-body { padding: 1.05rem clamp(.9rem, 2vw, 1.55rem) 1.4rem; }
.card-body p { margin: .55rem 0 0; color: var(--muted); font-size: .98rem; }
.card-meta { display: block; margin-bottom: .6rem; font-size: .81rem; color: var(--teal); font-weight: 700; }
.text-card { background: var(--limestone); border-top: 3px solid #849d91; }
.text-card .card-body { padding-block: 1.8rem 2.3rem; }
.place-feature { background: var(--limestone); padding-block: clamp(2rem, 6vw, 5rem); }
.feature { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(1.5rem, 6vw, 6rem); }
.feature h2 { margin-bottom: 1rem; }
.feature p:not(.eyebrow) { max-width: 40ch; }
.feature-image img { aspect-ratio: 5/4; object-fit: cover; }
figcaption { font-size: .87rem; line-height: 1.55; color: var(--muted); padding-top: .6rem; }
figcaption small { display: block; margin-top: .22rem; font-size: .78rem; }
.last-section { padding-top: 1.8rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.4rem 4rem; align-items: center; }
.last-section h2 { margin-bottom: .8rem; }
.last-section p { max-width: 52ch; }
.last-links { display: grid; }

.chapter-heading { padding-block: clamp(2.35rem, 6vw, 5.7rem) clamp(1.6rem, 4vw, 3.1rem); }
.chapter-heading h1 { max-width: 21ch; }
.deck { max-width: 57ch; margin: .95rem 0 0; color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.42rem); }
.heading-jump { margin-top: .5rem; }
.chapter-cover img, .article-cover img { max-height: 41rem; aspect-ratio: 16/8; object-fit: cover; background: var(--limestone); }
.article-cover.archive-plate { display: grid; grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 3vw, 3rem); max-width: 55rem; }
.article-cover.archive-plate img { max-height: none; aspect-ratio: auto; object-fit: contain; }
.plate-legend { margin: .75rem 0; }
.plate-legend p { margin: 0; }
.plate-legend ul { padding-left: 1.1rem; }
.history-cover img { object-fit: contain; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .75rem; margin-top: 1rem; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb-band + .chapter-heading { padding-top: clamp(1.15rem, 3vw, 2rem); }
.story-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 1fr); gap: clamp(1.75rem, 7vw, 6.25rem); margin-top: clamp(2rem, 7vw, 5rem); align-items: start; }
.prose { max-width: 68ch; overflow-wrap: break-word; }
.prose section { margin-top: 2rem; }
.prose h2 { font-size: clamp(2.15rem, 4vw, 3.5rem); margin-bottom: .7rem; }
.prose ul { padding-left: 1.3rem; }
.story-lede { font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.45; }
.story-detail-photo { width: min(100%, 24rem); margin: 1rem 0 2rem; }
.practical { padding: clamp(1.3rem, 3vw, 2.35rem); background: var(--limestone); border-top: 3px solid #79928a; color: var(--ink); }
.practical > h2 { margin-bottom: 1rem; font-size: 2.4rem; }
.practical dl { margin: 0; }
.practical dt { font-size: .82rem; font-weight: 700; color: var(--rust); text-transform: uppercase; letter-spacing: .065em; }
.practical dd { margin: .15rem 0 .95rem; font-size: 1rem; }
.practical-links { display: grid; justify-items: start; }
.practical-sources { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.practical-sources h2 { font-size: 2rem; }
.practical-sources ul { margin-block: .65rem; padding-left: 1.1rem; font-size: .92rem; }
.practical-sources p { font-size: .8rem; color: var(--muted); margin-bottom: 0; }
.inline-links { display: flex; flex-wrap: wrap; gap: .5rem 1.45rem; }
.editorial-note { margin-inline: auto; }
.where-to-eat > div { padding-block: .8rem; border-bottom: 1px solid var(--rule); }
.where-to-eat dt { font: 1.7rem/1.1 var(--serif); }
.where-to-eat dd { margin: .3rem 0 0; }
.where-to-eat dd span { display: block; color: var(--teal); font-size: .85rem; font-weight: 700; }
.dining-section > h2 { margin-bottom: .85rem; }
.dining-groups, .stay-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 4rem); margin-top: 1.8rem; }
.dining-group { min-width: 0; padding: clamp(1.2rem, 3vw, 2rem); background: var(--white); border-top: 2px solid #789085; }
.dining-group > h3 { margin-bottom: .7rem; }
.dining-group dd { max-width: 61ch; }
.stay-opening { background: var(--navy); color: var(--white); padding-block: clamp(1.8rem, 5vw, 4.4rem); }
.stay-opening-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: clamp(1.8rem, 4vw, 4.25rem); align-items: center; }
.stay-opening h1 { text-wrap: initial; line-height: .93; font-size: clamp(3.5rem, 6.6vw, 6.5rem); }
.stay-opening h1 em { display: block; color: #faecda; }
.stay-opening p { max-width: 39ch; margin-block: 1.2rem 1.4rem; color: #e3eae7; }
.stay-opening-photo img { aspect-ratio: 7/5; object-fit: cover; }
.stay-opening-photo figcaption { color: #d7e1de; }
.stay-opening-photo a:hover, .stay-opening .cover-link:hover { color: #ffdfb8; }
.stay-section { margin-block: clamp(2.8rem, 6vw, 5.5rem); }
.stay-section .section-intro { margin-top: .65rem; }
.stay-pick { display: flex; min-width: 0; flex-direction: column; background: var(--white); border-bottom: 1px solid var(--rule); }
.stay-pick-photo img { aspect-ratio: 16/9; object-fit: cover; }
.stay-pick-photo figcaption { padding-inline: clamp(1.15rem, 3vw, 2rem); }
.stay-pick-copy { display: flex; flex: 1; flex-direction: column; padding: 1.2rem clamp(1.15rem, 3vw, 2rem) clamp(1.35rem, 3vw, 2rem); }
.stay-pick-copy h3 { text-wrap: initial; margin-bottom: .75rem; font-size: clamp(2.25rem, 4vw, 3.5rem); }
.stay-pick-copy p:not(.eyebrow) { max-width: 46ch; }
.stay-room-note { color: var(--muted); }
.stay-distinction { color: var(--teal); font-weight: 700; }
.stay-pick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.15rem; margin-top: auto; padding-top: .2rem; }
.stay-pick-copy:only-child { justify-content: center; }
.stay-pick-copy:only-child .stay-pick-actions { margin-top: .75rem; }
.stay-property-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; }
.stay-help { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: center; padding: clamp(1.5rem, 5vw, 3.75rem); background: var(--navy); color: var(--white); }
.stay-help p { max-width: 54ch; margin: .85rem 0 0; color: #e3eae7; }
.stay-related { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin-block: -1.5rem 3rem; }
.timeline { margin-top: clamp(2.5rem, 7vw, 6rem); }
.timeline-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.4rem, 5vw, 4.4rem); border-top: 1px solid var(--rule); padding-block: clamp(1.7rem, 4.4vw, 3.6rem); }
.timeline-row.alternate figure { order: 1; }
.timeline-text { grid-template-columns: minmax(0, 1fr); }
.timeline-row img { aspect-ratio: 4/3; object-fit: cover; }
.source-end { margin-bottom: 5rem; }
.photo-essay { padding-top: 1.8rem; border-top: 1px solid var(--rule); }
.photo-essay > figure { max-width: 50rem; margin-top: 1.2rem; }
.gallery-controls { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.gallery-count { min-width: 3.5rem; color: var(--muted); text-align: center; font-size: .82rem; font-variant-numeric: tabular-nums; }
.gallery-controls button { min-width: 5rem; min-height: 44px; padding-inline: .75rem; border: 1px solid var(--rule); background: var(--white); color: var(--ink); font: 600 .84rem var(--sans); cursor: pointer; }
.gallery-controls button:hover { border-color: var(--ink); }
.gallery-controls button[aria-disabled="true"] { color: var(--muted); opacity: .72; cursor: default; }
.gallery-strip { display: flex; gap: 1.15rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-color: var(--teal) var(--limestone); padding-bottom: 1rem; }
.gallery-strip figure { flex: 0 0 67%; min-width: 0; scroll-snap-align: start; }
.gallery-strip figure:last-child { scroll-snap-align: end; }
.gallery-strip img { aspect-ratio: 3/2; object-fit: cover; background: var(--limestone); }
.gallery-strip .archive-plate img { object-fit: contain; }
.photo-essay > .archive-plate { max-width: 35rem; }

.map-section { margin-top: .45rem; }
.map-section h2 { margin-bottom: 1.1rem; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(13rem, 1fr); gap: clamp(1.1rem, 3vw, 2.25rem); }
.map-plate { position: relative; }
.map-pin { position: absolute; top: var(--y); left: var(--x); transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; text-decoration: none; }
.map-pin span { width: 1.72rem; height: 1.72rem; border-radius: 50%; display: grid; place-items: center; color: white; background: #254e53; box-shadow: 0 0 0 2px var(--white); font-size: .83rem; font-weight: 700; }
.map-pin:is(:hover, :focus-visible) span { background: var(--rust); }
.map-list { display: grid; gap: .55rem; align-content: start; margin: 0; padding: 0; list-style: none; counter-reset: guide-map; }
.map-list li { display: flex; align-items: start; gap: .75rem; border-bottom: 1px solid var(--rule); padding: .55rem .35rem; counter-increment: guide-map; }
.map-list li::before { content: counter(guide-map); font-size: .84rem; background: #254e53; color: white; border-radius: 50%; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; flex: none; }
.map-list :target { background: var(--limestone); outline: 2px solid var(--teal); }
.map-list li span { display: flex; gap: .9rem; flex-wrap: wrap; }
.map-list a { font-size: .88rem; display: inline-flex; min-height: 44px; align-items: center; }
.map-coast img { border: 1px solid var(--rule); }
.map-coast h2 { margin-bottom: .85rem; }
.coast-list p { margin: .1rem 0 0; color: var(--muted); font-size: .9rem; }
.coast-links { margin-top: 1rem; }
@media (max-width: 900px) { .map-coast .map-layout { grid-template-columns: 1fr; } }
.credits { max-width: 58rem; }
.credits h2 { margin-block: 2rem .9rem; }
.credits ul { margin: 0; padding: 0; list-style: none; }
.credits li { border-bottom: 1px solid var(--rule); padding-block: .8rem; }
.credits li:target { background: var(--limestone); }
.credits li p { color: var(--muted); margin: .25rem 0 0; font-size: .96rem; }
.site-footer { padding-block: clamp(1.7rem, 5vw, 3rem); border-top: 1px solid var(--rule); background: var(--limestone); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }

@media (max-width: 1050px) {
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-bar-inner { align-items: start; flex-direction: column; gap: 0; padding-block: .65rem .15rem; }
}

@media (max-width: 850px) {
  .stay-opening-inner { grid-template-columns: minmax(0, 1fr); }
  .stay-opening-photo img { aspect-ratio: 16/9; }
}

@media (max-width: 690px) {
  .wrap { width: 92%; }
  .brand-links .secondary-link { display: none; }
  .site-bar { min-height: 3.85rem; }
  .site-bar .plan-link { padding-inline: .7rem; font-size: .82rem; }
  .guide-bar nav { gap: 0 .65rem; width: 100%; font-size: .82rem; }
  .guide-bar nav a { min-height: 44px; }
  .cover { min-height: clamp(26.5rem, 107vw, 35rem); }
  .cover-copy { padding-block: 4.2rem 2.25rem; }
  .cover-copy h1 { margin-bottom: 1.15rem; }
  .cover-shade { background: linear-gradient(0deg, #132326ee, #17252972 60%, #17252930 100%); }
  .cards, .chapter-grid, .feature, .last-section, .story-layout, .timeline-row, .map-layout, .dining-groups, .stay-picks { grid-template-columns: 1fr; }
  .cards, .chapter-grid { gap: 1.2rem; }
  .timeline-row.alternate figure { order: 0; }
  .chapter-cover img, .article-cover img { aspect-ratio: 4/3; }
  .article-cover.archive-plate { grid-template-columns: 1fr; gap: 0; }
  .gallery-strip figure { flex-basis: 86%; }
  .map-pin span { width: 1.35rem; height: 1.35rem; font-size: .75rem; }
  .site-footer nav { gap: .3rem 1rem; }
  .stay-feature, .stay-help { grid-template-columns: minmax(0, 1fr); }
  .stay-feature-photo img { height: auto; aspect-ratio: 16/9; }
  .stay-feature-copy .stay-button { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
