/* Palette and rhythm for the field journal. */
:root {
  color-scheme: light;
  --forest: #171c16;
  --forest-raised: #232a20;
  --paper: #f4f1e7;
  --paper-raised: #faf8f1;
  --ink: #252b22;
  --muted: #53564a;
  --rule: #d6d1c0;
  --gold: #e7ae59;
  --ochre: #74471d;
  --light: #f8f5eb;
  --light-muted: #d6d6c5;
  --display: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", system-ui, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1.125rem, 3.65vw, 3rem);
  --section: clamp(3.75rem, 8vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-thickness: .075em;
  text-underline-offset: .21em;
}

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 4px;
}

:is(.site-header, .hero, .home-band, .site-footer) :focus-visible {
  outline-color: var(--gold);
}

h1, h2, h3, p, figure, dl { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .99; letter-spacing: -.06em; }
h2 { font-size: clamp(2.15rem, 4.6vw, 4.15rem); line-height: 1.02; letter-spacing: -.045em; }
h3 { font-size: clamp(1.45rem, 2.45vw, 2.1rem); line-height: 1.12; letter-spacing: -.027em; }

p { text-wrap: pretty; }

.wrap {
  width: min(calc(100% - var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.narrow { max-width: 47rem; }

.skip-link {
  position: fixed;
  inset: .75rem auto auto .75rem;
  z-index: 5;
  padding: .6rem 1rem;
  transform: translateY(calc(-100% - 2rem));
  background: var(--paper-raised);
  color: var(--forest);
  font-weight: 700;
}

.skip-link:focus { transform: none; }

.eyebrow, .kicker {
  color: var(--ochre);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .125em;
  line-height: 1.45;
  text-transform: uppercase;
}

.eyebrow + :is(h1, h2, h3), .kicker + :is(h2, h3) { margin-top: .58rem; }

.site-header {
  background: var(--forest);
  color: var(--light);
  border-bottom: 1px solid rgb(245 242 226 / 16%);
}

.header-inner {
  min-height: 5.15rem;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 1.35rem;
}

.brand {
  display: inline-grid;
  justify-self: start;
  gap: .28rem;
  color: inherit;
  text-decoration: none;
}

.brand-title {
  font: 400 clamp(1.35rem, 2.1vw, 1.9rem)/1.02 var(--display);
  letter-spacing: -.045em;
}

.brand-accent { color: var(--gold); font-size: .61em; font-style: italic; letter-spacing: 0; }

.brand-caption {
  color: var(--gold);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.25;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: clamp(.9rem, 2.4vw, 2rem);
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a, .header-social {
  color: var(--light-muted);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-nav a:hover, .site-nav a[aria-current="page"], .header-social:hover { color: var(--gold); }

.site-nav a[aria-current="page"]::after {
  position: absolute;
  inset: auto 0 .1rem;
  border-bottom: 1px solid currentColor;
  content: "";
}

.header-social {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.75rem;
  padding: .45rem .82rem;
  border: 1px solid rgb(244 241 231 / 30%);
  border-radius: .15rem;
  white-space: nowrap;
}

.header-social:hover { border-color: currentColor; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--forest);
  color: var(--light);
}

.hero-image, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: var(--hero-position, center 26%);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(17 22 16 / 4%) 18%, rgb(17 22 16 / 24%) 38%, rgb(17 22 16 / 78%) 52%, #111610 92%),
    linear-gradient(0deg, rgb(12 16 10 / 66%), transparent 22%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(23rem, .91fr);
  align-items: center;
  min-height: clamp(34rem, 48vw, 46rem);
  padding-block: 4.25rem 5.15rem;
}

.hero-content { grid-column: 2; max-width: 36rem; padding-inline-start: clamp(0rem, 2.5vw, 2.2rem); }
.hero-content h1 { font-size: clamp(3.6rem, 6.5vw, 6.6rem); }
.hero .eyebrow, .home-band .eyebrow { color: var(--gold); }
.hero .lede { max-width: 35ch; margin-top: 1.35rem; color: var(--light-muted); font-size: clamp(1.05rem, 1.55vw, 1.24rem); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .62rem 1.12rem;
  border: 1px solid transparent;
  border-radius: .15rem;
  font: 700 .94rem/1.3 var(--body);
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button-primary { background: var(--gold); color: var(--forest); }
.button-primary:hover { background: #f5c985; }
.button-ghost { border-color: currentColor; }
.button-ghost:hover { background: rgb(231 174 89 / 14%); }

.hero-credit {
  position: absolute;
  inset: auto 0 1.22rem;
  color: var(--light);
  font-size: .8rem;
  line-height: 1.4;
}

.hero-credit :is(span, figcaption) {
  display: inline-block;
  max-width: 100%;
  padding: .22rem .42rem;
  background: rgb(15 19 13 / 85%);
}

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 2rem;
  row-gap: .8rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.75rem);
}

.section-heading > .eyebrow { flex-basis: 100%; }
.section-heading > .intro { flex-basis: 100%; }
.section-heading > :is(h2, h3) { margin-top: 0; }
.section-heading > div .intro { margin-top: .7rem; }

.intro { max-width: 57ch; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.2rem); }
.intro a, .text-link { color: var(--ochre); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.text-link:hover { color: var(--ink); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.35rem);
  align-items: start;
}

.media-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
}

.card-image, .story-card > a:has(img) {
  display: block;
  overflow: clip;
  background: var(--forest-raised);
}

.card-image { aspect-ratio: 1.3; }

.card-image img, .story-card > a:has(img) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-position, center);
  transition: transform 300ms ease;
}

.card-image:hover img, .story-card > a:has(img):hover img { transform: scale(1.035); }

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  padding: clamp(1rem, 2.6vw, 1.7rem);
}

.card-body .kicker + h3 { margin-top: 0; }
.card-body p:not(.kicker, .credit), .story-copy p:not(.kicker, .credit) { color: var(--muted); }

.card-body h3 a, .story-copy :is(h2, h3) a { text-decoration: none; }
.card-body h3 a:hover, .story-copy :is(h2, h3) a:hover { color: var(--ochre); text-decoration: underline; }

.credit, figcaption {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.46;
}

.card-body :is(.credit, figcaption) {
  width: 100%;
  margin-top: auto;
  padding-top: .55rem;
  border-top: 1px solid var(--rule);
}

.home-band {
  padding-block: clamp(3.1rem, 7vw, 6rem);
  background: var(--forest-raised);
  color: var(--light);
}

.home-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr);
  gap: clamp(2rem, 8vw, 7.5rem);
  align-items: center;
}

.band-copy :is(h2, .eyebrow) + p { margin-top: 1rem; }
.band-copy p:not(.eyebrow), .band-links p { max-width: 49ch; color: var(--light-muted); }

.band-links :is(ul, ol), ul.band-links, ol.band-links { margin: 0; padding: 0; list-style: none; }
.band-links li { border-top: 1px solid rgb(244 241 231 / 24%); }
.band-links li:last-child { border-bottom: 1px solid rgb(244 241 231 / 24%); }

.band-links a {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 3.25rem;
  padding-block: .55rem;
  color: var(--light);
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
}

.band-links a:hover { color: var(--gold); text-decoration: underline; }

.newsletter {
  padding-block: clamp(2.6rem, 6vw, 4.75rem);
  border-top: 1px solid var(--rule);
  background: #eae6d8;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.35rem 3rem;
}

.newsletter h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.newsletter-copy p:not(.eyebrow) { max-width: 61ch; margin-top: .65rem; color: var(--muted); }
.newsletter-action { flex-shrink: 0; }

.page-intro {
  padding-block: clamp(2rem, 6vw, 5.75rem) clamp(2.6rem, 6vw, 5.25rem);
  border-bottom: 1px solid var(--rule);
  background: #eae6d8;
}

.page-intro h1 { max-width: 17ch; font-size: clamp(3rem, 6.7vw, 5.85rem); }
.page-intro .intro { margin-top: 1.15rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .38rem;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
  color: var(--muted);
  font-size: .86rem;
}

.breadcrumb a:hover { color: var(--ochre); }

.collection-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .6rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.75rem);
}

.collection-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .35rem .85rem;
  border: 1px solid #a39d8b;
  border-radius: .15rem;
  background: var(--paper-raised);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.collection-nav a:hover { border-color: var(--ochre); color: var(--ochre); }
.collection-nav a[aria-current="page"] { border-color: var(--forest); background: var(--forest); color: var(--light); }

.story-list { display: grid; gap: clamp(1.4rem, 4vw, 3rem); }

.story-card {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
  overflow: clip;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
}

.story-card > a:has(img):focus-visible { outline-offset: -4px; }
.story-card > :is(a, figure, img):first-child { min-height: clamp(14rem, 28vw, 22rem); }
.story-card > :is(figure, img):first-child { width: 100%; height: 100%; object-fit: cover; }
.story-card > figure:first-child img { width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.story-card > figure:first-child figcaption { padding: .5rem .8rem; }

.story-copy {
  align-self: center;
  min-width: 0;
  padding: clamp(1.4rem, 5vw, 4rem);
}

.story-copy :is(h2, h3) { font-size: clamp(1.9rem, 4vw, 3.55rem); }
.story-copy :is(h2, h3) + p, .story-copy p + p, .story-copy p + a { margin-top: .85rem; }
.story-copy .text-link { justify-self: start; }

.article { padding-block: var(--section); }
.article p + p, .article :is(h2, h3) + :is(p, ul, ol) { margin-top: 1rem; }
.article :is(p, ul, ol, figure, dl) + :is(h2, h3) { margin-top: 2.15rem; }
.article figure { margin-block: 1.9rem; }
.article figure img { max-height: 36rem; width: 100%; object-fit: cover; object-position: var(--image-position, center); }
.article figure figcaption { display: flex; flex-wrap: wrap; gap: .2rem .65rem; margin-top: .55rem; }
.article a:not(.button) { color: var(--ochre); }
.article :is(ul, ol) { padding-inline-start: 1.4rem; }
.article li + li { margin-top: .4rem; }
.article .sources + .text-link { margin-top: .75rem; }

.sources {
  margin-top: 2.35rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.sources :is(h2, h3) { font: 700 1rem/1.5 var(--body); letter-spacing: 0; }
.sources a { overflow-wrap: anywhere; }

.credits-list { display: grid; gap: 0; }

.credit-entry {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(1.15rem, 4.5vw, 3rem);
  align-items: start;
  padding-block: clamp(1.25rem, 4vw, 2.35rem);
  border-top: 1px solid var(--rule);
}

.credit-entry:last-child { border-bottom: 1px solid var(--rule); }

.credit-entry img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.credit-entry img[src$="/tiger-hero.jpg"] { object-position: 35% center; }
.credit-entry img:is([src$="/penguins.jpg"], [src$="/humpback.jpg"]) { object-position: 62% center; }

.credit-details { min-width: 0; }
.credit-details :is(h2, h3) { font-size: clamp(1.5rem, 3vw, 2.45rem); }
.credit-details p { margin-top: .45rem; }
.credit-details a { color: var(--ochre); overflow-wrap: anywhere; }
.credit-details dt { font-weight: 700; }
.credit-details dd { margin: 0 0 .45rem; }

.empty-note {
  max-width: 63ch;
  padding: 1rem 1.2rem;
  border-inline-start: 3px solid var(--ochre);
  background: var(--paper-raised);
  color: var(--muted);
}

.site-footer {
  padding-top: clamp(2.2rem, 5vw, 4rem);
  background: var(--forest);
  color: var(--light);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.site-footer p { max-width: 55ch; color: var(--light-muted); }
.site-footer .brand + p { margin-top: .75rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.2rem;
}

.footer-nav :is(ul, ol) {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--light-muted);
  font-size: .9rem;
  text-decoration: none;
}

.footer-nav a:hover { color: var(--gold); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.1rem;
  margin-top: 1.7rem;
  padding-block: .9rem 1.18rem;
  border-top: 1px solid rgb(244 241 231 / 22%);
  color: var(--light-muted);
  font-size: .82rem;
}

@media (max-width: 49rem) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    gap: .48rem 1rem;
    padding-top: .7rem;
  }

  .header-social { grid-column: 2; grid-row: 1; }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: .14rem clamp(.85rem, 3.8vw, 1.65rem);
    padding-bottom: .16rem;
    border-top: 1px solid rgb(245 242 226 / 16%);
  }

  .site-nav a[aria-current="page"]::after { bottom: 0; }

  .hero { --mobile-cover: clamp(15rem, 58vw, 25rem); }

  .hero-image {
    height: calc(var(--mobile-cover) + 4rem);
    object-position: var(--hero-mobile-position, 34% 38%);
  }

  .hero-shade {
    height: calc(var(--mobile-cover) + 4rem);
    background: linear-gradient(180deg, transparent 29%, rgb(23 28 22 / 22%) 48%, rgb(23 28 22 / 86%) 73%, var(--forest) 100%);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    min-height: auto;
    padding-top: var(--mobile-cover);
    padding-bottom: 4rem;
  }

  .hero-content { grid-column: 1; padding-inline-start: 0; }
  .hero-content h1 { font-size: clamp(2.9rem, 9vw, 5.1rem); }
  .hero .lede { margin-top: .95rem; }
  .hero-actions { margin-top: 1.3rem; }
  .hero-credit { bottom: .95rem; }

  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-band-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 32rem) {
  .card-grid, .story-card { grid-template-columns: minmax(0, 1fr); }
  .story-card > :is(a, figure, img):first-child { min-height: 0; aspect-ratio: 1.55; }
  .story-copy { padding: 1.35rem; }
  .credit-entry { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 24rem) {
  .header-inner { column-gap: .65rem; }
  .header-social { padding-inline: .58rem; font-size: .81rem; }
  .brand-caption { font-size: .62rem; letter-spacing: .07em; }
  .site-nav { column-gap: clamp(.67rem, 3.7vw, .85rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .card-image:hover img, .story-card > a:has(img):hover img { transform: none; }
}
