@font-face{font-family:Cormorant;src:url("fonts/CormorantGaramond-SemiBold.ttf") format("truetype");font-weight:600;font-display:swap}
@font-face{font-family:Cormorant;src:url("fonts/CormorantGaramond-SemiBoldItalic.ttf") format("truetype");font-weight:600;font-style:italic;font-display:swap}
@font-face{font-family:"DM Sans";src:url("fonts/DMSans-Regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Caveat;src:url("fonts/Caveat-Medium.ttf") format("truetype");font-weight:500;font-display:swap}

:root {
  --pine: #193e31;
  --red: #942e32;
  --gold: #a7884f;
  --paper: #faf6ed;
  --ink: #364238;
  --lines: #d9d1bd;
  --serif: Cormorant, "Hoefler Text", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #ab5b1e; outline-offset: 5px; }
article[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.container { width: min(87%, 1170px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 0; left: 1rem; padding: 1rem; background: white; transform: translateY(-110%); }
.skip:focus { transform: none; }
.airmail { height: 5px; background: repeating-linear-gradient(128deg, var(--red) 0 15px, var(--paper) 15px 29px, #42624f 29px 44px, var(--paper) 44px 58px); }
.masthead { border-bottom: 1px solid var(--lines); background: #fbf8f0; }
.masthead-inner, .brand, nav, .nav-album, .primary, .secondary, .eyebrow, .footer-inner { display: flex; align-items: center; }
.masthead-inner, .footer-inner { justify-content: space-between; }
.masthead-inner { min-height: 79px; gap: 1.25rem; }
.brand { gap: .75rem; font: 600 clamp(1.5rem,2.5vw,2.02rem)/1 var(--serif); letter-spacing: -.035em; color: var(--pine); white-space: nowrap; }
.brand-mark { width: 29px; height: 35px; background: var(--red); display: grid; place-items: center; outline: 1px solid var(--red); outline-offset: 2px; border: 1.5px dashed var(--paper); transform: rotate(-6deg); }
.pine { width: 17px; height: 23px; background: var(--paper); clip-path: polygon(50% 0, 78% 36%, 65% 36%, 89% 62%, 72% 62%, 100% 85%, 55% 85%, 55% 100%, 44% 100%, 44% 85%, 0 85%, 27% 62%, 10% 62%, 36% 36%, 22% 36%); }
nav { gap: clamp(1rem, 2.7vw, 2.5rem); font-size: .94rem; color: var(--pine); }
nav a:not(.nav-album) { padding-block: .75rem; }
nav a:hover, .footer-name:hover { color: var(--red); }
.nav-album { gap: .6rem; border: 1px solid #b8bdac; border-radius: 3px; padding: .58rem .87rem; }
.nav-album:hover, .secondary:hover { background: #eeeee1; }
.icon-camera { position: relative; width: 1.09em; height: .81em; display: inline-block; border: 1.6px solid currentColor; border-radius: 3px; flex: none; }
.icon-camera::before { content: ""; position: absolute; width: .35em; height: .15em; left: 20%; top: -.23em; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.icon-camera::after { content: ""; position: absolute; width: .34em; height: .34em; border: 1.3px solid currentColor; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.icon-envelope { display: inline-block; position: relative; overflow: hidden; width: 1.16em; height: .81em; border: 1.5px solid currentColor; border-radius: 2px; flex: none; }
.icon-envelope::before { content: ""; position: absolute; left: 50%; top: -.53em; width: .81em; height: .81em; border: 1.5px solid currentColor; transform: translateX(-50%) rotate(45deg); }
.hero { position: relative; overflow: hidden; isolation: isolate; background: #faf6ed; }
.mountains { position: absolute; z-index: -1; inset: 0; background: url("assets/colorado-mountains.jpg") center bottom / 100% auto no-repeat; mix-blend-mode: multiply; opacity: .80; mask-image: linear-gradient(to top,black,black 13%, transparent 42%); }
.hero-inner { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(2rem,5vw,6rem); padding: clamp(3.5rem,5.4vw,5.2rem) 3% clamp(7rem,9vw,8.2rem); }
.eyebrow { margin: 0; gap: .62rem; text-transform: uppercase; color: var(--red); font: 600 .8rem/1.45 var(--sans); letter-spacing: .15em; }
.short-rule { width: 2.15rem; height: 1px; background: currentColor; }
.hero-kicker .dot { color: var(--gold); }
h1,h2,p,figure { margin: 0; }
h1,h2 { font-family: var(--serif); font-weight: 600; color: var(--pine); }
h1 { font-size: clamp(5.6rem,8.8vw,8.1rem); line-height: .83; letter-spacing: -.058em; margin: 1.5rem 0 1.52rem -.045em; }
h1 em { color: var(--red); font-weight: 600; }
.intro { font-family: Georgia, serif; font-size: clamp(1rem,1.28vw,1.16rem); line-height: 1.62; color: #435043; }
.primary, .secondary { width: fit-content; justify-content: center; gap: .65rem; font-size: .95rem; line-height: 1.2; border-radius: 3px; }
.primary { margin-top: 1.45rem; color: #fff9eb; background: var(--pine); border: 1px solid var(--pine); padding: .87rem 1.26rem; box-shadow: 0 2px 2px #34463814; }
.primary:hover { background: #2e5140; }
.portrait-wrap { justify-self: center; position: relative; width: min(100%, 358px); }
.portrait, .photo-backing { display: block; background: #fffdf5; padding: 12px 12px 0; border: 1px solid #d7cbb2; box-shadow: 1px 5px 12px #43392325; }
.photo-backing { position: absolute; inset: 3px 1px -2px 0; transform: rotate(-4deg); background: #eae1cc; }
.portrait { position: relative; transform: rotate(3deg); }
.portrait-image { width: 100%; aspect-ratio: 1.06; height: auto; object-fit: cover; object-position: center 48%; }
.handwritten, .signature { font-family: Caveat, "Bradley Hand", cursive; font-weight: 500; }
.handwritten { display: block; text-align: center; padding: .36rem 1.4rem .57rem 0; color: #414736; font-size: clamp(1.45rem,2.1vw,1.9rem); line-height: 1.1; }
.tape { pointer-events: none; position: absolute; top: -11px; left: 38%; width: 25%; height: 28px; background: repeating-linear-gradient(93deg,#d3ba84b5 0 1px,#d5bc8585 1px 3px); transform: rotate(-7deg); clip-path: polygon(1% 0,100% 4%,98% 18%,100% 29%,98% 46%,100% 58%,98% 72%,100% 84%,98% 100%,0 96%,2% 81%,0 71%,2% 54%,0 41%,2% 27%,0 15%); }
.postmark { pointer-events: none; position: absolute; right: -38px; bottom: -33px; height: 92px; width: 92px; border: 3px double currentColor; outline: 1.5px solid currentColor; outline-offset: 3px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border-radius: 50%; color: #853834; background: #faf3dfed; transform: rotate(-13deg); text-transform: uppercase; font-size: .68rem; letter-spacing: .12em; }
.postmark strong { font-family: Georgia,serif; font-size: .76rem; letter-spacing: .04em; padding: .24rem 0; border-block: 1px solid currentColor; }
.paper-divider { height: 1px; position: relative; background: #abb49c; display: grid; place-items: center; }
.paper-divider span { z-index: 1; position: absolute; width: 38px; text-align: center; background: var(--paper); color: var(--red); line-height: 1; }
.dispatches { display: grid; grid-template-columns: 1.22fr .9fr; gap: clamp(3rem,7vw,7.5rem); padding-block: clamp(3.5rem,5.3vw,5rem); }
.letter { padding-top: .48rem; }
.letter .eyebrow .icon-envelope { font-size: 1rem; }
h2 { font-size: clamp(2.45rem,3.8vw,3.55rem); line-height: 1.04; letter-spacing: -.043em; }
.letter h2 { margin: 1.1rem 0 1.35rem; }
.letter > p:not(.eyebrow,.signature), .journal > p { font: 1.05rem/1.73 Georgia,serif; }
.letter > p + p { margin-top: .95rem; }
.letter .closing { font-style: italic !important; }
.letter .signature { margin: .15rem 0 0; color: var(--red); font-size: 2.45rem; line-height: 1.12; }
.journal { padding: 1rem 1.12rem 1.4rem; background: #fffdf5; border: 1px solid var(--lines); box-shadow: 2px 4px 0 #e7e1d2; align-self: start; }
.journal-top, .album-inner, .viewer-top, .viewer-nav { display: flex; align-items: center; }
.journal-top { justify-content: space-between; margin-bottom: .9rem; }
.journal-top .short-rule { width: 1.2rem; }
.journal-year { color: #73775f; font: italic .94rem Georgia,serif; }
.journal img { width: 100%; aspect-ratio: 2.05; height: auto; object-fit: cover; object-position: 50% 59%; }
.journal h2 { font-size: clamp(2rem,2.65vw,2.6rem); margin: 1.05rem 0 .6rem; }
.journal > p { font-size: 1rem; line-height: 1.55; }
.letter-link { color: var(--pine); text-decoration: underline; text-underline-offset: .18em; }
.letter-link:hover { color: var(--red); }
.trip-section { border-top: 1px solid var(--lines); padding-block: clamp(2.75rem, 5vw, 4.75rem); }
.trip-intro { display: grid; grid-template-columns: .83fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.trip-intro h2 { margin: .7rem 0 .6rem; }
.trip-date { font: italic 1.05rem/1.5 Georgia, serif; }
.trip-story p { font: 1.05rem/1.65 Georgia, serif; }
.trip-story p + p { margin-top: .7rem; }
.cycling-note { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.cycling-note header { margin-bottom: 1.1rem; }
.cycling-note header .eyebrow { font: 600 .8rem/1.45 var(--sans); }
.cycling-note h2 { margin-top: .65rem; }
.cycling-print { justify-self: center; width: min(100%, 24rem); padding: .55rem; background: #fffdf5; border: 1px solid var(--lines); box-shadow: 2px 4px 0 #e7e1d2; }
.cycling-print a { display: block; }
.cycling-print img { width: 100%; height: auto; }
.cycling-print figcaption { padding-top: .4rem; text-align: center; color: var(--pine); font: 500 1.45rem/1.2 Caveat, cursive; }
/* The four column proportions follow the photos' original landscape and portrait frames. */
.trip-prints { display: grid; grid-template-columns: 16fr 9fr 9fr 16fr; gap: clamp(.6rem, 1.25vw, 1.15rem); margin-top: 2rem; }
.trip-prints figure { min-width: 0; padding: .4rem; background: #fffdf5; border: 1px solid var(--lines); box-shadow: 1px 3px 0 #e7e1d2; }
.trip-prints a { display: block; }
.trip-prints img { width: 100%; height: auto; }
.trip-prints figcaption { padding: .48rem .15rem .15rem; text-align: center; color: var(--pine); font: 500 clamp(1.12rem, 1.75vw, 1.5rem)/1.15 Caveat, cursive; }
.trip-more { margin-top: 1.25rem; }
.trip-more summary { width: fit-content; cursor: pointer; color: var(--pine); font-size: 1rem; padding: .65rem .9rem; border: 1px solid #b8bdac; border-radius: 3px; }
.trip-more summary:hover { background: #eeeee1; }
.extra-prints { grid-template-columns: 9fr 9fr 16fr 16fr 16fr; margin-top: 1.25rem; }
.album-strip { border-top: 1px solid var(--lines); background: #edeedf; }
.album-inner { gap: 2.2rem; padding-block: 2.25rem; }
.mini-print { transform: rotate(-5deg); padding: 5px 5px 13px; background: #fffdf5; border: 1px solid var(--lines); box-shadow: 1px 2px 4px #334d3730; }
.mini-print img { width: 78px; height: 78px; }
.album-summary h2 { font-size: 2.8rem; margin-top: .18rem; }
.secondary { margin-left: auto; outline-offset: 3px; border: 1px solid var(--pine); color: var(--pine); padding: .8rem 1.1rem; }
footer { background: var(--pine); color: #f5eddf; }
.footer-inner { gap: 1rem; padding-block: 1.55rem; font-size: .85rem; }
.footer-name { font: 600 1.5rem var(--serif); }
body.viewing { overflow: hidden; }
dialog { width: fit-content; max-width: calc(100vw - 2rem); max-height: calc(100dvh - 2rem); border: 1px solid #d6ceb8; padding: 0; margin: auto; background: var(--paper); color: var(--pine); box-shadow: 0 16px 60px #0b170c5c; }
dialog::backdrop { background: #0d2119d4; }
.viewer-shell { padding: 1rem 1.2rem 1.2rem; max-width: 56rem; }
.viewer-top, .viewer-nav { justify-content: space-between; gap: 1rem; }
.viewer-top { margin-bottom: .7rem; }
.viewer-top h2 { font-size: 1.95rem; }
.close-viewer { border: 1px solid #b2b6a2; color: var(--pine); background: transparent; border-radius: 50%; width: 40px; height: 40px; line-height: 1; font-size: 1.55rem; }
#media-stage { display: grid; place-items: center; }
#media-stage img, #media-stage video { width: auto; max-width: 100%; max-height: min(65dvh, 48rem); object-fit: contain; }
.viewer-figure figcaption { padding-top: .75rem; font-size: .95rem; }
.viewer-nav { padding-top: .8rem; }
.viewer-nav button { border: 1px solid var(--pine); background: transparent; color: var(--pine); padding: .5rem .65rem; }
[hidden] { display: none !important; }

@media (min-width: 1550px) { .mountains { background-size: 100% 76%; } }
@media (max-width: 850px) {
  .container { width: 89%; }
  .hero-inner { padding-inline: 0 1rem; gap: 2.5rem; }
  h1 { font-size: clamp(4.5rem,10.1vw,5.75rem); }
  .postmark { width: 73px; height: 73px; right: -20px; bottom: -23px; font-size: .58rem; }
  .postmark strong { font-size: .62rem; }
  .dispatches { gap: 2.3rem; grid-template-columns: 1.12fr .9fr; }
  .desktop-break { display: none; }
}
@media (max-width: 680px) {
  .masthead-inner { min-height: auto; flex-wrap: wrap; justify-content: center; padding-block: 1rem .65rem; gap: .85rem; }
  .brand { font-size: 1.65rem; }
  .brand-mark { width: 22px; height: 27px; }
  .pine { width: 13px; height: 19px; }
  nav { width: 100%; justify-content: center; gap: 1.45rem; font-size: .89rem; }
  nav a:not(.nav-album), .nav-album { padding: .4rem 0; }
  .nav-album { border: 0; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.6rem; padding: 2.5rem 0 4.5rem; }
  .hero-kicker, .primary { margin-inline: auto; }
  .hero-kicker { width: fit-content; }
  .hero-kicker .short-rule { width: 1.25rem; }
  .eyebrow { font-size: .75rem; }
  h1 { font-size: clamp(4.9rem,15.3vw,6.2rem); margin: 1.1rem 0; }
  .intro { max-width: 24rem; margin-inline: auto; line-height: 1.5; }
  .primary { margin-top: 1.15rem; }
  .portrait-wrap { width: min(73%, 300px); }
  .handwritten { font-size: 1.48rem; }
  .mountains { background-size: auto 42%; }
  .dispatches { display: block; padding-block: 2.8rem 3rem; }
  .letter { padding: 0; }
  .journal { margin-top: 2.6rem; }
  .journal h2 { font-size: 2.3rem; }
  .trip-intro { grid-template-columns: 1fr; gap: 1.15rem; }
  .cycling-note { grid-template-columns: 1fr; gap: 1.4rem; }
  .trip-prints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1.25rem; }
  .trip-prints figure:first-child, .trip-prints figure:last-child { grid-column: 1 / -1; }
  .extra-prints figure:first-child { grid-column: auto; }
  .extra-prints figure:nth-child(n+3) { grid-column: 1 / -1; }
  .album-inner { gap: 1rem; flex-wrap: wrap; padding-block: 1.7rem; }
  .mini-print img { width: 58px; height: 58px; }
  .album-summary h2 { font-size: 2.1rem; }
  .secondary { margin-left: 0; }
  .footer-inner { flex-wrap: wrap; gap: .4rem 1rem; }
}
@media (max-width: 359px) {
  nav { gap: .85rem; }
  .container { width: 91%; }
  .handwritten { font-size: 1.22rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
