/* Marcel's Adventures: travel-signage type, photo-led layout */
:root {
  --salt: #f4f6f3;
  --ink: #10252e;
  --lagoon: #0b7a85;
  --buoy: #ffc83d;
  --mist: #d9e1de;
  --muted: #53656c;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Source Serif 4", Georgia, serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --salt: #0c1a20;
    --ink: #e9efed;
    --lagoon: #5ccbd6;
    --mist: #24373f;
    --muted: #9db0b6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--salt);
  color: var(--ink);
  font: 1.1875rem/1.7 var(--text);
}
a { color: var(--lagoon); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--buoy); color: #10252e; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* ---------- header / footer ---------- */
header.site, footer.site {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 0.25rem 2rem; padding: 1rem var(--gutter); max-width: 78rem; margin-left: auto; margin-right: auto;
}
header.site { font-family: var(--display); }
.brand {
  font-weight: 700; font-size: 1.85rem; line-height: 1.1; letter-spacing: 0.005em;
  color: var(--ink); text-decoration: none;
}
header.site nav { display: flex; flex-wrap: wrap; gap: 0.1rem 1.4rem; }
header.site nav a {
  font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none;
  border-bottom: 3px solid transparent;
}
header.site nav a:hover, header.site nav a[aria-current] { border-bottom-color: var(--buoy); }
footer.site { margin-top: 5rem; padding-top: 1.25rem; padding-bottom: 2rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- shared bits ---------- */
.wrap { max-width: 78rem; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 46rem; }
.page-title, .hero .h1, .post-hero h1, .post-head h1 {
  font-family: var(--display); font-weight: 700; line-height: 0.98; letter-spacing: -0.005em; margin: 0;
}
.page-title { font-size: clamp(2.8rem, 7vw, 4.8rem); margin: 2rem 0 0.5rem; }
.lede { color: var(--muted); margin: 0 0 2rem; }
.section { font-family: var(--display); font-weight: 600; font-size: 1.7rem; margin: 3rem 0 1.25rem; }

/* destination plate: the one loud device */
.plate {
  display: inline-block; margin: 0; padding: 0.1rem 0.6rem 0.15rem;
  background: var(--buoy); color: #10252e; border-radius: 2px;
  font: 600 1.1rem/1.3 var(--display); letter-spacing: 0.01em;
}

/* ---------- home hero ---------- */
.hero, .post-hero { position: relative; display: block; overflow: hidden; background: #10252e; color: #fff; text-decoration: none; }
.hero { height: clamp(26rem, 78vh, 52rem); }
.hero picture, .post-hero picture { display: contents; }
.hero img, .post-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 20, 26, 0.82) 0%, rgba(8, 20, 26, 0.35) 45%, rgba(8, 20, 26, 0) 70%); }
.hero .inner, .post-hero .inner {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 78rem; margin: 0 auto;
  padding: 0 var(--gutter) clamp(1.5rem, 5vw, 3.5rem); display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
}
.hero .h1 { display: block; font-size: clamp(3rem, 9vw, 7.5rem); max-width: 14ch; text-wrap: balance; }
.hero .when { font-size: 1rem; opacity: 0.9; }
.hero:hover .h1 { text-decoration: underline; text-decoration-thickness: 4px; text-decoration-color: var(--buoy); text-underline-offset: 0.12em; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2.5rem 1.75rem; }
.card { display: block; color: var(--ink); text-decoration: none; }
.card .cover { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: var(--mist); }
.card .cover.blank { background: linear-gradient(135deg, var(--mist), color-mix(in srgb, var(--mist) 60%, var(--buoy))); }
.card picture { display: block; }
.card h3 { font: 600 1.75rem/1.08 var(--display); margin: 0.75rem 0 0.4rem; text-wrap: balance; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--buoy); text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.card .where { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; color: var(--muted); font-size: 0.9rem; }
.card .plate { font-size: 0.95rem; }

.pager { display: flex; justify-content: space-between; align-items: center; margin: 3.5rem 0 0; font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.pager a { color: var(--ink); }

/* ---------- post ---------- */
.post-hero { height: clamp(22rem, 66vh, 44rem); }
.post-hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); max-width: 16ch; text-wrap: balance; }
.post-head { max-width: 78rem; margin: 3rem auto 0; padding: 0 var(--gutter); }
.post-head > * { max-width: 38rem; margin-left: auto; margin-right: auto; }
.post-head h1 { font-size: clamp(2.8rem, 8vw, 5rem); margin-top: 0.75rem; text-wrap: balance; }
.byline {
  max-width: calc(38rem + 2 * var(--gutter)); margin: 1.25rem auto 2.5rem; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; color: var(--muted); font-size: 0.95rem;
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips a {
  display: inline-block; padding: 0.05rem 0.7rem; border: 1px solid var(--mist); border-radius: 99px;
  color: var(--ink); text-decoration: none; font: 600 1.05rem/1.4 var(--display);
}
.chips a:hover { background: var(--buoy); border-color: var(--buoy); color: #10252e; }
.chips.big { margin-top: 1.5rem; gap: 0.6rem; }
.chips.big a { font-size: 1.35rem; padding: 0.1rem 0.9rem; }
.chips small { color: var(--muted); font-size: 0.85em; margin-left: 0.2rem; }

/* reading column; photos break out wider */
.content { max-width: 74rem; margin: 0 auto; padding: 0 var(--gutter); }
.content > * { max-width: 38rem; margin-left: auto; margin-right: auto; }
.content > figure, .content > p:has(> img:only-child), .content > p:has(> picture:only-child), .content > picture {
  max-width: 70rem; margin-top: 2rem; margin-bottom: 2rem;
}
.content p { margin-top: 0; margin-bottom: 1.1rem; hyphens: auto; }
.content h2, .content h3, .content h4 { font-family: var(--display); line-height: 1.1; margin: 2.5rem auto 0.75rem; }
.content h2 { font-size: 2.4rem; } .content h3 { font-size: 1.9rem; } .content h4 { font-size: 1.5rem; }
.content figure { margin-left: auto; margin-right: auto; display: grid; justify-items: center; }
.content figure img, .content > p img, .content > picture img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(85vh, 56rem); margin: 0 auto; border-radius: 2px; }
.content figcaption { max-width: 38rem; margin: 0.5rem auto 0; text-align: center; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.content iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; max-width: 46rem; }
.content blockquote { border-left: 4px solid var(--buoy); margin-left: auto; padding-left: 1.25rem; font-style: italic; }
.content ul, .content ol { padding-left: 1.4rem; }

.comments { max-width: 38rem; margin: 4rem auto 0; padding: 0 var(--gutter); }
.comments h2 { font: 700 2rem/1.1 var(--display); }
.comment { border-top: 1px solid var(--mist); padding: 0.8rem 0 0.2rem; }
.comment .who { margin: 0; font: 600 1.15rem/1.3 var(--display); }
.comment p { margin: 0 0 0.6rem; }
.comments .note { color: var(--muted); font-size: 0.85rem; }

.more { max-width: 74rem; margin: 5rem auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.more a { display: block; color: var(--ink); text-decoration: none; padding-top: 1rem; border-top: 3px solid var(--buoy); }
.more .next { text-align: right; grid-column: 2; }
.more span { display: block; color: var(--muted); font-size: 0.9rem; }
.more strong { font: 600 1.9rem/1.1 var(--display); }
.more a:hover strong { text-decoration: underline; text-underline-offset: 0.12em; }

/* ---------- archive / map ---------- */
.year { display: grid; grid-template-columns: 6rem 1fr; gap: 0 1rem; border-top: 1px solid var(--mist); padding: 1.25rem 0; }
.year h2 { font: 700 2.8rem/1 var(--display); margin: 0; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.1rem 1rem; padding: 0.25rem 0; }
.plain time { color: var(--muted); font-size: 0.9rem; padding-top: 0.2rem; }
.plain .loc { grid-column: 2; color: var(--muted); font-size: 0.85rem; margin-top: -0.35rem; }
.bigmap { height: min(72vh, 46rem); border-radius: 2px; margin-bottom: 1rem; }

@media (max-width: 40rem) {
  body { font-size: 1.125rem; }
  .year { grid-template-columns: 1fr; }
  .more { grid-template-columns: 1fr; }
  .more .next { grid-column: 1; text-align: left; }
}
@media (prefers-reduced-motion: no-preference) {
  .card .cover, .hero img { transition: transform 0.5s ease; }
  .card:hover .cover { transform: scale(1.015); }
}
