/* ==========================================================================
   foxvalleymedia.com - single stylesheet
   Mobile-first. Breakpoints: 480px, 768px, 1024px.
   Light theme only: every surface sets background-color and color explicitly.
   ========================================================================== */

:root {
  color-scheme: only light;

  --paper: #ffffff;
  --ink: #262626;
  --text: #2b2b2b;
  --muted: #575757;

  --green: #5fa334;
  --green-num: #4e8e29;
  --green-ink: #3b7319;
  --green-deep: #2a5510;
  --green-hover: #72b847;
  --olive: #5b7d1e;
  --tint: #f1f7ec;
  --grey: #eeeeee;
  --line: #dddddd;

  --radius: 6px;
  --font-head: "Fjalla One", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Merriweather", Georgia, "Times New Roman", serif;

  --measure: 720px;
  --wide: 860px;
  --cols: minmax(16px, 1fr) min(var(--measure), calc(100% - 32px)) minmax(16px, 1fr);
  --band-pad: clamp(44px, 7vw, 84px);
  --nav-h: 52px;
}

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

html {
  background-color: #ffffff;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 4px);
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--green-deep);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #1b1b1b;
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background-color: #1b1b1b;
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 18px;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip:focus {
  top: 8px;
  color: #ffffff;
}

/* ---------- Masthead ---------------------------------------------------- */

.masthead {
  background-color: #ffffff;
  color: var(--ink);
  text-align: center;
  padding: 22px 16px 14px;
}

.masthead__brand {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(28px, 8.6vw, 50px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #1b1b1b;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.masthead__brand b {
  font-weight: 400;
  color: var(--green-num);
}

.masthead__brand:hover {
  color: #1b1b1b;
  opacity: 0.8;
}

.masthead__label {
  display: block;
  width: max-content;
  margin: 8px auto 0;
  padding: 4px 11px 3px;
  border: 1px solid #1b1b1b;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1b1b1b;
  background-color: #ffffff;
}

/* ---------- Sticky navigation rail ------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 0 #e4e4e4;
}

.nav__bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  padding: 0 8px 0 16px;
}

.js .nav__bar {
  display: flex;
}

.nav__title {
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  background-color: var(--grey);
  color: #1b1b1b;
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nav__toggle:hover {
  background-color: #e2e2e2;
}

.nav__toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.nav.is-open .nav__toggle::after {
  transform: translateY(2px) rotate(-135deg);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(20px, 3.4vw, 44px);
  margin: 0;
  padding: 4px 16px 6px;
  list-style: none;
  background-color: #ffffff;
}

.js .nav__list {
  display: none;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  padding: 0 16px 10px;
  border-top: 1px solid var(--line);
}

.js .nav.is-open .nav__list {
  display: flex;
}

.js .nav__list li + li {
  border-top: 1px solid #eeeeee;
}

.nav__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}

.nav__list a:hover {
  color: var(--green-ink);
}

.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: transparent;
  pointer-events: none;
}

.nav__progress i {
  display: block;
  height: 100%;
  background-color: var(--green);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
}

.nav--static {
  position: static;
}

/* ---------- Hero -------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(16px, 1fr) min(900px, calc(100% - 32px)) minmax(16px, 1fr);
  grid-template-areas:
    ". title ."
    ". rule ."
    ". dek ."
    ". byline ."
    ". media ."
    ". glance .";
  padding: clamp(28px, 5vw, 60px) 0 clamp(8px, 2vw, 24px);
  background-color: #ffffff;
  color: var(--text);
}

.hero__title {
  grid-area: title;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(28px, 5.4vw, 52px);
  line-height: 1.16;
  letter-spacing: 0.015em;
  text-align: center;
  color: var(--ink);
  text-wrap: balance;
}

.hero__rule {
  grid-area: rule;
  width: 90px;
  height: 2px;
  margin: clamp(22px, 3.5vw, 34px) 0 clamp(18px, 3vw, 26px);
  margin-left: max(0px, calc((100% - 820px) / 2));
  background-color: var(--olive);
}

.hero__dek {
  grid-area: dek;
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(20px, 3.4vw, 30px);
  line-height: 1.3;
  letter-spacing: 0.005em;
  text-align: center;
  color: var(--ink);
  text-wrap: balance;
}

.hero__byline {
  grid-area: byline;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

.hero .hero__media {
  grid-area: media;
  width: 100%;
  max-width: 820px;
  margin: clamp(24px, 4vw, 36px) auto 0;
}

.glance {
  grid-area: glance;
  width: 100%;
  max-width: 820px;
  margin: 6px auto 0;
  padding: 0;
  list-style: none;
}

/* Option rows: grey rounded rows with a white tick box (hero glance + checklist) */

.glance li,
.checks li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  margin: 10px 0 0;
  padding: 12px 16px 12px 62px;
  border-radius: var(--radius);
  background-color: var(--grey);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.glance li::before,
.checks li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border: 1px solid #cfcfcf;
  border-radius: 5px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.6 3.6 7.4-8.2' fill='none' stroke='%234e8e29' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ---------- Media frames ------------------------------------------------ */

.frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  background-color: #2a2a2a;
}

.frame--wide {
  aspect-ratio: 16 / 9;
}

.frame--loop {
  aspect-ratio: 40 / 21;
}

.frame--tall {
  aspect-ratio: 21 / 40;
}

.frame img,
.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure {
  margin: 0;
}

.figure__cap {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  font-style: italic;
  color: var(--muted);
}

/* ---------- Article bands ---------------------------------------------- */

.story {
  background-color: #ffffff;
  color: var(--text);
}

.band {
  display: grid;
  grid-template-columns: var(--cols);
  padding-block: var(--band-pad);
  background-color: #ffffff;
  color: var(--text);
}

.band > *,
.thing > * {
  grid-column: 2;
  min-width: 0;
}

.band > .thing {
  grid-column: 1 / -1;
}

.band > .wide,
.thing > .wide {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(var(--wide), calc(100% - 32px));
}

.band--tint {
  background-color: var(--tint);
}

.band h2 {
  margin: 0 0 0.75em;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(27px, 4.6vw, 40px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.band h2::before {
  content: "";
  display: block;
  width: 90px;
  height: 2px;
  margin-bottom: 18px;
  background-color: var(--olive);
}

.band p {
  margin: 0 0 1.35em;
  font-size: clamp(17px, 1rem + 0.2vw, 18px);
}

.band p:last-child {
  margin-bottom: 0;
}

.band strong {
  font-weight: 700;
  color: var(--ink);
}

/* Numbered things */

.thing {
  display: grid;
  grid-template-columns: var(--cols);
}

.thing + .thing {
  margin-top: clamp(40px, 6vw, 64px);
}

.thing::before {
  content: "";
  grid-column: 2;
  height: 2px;
  margin-bottom: clamp(26px, 4vw, 38px);
  background-image: linear-gradient(90deg, var(--olive) 0 90px, var(--line) 90px 100%);
}

.band > h2 + .thing {
  margin-top: clamp(8px, 2vw, 20px);
}

.band > h2 + .thing::before,
.band > .thing:first-child::before {
  display: none;
}

.thing__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.thing__no {
  flex: none;
  font-family: var(--font-head);
  font-size: clamp(46px, 10vw, 68px);
  line-height: 0.9;
  color: var(--green-num);
}

.thing__title {
  margin: 0;
  padding-top: 2px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(22px, 3.8vw, 30px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.thing .figure {
  margin-top: 30px;
}

.flow::after {
  content: "";
  display: block;
  clear: both;
}

.flow .figure {
  margin: 28px 0;
}

/* Steps list (what happens next) */

.steps {
  margin: 0 0 1.35em;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 48px;
  counter-increment: step;
  font-size: clamp(17px, 1rem + 0.2vw, 18px);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--green);
  color: #1a1a1a;
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1;
}

/* ---------- Calls to action -------------------------------------------- */

.cta {
  text-align: center;
}

.thing > .cta,
.band > p + .cta {
  margin-top: clamp(30px, 4.5vw, 46px);
}

.band .cta__lead {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 24px;
  border-radius: var(--radius);
  background-color: var(--green);
  color: #1a1a1a;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--green-ink);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cta__btn::after {
  content: "\2192";
  font-size: 1.1em;
  transition: transform 0.18s ease;
}

.cta__btn:hover {
  background-color: var(--green-hover);
  color: #111111;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--green-ink);
}

.cta__btn:hover::after {
  transform: translateX(4px);
}

.cta__btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--green-ink);
}

.band .cta-note {
  max-width: 36em;
  margin: 14px auto 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- What you need (checklist + portrait loop) ------------------ */

.need {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "list"
    "media";
}

.band > .need {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(var(--wide), calc(100% - 32px));
}

.need__intro {
  grid-area: intro;
}

.need .checks {
  grid-area: list;
  align-self: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.need .checks li {
  margin-top: 0;
  margin-bottom: 10px;
  background-color: #ffffff;
}

.need__media {
  grid-area: media;
  width: min(100%, 250px);
  margin: 0 auto;
}

/* ---------- Footer ------------------------------------------------------ */

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "company"
    "links"
    "note";
  gap: 18px 48px;
  padding: 56px max(16px, calc((100% - var(--wide)) / 2)) 56px;
  background-color: #ffffff;
  background-image: linear-gradient(var(--olive), var(--olive));
  background-repeat: no-repeat;
  background-size: 90px 2px;
  background-origin: content-box;
  background-position: 0 -40px;
  color: #4d4d4d;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
}

.company {
  grid-area: company;
  min-width: 0;
}

.company p {
  margin: 0 0 0.9em;
}

.company p:first-child {
  font-weight: 700;
  color: #262626;
}

.foot_links {
  grid-area: links;
  min-width: 0;
}

.foot_links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot_links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--green-ink);
  font-size: 13px;
}

.foot_links a:hover {
  color: var(--green-deep);
}

.footer_note {
  grid-area: note;
  max-width: 80ch;
  margin: 0;
  color: #4d4d4d;
}

/* ---------- About and legal pages --------------------------------------- */

.legal {
  display: grid;
  grid-template-columns: var(--cols);
  padding-block: clamp(36px, 6vw, 72px) clamp(48px, 7vw, 88px);
  background-color: #ffffff;
  color: var(--text);
}

.legal > * {
  grid-column: 2;
  min-width: 0;
}

.legal h1 {
  margin: 0 0 0.4em;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.15;
  letter-spacing: 0.012em;
  color: var(--ink);
  text-wrap: balance;
}

.legal h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 2px;
  margin-top: 18px;
  background-color: var(--olive);
}

.legal .version-line {
  margin: 0 0 30px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.legal h2 {
  margin: 1.9em 0 0.5em;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(22px, 3.6vw, 28px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.legal p,
.legal ul {
  margin: 0 0 1.2em;
  font-size: 16px;
  line-height: 1.75;
}

.legal ul {
  padding-left: 1.25em;
}

.legal li {
  margin-bottom: 0.5em;
}

.legal address {
  margin: 0 0 1.2em;
  font-style: normal;
  font-size: 16px;
  line-height: 1.75;
}

.legal .standfirst {
  font-size: clamp(17px, 1rem + 0.25vw, 19px);
  color: var(--ink);
}

/* ---------- Breakpoints ------------------------------------------------- */

@media (min-width: 480px) {
  body {
    font-size: 17.5px;
  }

  .cta__btn {
    display: inline-flex;
    padding-inline: 44px;
  }

  .glance li,
  .checks li {
    font-size: 21px;
  }
}

@media (min-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .js .nav__bar {
    display: none;
  }

  .js .nav .nav__list,
  .js .nav.is-open .nav__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 4px 16px 6px;
    border-top: 0;
  }

  .js .nav__list li + li {
    border-top: 0;
  }

  .nav__list a {
    min-height: 52px;
    font-size: 21px;
  }

  .nav__list a:hover {
    box-shadow: inset 0 -3px 0 var(--green);
  }

  .masthead {
    padding-top: 30px;
    padding-bottom: 18px;
  }

  .flow .figure--right {
    float: right;
    width: 300px;
    margin: 6px 0 18px 32px;
  }

  .flow .figure--left {
    float: left;
    width: 300px;
    margin: 6px 32px 18px 0;
  }

  .need {
    gap: 28px 48px;
    grid-template-columns: minmax(0, 1fr) 260px;
    grid-template-areas:
      "intro media"
      "list media";
  }

  .need__media {
    width: 100%;
    margin: 0;
  }

  .footer {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-areas:
      "company links"
      "note note";
    gap: 24px 56px;
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }

  .thing__head {
    align-items: center;
    gap: 18px;
  }

  .band p,
  .steps li {
    line-height: 1.8;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
