/* Matt Dea, Travel Journal. Fonts are self-hosted copies of the ones the
   mdeacreative.com homepage loads from Google (Bodoni Moda, Jost; SIL OFL). */
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/bodoni-moda-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/bodoni-moda-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/bodoni-moda-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/bodoni-moda-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* MDC Studio tokens, shared with the mdeacreative.com homepage. Gold is a
   decoration color only (1.8:1 on ivory); it never carries body text. */
:root {
  --ivory: #F7F3EE;
  --ink: #1F1B18;
  --muted: #6B625A;
  --accent: #7D6853;
  --gold: #C9B48A;
  --line: #E4DCD2;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --wide: 1200px;
  --read: 680px;
  --gutter: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 300 18px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--ink); color: var(--ivory); padding: 8px 14px; font: 400 13px/1 var(--sans); }
.skip:focus { left: 8px; }

/* Small tracked capitals: kickers, labels, nav. */
.kicker, .nav-links a, .tab, .btn-line, .signoff__link, .signoff__base, .brand__sub, .card__date {
  font-family: var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
}
.kicker { font-size: 11.5px; font-weight: 400; line-height: 1.6; color: var(--accent); margin: 0; }
.kicker--light { color: #fff; }
.kicker--gold { color: var(--gold); }
.rule { display: block; width: 56px; height: 1px; background: var(--gold); margin: 22px auto; }

.btn-line {
  display: inline-block; font-size: 11.5px; font-weight: 400; line-height: 1; color: var(--ink);
  background: transparent; border: 1px solid currentColor; padding: 14px 22px; cursor: pointer; text-decoration: none;
}
.btn-line:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-line--light { color: #fff; }
.btn-line--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- header ---------- */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px max(var(--gutter), calc((100vw - 1320px) / 2)); border-bottom: 1px solid var(--line);
  background: var(--ivory); position: relative; z-index: 5;
}
.brand { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.brand__name { font: 400 19px/1 var(--serif); letter-spacing: .32em; text-transform: uppercase; }
.brand__sub { font-size: 10px; font-weight: 400; line-height: 1; color: var(--muted); }
.nav-links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav-links a { font-size: 11px; font-weight: 400; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover { border-color: var(--ink); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu__toggle { font: 400 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; padding: 12px 0 12px 12px; }
@media (max-width: 819px) {
  .masthead > .nav-links { display: none; }
  .menu { display: block; }
  .menu .nav-links {
    position: absolute; right: 0; left: 0; top: 100%; background: var(--ivory);
    border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px;
  }
  .menu .nav-links ul { flex-direction: column; gap: 4px; }
  .menu .nav-links a { display: inline-block; padding: 10px 0; }
}

/* ---------- index ---------- */
.hero { position: relative; height: clamp(460px, 78vh, 720px); overflow: hidden; background: var(--ink); color: #fff; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  /* ~30% overall, deeper at the bottom where the type sits. */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 17, 15, .62) 0%, rgba(20, 17, 15, .3) 45%, rgba(20, 17, 15, .22) 100%);
}
.hero__text {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  padding: 0 max(var(--gutter), calc((100vw - 1320px) / 2)) clamp(36px, 7vh, 72px);
  max-width: 1100px;
}
.hero__title { font: 400 clamp(46px, 9vw, 84px)/1.02 var(--serif); margin: 14px 0 12px; }
.hero__dek { font: italic 400 clamp(17px, 2.2vw, 22px)/1.45 var(--serif); margin: 0 0 26px; max-width: 34em; }

.intro { text-align: center; max-width: 720px; margin: 0 auto; padding: 76px var(--gutter) 48px; }
.intro__line { font: italic 400 clamp(24px, 3.4vw, 32px)/1.35 var(--serif); margin: 0; }
.intro__note { color: var(--muted); font-size: 16px; margin: 0; }

.filters {
  max-width: var(--wide); margin: 0 auto 8px; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px;
}
.filters::before, .filters::after { content: ""; flex-basis: 100%; border-top: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; padding: 6px 0; }
.tab {
  font-size: 11.5px; font-weight: 400; color: var(--muted); background: none; border: 0; padding: 8px 0;
  border-bottom: 1px solid transparent; cursor: pointer;
}
.tab.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.tab:hover { color: var(--ink); }
.search input {
  font: 300 16px var(--sans); color: var(--ink); background: transparent; width: 220px; max-width: 100%;
  border: 0; border-bottom: 1px solid var(--muted); border-radius: 0; padding: 8px 0;
}
.search input::placeholder { color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-size: 11.5px; }
.search input:focus { outline: none; border-bottom-color: var(--ink); }
.search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) { .search, .search input { width: 100%; } }

.years { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) 96px; }
.year__label {
  display: flex; align-items: center; gap: 24px; margin: 64px 0 36px;
  font: 400 clamp(30px, 4vw, 40px)/1 var(--serif);
}
.year__label::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card a { display: block; text-decoration: none; }
.card__frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); margin-bottom: 18px; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card a:hover .card__img { transform: scale(1.025); }
.card__title { font: 400 27px/1.2 var(--serif); margin: 8px 0 10px; }
.card a:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.card__date { font-size: 11px; font-weight: 400; color: var(--muted); margin: 0; letter-spacing: .2em; }
.empty { color: var(--muted); text-align: center; padding: 48px 0; }

/* ---------- post ---------- */
.post-hero { height: clamp(320px, 70vh, 760px); overflow: hidden; background: var(--ink); }
.post-hero__img { width: 100%; height: 100%; object-fit: cover; }
.post__head { max-width: 860px; margin: 0 auto; padding: 64px var(--gutter) 40px; text-align: center; }
.post__title { font: 400 clamp(40px, 5.6vw, 60px)/1.12 var(--serif); margin: 18px 0 0; }
.post__dek { font: italic 400 clamp(19px, 2.4vw, 23px)/1.5 var(--serif); color: var(--muted); margin: 20px auto 0; max-width: 40em; }
.post__head .rule { margin: 28px auto 18px; }
.post__byline { font-size: 15px; color: var(--muted); margin: 0 0 26px; }
.draft-note { display: inline-block; font-size: 13px; color: var(--accent); border: 1px dashed var(--accent); padding: 4px 12px; margin: 0 0 22px; }
.share { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.share .btn-line { font-size: 10.5px; padding: 11px 18px; }
.share__status { flex-basis: 100%; font-size: 14px; color: var(--muted); min-height: 1.6em; }

.post__body { padding: 0 var(--gutter); }
/* Prose keeps Squarespace's pre-wrap so Matt's spacing reads as written. */
.prose { max-width: var(--read); margin: 0 auto 40px; }
.prose p, .prose li, .prose h2, .prose h3, .prose h4, .prose blockquote { white-space: pre-wrap; }
.prose p { margin: 0 0 1.25em; }
.prose a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 400; line-height: 1.25; margin: 1.8em 0 .6em; }
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 27px; }
.prose h4 { font-size: 22px; }
.prose strong { font-weight: 500; }
.prose blockquote { margin: 1.6em 0; padding: 0; text-align: center; font: italic 400 24px/1.5 var(--serif); }
.prose blockquote h2, .prose blockquote h3 { font-style: italic; }
.prose li p { margin: 0 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose hr { border: 0; width: 56px; height: 1px; background: var(--gold); margin: 3em auto; }
.lede { font: italic 400 clamp(23px, 3vw, 28px)/1.5 var(--serif); text-align: center; margin: 8px auto 1.6em !important; }
.day { border-top: 1px solid var(--line); margin-top: 64px; padding-top: 44px; text-align: center; }
.day__kicker { font: 400 11.5px/1.6 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px !important; }
.prose .day__title { font-size: clamp(28px, 3.6vw, 36px); margin: 0 0 1.2em; }
.closing { text-align: center; font: italic 400 22px/1.65 var(--serif); margin: 2.4em auto 1.4em !important; }
.closing::before { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin: 0 auto 36px; }

/* Photos, laid out by shape (build_site.render_photos). No photo is drawn
   taller than 80% of the screen, and none is cropped to get there: each is
   min(its column, 80vh x its aspect ratio) wide, centered. */
.photos { max-width: var(--wide); margin: 0 auto 40px; display: flex; flex-direction: column; gap: 14px; }
.photos figure { margin: 0; }
.photo__link { display: block; }
.photo img { width: 100%; height: auto; }
.photo--wide img, .photo--bleed img, .photo--solo img {
  width: min(100%, calc(80vh * var(--ar, 1.5))); margin: 0 auto;
}
.photo--bleed { width: 100vw; margin-left: calc(50% - 50vw) !important; }
.photo--bleed img { width: min(100vw, calc(80vh * var(--ar, 1.5))); }
.photo--solo { width: 100%; max-width: 600px; margin: 0 auto !important; }
/* A row is as wide as it can be while its photos stay under 80vh. */
.photo-row {
  display: flex; gap: 14px; align-items: flex-start; width: 100%; margin: 0 auto;
  max-width: calc(80vh * var(--sum) + (var(--n) - 1) * 14px);
}
.photo-row > .photo { flex: var(--ar) 1 0; min-width: 0; }

/* Long runs: a compact grid of evenly cropped tiles; tap one for the viewer. */
.photos--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo--tile .photo__link { aspect-ratio: 1; overflow: hidden; background: var(--line); }
.photo--tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.photo--tile .photo__link:hover img { opacity: .88; }

@media (max-width: 699px) {
  .photos, .photo-row { gap: 8px; }
  .photo-row { max-width: calc(80vh * var(--sum) + (var(--n) - 1) * 8px); }
  /* Only landscapes run full width on a phone; a lone portrait doesn't. */
  .photo--solo { max-width: 75%; }
  .photos--grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}
.photos figcaption, .photo-row figcaption {
  font: italic 400 15px/1.5 var(--serif); color: var(--muted); text-align: center; padding: 10px 8px 0;
}
.missing__box {
  aspect-ratio: 3 / 2; display: grid; place-content: center; gap: 6px; text-align: center;
  border: 1px dashed var(--line); color: var(--muted); font-size: 14px; padding: 16px;
}
.missing__box code { font-size: 12px; word-break: break-all; }

/* If You Go */
.go { max-width: 980px; margin: 72px auto 0; padding: 40px var(--gutter) 44px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); text-align: center; }
.go__title { font: 400 34px/1.2 var(--serif); margin: 0 0 32px; }
.go__cols { display: grid; gap: 32px; grid-template-columns: 1fr; }
/* As many columns as the post has lists (Stay, Eat, See), kept centered. */
@media (min-width: 720px) {
  .go__cols { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); max-width: calc(var(--cols, 3) * 320px); margin: 0 auto; }
}
.go__col ul { list-style: none; margin: 14px 0 0; padding: 0; font-size: 16px; line-height: 1.7; }

/* Previous / next */
.story-nav {
  max-width: 980px; margin: 72px auto 96px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end;
}
.story-nav a { text-decoration: none; }
.story-nav__title { display: block; font: 400 clamp(20px, 2.4vw, 26px)/1.25 var(--serif); margin-top: 8px; }
.story-nav a:hover .story-nav__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.story-nav__all { align-self: center; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.story-nav__next { text-align: right; }
@media (max-width: 640px) {
  .story-nav { grid-template-columns: 1fr; text-align: center; }
  .story-nav__next { text-align: center; }
  .story-nav__all { justify-self: center; order: 3; }
}

/* ---------- sign-off band ---------- */
.signoff { background: var(--ink); color: var(--ivory); padding: 72px max(var(--gutter), calc((100vw - 1200px) / 2)) 28px; }
.signoff__inner { display: flex; gap: 40px; align-items: flex-start; max-width: 900px; }
.signoff__mark { width: 96px; height: 96px; flex: none; }
.signoff__line { font: 400 clamp(22px, 2.6vw, 28px)/1.45 var(--serif); margin: 14px 0 24px; max-width: 30em; }
.signoff__link { font-size: 11.5px; font-weight: 400; color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 5px; }
.signoff__link:hover { color: var(--gold); }
.signoff__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(247, 243, 238, .16);
  font-size: 10.5px; font-weight: 400; color: #B9AFA4;
}
.signoff :focus-visible { outline-color: var(--gold); }
@media (max-width: 640px) {
  .signoff__inner { flex-direction: column; gap: 24px; }
  .signoff__mark { width: 72px; height: 72px; }
}

/* ---------- full-screen viewer (post.js) ---------- */
.viewer { position: fixed; inset: 0; z-index: 10; background: #0d0c0b; color: #f2ede6; }
.viewer__track {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  overscroll-behavior: contain; scrollbar-width: none;
}
.viewer__track::-webkit-scrollbar { display: none; }
.viewer__slide {
  flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px; gap: 8px; cursor: zoom-out; min-width: 0;
}
.viewer__slide img { max-width: 100%; max-height: calc(100% - 32px); width: auto; height: auto; object-fit: contain; }
.viewer__slide figcaption { color: #c9c1b6; padding: 0; text-align: center; max-width: 680px; font: italic 400 16px/1.5 var(--serif); }
.viewer__btn {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0;
  border-radius: 50%; cursor: pointer; color: #f2ede6; background: rgba(255, 255, 255, .12);
}
.viewer__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.viewer__btn:disabled { opacity: 0; pointer-events: none; }
.viewer__close { top: 12px; right: 12px; }
.viewer__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.viewer__next { right: 12px; top: 50%; transform: translateY(-50%); }
.viewer__count { position: absolute; top: 24px; left: 16px; font: 400 13px/1 var(--sans); letter-spacing: .2em; color: #c9c1b6; }
@media (hover: none) { .viewer__prev, .viewer__next { display: none; } }
