@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/dm-sans.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: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/newsreader-italic.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: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/newsreader.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;
}

:root {
  --paper: #f7f4ec;
  --ink: #293429;
  --muted: #666a5e;
  --green: #4b6046;
  --ochre: #a07843;
  --line: #d9dbcf;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(24px, 4vw, 48px);
  --section-space: clamp(52px, 7vw, 88px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.7 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #dce3d0; color: var(--ink); }
a { color: inherit; text-decoration: none; }
figure, p { margin: 0; }
img { display: block; max-width: 100%; }
em { font-weight: 400; color: var(--green); }

/* Content edges and type follow the same scale throughout the journal. */
.wrap {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  position: relative;
}

.site-header::after {
  content: '';
  position: absolute;
  inset: auto var(--gutter) 0;
  height: 1px;
  background: var(--line);
}

.wordmark { font: italic 39px/1 var(--serif); letter-spacing: -.065em; }
.dot { color: var(--ochre); }
nav { display: flex; gap: 30px; }
nav a { padding-block: 10px; font-size: 13px; }
nav a, footer a { text-underline-offset: 5px; text-decoration-thickness: 1px; }
nav a:hover, footer a:hover { text-decoration-line: underline; }
.location { font-size: 11px; color: var(--muted); letter-spacing: .035em; }
.location span { margin-left: 12px; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(60px, 7vw, 88px) 70px;
}

.eyebrow {
  color: var(--green);
  font-size: 10px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.intro .eyebrow { margin-bottom: 25px; }

h1 {
  font: 400 clamp(48px, 5.25vw, 72px)/1.04 var(--serif);
  letter-spacing: -.035em;
  margin: 0 0 24px;
}

h1 > span, h1 > em { display: block; }
h1 > em { white-space: nowrap; }

.intro-text {
  max-width: 38ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  text-wrap: pretty;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  min-height: 44px;
  margin-top: 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--green);
}

.text-link span { font-size: 18px; transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, 3px); }

.hero-photo {
  position: relative;
  transform: rotate(1.3deg);
  padding: 12px 12px 0;
  background: #fffdf7;
  border: 1px solid #ece9df;
  box-shadow: 0 8px 22px #343b230a;
}

.hero-photo img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }

.hero-photo figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 3px 18px;
  font-size: 11px;
  color: var(--muted);
}

.hero-photo figcaption span:last-child { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.photo-note {
  position: absolute;
  bottom: -24px;
  right: 20px;
  font: italic 26px/1.2 var(--serif);
  transform: rotate(-5deg);
  color: var(--green);
}

.photo-link { display: block; cursor: zoom-in; overflow: hidden; }
.photo-link img { transition: transform .45s ease; }

@media (hover: hover) {
  .photo-link:hover img { transform: scale(1.025); }
}

.page-note {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.tiny-sun { color: var(--ochre); font-size: 25px; line-height: 1; }
.note-right { margin-left: auto; font-size: 11px; }
.journal-section { padding-top: var(--section-space); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading .eyebrow { margin-bottom: 15px; }

h2 {
  margin: 0;
  font: 400 clamp(32px, 3.4vw, 44px)/1.12 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.section-heading > p {
  max-width: 27ch;
  padding-bottom: 3px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.trail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: start;
}

.photo-card { min-width: 0; }
.photo-card img { width: 100%; height: auto; object-fit: cover; }
.landscape img { aspect-ratio: 4/3; }
.portrait { padding-top: 48px; }
.portrait img { aspect-ratio: 4/5; }

.photo-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.caption-title { font: 400 24px/1.2 var(--serif); letter-spacing: -.01em; color: var(--ink); }

.food-section {
  margin-top: var(--section-space);
  padding-bottom: var(--section-space);
  border-block: 1px solid var(--line);
}

.food-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .78fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.food-grid img { aspect-ratio: 4/5; }
.food-grid .photo-card:last-child { padding-top: 48px; }
.food-note { text-align: center; padding-inline: 4px; }
.food-note > .eyebrow { display: block; font-size: 9px; letter-spacing: .12em; }
.food-note p { margin-block: 24px; font: 400 32px/1.24 var(--serif); letter-spacing: -.025em; }
.food-note p > * { display: block; }
.small-rule { display: block; width: 28px; height: 1px; background: var(--ochre); margin: 24px auto; }
.note-small { display: block; max-width: 22ch; margin: auto; font-size: 12px; color: var(--muted); }

.moments-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
}

.moments-grid img { aspect-ratio: 4/3; }
.moments-grid .photo-card:last-child { padding: 48px 24px 0; }
.moments-grid .photo-card:last-child img { aspect-ratio: 1/1; object-position: 50% 35%; }

.closing { text-align: center; padding-block: 96px 76px; }
.closing > .eyebrow { margin-bottom: 24px; }
.closing > p:not(.eyebrow) { font: 400 52px/1.08 var(--serif); letter-spacing: -.025em; margin-bottom: 23px; }
.closing > span { color: var(--muted); font-size: 13px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  color: var(--muted);
  font-size: 11px;
  position: relative;
}

footer::before { content: ''; height: 1px; background: var(--line); position: absolute; inset: 0 var(--gutter) auto; }
footer a { white-space: nowrap; }
.skip { position: fixed; top: -80px; background: var(--ink); color: white; padding: 12px; z-index: 10; }
.skip:focus { top: 10px; }

/* The original image remains available when JavaScript is disabled. */
dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 56px 24px 22px;
  max-width: 95vw;
  max-height: 95dvh;
  color: var(--ink);
}

dialog::backdrop { background: #182017de; }
dialog figure { display: flex; flex-direction: column; align-items: center; }
dialog img { max-width: 85vw; max-height: 73dvh; width: auto; height: auto; object-fit: contain; }
dialog figcaption { padding-top: 15px; font-size: 14px; text-align: center; }
.close-viewer { position: absolute; right: 12px; top: 6px; min-height: 44px; padding-inline: 10px; font: 13px var(--sans); border: 0; background: transparent; color: var(--ink); cursor: pointer; }
body.viewer-open { overflow: hidden; }

@media (max-width: 1000px) {
  .location { display: none; }
  .intro { gap: 32px; }
  .hero-photo figcaption span:last-child { display: none; }
  .section-heading { grid-template-columns: minmax(0, 1fr) 170px; }
  .food-grid { grid-template-columns: minmax(0, 1fr) minmax(160px, .8fr) minmax(0, 1fr); gap: 24px; }
  .food-note p { font-size: 28px; }
  .moments-grid .photo-card:last-child { padding-inline: 0; }
}

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 60px; }
  .intro-copy { max-width: 540px; }
  h1 { font-size: clamp(46px, 8.5vw, 64px); }
  .intro-text { max-width: 44ch; }
  .hero-photo { width: min(100% - 8px, 500px); margin-inline: auto; }
  .hero-photo figcaption span:last-child { display: inline; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; margin-bottom: 26px; }
  .section-heading > p { max-width: 42ch; padding: 0; }
  .note-right { display: none; }
  .food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .food-note { grid-row: 2; grid-column: 1 / -1; padding-top: 4px; }
  .food-note p { font-size: 28px; margin-block: 16px 0; }
  .food-note p > * { display: inline; }
  .food-note .small-rule, .note-small { display: none; }
  .food-grid .photo-card:last-child { padding-top: 32px; }
  .caption-title { font-size: 22px; }
  .closing { padding-block: 76px 60px; }
}

@media (max-width: 520px) {
  :root { --gutter: 24px; --section-space: 48px; }
  .site-header { gap: 14px; padding-block: 16px; }
  .wordmark { font-size: 35px; }
  nav { gap: 17px; }
  nav a { font-size: 12px; }
  .intro { padding-top: 38px; gap: 30px; }
  .intro .eyebrow { margin-bottom: 21px; font-size: 9px; letter-spacing: .13em; }
  h1 { font-size: clamp(40px, 11vw, 55px); line-height: 1.06; margin-bottom: 19px; }
  .intro-text { font-size: 14px; line-height: 1.8; }
  .text-link { margin-top: 15px; }
  .hero-photo { padding: 9px 9px 0; }
  .hero-photo figcaption { padding: 12px 2px 15px; font-size: 10px; }
  .hero-photo figcaption span:last-child { font-size: 8px; }
  .photo-note { font-size: 23px; bottom: -22px; }
  .page-note { gap: 12px; font-size: 11px; }
  .tiny-sun { font-size: 23px; }
  .section-heading .eyebrow { margin-bottom: 12px; }
  h2 { font-size: 34px; }
  .trail-grid, .moments-grid { grid-template-columns: 1fr; gap: 30px; }
  .portrait { width: 83%; margin-left: auto; padding-top: 0; }
  .moments-grid .photo-card:last-child { width: 83%; margin-left: auto; padding: 0; }
  .food-grid { gap: 18px; }
  .food-grid .caption-title { font-size: 21px; text-wrap: balance; }
  .food-grid .photo-card figcaption { font-size: 11px; }
  .food-note p { font-size: 26px; }
  .food-note p em { display: block; }
  .closing { padding-block: 64px 52px; }
  .closing > p:not(.eyebrow) { font-size: 44px; }
  footer { align-items: center; gap: 20px; font-size: 10px; }
}

@media (max-width: 359px) {
  :root { --gutter: 18px; }
  nav { gap: 12px; }
  nav a { font-size: 11px; }
  .hero-photo figcaption span:last-child { display: none; }
  .food-grid { grid-template-columns: 1fr; gap: 28px; }
  .food-grid .photo-card:last-child { padding-top: 0; }
  .food-note { grid-row: 3; }
  .food-grid .caption-title { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-link img, .text-link span { transition: none; }
}
