/* Ranger's Last Resort - static site styles */
:root {
  --olive: #3b4630;      /* field olive: header band, primary buttons */
  --olive-deep: #2c3524;
  --coyote: #b08d57;     /* coyote tan: record rules, focus, accents */
  --paper: #eef0ea;      /* page */
  --panel: #f8f9f5;      /* dog records */
  --ink: #26211d;        /* brindle dark: text */
  --stone: #6c6a61;      /* secondary text */
  --line: #cfd3c8;
  --on-olive: #eef0ea;
  --fill-bg: #ffe08a;
  --measure: 42rem;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Arial Narrow", Arial, sans-serif;
  --stencil: "Stardos Stencil", "Archivo", Impact, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --olive: #3f4b33; --olive-deep: #2a3222; --coyote: #c9a46d;
    --paper: #1c1f19; --panel: #242820; --ink: #e6e8e0; --stone: #a8a99c;
    --line: #3a4033; --on-olive: #eef0ea; --fill-bg: #7a5d00;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--serif);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--coyote); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--coyote); }
:focus-visible { outline: 3px solid var(--coyote); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--coyote); color: #000; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* header: the stenciled crate marking is the one loud element */
header.site { background: var(--olive); color: var(--on-olive); }
header.site .bar { max-width: 72rem; margin: 0 auto; padding: 1.4rem 1.25rem .6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; }
.mark { font-family: var(--stencil); font-weight: 700; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1; letter-spacing: .02em; text-decoration: none; color: var(--on-olive); }
.mark:hover { color: var(--on-olive); }
.tag { font: 500 .95rem/1.3 var(--sans); font-stretch: 85%; opacity: .85; }
header.site nav { max-width: 72rem; margin: 0 auto; padding: .2rem 1rem 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255,255,255,.15); }
header.site nav a { font: 600 .98rem/1 var(--sans); font-stretch: 85%; color: var(--on-olive); text-decoration: none; padding: .8rem .6rem; border-bottom: 3px solid transparent; }
header.site nav a:hover { border-bottom-color: var(--coyote); color: var(--on-olive); }
header.site nav a[aria-current="page"] { border-bottom-color: var(--coyote); }

/* content column */
main { padding: 2.5rem 1.25rem 4rem; }
.content { max-width: var(--measure); margin: 0 auto; }
h1, h2, h3 { font-family: var(--sans); font-stretch: 80%; line-height: 1.12; color: var(--ink); }
h1 { font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.1rem); margin: 0 0 1.25rem; letter-spacing: -.01em; }
h2 { font-weight: 750; font-size: 1.75rem; margin: 2.4rem 0 .8rem; }
h3 { font-weight: 700; font-size: 1.4rem; margin: 1.8rem 0 .6rem; }
p, ul, ol { margin: 0 0 1.1rem; }
ul { padding-left: 1.2rem; }
li { margin-bottom: .35rem; }
li::marker { color: var(--coyote); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }
em { color: var(--stone); }
strong em, em strong { color: inherit; }
p > img, figure img { border-radius: 2px; }
p:has(> img) { margin: 1.5rem 0 .6rem; }
mark.fill { background: var(--fill-bg); color: inherit; font: 700 .85em var(--sans); padding: 0 .3em; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0; }
.btn { font: 700 1rem/1 var(--sans); font-stretch: 85%; text-decoration: none; padding: .85rem 1.2rem; background: var(--olive); color: var(--on-olive); border: 2px solid var(--olive); border-radius: 3px; }
.btn:hover { background: var(--olive-deep); color: var(--on-olive); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: transparent; color: var(--ink); border-color: var(--coyote); }

/* home hero: photo beside the opening statement */
main.with-hero { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 72rem; margin: 0 auto; gap: 2rem; }
.hero-img { margin: 0; }
.hero-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 60rem) {
  main.with-hero { grid-template-columns: 22rem minmax(0, 1fr); align-items: start; }
  .hero-img { position: sticky; top: 1.5rem; }
  main.with-hero .content { margin: 0; }
}

/* dog records: each listing reads like the file that leaves with the dog */
.record { background: var(--panel); border-left: 5px solid var(--coyote); padding: 1.25rem 1.4rem .4rem; margin: 0 -1.4rem; }
.record h3 { margin-top: 0; font-size: 1.9rem; }
.record p:has(> img) { margin: 0 0 1rem; }
.record p:has(> img) img { width: 100%; max-height: 26rem; object-fit: cover; }
.record p:has(> strong:first-child) { margin-bottom: .9rem; }
@media (min-width: 52rem) {
  .content:has(.record) { max-width: 54rem; }
  .record { display: grid; grid-template-columns: 17rem minmax(0, 1fr); column-gap: 1.6rem; margin: 0; }
  .record > * { grid-column: 2; }
  .record > p:has(> img), .record > p:has(> mark.fill):first-of-type { grid-column: 1; grid-row: 1 / span 8; }
  .record p:has(> img) img { max-height: none; aspect-ratio: 4 / 5; }
}
.stories h3 { font-size: 1.35rem; }
.stories p:has(> img) img { max-height: 22rem; width: auto; }

/* updates */
.post img { max-height: 24rem; width: 100%; object-fit: cover; margin-bottom: 1rem; }
.post h2 { margin-top: 0; }
.post .date { font: 600 .95rem var(--sans); font-stretch: 85%; color: var(--stone); margin-top: -.4rem; }

/* footer */
footer.site { background: var(--olive-deep); color: var(--on-olive); padding: 2rem 1.25rem 2.5rem; }
footer.site > * { max-width: 72rem; margin-left: auto; margin-right: auto; }
footer.site p { font: 500 .95rem/1.5 var(--sans); font-stretch: 90%; }
footer.site a { color: var(--on-olive); }
footer.site .btn { background: var(--coyote); border-color: var(--coyote); color: #1d1a16; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
