/* ============================================================
   On the Hunt — field-journal record for wilkeslandia.com
   Palette: warm field-guide paper + blaze-orange signature.
   Distinct from Operation 205 (olive tactical) and
   Salty Shorthair (nautical navy/brass) by design.
   ============================================================ */

:root {
  --paper:  #E4DAC4;  /* warm field-guide paper, page ground */
  --bone:   #F1E9D6;  /* lighter card surface */
  --ink:    #211F18;  /* near-black warm ink, body text */
  --loam:   #3A3022;  /* dark brown, topbar + grounds */
  --brush:  #57663C;  /* muted brush green */
  --blaze:  #D9531E;  /* blaze orange — signature accent */
  --rust:   #93491F;  /* secondary warm, links/hover */
  --line:   #B8A98A;  /* hairline rules on paper */

  --rail:   3px;      /* timeline rail width */
  --maxw:   1680px;

  --f-disp: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Bitter', Georgia, serif;
  --f-mark: 'Alfa Slab One', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--blaze); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--blaze);
  outline-offset: 3px;
}

/* ---- Topbar ---------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--loam);
  color: var(--paper);
  padding: 11px clamp(16px, 5vw, 40px);
  border-bottom: 2px solid var(--blaze);
}
.topbar__mark {
  font-family: var(--f-disp);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 15px;
}
.topbar__home {
  font-family: var(--f-disp);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--paper);
  opacity: 0.72;
}
.topbar__home:hover { opacity: 1; color: var(--paper); text-decoration: none; }

/* ---- Hero ------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 50% -10%, rgba(217,83,30,0.06), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero__topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--loam);
  opacity: 0.14;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 104px) clamp(20px, 5vw, 40px) clamp(36px, 6vw, 64px);
}
.hero__eyebrow {
  font-family: var(--f-disp);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brush);
  margin-bottom: 14px;
}
.hero__title {
  font-family: var(--f-mark);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
  font-size: clamp(3rem, 10vw, 8rem);
  color: var(--ink);
}
.hero__lede {
  font-family: var(--f-body);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  max-width: 40ch;
  margin-top: 20px;
  color: var(--loam);
}

/* tally chips */
.tally {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.tally__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bone);
  border: 1px solid var(--line);
  border-left: var(--rail) solid var(--blaze);
  padding: 8px 16px 7px;
  min-width: 96px;
}
.tally__num {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
}
.tally__label {
  font-family: var(--f-disp);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  color: var(--brush);
  margin-top: 4px;
}

/* ---- Log section ----------------------------------------- */
.log {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 40px) 0;
}
.log__head { margin-bottom: 20px; }
.log__title {
  font-family: var(--f-disp);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 16px;
}

/* the record scrolls within its own panel so the page stays a fixed height */
.feed-scroll {
  max-height: min(76vh, 1000px);
  overflow-y: auto;
  padding: 22px 12px 4px 0;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--brush) transparent;
}
.feed-scroll::-webkit-scrollbar { width: 8px; }
.feed-scroll::-webkit-scrollbar-track { background: transparent; }
.feed-scroll::-webkit-scrollbar-thumb { background: var(--brush); border-radius: 4px; }
.feed-scroll::-webkit-scrollbar-thumb:hover { background: var(--blaze); }

/* record + sidebars layout */
.log__layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 264px;
  gap: 40px;
  align-items: start;
}

.upcoming, .guides { position: sticky; top: 24px; }
.guides__title, .up__title {
  font-family: var(--f-disp);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* upcoming hunt card (dark, since outfitter logos here can be light) */
.up-card {
  display: block;
  text-decoration: none;
  background: var(--loam);
  border: 1px solid var(--loam);
  border-top: 3px solid var(--blaze);
  padding: 16px 16px 18px;
  color: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.up-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(33, 31, 24, 0.25); }
.up-card__date {
  font-family: var(--f-disp);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 13px;
  display: block;
}
.up-card__place {
  font-family: var(--f-disp);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: #bcb593;
  display: block;
  margin-top: 3px;
}
.up-card__q { margin-top: 10px; }
.up-card__quarry {
  font-family: var(--f-disp);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--blaze);
}
.up-card__logo { display: block; width: 100%; max-width: 168px; height: auto; margin: 16px auto 8px; }
.up-card__with {
  display: block;
  text-align: center;
  font-family: var(--f-disp);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  color: rgba(231, 222, 203, 0.66);
}

.guide-tile {
  display: block;
  text-decoration: none;
  background: var(--bone);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blaze);
  padding: 20px 18px 15px;
  margin-bottom: 16px;
  text-align: center;
  transition: border-top-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
a.guide-tile:hover {
  border-top-color: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(33, 31, 24, 0.12);
}
.guide-tile__logo {
  display: block;
  width: 100%;
  max-width: 168px;
  height: auto;
  margin: 0 auto 12px;
}
.guide-tile__cap {
  font-family: var(--f-disp);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--rust);
  display: block;
}
a.guide-tile:hover .guide-tile__cap { color: var(--blaze); }

@media (max-width: 1180px) {
  .log__layout { grid-template-columns: 1fr; gap: 30px; }
  .upcoming, .guides { position: static; }
  .record { order: 1; }
  .upcoming { order: 2; }
  .guides { order: 3; }
  .up-card, .guide-tile { max-width: 360px; margin-left: auto; margin-right: auto; }
}
.log__sub {
  font-style: italic;
  color: var(--loam);
  margin-top: 4px;
  font-size: 0.98rem;
}

/* ---- Feed / timeline rail -------------------------------- */
.feed {
  list-style: none;
  position: relative;
  padding-left: 34px;
}
.feed::before {            /* the blaze rail */
  content: "";
  position: absolute;
  top: 6px;
  bottom: 0;
  left: 7px;
  width: var(--rail);
  background: linear-gradient(var(--blaze), var(--blaze)) no-repeat;
  border-radius: 2px;
}

.entry {
  position: relative;
  padding: 0 0 38px 0;
}
.entry::before {           /* node on the rail */
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 17px;
  height: 17px;
  margin-left: 0;
  background: var(--blaze);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--blaze);
}
.entry:last-child { padding-bottom: 8px; }

.entry__card {
  background: var(--bone);
  border: 1px solid var(--line);
  border-top: 3px solid var(--loam);
}

/* date "tag" — punched hunting-tag motif */
.entry__tagstub {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: var(--loam);
  color: var(--paper);
  padding: 7px 16px;
  position: relative;
}
.entry__tagstub::after {   /* punched hole */
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bone);
  box-shadow: inset 0 0 0 1px var(--line);
}
.entry__date {
  font-family: var(--f-disp);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 14px;
}
.entry__fulldate {
  font-family: var(--f-disp);
  font-weight: 300;
  letter-spacing: 0.1em;
  font-size: 11px;
  opacity: 0.7;
}

.entry__body { padding: 16px 18px 18px; }

.entry__place {
  font-family: var(--f-disp);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--brush);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.entry__place::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--brush);
  transform: rotate(45deg);
  flex: none;
}

/* quarry / dog tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  font-family: var(--f-disp);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.tag--quarry { border-left: 3px solid var(--blaze); }
.tag--dog { border-left: 3px solid var(--brush); color: var(--loam); }

/* photos — a tidy journal-style strip, never full-bleed */
.shots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.shots:empty { display: none; }
.shot {
  flex: 1 1 150px;
  max-width: 208px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--loam);
  border: 1px solid var(--line);
  display: block;
}
img.shot { cursor: zoom-in; }
.shot--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  opacity: 0.55;
  font-family: var(--f-disp);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
}

/* video embeds */
.videos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.videos:empty { display: none; }

/* instagram embeds */
.igposts { margin-bottom: 14px; }
.igposts .instagram-media {
  margin: 0 0 10px 0 !important;
  min-width: 0 !important;
}
.video {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  background: var(--loam);
  border: 1px solid var(--line);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video__play {
  all: unset;
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
}
.video__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video__btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--blaze);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: background .15s ease, transform .15s ease;
}
.video__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent var(--bone);
}
.video__play:hover .video__btn,
.video__play:focus-visible .video__btn { background: var(--rust); transform: translate(-50%, -50%) scale(1.05); }

.entry__note {
  font-family: var(--f-body);
  font-size: 1.02rem;
  color: var(--ink);
  max-width: 640px;
}
.entry__note--empty { font-style: italic; color: var(--loam); opacity: 0.8; }

/* guide credit */
.guide {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  width: fit-content;
}
.guide__label {
  font-family: var(--f-disp);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--brush);
}
.guide__name {
  font-family: var(--f-disp);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--rust);
}
.guide__logo { height: 34px; width: auto; display: block; }
a.guide:hover .guide__name { color: var(--blaze); }
a.guide:hover { text-decoration: none; }

/* placeholder-state entries when the record is empty */
.entry--ghost .entry__card { opacity: 0.66; }
.feed--empty-note {
  font-style: italic;
  color: var(--loam);
  margin: 0 0 26px;
  padding-left: 0;
}

/* ---- Footer ---------------------------------------------- */
.footer {
  max-width: var(--maxw);
  margin: clamp(48px, 8vw, 90px) auto 0;
  padding: 26px clamp(20px, 5vw, 40px) 48px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer__line { font-style: italic; color: var(--loam); }
.footer__meta {
  font-family: var(--f-disp);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  margin-top: 10px;
}

/* ---- Motion ---------------------------------------------- */
.entry { opacity: 0; transform: translateY(14px); }
.entry.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entry { opacity: 1; transform: none; transition: none; }
}

/* ---- Lightbox ------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(26, 22, 16, 0.94);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid var(--loam);
  background: var(--loam);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--f-body);
  line-height: 1;
  opacity: 0.8;
  transition: opacity .15s ease, color .15s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { opacity: 1; color: var(--blaze); }
.lightbox__close {
  top: 18px;
  right: 22px;
  font-size: 40px;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
  padding: 0 18px;
}
.lightbox__prev { left: 6px; }
.lightbox__next { right: 6px; }

/* ---- Small screens --------------------------------------- */
@media (max-width: 520px) {
  body { font-size: 16px; }
}
