/*
Theme Name: Kevin Vs The Yard
Description: A WordPress field journal and outdoor equipment publication.
Version: 0.1.1
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
*/
@font-face {
  font-family: Barlow Condensed;
  src: url(assets/barlow.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Roboto Slab;
  src: url(assets/slab.woff2) format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
:root {
  --pine: #182b19;
  --dark: #112016;
  --paper: #f4ebd2;
  --ink: #20251c;
  --rust: #a53c09;
  --ochre: #f7a45e;
  --olive: #899a70;
  --line: #c2b395;
  --slab: "Roboto Slab", Georgia, serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--dark);
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 10% 8%, #fff4da55, transparent 65%), var(--paper);
  font:
    17px/1.55 Georgia,
    serif;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button,
select,
input {
  font: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a94715;
  outline-offset: 4px;
}
:is(.masthead, .hero, .site-footer, .video-band, .garage-card) a:focus-visible,
.masthead summary:focus-visible {
  outline-color: #ffb67d;
}
.wrap {
  width: min(100% - 64px, 1220px);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 5;
  padding: 10px 15px;
  background: #fff;
  color: #172519;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.masthead {
  position: relative;
  color: var(--paper);
  background: #17291c;
  isolation: isolate;
}
.masthead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #152719 5%, #1b3022eb 45%, #13251ad9),
    url(assets/meadow.webp) center 28% / cover;
}
.masthead-row {
  min-height: 115px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand a {
  display: inline-block;
  vertical-align: middle;
}
.brand img {
  width: clamp(145px, 19vw, 238px);
  max-height: 103px;
  object-fit: contain;
}
.tagline {
  font: 700 clamp(16px, 2vw, 27px) / 1.05 var(--cond);
  letter-spacing: 0.105em;
  text-transform: uppercase;
  text-align: center;
}
.site-search {
  position: relative;
  justify-self: end;
  font: 700 17px/1 var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-search summary {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  padding: 0 5px;
}
.site-search summary::-webkit-details-marker {
  display: none;
}
.search-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  margin-right: 4px;
}
.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  transform: rotate(45deg);
  background: currentColor;
}
.search-panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 4;
  width: min(335px, calc(100vw - 40px));
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 14px #0006;
}
.search-form {
  display: flex;
  gap: 8px;
}
.search-form label {
  flex: 1;
  min-width: 0;
}
.search-field {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #796c52;
  color: var(--ink);
  background: #fff9eb;
}
.search-submit,
.filters button {
  cursor: pointer;
  color: white;
  background: var(--rust);
  border: 0;
  padding: 8px 12px;
  font: 700 17px var(--cond);
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.primary-nav {
  background: #eee2c3;
  border-top: 3px solid #9b420e;
  border-bottom: 1px solid #9e8a60;
}
.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-links > li {
  position: relative;
}
.nav-links a {
  display: block;
  padding: 14px clamp(12px, 2.35vw, 35px);
  font: 700 19px/1.05 var(--cond);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links > li + li::before {
  content: "";
  position: absolute;
  top: 34%;
  bottom: 34%;
  left: 0;
  border-left: 1px solid #b9a781;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav-links .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links .sub-menu a {
  font-size: 16px;
  text-transform: none;
}
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
  border-bottom: 4px solid #a84111;
}
.hero-media {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 28%;
  background: #223525;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;
  filter: brightness(0.82) saturate(0.86);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      #111d13 3%,
      #111d13 23%,
      #111d13f0 34%,
      #111d13c9 42%,
      #111d1344 62%,
      transparent 81%
    ),
    linear-gradient(0deg, #12201770, transparent 28%);
}
.hero-inner {
  padding-block: 64px 74px;
  min-height: 490px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.eyebrow {
  margin: 0 0 7px;
  color: var(--rust);
  font: 700 16px/1.2 var(--cond);
  letter-spacing: 0.095em;
  text-transform: uppercase;
}
.hero-label {
  display: inline-block;
  padding: 6px 13px 7px;
  color: #fff4db;
  background: var(--rust);
  clip-path: polygon(0 4%, 97% 0, 100% 30%, 98% 99%, 1% 96%);
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--slab);
  font-weight: 900;
  line-height: 1.12;
}
h1 {
  font-size: clamp(2.65rem, 7vw, 5.5rem);
  letter-spacing: -0.051em;
}
.hero h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 6vw, 5.65rem);
  text-transform: uppercase;
  line-height: 0.98;
  text-wrap: balance;
}
.hero-deck {
  max-width: 470px;
  margin: 23px 0 25px;
  color: #fcf0d3;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
}
.hero-credit {
  position: absolute;
  bottom: 10px;
  right: 16px;
  background: #132016eb;
  color: #fff4dc;
  margin: 0;
  padding: 3px 9px;
  font-size: 0.76rem;
}
.button,
.text-link {
  font: 700 17px/1.1 var(--cond);
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  padding: 13px 19px 14px;
  border: 1px solid #ce6d36;
  color: #fff6e4;
  background: var(--rust);
  box-shadow: 2px 3px 0 #19160566;
}
.button:hover {
  background: #873309;
}
.text-link {
  color: var(--rust);
  display: inline-block;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link span {
  margin-left: 5px;
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  letter-spacing: -0.045em;
}
h3 {
  font-size: clamp(1.08rem, 2.25vw, 1.48rem);
  letter-spacing: -0.025em;
}
h3 a {
  text-decoration: none;
}
h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.garage-band {
  padding: 31px 0 38px;
  background: #e9ddbf;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}
.section-heading p {
  margin: 6px 0 0;
}
.garage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}
.garage-card {
  isolation: isolate;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 158px;
  aspect-ratio: 1.45;
  display: flex;
  align-items: end;
  overflow: hidden;
  text-decoration: none;
  background: #243725;
  color: #fff0d1;
  border: 1px solid #37472a;
}
.garage-card img,
.video-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.garage-chainsaws img {
  object-position: 50% 81%;
}
.garage-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(0deg, #111a10 0%, #111a10d9 19%, transparent 62%);
}
.garage-card:hover {
  outline: 2px solid #9d4111;
  outline-offset: 1px;
}
.garage-card span {
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  padding: 10px 11px;
  font: 700 clamp(1rem, 1.65vw, 1.38rem) / 1 var(--cond);
  text-transform: uppercase;
}
.garage-card b {
  color: var(--ochre);
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: 42px;
  padding-block: 40px 48px;
}
.section-heading.line {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  align-items: baseline;
  margin-bottom: 18px;
}
.story-row,
.spotlight-row {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 15px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.story-row:last-child,
.spotlight-row:last-child {
  margin-bottom: 0;
}
.story-row p:not(.eyebrow),
.spotlight-row p:not(.eyebrow) {
  margin: 6px 0;
  font-size: 0.94rem;
  line-height: 1.43;
}
.story-photo,
.spotlight-photo {
  display: block;
  aspect-ratio: 1.35;
  overflow: hidden;
  background: #cfc6a8;
}
.story-photo img,
.spotlight-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.draft-mark {
  color: #5c563e;
}
.video-band {
  background: #1b2e20;
  color: var(--paper);
  border-block: 1px solid #253b27;
  padding-block: 34px;
}
.video-row {
  display: grid;
  grid-template-columns: 1fr 1.42fr;
  gap: 44px;
  align-items: center;
}
.video-band :is(.eyebrow, .text-link) {
  color: var(--ochre);
}
.video-band h3 {
  margin-top: 12px;
}
.video-frame {
  position: relative;
  display: grid;
  place-items: center;
  background: #102016;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-frame img {
  object-position: 50% 68%;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--rust);
  color: white;
  text-decoration: none;
  font: 700 28px var(--cond);
}
.about-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 620px);
  gap: 25px;
  align-items: center;
  padding-block: 38px;
}
.portrait img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center 57%;
  border: 3px solid #a7936d;
}
.about-row p:not(.eyebrow) {
  margin: 7px 0;
}
.site-footer {
  background: #152619;
  color: var(--paper);
  padding-block: 36px;
  border-top: 3px solid #7f390f;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}
.footer-row p {
  margin: 7px 0;
}
.footer-links {
  margin: 0 0 9px;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 7px 17px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.94rem;
}
.wordmark {
  font: 900 25px/1 var(--slab);
  text-decoration: none;
}
.wordmark span {
  color: var(--ochre);
}
.archive-shell,
.article-shell {
  padding-block: 32px 58px;
  min-height: 55vh;
}
.article-shell {
  max-width: 810px;
}
.breadcrumb {
  font-size: 0.9rem;
  margin: 0 0 18px;
}
.article-shell h1,
.archive-shell h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
}
.article-shell .entry-content {
  margin-top: 22px;
}
.entry-content :is(h2, h3) {
  margin-top: 1.2em;
}
.entry-content a {
  color: var(--rust);
}
.entry-content figure {
  margin-inline: 0;
}
.entry-content img,
.entry-photo img {
  width: 100%;
  height: auto;
}
.entry-photo img {
  max-height: 600px;
  object-fit: cover;
}
.entry-meta {
  font-size: 0.92rem;
}
.detail-list > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.detail-list dt {
  font-weight: 700;
}
.detail-list dd {
  margin: 4px 0 0;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
  margin-top: 24px;
}
.archive-card {
  background: #f8efd9;
  padding: 17px;
  border: 1px solid var(--line);
}
.archive-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  margin-bottom: 12px;
}
.filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 24px;
}
.filters label {
  display: grid;
  gap: 4px;
  font-size: 0.91rem;
}
.filters select {
  max-width: 100%;
  min-height: 44px;
  background: #fff8e6;
  padding: 6px;
}
.filters button {
  min-height: 44px;
}
.pagination {
  margin-top: 22px;
}
@media (max-width: 930px) {
  .wrap {
    width: calc(100% - 44px);
  }
  .hero-inner {
    min-height: 445px;
  }
  .editorial-grid {
    gap: 25px;
  }
  .garage-card {
    min-height: 120px;
  }
  .section-heading.line {
    gap: 8px;
  }
  .story-row,
  .spotlight-row {
    grid-template-columns: 34% 1fr;
  }
}
@media (max-width: 690px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .masthead-row {
    grid-template-columns: 1fr auto;
    gap: 5px 16px;
    padding-block: 10px;
    min-height: 85px;
  }
  .tagline {
    grid-row: 2;
    grid-column: 1/-1;
    text-align: left;
    margin-left: 2px;
  }
  .site-search {
    grid-row: 1;
    grid-column: 2;
  }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: center;
  }
  .nav-links a {
    font-size: 16px;
    letter-spacing: 0.02em;
    padding: 11px 4px;
  }
  .nav-links > li:nth-child(4)::before {
    display: none;
  }
  .hero-inner {
    min-height: 440px;
    padding-block: 116px 52px;
    justify-content: flex-end;
  }
  .hero-media {
    inset: 0;
  }
  .hero-media img {
    object-position: 50% 53%;
  }
  .hero::after {
    background: linear-gradient(
      0deg,
      #111d13 4%,
      #111d13ec 26%,
      #111d1399 65%,
      #111d1326 100%
    );
  }
  .hero h1 {
    max-width: 530px;
  }
  .hero-deck {
    margin: 14px 0 18px;
  }
  .hero-credit {
    font-size: 0.66rem;
  }
  .garage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .garage-card:last-child {
    grid-column: 1/-1;
    aspect-ratio: 2.9;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading .text-link {
    max-width: 100px;
    text-align: right;
    flex: none;
  }
  .editorial-grid,
  .video-row {
    grid-template-columns: 1fr;
  }
  .editorial-grid {
    padding-block: 32px;
    gap: 30px;
  }
  .video-row {
    gap: 12px;
  }
  .portrait img {
    width: 88px;
    height: 88px;
  }
  .about-row {
    grid-template-columns: 88px 1fr;
    gap: 14px;
  }
  .footer-row {
    display: grid;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
}
.filters input {
  min-height: 44px;
  width: 7ch;
  padding: 6px;
  background: #fff8e6;
  border: 1px solid #796c52;
}
.related {
  margin-top: 28px;
}
.archive-card h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
}
.editorial-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
}
.video-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr);
}
.section-heading > * {
  min-width: 0;
}
@media (max-width: 690px) {
  .editorial-grid,
  .video-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.story-row h3 a:hover, .spotlight-row h3 a:hover { text-decoration: underline; }
