:root {
  --ink: #243331;
  --muted: #61706b;
  --paper: #f6f0e5;
  --paper-deep: #eadfcd;
  --teal: #1f5b58;
  --teal-dark: #143f3d;
  --rust: #a24f35;
  --gold: #c69a50;
  --white: #fffdf8;
  --rule: rgba(36, 51, 49, 0.2);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.46), rgba(255,255,255,.46)),
    repeating-linear-gradient(0deg, transparent, transparent 5px, rgba(58,49,38,.018) 6px),
    var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.72;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--rust); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 99;
  padding: .65rem 1rem;
  background: var(--white);
  color: var(--ink);
}

.site-header {
  background: var(--teal-dark);
  color: var(--white);
  border-bottom: 5px solid var(--gold);
}

.masthead {
  max-width: 1180px;
  margin: auto;
  padding: 1.35rem 1.25rem 1rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.brand { color: inherit; text-decoration: none; }
.brand-name {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.055em;
}
.brand-name span { color: var(--gold); }
.brand-tagline {
  display: block;
  margin-top: .55rem;
  color: #dfd7c8;
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.issue-mark {
  max-width: 14rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,.3);
  color: #dfd7c8;
  font-family: var(--sans);
  font-size: .72rem;
  line-height: 1.45;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.menu-button {
  display: none;
  border: 1px solid rgba(255,255,255,.5);
  padding: .55rem .75rem;
  background: transparent;
  color: var(--white);
  font: 700 .78rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-nav {
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.12);
}

.site-nav ul {
  max-width: 1180px;
  margin: auto;
  padding: 0 1.25rem;
  display: flex;
  gap: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: .8rem 1.05rem;
  color: #fffdf8;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

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

main { min-height: 62vh; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 720px);
  display: grid;
  place-items: end start;
  color: white;
  background: var(--teal-dark);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,39,37,.92) 0%, rgba(14,39,37,.62) 42%, rgba(14,39,37,.06) 78%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(700px, calc(100% - 2.5rem));
  margin: 0 max(1.25rem, calc((100vw - 1180px) / 2));
  padding: 4.5rem 0;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--rust);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #f0c982; }

h1, h2, h3 { line-height: 1.13; }
h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.45rem, 7vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -.045em;
}

h2 {
  margin: 2.6rem 0 .9rem;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -.025em;
}

h3 {
  margin: 1.8rem 0 .6rem;
  font-size: 1.28rem;
}

.hero p {
  max-width: 39rem;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.page-head {
  padding: 4rem 1.25rem 3rem;
  text-align: center;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
}

.page-head h1 { max-width: 950px; margin-inline: auto; font-size: clamp(2.5rem, 6vw, 4.8rem); }
.page-head p:last-child { max-width: 740px; margin: auto; font-size: 1.15rem; color: var(--muted); }

.wrap { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.prose { width: min(760px, calc(100% - 2.5rem)); margin: 0 auto; padding: 3.5rem 0 5rem; }
.prose-wide { width: min(1060px, calc(100% - 2.5rem)); margin: 0 auto; padding: 3.5rem 0 5rem; }
.prose > p:first-of-type { font-size: 1.18rem; }
.prose > p:first-of-type::first-letter {
  float: left;
  margin: .08em .1em 0 0;
  color: var(--rust);
  font-size: 3.8em;
  line-height: .75;
}

.feature-image {
  width: min(1060px, calc(100% - 2.5rem));
  max-height: 600px;
  margin: 2rem auto 0;
  object-fit: cover;
  border: 10px solid var(--white);
  box-shadow: 0 18px 50px rgba(36,51,49,.14);
}

.lead-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-tint { background: var(--white); }

.deck { font-size: 1.18rem; color: var(--muted); }

.section-index {
  margin: 0;
  padding: 1.6rem;
  background: var(--teal-dark);
  color: var(--white);
  border-top: 5px solid var(--gold);
}
.section-index h2 { margin-top: 0; font-size: 1.5rem; }
.section-index ol { margin: 0; padding-left: 1.3rem; }
.section-index a { color: #fff3d9; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  min-height: 100%;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--rust);
}
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { font-family: var(--sans); font-size: .84rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.breed-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
}
.breed-entry { break-inside: avoid; padding: 1.2rem 0; border-top: 1px solid var(--rule); }
.breed-entry h3 { margin: 0 0 .4rem; color: var(--teal-dark); }
.breed-entry p { margin: 0; }

.note,
.callout {
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
  border-left: 5px solid var(--gold);
  background: #fffaf0;
}
.callout strong:first-child { display: block; color: var(--rust); font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }

.column-list {
  columns: 2;
  column-gap: 3rem;
  padding-left: 1.2rem;
}
.column-list li { margin-bottom: .45rem; break-inside: avoid; }

.timeline { margin: 2rem 0; border-left: 2px solid var(--gold); }
.timeline-item { position: relative; padding: 0 0 2rem 2rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -.47rem;
  top: .35rem;
  width: .8rem;
  height: .8rem;
  background: var(--rust);
  border: 3px solid var(--paper);
  border-radius: 50%;
}
.timeline-item h3 { margin-top: 0; }

.byline {
  padding: .6rem 0 1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quote {
  margin: 2.3rem 0;
  padding: 1rem 0 1rem 1.7rem;
  color: var(--teal-dark);
  border-left: 5px solid var(--rust);
  font-size: 1.35rem;
  font-style: italic;
}

.archive-note {
  padding: 1.4rem;
  border: 1px solid var(--rule);
  background: var(--white);
}

.site-footer {
  padding: 3rem 1.25rem;
  color: #ddd6c8;
  background: var(--teal-dark);
  border-top: 5px solid var(--gold);
}
.footer-grid {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h2 { margin: 0 0 .7rem; color: white; font-size: 1.25rem; }
.site-footer p, .site-footer ul { margin: 0; }
.site-footer ul { padding: 0; list-style: none; }
.site-footer a { color: #f2d49b; }
.footer-small { margin-top: 2rem !important; font: .75rem var(--sans); letter-spacing: .04em; }

.error-page { min-height: 64vh; display: grid; place-items: center; padding: 4rem 1.25rem; text-align: center; }
.error-page h1 { font-size: clamp(5rem, 18vw, 11rem); color: var(--rust); }
.button-link {
  display: inline-block;
  margin-top: 1rem;
  padding: .7rem 1.1rem;
  color: white;
  background: var(--teal);
  font: 700 .8rem var(--sans);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.button-link:hover { color: white; background: var(--rust); }

@media (max-width: 820px) {
  .issue-mark { display: none; }
  .menu-button { display: block; }
  .masthead { align-items: center; }
  .site-nav ul { display: none; flex-direction: column; padding: .5rem 1.25rem 1rem; }
  .site-nav ul.is-open { display: flex; }
  .lead-grid, .split-grid, .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .breed-list { grid-template-columns: 1fr; }
  .hero { min-height: 580px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .column-list { columns: 1; }
  .hero-copy { padding: 3rem 0; }
  .page-head { padding-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
