/*
Theme Name: Outdoor Field Notes 1.0.1
Theme URI: https://outdoor.midnightcatnotes.com/
Author: Midnight Cat Notes
Description: Editorial outdoor gear reviews and Amazon affiliate buying guides.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: outdoor-field-notes
*/

:root {
  --forest: #184d35;
  --forest-dark: #103425;
  --ink: #17201b;
  --muted: #5c655f;
  --paper: #ffffff;
  --mist: #f3f6f2;
  --line: #dbe2dc;
  --sun: #e9a23b;
  --sky: #dcecf2;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-shell { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; background: #fff; padding: 10px 14px; }
.skip-link:focus { top: 16px; }

.affiliate-strip {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  color: #38423c;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  padding: 8px 20px;
}
.affiliate-strip a { font-weight: 700; color: var(--forest); }

.brand-bar { background: var(--forest); color: #fff; }
.brand-bar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  font-weight: 900;
  font-size: 18px;
}
.brand-name { display: block; font-weight: 850; font-size: 24px; line-height: 1.05; }
.brand-tagline { display: block; margin-top: 4px; color: #d7e8dd; font-size: 12px; text-transform: uppercase; font-weight: 700; }
.site-search { display: flex; align-items: stretch; width: min(360px, 42vw); }
.site-search label { flex: 1; }
.site-search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 3px 0 0 3px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
}
.site-search button {
  min-height: 42px;
  border: 0;
  border-left: 1px solid #cfd8d1;
  border-radius: 0 3px 3px 0;
  background: #fff;
  color: var(--forest-dark);
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.category-nav { background: var(--forest-dark); color: #fff; }
.category-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
}
.category-nav a { display: block; padding: 12px 15px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 750; white-space: nowrap; }
.category-nav a:hover { background: #286448; }
.mobile-nav { display: none; }

.hero {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: end;
  color: #fff;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 22, 15, .48); }
.hero-content { width: min(100% - 40px, var(--max)); margin-inline: auto; padding: 72px 0 54px; }
.eyebrow { margin: 0 0 12px; color: #ffca79; font-size: 13px; font-weight: 850; text-transform: uppercase; }
.hero h1 { max-width: 720px; margin: 0; font-size: 54px; line-height: 1.03; letter-spacing: 0; }
.hero p { max-width: 660px; margin: 18px 0 28px; font-size: 20px; line-height: 1.5; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 2px solid var(--sun);
  border-radius: 3px;
  background: var(--sun);
  color: #17201b;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}
.button-link:hover { background: #f3b65d; border-color: #f3b65d; }

.section { padding: 64px 0; }
.section-muted { background: var(--mist); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: 34px; line-height: 1.15; }
.section-heading p { max-width: 560px; margin: 0; color: var(--muted); }
.section-heading a { color: var(--forest); font-weight: 800; white-space: nowrap; }

.activity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.activity-tile {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  background: #263c30;
}
.activity-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.activity-tile::after { content: ""; position: absolute; inset: 45% 0 0; background: rgba(7, 20, 13, .62); }
.activity-tile span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; font-size: 21px; font-weight: 850; }
.activity-tile:hover img { transform: scale(1.025); }

.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story-card { border-bottom: 3px solid var(--forest); padding-bottom: 20px; }
.story-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; }
.story-card .story-meta { margin: 14px 0 6px; color: var(--forest); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.story-card h3 { margin: 0; font-size: 24px; line-height: 1.22; }
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { text-decoration: underline; }
.story-card p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

.trust-band { background: var(--sky); border-block: 1px solid #c6dbe3; }
.trust-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 56px; align-items: center; }
.trust-layout h2 { margin: 0 0 14px; font-size: 38px; line-height: 1.12; }
.trust-layout p { margin: 0; color: #354a50; }
.trust-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trust-point { border-left: 4px solid var(--forest); background: #fff; padding: 16px; }
.trust-point strong { display: block; font-size: 17px; }
.trust-point span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.guide-list a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 10px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 780; }
.guide-list a:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 24px; }
.guide-list a:nth-child(even) { padding-left: 24px; }
.guide-list a:hover { color: var(--forest); background: var(--mist); }
.guide-list span { color: var(--forest); }

.site-footer { background: #121a15; color: #d7ddd9; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer h2 { font-size: 22px; }
.site-footer h3 { font-size: 14px; text-transform: uppercase; }
.site-footer p { max-width: 560px; color: #b9c2bc; font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #fff; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #354039; display: flex; justify-content: space-between; gap: 20px; color: #9fa9a2; font-size: 12px; }

.content-wrap { width: min(100% - 40px, 820px); margin: 0 auto; padding: 64px 0 80px; }
.content-wrap h1 { margin: 0 0 12px; font-size: 46px; line-height: 1.1; }
.content-wrap h2 { margin-top: 44px; font-size: 30px; line-height: 1.2; }
.content-wrap h3 { margin-top: 32px; font-size: 23px; }
.content-wrap p, .content-wrap li { color: #344039; }
.content-wrap img { border-radius: 3px; }
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.article-disclosure { border-left: 4px solid var(--sun); background: #fff7e9; padding: 14px 16px; font-size: 13px; }
.archive-grid { margin-top: 34px; }

@media (max-width: 900px) {
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-grid { grid-template-columns: 1fr 1fr; }
  .editorial-grid .story-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 12px); }
  .trust-layout { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-shell { width: min(100% - 28px, var(--max)); }
  .brand-bar-inner { min-height: 70px; }
  .brand-name { font-size: 20px; }
  .brand-tagline { display: none; }
  .site-search { width: min(230px, 52vw); }
  .site-search button { padding: 0 12px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { min-height: 46px; display: flex; align-items: center; cursor: pointer; font-weight: 800; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; }
  .mobile-nav a { display: block; padding: 9px 0; color: #fff; text-decoration: none; }
  .hero { min-height: 420px; }
  .hero-content { width: min(100% - 28px, var(--max)); padding: 60px 0 36px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }
  .section { padding: 48px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 30px; }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-grid .story-card:last-child { grid-column: auto; max-width: none; }
  .guide-list { grid-template-columns: 1fr; }
  .guide-list a:nth-child(odd) { border-right: 0; padding-right: 10px; }
  .guide-list a:nth-child(even) { padding-left: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .content-wrap h1 { font-size: 38px; }
}

@media (max-width: 470px) {
  .affiliate-strip { font-size: 11px; }
  .brand-mark { width: 36px; height: 36px; font-size: 15px; }
  .brand-name { font-size: 17px; }
  .site-search { width: 150px; }
  .site-search input { min-width: 0; padding-inline: 10px; }
  .site-search button { font-size: 0; width: 42px; position: relative; }
  .site-search button::after { content: "Search"; font-size: 10px; }
  .hero h1 { font-size: 34px; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity-tile { min-height: 230px; }
  .trust-points { grid-template-columns: 1fr; }
}
