/* The Natural History of the Urban Coyote */
:root {
  --paper: #f1eadf;
  --paper-2: #e5d8c8;
  --ink: #201f1b;
  --muted: #6e665c;
  --soft: #c9b7a0;
  --line: rgba(32, 31, 27, 0.16);
  --line-strong: rgba(32, 31, 27, 0.34);
  --charcoal: #151512;
  --charcoal-2: #24231d;
  --lichen: #6e7550;
  --sage: #a3a077;
  --rust: #a4522d;
  --amber: #d7a65a;
  --white: #fff8ed;
  --max: 1440px;
  --content: min(100% - 32px, 1160px);
  --reading: 720px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(215, 166, 90, 0.18), transparent 30rem),
    linear-gradient(90deg, rgba(32, 31, 27, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 32px 32px, auto;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(32, 31, 27, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 31, 27, 0.03) 1px, transparent 1px);
  background-size: 100% 6px, 6px 100%;
  mix-blend-mode: multiply;
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rust);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-140%);
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: 100%;
  z-index: 20;
  background: rgba(241, 234, 223, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.home-page .site-header {
  position: relative;
}

.site-header--solid {
  background: rgba(241, 234, 223, 0.97);
}

.nav-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  gap: 14px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(1rem, 0.8rem + 1vw, 1.45rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 42%, var(--ink) 0 3px, transparent 3px),
    linear-gradient(138deg, transparent 0 34%, var(--ink) 34% 39%, transparent 39%),
    radial-gradient(ellipse at 52% 56%, transparent 0 31%, var(--ink) 32% 35%, transparent 36%);
  box-shadow: inset 0 0 0 7px rgba(164, 82, 45, 0.12);
}

.primary-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  background: rgba(255, 248, 237, 0.42);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.home-hero {
  padding: 18px 0 0;
}

.hero-frame {
  width: min(100%, var(--max));
  min-height: 680px;
  margin: 0 auto;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
  border-bottom: 1px solid var(--line-strong);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% center;
  filter: saturate(0.85) contrast(1.05) brightness(0.82);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 8, 0.12), rgba(10, 10, 8, 0.86)),
    linear-gradient(90deg, rgba(10, 10, 8, 0.82), rgba(10, 10, 8, 0.22) 68%, rgba(10, 10, 8, 0.56));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 930px);
  padding: clamp(28px, 7vw, 86px) 18px clamp(34px, 8vw, 96px);
  color: var(--white);
}

.kicker,
.section-label,
.card-meta,
.log-label,
.aside-label {
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 16px;
  color: var(--amber);
}

.hero-content h1,
.article-hero h1 {
  max-width: 920px;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(3rem, 16vw, 7.3rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  font-weight: 500;
}

.hero-dek,
.article-dek {
  max-width: 720px;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 4vw, 2rem);
  line-height: 1.32;
  color: rgba(255, 248, 237, 0.88);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  max-width: 390px;
}

.button-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.button-link--light {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.button-link--ghost {
  color: var(--white);
  background: rgba(255, 248, 237, 0.05);
}

.button-link:hover {
  transform: translateY(-1px);
}

.hero-log {
  position: relative;
  z-index: 2;
  margin: 0 18px 18px;
  padding: 16px;
  color: rgba(255, 248, 237, 0.86);
  border: 1px solid rgba(255, 248, 237, 0.24);
  background: rgba(21, 21, 18, 0.54);
  backdrop-filter: blur(10px);
}

.hero-log p {
  margin-bottom: 0;
}

.log-label {
  color: var(--amber);
  margin-bottom: 8px !important;
}

.section {
  width: var(--content);
  margin-inline: auto;
  padding-block: clamp(58px, 10vw, 116px);
}

.split-intro {
  display: grid;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin-bottom: 12px;
  color: var(--rust);
}

.section-label--dark {
  color: var(--amber);
}

.split-intro h2,
.section-heading h2,
.dark-band h2,
.more-stories h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
  font-size: clamp(2.35rem, 12vw, 5.4rem);
}

.intro-copy {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.34rem);
  line-height: 1.55;
  color: #3a342b;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 24px;
}

.section-heading--wide {
  max-width: 1040px;
}

.section-heading p:not(.section-label) {
  max-width: 640px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid,
.story-grid,
.more-grid {
  display: grid;
  gap: 16px;
}

.feature-card,
.story-card,
.mini-card {
  display: grid;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 248, 237, 0.52);
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover,
.story-card:hover,
.mini-card:hover {
  transform: translateY(-3px);
  color: var(--ink);
  border-color: var(--rust);
  background: rgba(255, 248, 237, 0.78);
}

.feature-card figure,
.story-card figure {
  margin: 0;
  background: var(--charcoal);
  overflow: hidden;
}

.feature-card img,
.story-card img,
.mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.02);
  transition: transform 250ms ease;
}

.feature-card:hover img,
.story-card:hover img,
.mini-card:hover img {
  transform: scale(1.035);
}

.feature-card figure {
  aspect-ratio: 4 / 3;
}

.card-body,
.story-card__body {
  padding: 18px;
}

.card-body h3,
.story-card h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 6vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.card-body p:last-child,
.story-card__body p:last-child {
  margin-bottom: 0;
  color: #50483e;
}

.card-meta {
  margin-bottom: 12px;
  color: var(--rust) !important;
  font-family: var(--sans);
  line-height: 1.2;
}

.dark-band {
  width: min(100%, var(--max));
  padding-inline: 16px;
  background:
    linear-gradient(135deg, rgba(164, 82, 45, 0.18), transparent 36%),
    radial-gradient(circle at 88% 0%, rgba(215, 166, 90, 0.18), transparent 26rem),
    var(--charcoal);
  color: var(--white);
  display: grid;
  gap: 34px;
}

.dark-band__text p:not(.section-label) {
  max-width: 660px;
  color: rgba(255, 248, 237, 0.78);
  font-size: 1.08rem;
}

.path-list {
  display: grid;
  gap: 12px;
}

.path-list a {
  min-height: 86px;
  display: grid;
  gap: 6px;
  padding: 18px;
  text-decoration: none;
  border: 1px solid rgba(255, 248, 237, 0.18);
  background: rgba(255, 248, 237, 0.06);
}

.path-list a:hover {
  color: var(--white);
  border-color: var(--amber);
  background: rgba(255, 248, 237, 0.11);
}

.path-list span {
  color: var(--amber);
  font-size: 0.77rem;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.path-list strong {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  line-height: 1.14;
  font-weight: 500;
}

.story-index {
  padding-top: clamp(66px, 11vw, 128px);
}

.story-card figure {
  aspect-ratio: 1 / 1;
}

.story-card h3 {
  font-size: clamp(1.32rem, 5vw, 1.9rem);
}

/* ============================================================
   Site Footer — three-column editorial colophon
   ============================================================ */

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 248, 237, 0.72);
  border-top: 1px solid rgba(255, 248, 237, 0.12);
  padding: 56px 16px 40px;
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 10px;
}

.footer-brand em {
  font-style: italic;
  color: var(--amber);
}

.footer-about,
.footer-copy {
  font-size: 0.875rem;
  line-height: 1.56;
  color: rgba(255, 248, 237, 0.56);
  margin: 0 0 12px;
}

.footer-copy {
  margin-bottom: 0;
}

.footer-heading {
  font-family: var(--sans);
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 760;
  margin: 0 0 14px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  font-size: 0.875rem;
  color: rgba(255, 248, 237, 0.82);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--amber);
}

.footer-base {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 248, 237, 0.14);
  font-family: var(--sans);
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 248, 237, 0.42);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Article */
.article-page {
  background:
    linear-gradient(90deg, rgba(32, 31, 27, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px, auto;
}

.article-hero {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 0;
  background: var(--charcoal);
  color: var(--white);
}

.article-hero__copy {
  padding: clamp(30px, 8vw, 86px) 18px 28px;
}

.article-hero h1 {
  font-size: clamp(3rem, 15vw, 6.8rem);
}

.article-dek {
  color: rgba(255, 248, 237, 0.84);
}

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--amber);
  text-decoration: none;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.back-link::before {
  content: "←";
  margin-right: 8px;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: rgba(255, 248, 237, 0.72);
  font-size: 0.91rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.byline span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 248, 237, 0.2);
  border-radius: 999px;
}

.article-hero__media {
  margin: 0;
}

.article-hero__media img {
  width: 100%;
  height: min(78vh, 720px);
  min-height: 320px;
  object-fit: cover;
  object-position: 38% center;
  filter: saturate(0.86) contrast(1.04);
}

.article-hero figcaption,
.article-image figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.article-hero figcaption {
  padding: 12px 18px 18px;
  color: rgba(255, 248, 237, 0.68);
}

.article-shell {
  width: var(--content);
  margin-inline: auto;
  padding-block: clamp(42px, 8vw, 92px);
  display: grid;
  gap: 34px;
}

.article-aside {
  display: grid;
  gap: 14px;
  align-content: start;
}

.aside-card {
  padding: 18px;
  background: rgba(255, 248, 237, 0.64);
  border: 1px solid var(--line);
}

.aside-card p:last-child {
  margin-bottom: 0;
  color: #4b443a;
}

.aside-label {
  color: var(--rust) !important;
  margin-bottom: 9px !important;
}

.aside-links {
  display: grid;
  border-top: 1px solid var(--line);
}

.aside-links a {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 780;
  line-height: 1.25;
}

.article-content {
  min-width: 0;
  max-width: var(--reading);
}

.article-content > p {
  margin-bottom: 1.35em;
  color: #302c26;
  font-family: var(--serif);
  font-size: clamp(1.04rem, 2vw, 1.18rem);
  line-height: 1.76;
}

.article-content strong {
  font-weight: 700;
}

.article-content a {
  color: #7d3d22;
}

.article-image {
  margin: 36px 0;
}

.article-image--lede {
  margin-top: 0;
}

.article-image img {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid rgba(32, 31, 27, 0.12);
  filter: saturate(0.92) contrast(1.03);
}

.article-image figcaption {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}

.article-image--wide img,
.article-image--final img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.article-image--lede img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.diptych {
  display: grid;
  gap: 16px;
  margin: 42px 0;
}

.diptych .article-image {
  margin: 0;
}

.diptych img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.more-stories {
  border-top: 1px solid var(--line);
}

.mini-card {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.1;
}

.mini-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

@media (min-width: 560px) {
  .nav-inner {
    padding-inline: 24px;
  }

  .hero-content,
  .article-hero__copy {
    padding-inline: 28px;
  }

  .hero-actions {
    max-width: none;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .button-link {
    justify-content: flex-start;
  }

  .hero-log {
    max-width: 360px;
    margin-left: 28px;
  }

  .feature-grid,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card--large {
    grid-column: 1 / -1;
  }

  .more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 0;
  }

  .mini-card span {
    padding: 14px;
  }

  .mini-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .diptych {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (min-width: 760px) {
  :root {
    --content: min(100% - 56px, 1160px);
  }

  .nav-inner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
  }

  .primary-nav {
    justify-content: flex-end;
  }

  .hero-frame {
    min-height: 760px;
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: end;
  }

  .hero-content {
    grid-column: 1 / 2;
  }

  .hero-log {
    grid-column: 2 / 3;
    justify-self: end;
    margin: 0 28px 28px 0;
  }

  .split-intro {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 40px;
    align-items: start;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: stretch;
  }

  .feature-card--large {
    grid-column: auto;
    grid-row: span 2;
  }

  .feature-card--large figure {
    aspect-ratio: 4 / 4.15;
  }

  .dark-band {
    padding-inline: 28px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
  }

  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    min-height: 680px;
    align-items: stretch;
  }

  .article-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 36px;
  }

  .article-hero__media img {
    height: 100%;
    min-height: 680px;
  }

  .article-shell {
    grid-template-columns: minmax(190px, 270px) minmax(0, var(--reading));
    justify-content: center;
    align-items: start;
    gap: clamp(36px, 6vw, 84px);
  }

  .article-aside {
    position: sticky;
    top: 24px;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }

  .footer-base {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1040px) {
  .nav-inner {
    padding-inline: 36px;
  }

  .hero-frame {
    border-left: 1px solid var(--line-strong);
    border-right: 1px solid var(--line-strong);
  }

  .hero-content {
    padding-left: 52px;
  }

  .hero-log {
    margin-right: 52px;
    margin-bottom: 52px;
  }

  .feature-grid,
  .story-grid,
  .path-list,
  .more-grid {
    gap: 20px;
  }

  .card-body,
  .story-card__body {
    padding: 24px;
  }

  .story-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .story-card:first-child,
  .story-card:nth-child(7) {
    grid-column: span 2;
  }

  .story-card:first-child figure,
  .story-card:nth-child(7) figure {
    aspect-ratio: 2 / 1;
  }

  .article-hero__copy {
    padding-left: 54px;
  }

  .article-image--wide {
    width: min(860px, calc(100vw - 56px));
    margin-left: clamp(-90px, -8vw, -40px);
  }

  .article-image--final {
    width: min(780px, calc(100vw - 56px));
    margin-left: clamp(-60px, -5vw, -28px);
  }
}

@media (min-width: 1440px) {
  body {
    background:
      radial-gradient(circle at calc(50% - 620px) 120px, rgba(215, 166, 90, 0.18), transparent 30rem),
      linear-gradient(90deg, rgba(32, 31, 27, 0.04) 1px, transparent 1px),
      var(--paper);
    background-size: auto, 32px 32px, auto;
  }

  .home-hero {
    padding-top: 24px;
  }

  .hero-frame,
  .article-hero,
  .dark-band {
    border-left: 1px solid var(--line-strong);
    border-right: 1px solid var(--line-strong);
  }

  .hero-media img {
    object-position: 50% center;
  }
}
