:root {
  --paper: #fbf7f1;
  --paper-2: #f4ece2;
  --ink: #1f1a17;
  --muted: #6d635b;
  --line: #e7dbcd;
  --peach: #ffcfb3;
  --pink: #d8329f;
  --pink-ink: #a81c78;
  --green: #22a447;
  --red: #e0262b;
  --orange: #e86a17;
  --radius: 14px;
  --wrap: 1120px;
  --display: "Abril Fatface", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-ink); margin-bottom: .8em; }
.muted { color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .98rem; }
.nav a[aria-current="page"], .nav a:hover { background: var(--paper-2); color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; border: 0; cursor: pointer; font: 600 1rem var(--body); }
.btn:hover { background: var(--pink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--pink); }
.hero .lede { font-size: 1.15rem; max-width: 34ch; color: #3b332d; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.polaroids { position: relative; height: 470px; }
.polaroid { position: absolute; background: #fff; padding: 10px 10px 34px; box-shadow: 0 18px 40px -18px rgba(40, 20, 10, .45); border-radius: 4px; width: 56%; margin: 0; }
.polaroid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.polaroid figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 8px; }
.polaroid:nth-child(1) { left: 0; top: 10px; transform: rotate(-6deg); }
.polaroid:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); }
.polaroid:nth-child(3) { left: 24%; bottom: 0; transform: rotate(-1.5deg); z-index: 2; }

/* sections */
.section { padding: 72px 0; }
.section.tint { background: var(--peach); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* story cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(40, 20, 10, .5); transition: transform .2s ease; }
.card:hover { transform: translateY(-3px); color: inherit; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card .body { padding: 20px 22px 24px; }
.card h3 { margin-bottom: .25em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.meta { font-size: .88rem; color: var(--muted); }

/* photo strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.strip img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 8px; }

/* banner */
.banner { background: var(--pink); color: #fff; padding: 84px 0; }
.banner p { font-family: var(--display); font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.15; max-width: 22ch; margin: 0; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.about .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.fact { background: var(--paper-2); border-radius: 12px; padding: 16px; }
.fact b { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 400; }
.fact span { font-size: .85rem; color: var(--muted); }


/* article */
.post-head { padding: 64px 0 32px; text-align: center; }
.post-head h1 { max-width: 18ch; margin-inline: auto; }
.post-head .sub { font-size: 1.1rem; color: var(--muted); margin-bottom: .4em; }
.post-cover { width: min(1000px, 100% - 32px); margin: 0 auto 48px; border-radius: var(--radius); overflow: hidden; }
.post-cover img { width: 100%; max-height: 640px; object-fit: cover; object-position: center 30%; }
.prose { width: min(680px, 100% - 32px); margin: 0 auto; font-size: 1.12rem; line-height: 1.8; }
.prose figure { margin: 40px -60px; }
.prose figure img { border-radius: 10px; width: 100%; }
.prose .kicker { font-family: var(--display); font-size: 1.6rem; line-height: 1.25; margin-bottom: 1em; }
.prose .end { font-style: italic; color: var(--muted); }
.post-nav { width: min(680px, 100% - 32px); margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* gallery */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 44px; }
.album { background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 0 var(--line); }
.album b { display: block; font-size: 1.02rem; }
.album span { font-size: .85rem; color: var(--muted); }
.album:hover { box-shadow: inset 0 0 0 1.5px var(--pink); color: inherit; }
.masonry { columns: 3 280px; column-gap: 12px; }
.masonry a { display: block; margin-bottom: 12px; break-inside: avoid; border-radius: 8px; overflow: hidden; }
.masonry img { width: 100%; height: auto; transition: transform .3s ease; }
.masonry a:hover img { transform: scale(1.03); }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15, 10, 8, .92); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }

/* footer */
.site-footer { background: var(--ink); color: #e9e1d8; padding: 48px 0; margin-top: 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .name { font-family: var(--display); font-size: 1.5rem; color: #fff; }
.site-footer a { color: #e9e1d8; }
.site-footer a:hover { color: var(--peach); }
.site-footer nav { display: flex; gap: 20px; }

/* secret */
.secret { text-align: center; padding: 72px 0; }
.secret .vids { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.secret video { width: 260px; border-radius: 12px; }

@media (max-width: 860px) {
  .hero .wrap, .about { grid-template-columns: 1fr; gap: 32px; }
  .polaroids { height: 380px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .prose figure { margin: 32px 0; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .nav a { padding: 6px 10px; font-size: .92rem; }
  .logo img { height: 38px; }
  .polaroids { height: 300px; }
  .about .facts { grid-template-columns: 1fr 1fr 1fr; }
}

/* map */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stats div { background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 0 var(--line); }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; }
.stats span { font-size: .85rem; color: var(--muted); }
.tabs { display: inline-flex; gap: 4px; background: var(--paper-2); padding: 4px; border-radius: 999px; margin-bottom: 14px; }
.tabs button { border: 0; background: transparent; font: 600 .95rem var(--body); padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.map-box { position: relative; background: #fff; border-radius: var(--radius); box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(40, 20, 10, .5); padding: 12px; }
.map-svg { display: none; width: 100%; height: auto; }
.map-svg.on { display: block; }
.map-svg .sphere { fill: #f3f7fa; }
.map-svg .land { fill: #ece4da; stroke: #fff; stroke-width: .6; }
.map-svg[data-map="us"] .land { stroke-width: 1; }
.map-svg .land.visited { fill: var(--peach); }
.map-svg .land:hover { fill: #e2d6c8; }
.map-svg .land.visited:hover { fill: #ffbe96; }
.map-svg .borders { fill: none; stroke: #fff; stroke-width: 1; }
.map-svg .cty { font: 600 13px var(--body); fill: #a89a8c; text-anchor: middle; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.map-svg .route { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 6; opacity: .9; }
.map-svg[data-map="world"] .route { stroke-width: 1.5; stroke-dasharray: none; }
.map-svg .pin { stroke: #fff; stroke-width: 2; cursor: pointer; }
.map-svg[data-map="world"] .pin { stroke-width: 1; }
.map-svg .pin:hover, .map-svg .pin:focus { stroke: var(--ink); outline: none; }
.map-box.focusing .route:not(.hl), .map-box.focusing .pin:not(.hl) { opacity: .12; }
.map-box.focusing .route.hl { stroke-dasharray: none; stroke-width: 4; }
.pop { position: absolute; z-index: 5; width: 240px; background: #fff; border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(40, 20, 10, .45); overflow: hidden; }
.pop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pop-list { max-height: 220px; overflow-y: auto; }
.pop-body { display: grid; gap: 2px; padding: 12px 14px 14px; font-size: .92rem; }
.pop-body + .pop-body { border-top: 1px solid var(--line); }
.pop-trip { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pop-links { display: flex; gap: 12px; margin-top: 6px; font-weight: 600; color: var(--pink-ink); }
.pop-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; font-size: 1.1rem; }
.pop.dock { left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; display: grid; grid-template-columns: 96px 1fr; }
.pop.dock img { height: 100%; aspect-ratio: auto; }
.map-note { font-size: .85rem; margin-top: 12px; }
.trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.trip { display: grid; grid-template-columns: 92px 1fr; gap: 14px; text-align: left; background: #fff; border: 0; border-left: 5px solid var(--c); border-radius: 12px; padding: 12px; cursor: pointer; font: inherit; color: inherit; box-shadow: 0 1px 0 var(--line); transition: transform .15s; }
.trip:hover { transform: translateY(-2px); }
.trip.active { box-shadow: inset 0 0 0 2px var(--c); }
.trip img, .trip-noimg { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; }
.trip-noimg { background: var(--paper-2); }
.trip-body { display: grid; gap: 3px; align-content: start; }
.trip-body b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1.15; }
.trip-when { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.trip-stops { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.trip-links { display: flex; gap: 14px; font-size: .86rem; font-weight: 600; color: var(--pink-ink); margin-top: 4px; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .map-box { padding: 6px; }
  .trips { grid-template-columns: 1fr; }
}
