@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f6f1e7;
  --ink: #23281d;
  --muted: #53584a;
  --rule: #cec8b7;
  --green: #222e22;
  --dark: #172117;
  --cream: #f9f2df;
  --rust: #854627;
  --light-rust: #e8ad85;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .98; }
h1, h2, h3 { overflow-wrap: break-word; }
.wrap { width: min(100% - 5.5rem, 77rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 1rem; top: .5rem; transform: translateY(-160%); padding: .6rem 1rem; background: var(--dark); color: var(--cream); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 4rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; gap: .56rem; align-items: center; justify-self: start; font-family: var(--serif); font-size: 1.48rem; line-height: 1; text-decoration: none; white-space: nowrap; min-height: 44px; }
.bean { width: .66rem; height: .93rem; display: inline-block; border: 1.5px solid var(--rust); border-radius: 50%; transform: rotate(30deg); position: relative; }
.bean::after { content: ""; position: absolute; width: .28rem; height: .64rem; top: .05rem; left: .15rem; border-left: 1px solid var(--rust); border-radius: 50%; transform: rotate(-8deg); }
.site-nav { display: flex; gap: clamp(1.05rem, 3vw, 2.85rem); align-items: stretch; }
.site-nav a, .search-link { font-size: .88rem; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current], .search-link:hover, .search-link[aria-current] { color: var(--rust); text-decoration: underline; }
.search-link { justify-self: end; gap: .6rem; }
.search-icon { width: .78rem; height: .78rem; border: 1.5px solid currentColor; border-radius: 50%; position: relative; margin-inline-end: .12rem; }
.search-icon::after { content: ""; position: absolute; width: .42rem; height: 1.5px; background: currentColor; top: .62rem; left: .54rem; transform: rotate(46deg); transform-origin: left center; }

.masthead { min-height: 12.8rem; padding: 1.9rem 0 1.5rem; display: flex; justify-content: space-between; align-items: end; gap: 1.3rem; }
.masthead h1 { font-size: clamp(5.2rem, 10.1vw, 10rem); letter-spacing: -.042em; line-height: .85; }
.masthead h1 i { color: var(--rust); font-weight: 400; }
.masthead-note { flex-shrink: 0; padding-bottom: .3rem; border-bottom: 1px solid var(--rule); text-align: right; }
.masthead-note p { font-family: var(--serif); font-size: 1.52rem; line-height: 1.2; margin-bottom: .35rem; }
.masthead-note span { font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.feature { display: grid; grid-template-columns: 43fr 57fr; background: var(--green); color: var(--cream); min-height: 32rem; }
.feature-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: clamp(2rem, 4.15vw, 4rem); }
.label { color: var(--rust); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; line-height: 1.45; }
.feature-copy .feature-label { color: var(--light-rust); margin: 0 0 1.25rem; }
.feature-label::before { content: ""; display: inline-block; width: 1.25rem; border-top: 1px solid currentColor; margin: 0 .58rem .22rem 0; }
.feature h2 { font-size: clamp(3.15rem, 5.15vw, 5.1rem); letter-spacing: -.022em; text-wrap: balance; }
.feature h2 i { color: var(--light-rust); }
.feature-copy > p:not(.label) { color: #e8e4d3; max-width: 29ch; margin-top: 1.45rem; line-height: 1.55; }
.feature-button { display: inline-flex; align-items: center; min-height: 46px; padding: .57rem 1.1rem; margin-top: 1.6rem; border: 1px solid #adad8e; color: var(--cream); text-decoration: none; font-size: .89rem; font-weight: 700; }
.feature-button:hover { color: var(--green); background: var(--cream); border-color: var(--cream); }
.feature-photo { position: relative; overflow: hidden; min-height: 100%; background: #192319; }
.feature-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 63% 55%; }

.story-section { margin: 3.25rem 0 4.7rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .85rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.25rem; }
.section-heading h2 { font-size: clamp(2.5rem, 4.2vw, 3.6rem); letter-spacing: -.02em; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.45rem 1.3rem; }
.card { min-width: 0; border-bottom: 1px solid var(--rule); }
.card-link { display: block; height: 100%; text-decoration: none; }
.card-photo { position: relative; overflow: hidden; background: #c5bca4; aspect-ratio: 1.66; }
.card-photo img { height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform .2s ease-out; }
.card-link:hover img { transform: scale(1.035); }
.card-info { padding: .9rem 0 1.1rem; }
.card .label { display: flex; gap: .48rem; flex-wrap: wrap; align-items: baseline; margin-bottom: .48rem; }
.minutes { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.card h3 { font-size: clamp(1.85rem, 3.3vw, 2.65rem); line-height: .98; }
.card-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.card-deck { margin-top: .5rem; color: var(--muted); line-height: 1.5; }
.listing-head { margin: 3.25rem 0 2.65rem; max-width: 52rem; }
.listing-head h1, .prose-page h1 { font-size: clamp(4.1rem, 8.7vw, 7.7rem); letter-spacing: -.032em; }
.listing-head p { font-size: 1.18rem; color: var(--muted); margin-top: .9rem; }
.listing-stories, .search-stories { margin-top: 0; }
.listing-stories .section-heading { display: none; }
.gear-list .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.search-form { margin-top: 1.35rem; }
.search-form label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: .3rem; }
.search-form div { display: flex; gap: .5rem; max-width: 35rem; }
.search-form input[type="search"], .search-form button { font: inherit; min-height: 46px; border-radius: 0; }
.search-form input[type="search"] { padding: .5rem .75rem; border: 1px solid var(--muted); background: #fffaf0; color: var(--ink); min-width: 0; width: 100%; }
.search-form button { padding: .5rem .9rem; border: 1px solid var(--green); background: var(--green); color: var(--cream); cursor: pointer; }
.search-form button:hover { background: var(--dark); }
.search-form button:focus-visible { outline-color: var(--ink); }
#result-count { color: var(--muted); }

.article-main { padding-top: 2.7rem; }
.article-header { max-width: 54rem; margin-inline: auto; text-align: center; }
.article-header > .label a { padding-block: .6rem; display: inline-block; text-decoration: none; }
.article-header > .label a:hover { text-decoration: underline; }
.article-header h1 { margin-top: .55rem; font-size: clamp(3.2rem, 6.7vw, 6.3rem); letter-spacing: -.026em; text-wrap: balance; }
.article-deck { font-size: clamp(1.12rem, 2vw, 1.35rem); color: var(--muted); line-height: 1.55; max-width: 59ch; margin: 1rem auto 0; }
.byline { font-size: .85rem; line-height: 1.6; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.15rem; justify-content: center; margin: 1.1rem 0 1.9rem; color: var(--muted); }
.byline a { color: var(--ink); font-weight: 700; }
.article-photo { max-width: 61rem; margin-inline: auto; }
.article-photo img { aspect-ratio: 2.38; object-fit: cover; object-position: 50% 52%; background: #c5bca4; }
.article-photo figcaption { margin-top: .35rem; color: var(--muted); font-size: .81rem; text-align: end; }
.article-layout { display: grid; grid-template-columns: 10.3rem minmax(0, 42rem); align-items: start; max-width: 61rem; margin: 2.3rem auto 0; gap: 2.5rem; }
.contents { position: sticky; top: 1.2rem; border-top: 1px solid var(--rule); padding-top: .8rem; }
.contents ol { list-style: none; margin: .55rem 0 0; padding: 0; }
.contents li + li { margin-top: .3rem; }
.contents a { display: block; padding-block: .2rem; font-size: .88rem; line-height: 1.45; text-decoration: none; color: var(--muted); }
.contents a:hover { color: var(--rust); text-decoration: underline; }
.article-body { min-width: 0; font-size: 1.06rem; line-height: 1.73; }
.article-body .opening { font-size: 1.14rem; }
.article-body p + p { margin-top: .85rem; }
.article-body h2 { font-size: clamp(2.1rem, 4.7vw, 3rem); margin: 1.85rem 0 .7rem; scroll-margin-top: 1.1rem; }
.article-body a, .text-link { color: var(--rust); text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.article-body a:hover, .text-link:hover { text-decoration-thickness: 2px; }
.article-body .method, .archive-note { font-size: .93rem; border-left: 2px solid var(--rust); padding: .55rem .8rem; background: #eee7d9; margin-bottom: 1.1rem; }
.article-body .archive-note { margin: 1.4rem 0 0; }
.table-wrap { margin: 1.46rem 0 0; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9rem; line-height: 1.45; }
caption { color: var(--muted); text-align: left; font-weight: 700; padding-bottom: .42rem; }
th, td { padding: .65rem .52rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
thead { background: #e9e3d5; }
tbody th { font-weight: 600; }
.story-sources ul { padding-inline-start: 1.2rem; margin: 0; }
.story-sources li + li { margin-top: .23rem; }
.related { margin-top: 3.9rem; }
.prose-page { margin: 3.5rem auto 5.2rem; max-width: 45rem; min-height: 30vh; }
.prose-page .article-deck { margin: .85rem 0 1.6rem; }
.prose-page .article-body > h2:first-child { margin-top: 0; }

.site-footer { margin-top: auto; background: var(--dark); color: var(--cream); }
.footer-inner { display: grid; align-items: end; grid-template-columns: 1fr auto; gap: 1.5rem; padding-block: 2.65rem 1.65rem; }
.footer-brand { font-family: var(--serif); font-size: clamp(2.25rem, 6vw, 4rem); line-height: .93; text-decoration: none; }
.footer-brand:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.footer-brand i { color: var(--light-rust); }
.footer-inner p { margin-top: .42rem; color: #d3cfbc; }
.footer-inner nav { display: flex; gap: 1.45rem; flex-wrap: wrap; }
.footer-inner nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: .88rem; }
.footer-inner small { grid-column: 1 / -1; color: #d3cfbc; font-size: .8rem; border-top: 1px solid #576253; padding-top: 1rem; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 3.25rem); }
  .masthead { min-height: 10.3rem; }
  .feature { min-height: 26rem; }
  .feature-copy { padding: 2rem; }
  .article-layout { grid-template-columns: 9.5rem minmax(0, 42rem); gap: 1.8rem; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2.25rem); }
  .header-inner { min-height: 0; grid-template-columns: 1fr auto; gap: 0 1rem; }
  .brand, .search-link { min-height: 3.2rem; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .55rem; border-top: 1px solid var(--rule); }
  .site-nav a { min-height: 2.75rem; }
  .masthead { min-height: auto; padding: 1.65rem 0 1.15rem; display: block; }
  .masthead h1 { font-size: clamp(3.25rem, 15vw, 6.2rem); }
  .masthead-note { border: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; text-align: left; margin-top: .62rem; gap: .2rem .55rem; padding: 0; }
  .masthead-note p { font-size: 1.21rem; margin: 0; }
  .masthead-note span { font-size: .68rem; }
  .feature { display: flex; flex-direction: column; }
  .feature-photo { order: -1; aspect-ratio: 1.62; }
  .feature-photo img { object-position: 56% 61%; }
  .feature-copy { padding: 1.45rem 1.35rem 1.65rem; }
  .feature h2 { font-size: clamp(2.95rem, 8.9vw, 4.6rem); }
  .feature-copy .feature-label { margin-bottom: .7rem; }
  .feature-copy > p:not(.label) { margin-top: .75rem; max-width: 36ch; }
  .feature-button { margin-top: 1rem; }
  .story-section { margin-bottom: 3rem; }
  .lead-stories { margin-top: 2.4rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.45rem .9rem; }
  .card-photo { aspect-ratio: 1.4; }
  .listing-head { margin: 2.3rem 0 1.6rem; }
  .article-main { padding-top: 1.65rem; }
  .article-photo img { aspect-ratio: 1.55; }
  .article-layout { display: block; margin-top: 1.3rem; }
  .contents { position: static; margin-bottom: 1.25rem; padding: .65rem 0; border-bottom: 1px solid var(--rule); }
  .contents ol { margin: .3rem 0 0; }
  .contents li + li { margin-top: .16rem; }
  .footer-inner { padding-top: 2rem; }
}
@media (max-width: 455px) {
  .card-grid, .gear-list .card-grid { grid-template-columns: 1fr; gap: 1.55rem; }
  .card-photo { aspect-ratio: 1.69; }
  .card-info { padding-top: .75rem; }
  .card h3 { font-size: 2.34rem; }
  .byline { gap: .18rem .75rem; }
  .footer-inner { grid-template-columns: 1fr; gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

.photo-badge { position: absolute; right: 0; bottom: 0; padding: .18rem .47rem; background: var(--dark); color: var(--cream); font-size: .73rem; }
.article-photo figcaption a { text-decoration-thickness: 1px; }
.article-photo-gear { max-width: 48rem; }
.article-photo-gear img { aspect-ratio: 2; }

@media (min-width: 721px) {
  .journal-grid > .card:last-child:nth-child(3n + 1):not(:first-child) { grid-column: 1 / -1; }
  .journal-grid > .card:last-child:nth-child(3n + 1):not(:first-child) .card-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1.3rem;
    align-items: center;
  }
  .journal-grid > .card:last-child:nth-child(3n + 1):not(:first-child) .card-info { max-width: 33rem; }
}
