/* Feeder Almanac — dark forest editorial, winter 2026 */
:root {
  --bg: #10140f;
  --bg-2: #161c15;
  --panel: #1c231a;
  --panel-2: #242c21;
  --cream: #f4efe6;
  --cream-dim: #d8d0c4;
  --ink: #f4efe6;
  --ink-soft: #c9c2b5;
  --bark: #0b0d0a;
  --cardinal: #e24b3c;
  --cardinal-dark: #c43328;
  --clay: #e24b3c;
  --clay-dark: #ff7a6e;
  --olive: #8fa37a;
  --olive-deep: #c5d4b4;
  --stone: #b7b0a3;
  --ochre: #e0a14a;
  --line: #cfc6b8;
  --rule: 2px solid var(--line);
  --rule-thin: 1px solid rgba(207, 198, 184, 0.28);
  --shadow: 5px 5px 0 #050605;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  --max: 1120px;
  --measure: 42rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-dark); text-underline-offset: 0.18em; }
a:hover { color: #ffb0a8; }
a:focus-visible, button:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--cardinal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 300;
  background: var(--cardinal-dark);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

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

/* —— Masthead —— */
.masthead {
  border-bottom: var(--rule);
  background: var(--bark);
  position: relative;
  z-index: 20;
}
.masthead-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  border-bottom: var(--rule-thin);
}
.brand-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0 1rem;
}
.brand {
  grid-column: 2;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  display: block;
  color: var(--cream);
}
.brand-mark em { font-style: italic; font-weight: 500; color: var(--cream-dim); }
.brand-tag {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.stamp {
  justify-self: start;
  align-self: center;
  border: 2px solid var(--cardinal);
  color: var(--cardinal);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.5rem;
  transform: rotate(-6deg);
  line-height: 1.25;
  max-width: 8.5rem;
}
.issue {
  justify-self: end;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.4;
}

.nav {
  border-top: var(--rule);
  background: var(--bg);
}
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 0.95rem;
  border-right: var(--rule-thin);
}
.nav a:first-child { border-left: var(--rule-thin); }
.nav a:hover, .nav a[aria-current="page"] {
  background: var(--cardinal-dark);
  color: var(--cream);
}
.nav-toggle {
  display: none;
  background: var(--cardinal-dark);
  color: var(--cream);
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  width: 100%;
  cursor: pointer;
}

/* —— Heroes —— */
.hero {
  border-bottom: var(--rule);
  padding: clamp(2rem, 5vw, 3.75rem) 0 2.5rem;
  background: var(--bg-2);
}
.hero-bleed {
  position: relative;
  min-height: min(82vh, 680px);
  display: flex;
  align-items: flex-end;
  border-bottom: var(--rule);
  overflow: hidden;
  background: var(--bark);
}
.hero-bleed .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: 0;
}
.hero-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 13, 10, 0.18) 0%, rgba(11, 13, 10, 0.28) 38%, rgba(11, 13, 10, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 13, 10, 0.45) 0%, rgba(11, 13, 10, 0.1) 55%, rgba(11, 13, 10, 0.2) 100%);
}
.hero-bleed .wrap {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 12vw, 8rem) 0 2.6rem;
}
.hero-photo {
  border-bottom: var(--rule);
  background: var(--bark);
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: min(48vw, 440px);
  object-fit: cover;
  object-position: center 40%;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cardinal);
  margin: 0 0 0.75rem;
}
.hero-bleed .kicker { color: #ff9a90; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
  color: var(--cream);
}
h1 {
  font-size: clamp(2.25rem, 6.4vw, 4.4rem);
  font-weight: 800;
  max-width: 18ch;
}
.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.45;
  max-width: 40rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
}
.hero-bleed .lede { color: var(--cream-dim); }
.hero-bleed .meta-row { color: var(--cream-dim); }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

/* —— Buttons —— */
.btn {
  display: inline-block;
  background: var(--cardinal-dark);
  color: var(--cream) !important;
  text-decoration: none;
  border: 2px solid var(--cream);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.05rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  background: var(--cardinal);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #050605;
}
.btn-dark {
  background: transparent;
  color: var(--cream) !important;
  border-color: var(--line);
}
.btn-dark:hover { background: var(--panel); color: var(--cream) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }

/* —— Layout —— */
.section { padding: 2.75rem 0; border-bottom: var(--rule); background: var(--bg); }
.section-tight { padding: 2rem 0; }
.prose { max-width: var(--measure); }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.15rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 2.1rem 0 0.8rem; }
.prose h3 { font-size: 1.35rem; margin: 1.6rem 0 0.55rem; }
.prose h2:first-child { margin-top: 0; }
.prose figcaption, .caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--stone);
  margin: 0.4rem 0 1.25rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16.5rem;
  gap: 2.5rem;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 1rem;
  border: var(--rule);
  background: var(--panel);
  padding: 1rem 1rem 1.15rem;
  box-shadow: var(--shadow);
}
.sidebar h2 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}
.sidebar ol, .sidebar ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}
.sidebar a { color: var(--cream-dim); text-decoration-thickness: 1px; }

.callout {
  border: var(--rule);
  background: var(--panel-2);
  padding: 1rem 1.15rem 0.85rem;
  margin: 0 0 1.4rem;
  box-shadow: 4px 4px 0 #050605;
}
.callout.alert { background: #2a1c16; border-color: var(--cardinal); }
.callout h2, .callout h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }

.note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-left: 4px solid var(--cardinal);
  padding-left: 0.85rem;
  margin: 0 0 1.25rem;
}

/* —— Cards / bento —— */
.grid-2, .grid-3, .picks, .cards {
  display: grid;
  gap: 1.15rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.picks { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.5rem 0 0; }

.card, .pick {
  border: var(--rule);
  background: var(--panel);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
a.card:hover, a.pick:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #050605;
}
.card-media {
  margin: -1.1rem -1.15rem 0.95rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: var(--rule);
  background: var(--bark);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-label, .pick-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cardinal);
  margin: 0 0 0.45rem;
}
.card h2, .card h3, .pick h2, .pick h3 {
  font-size: 1.45rem;
  margin: 0 0 0.45rem;
}
.card p, .pick p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.card .more {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay-dark);
}

.band {
  background: var(--bark);
  color: var(--cream-dim);
  border-bottom: var(--rule);
}
.band a { color: #ff9a90; }
.band .card, .band .pick {
  background: var(--panel);
  color: var(--cream);
  border-color: var(--line);
  box-shadow: 5px 5px 0 #050605;
}
.band .card p, .band .pick p { color: var(--ink-soft); }
.band h1, .band h2 { color: var(--cream); }

/* —— Figures —— */
.fig {
  margin: 0 0 1.5rem;
  border: var(--rule);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.fig img {
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: cover;
  object-position: center;
}
.fig figcaption, .credit-line {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--stone);
  padding: 0.55rem 0.75rem 0.7rem;
  margin: 0;
  line-height: 1.45;
}
.fig figcaption a, .credit-line a { color: var(--cream-dim); }
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.photo-row .fig { margin: 0; }

/* —— Tables —— */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: var(--rule);
  margin: 0 0 1.4rem;
  background: var(--panel);
  box-shadow: 4px 4px 0 #050605;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 36rem;
}
th, td {
  border-bottom: var(--rule-thin);
  border-right: var(--rule-thin);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
th:last-child, td:last-child { border-right: 0; }
thead th {
  background: #0b0d0a;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
tbody tr:nth-child(even) { background: var(--panel-2); }
tbody tr:last-child td { border-bottom: 0; }
.seed-chart td:not(:first-child), .seed-chart th:not(:first-child) { text-align: center; }
.yes { font-weight: 700; color: var(--olive-deep); }
.no { color: #6e6960; }

.months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  margin: 0.35rem 0 0.8rem;
  max-width: 22rem;
}
.months span {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 0;
}
.months span[data-l="1"] { background: #5a3a32; }
.months span[data-l="2"] { background: #8c3a30; }
.months span[data-l="3"] { background: #e24b3c; }
.months-legend {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

/* —— Sources / footer —— */
.sources { font-size: 0.95rem; }
.sources ol { padding-left: 1.2rem; }
.sources li { margin-bottom: 0.45rem; }

.site-footer {
  background: var(--bark);
  color: var(--ink-soft);
  padding: 2.5rem 0 2rem;
  border-top: 6px solid var(--cardinal-dark);
}
.site-footer a { color: #ff9a90; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h2 {
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.35rem; }
.legal {
  border-top: 1px solid rgba(207, 198, 184, 0.2);
  padding-top: 1rem;
  font-size: 0.88rem;
  color: var(--stone);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.aff-box {
  border: 2px dashed var(--line);
  padding: 0.7rem 0.85rem;
  margin: 0.5rem 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: #1a1510;
  color: var(--cream-dim);
}
.aff-box code { font-family: var(--font-mono); color: #ff9a90; }

.form-placeholder {
  border: var(--rule);
  background: var(--panel);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.form-placeholder label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}
.form-placeholder input, .form-placeholder textarea {
  width: 100%;
  border: var(--rule);
  background: var(--bg);
  color: var(--cream);
  padding: 0.55rem 0.7rem;
  font: inherit;
  margin-bottom: 0.9rem;
}
.form-placeholder [disabled] { opacity: 0.7; cursor: not-allowed; }

.credits-list dt {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.4rem 0 0.3rem;
  color: var(--cream);
}
.credits-list dd {
  margin: 0 0 0.4rem;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .brand-row { grid-template-columns: 1fr; text-align: center; padding: 0.9rem 0; }
  .stamp, .issue { justify-self: center; text-align: center; }
  .stamp { margin-bottom: 0.4rem; }
  .layout, .grid-2, .grid-3, .cards, .picks, .footer-grid, .photo-row {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .nav-toggle { display: block; }
  .nav-inner { display: none; border-top: var(--rule); flex-direction: column; }
  .nav.is-open .nav-inner { display: flex; }
  .nav a, .nav a:first-child {
    border-left: 0;
    border-right: 0;
    border-bottom: var(--rule-thin);
    text-align: center;
  }
  table { min-width: 32rem; }
  .hero-photo img { height: 220px; }
  .hero-bleed { min-height: 34rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a.card, a.pick { transition: none; }
}

.pos-cardinal { object-position: 38% 32% !important; }
.pos-redpoll { object-position: 58% 40% !important; }
.pos-goldfinch-sock { object-position: 42% 80% !important; }
.hero-photo { position: relative; }
.hero-photo .photo-credit {
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  margin: 0;
  padding: 0.2rem 0.45rem;
  background: rgba(11, 13, 10, 0.7);
  color: var(--cream-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}
.hero-photo .photo-credit a { color: var(--cream-dim); }

.product {
  border: var(--rule);
  background: var(--panel);
  padding: 1.15rem 1.2rem 1.2rem;
  margin: 0 0 1.25rem;
  box-shadow: var(--shadow);
}
.product h3 { margin-top: 0; font-size: 1.4rem; }
.product .pick-label { margin-bottom: 0.35rem; }
.product .btn { margin-top: 0.25rem; }
.nav a { padding: 0.7rem 0.8rem; }

button.btn {
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

@media print {
  :root {
    --bg: #fff;
    --bg-2: #fff;
    --panel: #fff;
    --panel-2: #f4f1ea;
    --cream: #1a1a16;
    --cream-dim: #1a1a16;
    --ink: #1a1a16;
    --ink-soft: #1a1a16;
    --olive: #1a3a16;
    --olive-deep: #1a3a16;
    --stone: #3a3a34;
    --line: #1a1a16;
    --rule: 2px solid #1a1a16;
    --rule-thin: 1px solid #1a1a16;
    --cardinal: #9b1c2c;
    --shadow: none;
  }
  body, html {
    background: #fff !important;
    color: #1a1a16 !important;
    box-shadow: none;
  }
  body::before, .grain, .nav, .menu-toggle, header nav, .masthead, .site-header, .site-footer,
  footer, .hero-photo, .hero-bleed, .no-print, .btn-row, .sidebar, #menu-toggle, .skip {
    display: none !important;
  }
  a { color: #1a1a16 !important; text-decoration: underline; }
  .hero { padding: 0 0 0.75rem; background: #fff !important; }
  .hero h1, h1, h2, h3, h4, .lede, .caption, figcaption, .prose, p, li {
    color: #1a1a16 !important;
    background: transparent !important;
  }
  .kicker { color: #9b1c2c !important; }
  .section, .wrap, .layout, .prose { width: auto; max-width: none; display: block; padding: 0; margin: 0; background: #fff !important; }
  .prose { max-width: none; }
  .table-wrap {
    box-shadow: none;
    background: #fff;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  table { min-width: 0; width: 100%; border-collapse: collapse; font-size: 0.85rem; }
  th, td { border: 1px solid #1a1a16; color: #1a1a16 !important; background: #fff !important; }
  thead th {
    background: #1a1a16 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  tbody tr:nth-child(even) { background: #f4f1ea !important; }
  .yes { color: #1a3a16 !important; }
  .no { color: #3a3a34 !important; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; page-break-inside: avoid; }
  .product, .callout, .card { box-shadow: none; border: 2px solid #1a1a16; background: #fff; break-inside: avoid; }
  .fig { break-inside: avoid; }
  h2, h3 { break-after: avoid; page-break-after: avoid; }
  .print-banner { display: block !important; margin: 0 0 1rem; font-family: var(--font-mono, monospace); font-size: 0.75rem; color: #1a1a16 !important; }
}
.print-banner { display: none; }
