/* Shared styles for the trip pages in /trips/. Paths are relative to this file. */
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-latin-900-normal-subset.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
/* Cedarville Cursive stands in for Biro Script Plus until the licensed web font is added. */
@font-face { font-family: 'Scribble'; src: url('../fonts/cedarville-cursive-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --sapin: #262c00; --sapin-deep: #1a1e00; --mousse: #53582f; --lichen: #c3c49f; --paper: #f4f3e8;
  --acajou: #5e2418; --acajou-dark: #4a1c12; --ciel: #adbcc3;
  --grade-green: #5f9a2e; --grade-blue: #2f6fb5; --grade-red: #c8372d; --grade-black: #1f1f1a;
  --gutter: clamp(1rem, 5vw, 5rem);
  --edge: max(var(--gutter), calc((100% - 68rem) / 2));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--sapin); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--sapin); opacity: 0.06; -webkit-mask: url('nta-contours.svg') center / cover no-repeat; mask: url('nta-contours.svg') center / cover no-repeat; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--acajou); outline-offset: 3px; border-radius: 4px; }
.topbar a:focus-visible, .footer a:focus-visible { outline-color: var(--ciel); }
p, h1, h2 { margin: 0; }

.topbar { background: var(--sapin); display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap; padding: calc(1.25rem + env(safe-area-inset-top, 0px)) var(--edge) 1rem; }
.brand { font-family: 'Nunito', system-ui, sans-serif; font-weight: 900; font-size: clamp(1.3rem, 4vw, 1.6rem); letter-spacing: -0.035em; color: var(--lichen); text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a { color: #fff; text-decoration: none; font-size: 0.95rem; font-weight: 600; padding: 0.5rem 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--ciel); }

.trip { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; max-width: calc(68rem + 2 * var(--gutter)); margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) clamp(5rem, 10vw, 8rem); }
.trip__photo { position: relative; border-radius: 12px; overflow: hidden; }
.trip__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; }
.backbar { max-width: calc(68rem + 2 * var(--gutter)); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 0; }
.back { display: inline-block; font-size: 0.9rem; font-weight: 600; color: var(--mousse); text-decoration: none; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
.kind { font-size: 0.95rem; color: var(--mousse); margin-bottom: 0.5rem; }
.trip h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; margin-bottom: 2rem; }
.facts { margin: 0 0 2.25rem; display: grid; grid-template-columns: max-content 1fr; gap: 0.75rem 2rem; padding: 1.4rem 0; border-top: 1px solid #d9d8c4; border-bottom: 1px solid #d9d8c4; }
.facts dt { font-size: 0.9rem; color: var(--mousse); }
.facts dd { margin: 0; font-size: 1rem; font-weight: 600; }
.facts dd span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--mousse); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.45rem; vertical-align: 0.05em; }
.dot--green { background: var(--grade-green); }
.dot--blue { background: var(--grade-blue); }
.dot--red { background: var(--grade-red); }
.dot--black { background: var(--grade-black); }
.summary p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.2rem; max-width: 34rem; }
.status { display: inline-block; font-size: 0.85rem; font-weight: 600; padding: 0.35rem 0.6rem; border-radius: 4px; background: var(--acajou); color: #f4e6df; margin: 1rem 0 1.25rem; }
.status--past { display: block; width: fit-content; background: var(--sapin); color: var(--paper); }
.next { font-size: 1rem; line-height: 1.55; color: var(--mousse); margin-bottom: 1.25rem; max-width: 34rem; }
.next a { color: var(--acajou); font-weight: 600; text-underline-offset: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.8rem 1.6rem; border-radius: 4px; background: var(--acajou); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; }
.btn:hover { background: var(--acajou-dark); }

.trip:has(+ .gallery) { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.gallery { max-width: calc(68rem + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(5rem, 10vw, 8rem); }
.gallery h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gallery__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

.footer { position: relative; overflow: hidden; background: var(--sapin); color: var(--lichen); padding: 2.5rem var(--edge) calc(2rem + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }
.footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--lichen); opacity: 0.12; -webkit-mask: url('nta-contours.svg') center / cover no-repeat; mask: url('nta-contours.svg') center / cover no-repeat; }
.footer > * { position: relative; }
.footer a { color: #fff; }

@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; justify-content: space-between; gap: 0.5rem; }
  .nav a { font-size: 0.9rem; }
  .trip { grid-template-columns: minmax(0, 1fr); }
  .trip__photo img { aspect-ratio: 4 / 3; }
  .btn { width: 100%; }
  .gallery__grid { grid-template-columns: minmax(0, 1fr); }
}
