@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,600&display=swap');

:root {
  color-scheme: light;
  --paper: #f6f1e4;
  --ink: #152b25;
  --soft: #4c5a50;
  --line: #c9c7b9;
  --teal: #122f29;
  --orange: #ff8059;
  --yellow: #f7d68c;
  --body: 'DM Sans', system-ui, sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --frame: min(100% - 5rem, 83rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
a { color: inherit; text-decoration-thickness: .075em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; }
img { display: block; width: 100%; height: auto; }
.frame { width: var(--frame); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; inset: .5rem auto auto .5rem; z-index: 20; background: var(--paper); padding: .5rem 1rem; }
.meta { font-size: .875rem; font-weight: 700; line-height: 1.35; letter-spacing: .095em; text-transform: uppercase; }

.masthead-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { display: inline-flex; gap: .75rem; align-items: center; width: max-content; text-decoration: none; font-weight: 700; line-height: 1; letter-spacing: -.04em; font-size: 1.125rem; }
.wordmark strong { display: block; font-size: 1.3125rem; }
.sun-mark {
  width: 2.5rem; height: 2.5rem; flex: none; border: 1px solid currentColor; border-radius: 50%;
  background: linear-gradient(150deg, transparent 53%, var(--ink) 54% 60%, transparent 61%),
    radial-gradient(circle at 67% 30%, var(--orange) 0 11%, transparent 12%);
  position: relative; overflow: hidden;
}
.sun-mark::after {
  content: ''; position: absolute; inset: 56% -10% -30%;
  background: repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 5px);
  transform: rotate(-8deg);
}
.masthead nav { display: flex; align-items: center; gap: clamp(.85rem, 3.2vw, 2.75rem); font-size: .9375rem; font-weight: 700; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }
.saved-nav { display: inline-flex; align-items: center; gap: .55rem; }
.saved-nav::before { content: ''; width: .68rem; height: .86rem; background: var(--teal); clip-path: polygon(0 0,100% 0,100% 100%,50% 70%,0 100%); }

.cover { min-height: clamp(29rem, 41vw, 39rem); position: relative; display: grid; align-items: center; isolation: isolate; background: #193e36; color: var(--paper); overflow: hidden; }
.cover > img, .cover-shade { position: absolute; inset: 0; height: 100%; object-fit: cover; z-index: -1; }
.cover > img { object-position: center 61%; }
.cover-shade { background: linear-gradient(90deg, #102d26da 0%, #102d268c 33%, transparent 73%), linear-gradient(0deg, #0d2923a6, transparent 30%); }
.cover-copy { padding: clamp(2.5rem, 6vw, 6rem); max-width: 46rem; }
.cover-copy .meta, .planner-intro .meta { display: flex; align-items: center; gap: .7rem; }
.cover-rule { display: inline-block; flex: none; width: 1.85rem; height: 2px; background: var(--orange); }
.cover h1 { font-size: clamp(4.5rem, 8.6vw, 8.5rem); line-height: .85; margin: 1.25rem 0 1.5rem; letter-spacing: -.06em; word-spacing: .07em; }
.cover h1 em { font-weight: 600; color: var(--yellow); }
.cover-description { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 23rem; margin-bottom: 1.65rem; line-height: 1.42; }
.button { display: inline-flex; min-height: 2.85rem; justify-content: center; align-items: center; text-align: center; padding: .65rem 1rem; border: 1px solid transparent; text-decoration: none; font-weight: 700; font-size: .9375rem; line-height: 1.3; }
.button-orange { background: var(--orange); color: #14251e; }
.button-orange:focus-visible { outline-color: var(--paper); }
.button-orange:hover { background: var(--yellow); }
.button-dark { background: var(--teal); color: var(--paper); }
.button-dark:focus-visible { outline-color: var(--teal); }
.cover-location { position: absolute; right: 1.6rem; bottom: 1.35rem; padding: .45rem .7rem; background: #102d26dc; font-size: .875rem; border: 1px solid #f6f1e480; white-space: nowrap; }
.cover-location span { display: inline-block; vertical-align: .12em; width: .45rem; height: .45rem; border: 1px solid var(--yellow); transform: rotate(45deg); margin-right: .25rem; }

.library { padding-block: clamp(3rem, 5vw, 5rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.5rem; }
.section-head .meta { color: var(--soft); margin-bottom: .5rem; }
h2 { font-size: clamp(2.55rem, 5.2vw, 5.1rem); }
.search { display: flex; align-items: center; gap: .625rem; width: min(100%, 16rem); padding: 0 .75rem; border: 1px solid var(--line); min-height: 2.875rem; }
.search-icon { width: .82rem; height: .82rem; border: 1.5px solid var(--ink); border-radius: 50%; position: relative; flex: none; margin-right: .16rem; }
.search-icon::after { content: ''; width: .36rem; height: 1.5px; background: var(--ink); position: absolute; transform: rotate(48deg); top: .7rem; left: .57rem; }
.search input { width: 100%; min-width: 0; min-height: 2.6rem; border: 0; outline: none; background: transparent; }
.search:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.search input::placeholder { color: #566354; opacity: 1; }
.filter-row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button { padding: .45rem .85rem; min-height: 2.625rem; border: 1px solid transparent; background: transparent; font-size: .875rem; font-weight: 700; }
.filters button:hover { border-color: var(--line); }
.filters button[aria-pressed=true] { border-color: var(--teal); background: var(--teal); color: var(--paper); }
.filters button[aria-pressed=true]:focus-visible { outline-color: var(--teal); }
.result-count { white-space: nowrap; color: var(--soft); font-size: .875rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.guide-card { min-width: 0; position: relative; }
.guide-card .meta { color: #495e4e; letter-spacing: .075em; padding-right: 3.6rem; }
.guide-card .meta span { color: #984b30; padding-inline: .12rem; }
.card-text h3 { font-size: clamp(1.6rem, 2.8vw, 2.65rem); margin: .45rem 0 .5rem; }
.card-text h3 a { text-decoration: none; }
.card-text h3 a:hover { text-decoration: underline; }
.card-description { color: var(--soft); line-height: 1.5; max-width: 43rem; }
.card-image { display: block; aspect-ratio: 1.62; overflow: hidden; margin-bottom: .85rem; background: #d3ddc8; }
.card-image img { height: 100%; object-fit: cover; }
.guide-feature { display: grid; grid-template-rows: auto 1fr; margin-bottom: 1rem; }
.save-button { align-self: start; justify-self: end; min-width: 3.4rem; min-height: 2rem; background: transparent; border: 1px solid var(--line); font-size: .875rem; font-weight: 700; line-height: 1.1; }
.guide-feature .save-button { grid-area: 2/1; margin-top: -.12rem; }
.guide-feature .card-text { grid-area: 2/1; }
.save-button:hover, .save-button[aria-pressed=true] { border-color: #9c432a; color: #843621; }
.guide-line { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr max-content; gap: .5rem 1rem; border-top: 1px solid var(--line); padding-block: .9rem .25rem; }
.guide-line h3 { font-size: clamp(1.45rem, 2.6vw, 2.25rem); }
.empty { padding: 2.5rem 0; text-align: center; color: var(--soft); }
.empty .button { margin-top: 1rem; }
.library-entry { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.5rem; margin-top: 2rem; border: 1px solid var(--line); }
.library-entry h3 { font-size: 2rem; margin-bottom: .35rem; }
.library-entry p { color: var(--soft); }

.planner { background: var(--teal); color: var(--paper); }
.planner-inner { padding-block: clamp(2.5rem, 6.4vw, 6rem); display: grid; grid-template-columns: 1fr minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6.5rem); }
.planner-intro .meta { margin-bottom: .8rem; }
.planner-intro h2 { color: var(--yellow); }
.planner-intro > p:last-child { margin-top: 1rem; max-width: 28rem; }
.planner-panel { border: 1px solid #8b9b84; padding: clamp(1rem, 3vw, 2rem); }
.planner-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.15rem; }
.planner-controls label { display: grid; gap: .35rem; font-weight: 700; font-size: .875rem; }
.planner-controls select { appearance: none; width: 100%; border: 1px solid #8b9b84; border-radius: 0; min-height: 2.8rem; padding: .45rem 1.65rem .45rem .65rem; background: linear-gradient(45deg, transparent 50%, var(--yellow) 50%) calc(100% - .8rem) center / .26rem .26rem no-repeat, linear-gradient(135deg, var(--yellow) 50%, transparent 50%) calc(100% - .55rem) center / .26rem .26rem no-repeat; }
.planner-controls option { background: var(--teal); color: var(--paper); }
.route-result { border-top: 1px solid #8b9b84; padding-top: 1.1rem; }
.route-result h3 { font-size: 1.9rem; }
.route-result ol { padding-left: 1.35rem; margin: .65rem 0 1rem; }
.route-result li { padding-left: .15rem; margin-top: .25rem; }
.route-result a { color: var(--yellow); font-weight: 700; }

.footer-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; padding-block: 2.25rem; }
.footer-inner p { margin: .65rem 0 .25rem; color: var(--soft); }
.footer-inner > div:last-child { align-self: end; }
.footer-inner > div:last-child a { font-weight: 700; }

.article { max-width: 71rem; padding-block: clamp(2rem, 5vw, 4rem); }
.article-lead { max-width: 58rem; margin-bottom: 2rem; }
.article-back { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; margin-bottom: 1.1rem; }
.article-lead .meta { color: #843621; margin-bottom: .65rem; }
.article h1 { font-size: clamp(3rem, 7vw, 6.6rem); }
.article-description { max-width: 40rem; margin-top: 1rem; font-size: 1.2rem; line-height: 1.5; color: var(--soft); }
.article-image { margin-bottom: 2rem; }
.article-image img { aspect-ratio: 2.35; object-fit: cover; }
.article-image figcaption { margin-top: .35rem; font-size: .875rem; color: var(--soft); }
.article-grid { border-top: 1px solid var(--line); padding-top: 1.5rem; display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.8fr); gap: clamp(1.75rem, 6vw, 5.25rem); }
.article-facts { align-self: start; border-top: 2px solid var(--teal); border-bottom: 1px solid var(--line); padding-block: .8rem; }
.article-facts h2 { font-size: 1.55rem; }
.article-facts dl { margin: .85rem 0 .2rem; }
.article-facts dt { font-weight: 700; font-size: .875rem; }
.article-facts dd { margin: 0 0 .65rem; color: var(--soft); }
.article-copy { max-width: 41rem; }
.article-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: .65rem; }
.article-copy p { margin-bottom: .75rem; }
.article-intro { font-size: 1.2rem; font-weight: 600; }
.article-copy section { margin-top: 1.85rem; }
.article .sources { padding-block: 1.15rem; border-top: 1px solid var(--line); }
.article .sources ul { margin-block: 0; padding-left: 1.35rem; overflow-wrap: anywhere; }
.article .sources li { margin-top: .35rem; }

.expanded-library { max-width: 71rem; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.library-header { margin-bottom: 1.5rem; }
.library-header .meta { margin-bottom: .6rem; color: var(--soft); }
.library-header h1 { font-size: clamp(3rem, 7vw, 6.3rem); }
.library-header > p:last-child { color: var(--soft); font-size: 1.15rem; margin-top: .75rem; }
.library-controls { display: grid; grid-template-columns: minmax(12rem, 1.5fr) repeat(2, minmax(9rem, 1fr)) auto; align-items: end; gap: .75rem; padding-block: 1rem; border-block: 1px solid var(--line); }
.library-controls label { display: grid; gap: .3rem; font-size: .875rem; font-weight: 700; }
.library-controls input, .library-controls select { min-height: 2.85rem; width: 100%; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 0; background-color: var(--paper); font-size: 1rem; font-weight: 500; }
.library-controls select { appearance: none; padding-right: 1.75rem; background: linear-gradient(45deg, transparent 50%, var(--teal) 50%) calc(100% - .8rem) center / .26rem .26rem no-repeat, linear-gradient(135deg, var(--teal) 50%, transparent 50%) calc(100% - .55rem) center / .26rem .26rem no-repeat; }
.library-results { margin: 1.25rem 0 .45rem; color: var(--soft); font-size: .9375rem; }
.library-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.library-list li { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 3fr); gap: .4rem 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.library-list-meta { color: var(--soft); font-size: .875rem; font-weight: 700; padding-top: .18rem; }
.library-list-meta span { margin-inline: .15rem; color: #843621; }
.library-list h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin-bottom: .35rem; }
.library-list h2 a { text-decoration: none; }
.library-list h2 a:hover { text-decoration: underline; }
.library-list p { line-height: 1.45; color: var(--soft); }
.library-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.library-pagination .button { background: transparent; border-color: var(--line); }
.library-pagination .button:not(:disabled):hover { border-color: var(--teal); }
.library-pagination .button:disabled { opacity: .48; cursor: default; }
.library-empty { padding-block: 2rem; color: var(--soft); }
.library-contents ol { margin-bottom: .15rem; padding-left: 1.25rem; }
.library-contents li { margin-bottom: .3rem; }
.library-photo img { width: auto; max-width: 100%; max-height: 31rem; aspect-ratio: auto; object-fit: contain; }
.footer-inner > div:last-child a, .analytics-settings { margin-inline-end: .6rem; }
.analytics-settings { border: 0; background: transparent; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.analytics-choice { position: fixed; z-index: 15; width: min(25rem, calc(100% - 1.5rem)); right: .75rem; bottom: .75rem; background: var(--paper); border: 1px solid var(--teal); box-shadow: 0 .4rem 1.7rem #17372d26; padding: 1rem; }
.analytics-choice div { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .75rem; }
.analytics-choice [data-analytics-reject] { border-color: var(--line); background: transparent; }

@media (max-width: 54rem) {
  :root { --frame: min(100% - 2.5rem, 83rem); }
  .cover { min-height: 31rem; }
  .cover-copy { padding: 2rem; }
  .guide-grid { gap: 1rem; }
  .guide-feature .card-text .meta { padding-right: 0; }
  .guide-feature .save-button { grid-area: auto; justify-self: start; margin-top: .75rem; }
  .library-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 39rem) {
  :root { --frame: calc(100% - 1.75rem); }
  .masthead-inner { flex-wrap: wrap; gap: .6rem 1rem; padding-block: .8rem; }
  .masthead nav { width: 100%; gap: clamp(.6rem, 4vw, 1.5rem); flex-wrap: wrap; font-size: .875rem; }
  .masthead nav a { padding-block: .3rem; }
  .cover { min-height: 33rem; align-items: end; }
  .cover > img { object-position: 66% center; }
  .cover-shade { background: linear-gradient(0deg, #0b211de8 12%, #0b211dae 51%, #0b211d30 78%), linear-gradient(90deg, #0b211d45, transparent 80%); }
  .cover-copy { padding: 1.5rem 1rem 3.6rem; }
  .cover h1 { margin-block: 1rem; font-size: clamp(3.55rem, 13vw, 5.6rem); }
  .cover-location { bottom: .75rem; left: 1rem; right: auto; }
  .section-head { flex-direction: column; align-items: start; margin-bottom: 1rem; }
  .search { width: 100%; }
  .filter-row { align-items: start; flex-direction: column; gap: .4rem; }
  .filters { gap: .25rem; }
  .filters button { padding-inline: .65rem; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-feature { margin-bottom: .75rem; }
  .guide-feature .card-text .meta { padding-right: 3.6rem; }
  .guide-feature .save-button { grid-area: 2/1; justify-self: end; margin-top: -.12rem; }
  .planner-inner, .footer-inner, .article-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { gap: .65rem; }
  .article-image img { aspect-ratio: 1.65; }
  .library-photo img { aspect-ratio: auto; }
  .library-search { grid-column: 1 / -1; }
  .library-list li { grid-template-columns: minmax(0, 1fr); }
}
