:root {
  --accent: #5c7213;
  --accent-dark: #495d6d;
  --heading: #444;
  --text: #666;
  --muted: #999;
  --page: #fffdff;
  --soft: #f7f8f9;
  --footer: #2e3038;
  --footer-line: #3d3f47;
  --max-width: 1320px;
  --header-height: 85px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
}

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

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--heading);
  font-weight: 400;
  line-height: 1.3;
}

p {
  margin: 0 0 1.8em;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 30px;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--header-height);
  color: #fff;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  color: var(--heading);
  background: rgba(255, 253, 255, 0.98);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 100%;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 180px;
}

.brand-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.brand-link::before {
  position: absolute;
  top: 26px;
  left: 0;
  width: 27px;
  height: 3px;
  content: "";
  background: currentColor;
  transition: width 0.25s ease;
}

.brand-link:hover::before,
.brand-link:focus-visible::before {
  width: 100%;
}

.site-header .brand-link:hover,
.site-header .brand-link:focus-visible {
  color: inherit;
}

.site-header.is-scrolled .brand-link {
  color: var(--accent);
}

.desktop-nav,
.desktop-nav ul {
  height: 100%;
}

.desktop-nav ul {
  display: flex;
  align-items: stretch;
  padding: 0;
  margin: 0;
  list-style: none;
}

.desktop-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 19px;
  color: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
  text-transform: uppercase;
}

.desktop-nav a::after {
  position: absolute;
  right: 19px;
  bottom: 26px;
  left: 19px;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a[aria-current="page"] {
  color: inherit;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header.is-scrolled .desktop-nav a:hover,
.site-header.is-scrolled .desktop-nav a:focus-visible,
.site-header.is-scrolled .desktop-nav a[aria-current="page"] {
  color: var(--accent-dark);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  padding: 0;
  color: #aaa;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-lines::before {
  top: -7px;
}

.menu-toggle-lines::after {
  top: 7px;
}

.mobile-menu {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  padding: 132px 44px 40px;
  background: var(--page);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 48.6px;
  color: var(--accent);
  font-size: 16.2px;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible,
.mobile-menu a[aria-current="page"] {
  color: var(--accent-dark);
}

.menu-close {
  position: absolute;
  top: 27px;
  right: 24px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #aaa;
  font: 300 34px/1 Arial, sans-serif;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Homepage hero */
.hero {
  position: relative;
  display: grid;
  min-height: 680px;
  height: 100vh;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
}

.hero-media,
.inner-hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(56%) brightness(110%);
}

.hero-media {
  object-position: center center;
}

.hero::after,
.inner-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: #303006;
  opacity: 0.56;
}

.hero-content {
  width: 100%;
  color: #fff;
}

.hero-copy {
  max-width: 900px;
  padding-top: 62px;
}

.hero-title {
  margin: 0 0 17px;
  color: #fff;
  font-size: 51px;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(100px);
  animation: hero-rise 0.75s 0.75s ease forwards;
}

.hero-description {
  max-width: 820px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19.5px;
  line-height: 1.6;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(100px);
  animation: hero-rise 0.75s 1s ease forwards;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 155px;
  min-height: 55px;
  padding: 12px 30px;
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  background: #fff;
  border: 2px solid #fff;
  opacity: 0;
  transform: translateY(100px);
  animation: hero-rise 0.75s 1.2s ease forwards;
}

.hero-button:hover,
.hero-button:focus-visible {
  color: #fff;
  background: transparent;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-content {
  padding-block: 75px;
}

.home-content h1 {
  margin-bottom: 28px;
  font-size: 33px;
  line-height: 1.3;
}

/* Inner pages */
.inner-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  isolation: isolate;
}

.inner-hero-media {
  object-position: center center;
}

.breadcrumbs {
  min-height: 44px;
  background: var(--page);
}

.breadcrumbs .container {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #999;
  font-size: 12.75px;
  font-weight: 700;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--heading);
}

.breadcrumbs span {
  padding-inline: 8px;
  color: #bbb;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 980px) minmax(280px, 340px);
  min-height: 594px;
}

.main-column {
  padding: 57px 37.5px 75px 30px;
}

.main-column > h1,
.page-article > h1,
.post-title {
  margin-bottom: 30px;
  font-size: 33px;
  line-height: 1.3;
}

.sidebar {
  padding: 52.5px 39.6px;
  background: var(--soft);
}

.widget + .widget {
  margin-top: 39px;
}

.widget-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 21px;
  color: var(--heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.widget-title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 2px;
  content: "";
  background: var(--accent);
}

.search-form {
  display: flex;
}

.search-form input {
  min-width: 0;
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  color: var(--text);
  font: inherit;
  background: #fff;
  border: 1px solid #e2e2e2;
  outline: 0;
}

.search-form input:focus {
  border-color: var(--accent);
}

.search-form button {
  width: 45px;
  color: #fff;
  font-size: 18px;
  background: var(--accent);
  border: 0;
  cursor: pointer;
}

.widget-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.widget-list li {
  padding-block: 8px;
  border-bottom: 1px solid #e8eaec;
}

.widget-list a {
  color: var(--text);
}

.widget-list a:hover,
.widget-list a:focus-visible {
  color: var(--accent);
}

.no-comments {
  margin: 0;
}

/* Blog listing */
.blog-column {
  padding: 57px 37.5px 75px 30px;
}

.blog-heading {
  margin-bottom: 36px;
  font-size: 33px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 52px;
}

.post-card-title {
  margin-bottom: 11px;
  font-size: 20.46px;
  font-weight: 400;
  line-height: 1.3;
}

.post-card-title a {
  color: var(--heading);
}

.post-card-title a:hover,
.post-card-title a:focus-visible {
  color: var(--accent);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12.75px;
  line-height: 1.7;
  text-transform: uppercase;
}

.post-meta a {
  color: var(--muted);
}

.post-excerpt {
  margin-bottom: 25px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 199px;
  min-height: 53px;
  padding: 10px 24px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  background: #f5f3f5;
}

.read-more:hover,
.read-more:focus-visible {
  color: #fff;
  background: var(--accent);
}

.search-summary {
  display: none;
  padding: 12px 15px;
  margin-bottom: 30px;
  color: var(--heading);
  background: var(--soft);
}

.search-summary.is-visible {
  display: block;
}

.post-card[hidden] {
  display: none;
}

/* Single posts */
.post-article {
  max-width: 100%;
}

.post-title {
  margin-bottom: 12px;
}

.post-article .post-meta {
  margin-bottom: 30px;
}

.post-content strong {
  color: var(--heading);
}

.post-content figure {
  margin: 32px 0 0;
}

.post-content img {
  width: auto;
  max-width: 100%;
}

.post-note {
  padding: 17px 20px;
  margin-top: 42px;
  color: #777;
  background: var(--soft);
  border-left: 3px solid var(--accent);
}

/* 404 */
.not-found {
  min-height: calc(100vh - 291px);
  padding-block: 150px 120px;
  text-align: center;
}

.not-found h1 {
  margin-bottom: 15px;
  font-size: clamp(46px, 8vw, 92px);
  color: var(--accent);
}

.not-found h2 {
  font-size: 29px;
}

.not-found-link {
  display: inline-flex;
  padding: 10px 24px;
  margin-top: 15px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent);
}

/* Footer */
.footer-spacer {
  height: 60px;
  background: var(--page);
}

.site-footer {
  min-height: 116px;
  color: #aaa;
  background: var(--footer);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  padding-top: 21px;
  padding-bottom: 21px;
  border-top: 2px solid var(--footer-line);
}

.copyright {
  margin: 0;
}

.footer-note {
  margin: 0;
  font-size: 12.75px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.back-to-top {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 24px;
  display: grid;
  visibility: hidden;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  place-items: center;
  background: rgba(46, 48, 56, 0.85);
  border: 0;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  visibility: visible;
  opacity: 1;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--accent);
}

@media (max-width: 1152px) {
  .site-header {
    position: relative;
    color: var(--heading);
    background: var(--page);
  }

  .site-header .brand-link {
    color: var(--accent);
  }

  .site-header.is-scrolled {
    box-shadow: none;
  }

  .inner-hero {
    height: min(400px, 26.0417vw);
  }
}

@media (max-width: 1024px) {
  .page-layout {
    display: block;
  }

  .main-column,
  .blog-column {
    padding-right: 30px;
  }

  .sidebar {
    padding-inline: 30px;
  }
}

@media (max-width: 800px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-branding {
    min-width: 0;
  }

  .brand-link {
    font-size: 16.2px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 13.5px;
    line-height: 1.8;
  }

  .container {
    padding-inline: 13.5px;
  }

  .header-inner {
    padding-inline: 16px 10px;
  }

  .brand-link::before {
    top: 27px;
    width: 24px;
  }

  .hero {
    min-height: 0;
    height: 70vmax;
    max-height: 650px;
  }

  .hero-media {
    width: auto;
    max-width: none;
    min-width: 100%;
    height: 100%;
    object-position: center center;
  }

  .hero-copy {
    max-width: 100%;
    text-align: center;
  }

  .hero-title {
    margin-bottom: 14px;
    font-size: 30.375px;
    line-height: 1.1;
  }

  .hero-description {
    max-width: 355px;
    margin: 0 auto 22px;
    font-size: 14.58px;
    line-height: 1.4;
    letter-spacing: 0.35px;
  }

  .hero-button {
    min-width: 128px;
    min-height: 45px;
    padding: 9px 24px;
  }

  .home-content {
    padding-block: 67.5px;
  }

  .home-content h1,
  .main-column > h1,
  .page-article > h1,
  .blog-heading,
  .post-title {
    font-size: 29.7px;
    line-height: 1.3;
  }

  .inner-hero {
    height: 26.0417vw;
    min-height: 90px;
    max-height: 150px;
  }

  .breadcrumbs .container {
    min-height: 42px;
    font-size: 11.5px;
  }

  .main-column,
  .blog-column {
    padding: 52px 13.5px 67.5px;
  }

  .sidebar {
    padding: 47px 27px;
  }

  .blog-heading {
    margin-bottom: 31px;
  }

  .post-grid {
    gap: 48px;
  }

  .post-card-title {
    font-size: 18.41px;
    line-height: 1.3;
  }

  .post-meta {
    font-size: 11.5px;
  }

  .read-more {
    min-width: 180px;
    min-height: 48px;
    padding: 8px 20px;
  }

  .footer-spacer {
    height: 54px;
  }

  .site-footer,
  .footer-inner {
    min-height: 206px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    text-align: center;
  }

  .back-to-top {
    right: 15px;
    bottom: 15px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
