/*
Theme Name: Verdant Ledger
Author: Marlow Field
Description: A classic WordPress publishing theme for polished editorial sites with dynamic menus, Customizer controls, and flexible article layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: w4t-theme
*/

:root {
  --w4t-bg: #060e0e;
  --w4t-panel: #0c3126;
  --w4t-surface: #132a2a;
  --w4t-text: #f6f9f7;
  --w4t-muted: #bac8c3;
  --w4t-accent: #18d17a;
  --w4t-border: #214a3f;
  --w4t-font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --w4t-hero-image: none;
}

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

html {
  scroll-behavior: smooth;
}

body.w4t-body {
  min-height: 100vh;
  margin: 0;
  color: var(--w4t-text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(24, 209, 122, 0.11), transparent 36%),
    var(--w4t-bg);
  background-size: 64px 64px, 64px 64px, auto, auto;
  font-family: var(--w4t-font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.w4t-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.w4t-skip-link:focus {
  z-index: 9999;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--w4t-bg);
  background: var(--w4t-text);
  border-radius: 999px;
}

.w4t-container {
  width: min(100% - 40px, 1204px);
  margin-inline: auto;
}

.w4t-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 14, 14, 0.82);
  border-bottom: 1px solid rgba(246, 249, 247, 0.08);
  backdrop-filter: blur(18px);
}

.w4t-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.w4t-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.w4t-brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 5px solid var(--w4t-accent);
  border-left-color: transparent;
  border-radius: 7px;
  transform: rotate(45deg);
}

.w4t-brand__mark::after {
  position: absolute;
  inset: 4px;
  content: "";
  border-radius: 3px;
  border-left: 4px solid var(--w4t-accent);
  transform: rotate(-45deg);
}

.w4t-brand__logo {
  width: auto;
  max-width: 170px;
  max-height: 42px;
}

.w4t-brand__name {
  overflow: hidden;
  color: var(--w4t-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w4t-nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--w4t-text);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
}

.w4t-nav-toggle__bar,
.w4t-nav-toggle__bar::before,
.w4t-nav-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.w4t-nav-toggle__bar {
  position: relative;
}

.w4t-nav-toggle__bar::before,
.w4t-nav-toggle__bar::after {
  position: absolute;
  left: 0;
}

.w4t-nav-toggle__bar::before {
  top: -7px;
}

.w4t-nav-toggle__bar::after {
  top: 7px;
}

.w4t-nav-toggle[aria-expanded="true"] .w4t-nav-toggle__bar {
  background: transparent;
}

.w4t-nav-toggle[aria-expanded="true"] .w4t-nav-toggle__bar::before {
  transform: translateY(7px) rotate(45deg);
}

.w4t-nav-toggle[aria-expanded="true"] .w4t-nav-toggle__bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

.w4t-navigation {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  left: 0;
  display: none;
  padding: 14px;
  background: rgba(12, 49, 38, 0.98);
  border: 1px solid var(--w4t-border);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.w4t-navigation--open {
  display: block;
}

.w4t-menu {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.w4t-menu__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--w4t-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 10px;
  transition: color 180ms ease, background 180ms ease;
}

.w4t-menu__link:hover,
.w4t-menu__link:focus,
.w4t-menu__link[aria-current="page"] {
  color: var(--w4t-text);
  background: rgba(246, 249, 247, 0.08);
  outline: none;
}

.w4t-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 64px;
  background:
    linear-gradient(180deg, rgba(6, 14, 14, 0.72), rgba(6, 14, 14, 0.94)),
    var(--w4t-hero-image);
  background-position: center;
  background-size: cover;
}

.w4t-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(246, 249, 247, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 249, 247, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 96%);
}

.w4t-hero__content {
  display: grid;
  justify-items: center;
  max-width: 996px;
  margin-inline: auto;
  text-align: center;
}

.w4t-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 47px;
  padding: 6px 14px 6px 8px;
  color: var(--w4t-text);
  background: var(--w4t-panel);
  border: 1px solid rgba(246, 249, 247, 0.08);
  border-radius: 999px;
}

.w4t-proof__icons {
  display: flex;
  flex: 0 0 auto;
}

.w4t-proof__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  color: var(--w4t-bg);
  background: linear-gradient(135deg, var(--w4t-accent), #f6f9f7);
  border: 2px solid var(--w4t-panel);
  border-radius: 999px;
}

.w4t-proof__icon + .w4t-proof__icon {
  margin-left: -9px;
}

.w4t-proof__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w4t-proof__text {
  overflow: hidden;
  color: var(--w4t-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w4t-hero__title {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--w4t-text);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

.w4t-hero__accent {
  color: var(--w4t-accent);
}

.w4t-hero__description {
  max-width: 610px;
  margin: 16px 0 0;
  color: var(--w4t-muted);
  font-size: 16px;
  line-height: 1.45;
}

.w4t-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 13px 32px;
  color: var(--w4t-bg);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  background: var(--w4t-text);
  border: 1px solid rgba(246, 249, 247, 0.45);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(24, 209, 122, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.w4t-button:hover,
.w4t-button:focus {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 18px 38px rgba(24, 209, 122, 0.24);
}

.w4t-hero__button {
  margin-top: 30px;
}

.w4t-feature-row {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  padding: 0;
  margin: 30px 0 0;
  color: var(--w4t-muted);
  list-style: none;
}

.w4t-feature-row__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.w4t-feature-row__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  overflow: hidden;
  color: var(--w4t-bg);
  background: var(--w4t-accent);
  border-radius: 999px;
}

.w4t-feature-row__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w4t-hero-media {
  position: relative;
  display: block;
  width: min(100%, 1064px);
  margin: 54px auto 0;
  overflow: hidden;
  background: rgba(246, 249, 247, 0.05);
  border: 1px solid rgba(246, 249, 247, 0.16);
  border-radius: 16px;
  box-shadow: 0 0 0 7px rgba(24, 209, 122, 0.08), 0 30px 90px rgba(0, 0, 0, 0.36);
}

.w4t-hero-media img {
  width: 100%;
  aspect-ratio: 1.62 / 1;
  object-fit: cover;
}

.w4t-hero-media__button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--w4t-bg);
  background: var(--w4t-accent);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.w4t-hero-media__button::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  content: "";
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid currentColor;
}

.w4t-main {
  position: relative;
}

.w4t-section {
  padding: 70px 0;
}

.w4t-section__header {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 30px;
}

.w4t-section__header--center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.w4t-kicker {
  color: var(--w4t-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.w4t-section__title {
  margin: 0;
  color: var(--w4t-text);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
}

.w4t-section__copy,
.w4t-entry__summary {
  margin: 0;
  color: var(--w4t-muted);
}

.w4t-intro-panel {
  padding: 28px;
  background: rgba(19, 42, 42, 0.66);
  border: 1px solid var(--w4t-border);
  border-radius: 16px;
}

.w4t-intro-panel p {
  margin: 0;
  color: var(--w4t-muted);
}

.w4t-post-grid {
  display: grid;
  gap: 18px;
}

.w4t-card {
  overflow: hidden;
  background: rgba(19, 42, 42, 0.82);
  border: 1px solid var(--w4t-border);
  border-radius: 16px;
}

.w4t-card__media {
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(24, 209, 122, 0.18), rgba(246, 249, 247, 0.06));
}

.w4t-card__media img,
.w4t-card__placeholder {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.w4t-card__placeholder {
  display: block;
}

.w4t-card__body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.w4t-card__date,
.w4t-entry__meta,
.w4t-single__meta {
  color: var(--w4t-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.w4t-card__title {
  margin: 0;
  color: var(--w4t-text);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.18;
}

.w4t-card__excerpt {
  margin: 0;
  color: var(--w4t-muted);
  font-size: 15px;
}

.w4t-card__link {
  color: var(--w4t-text);
}

.w4t-card__link:hover,
.w4t-card__link:focus {
  color: var(--w4t-accent);
  outline: none;
}

.w4t-empty {
  padding: 30px;
  color: var(--w4t-muted);
  text-align: center;
  background: rgba(19, 42, 42, 0.55);
  border: 1px solid var(--w4t-border);
  border-radius: 16px;
}

.w4t-single {
  padding: 54px 0 80px;
}

.w4t-single__header {
  display: grid;
  gap: 16px;
  max-width: 890px;
  margin: 0 auto 34px;
  text-align: center;
}

.w4t-single__title {
  margin: 0;
  color: var(--w4t-text);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.05;
}

.w4t-single__categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.w4t-single__category {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  color: var(--w4t-text);
  background: var(--w4t-panel);
  border: 1px solid var(--w4t-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.w4t-single__image {
  width: min(100% - 40px, 1064px);
  margin: 0 auto 42px;
  overflow: hidden;
  border: 1px solid rgba(246, 249, 247, 0.16);
  border-radius: 16px;
  box-shadow: 0 0 0 7px rgba(24, 209, 122, 0.08), 0 30px 90px rgba(0, 0, 0, 0.36);
}

.w4t-single__image img {
  width: 100%;
  aspect-ratio: 1.62 / 1;
  object-fit: cover;
}

.w4t-content {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
  color: var(--w4t-text);
  font-size: 18px;
}

.w4t-content > * {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.w4t-content h2,
.w4t-content h3,
.w4t-content h4 {
  color: var(--w4t-text);
  line-height: 1.15;
}

.w4t-content p,
.w4t-content li {
  color: var(--w4t-muted);
}

.w4t-content a {
  color: var(--w4t-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.w4t-post-nav {
  display: grid;
  gap: 12px;
  width: min(100% - 40px, 760px);
  margin: 48px auto 0;
}

.w4t-post-nav__link {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: rgba(19, 42, 42, 0.68);
  border: 1px solid var(--w4t-border);
  border-radius: 16px;
}

.w4t-post-nav__label {
  color: var(--w4t-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.w4t-post-nav__title {
  color: var(--w4t-text);
  font-weight: 600;
  line-height: 1.25;
}

.w4t-footer {
  padding: 56px 0 30px;
  background: rgba(4, 10, 10, 0.82);
  border-top: 1px solid rgba(246, 249, 247, 0.08);
}

.w4t-footer__grid {
  display: grid;
  gap: 30px;
}

.w4t-footer__brand {
  display: grid;
  gap: 14px;
}

.w4t-footer__title {
  margin: 0;
  color: var(--w4t-text);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.w4t-footer__copy {
  max-width: 520px;
  margin: 0;
  color: var(--w4t-muted);
}

.w4t-footer__heading {
  margin: 0 0 12px;
  color: var(--w4t-text);
  font-size: 15px;
  font-weight: 700;
}

.w4t-footer__links {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.w4t-footer__link {
  color: var(--w4t-muted);
  font-size: 15px;
}

.w4t-footer__link:hover,
.w4t-footer__link:focus {
  color: var(--w4t-accent);
  outline: none;
}

.w4t-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.w4t-social__link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: var(--w4t-bg);
  background: var(--w4t-text);
  border-radius: 999px;
}

.w4t-social__link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.w4t-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 26px;
  margin-top: 36px;
  color: var(--w4t-muted);
  border-top: 1px solid rgba(246, 249, 247, 0.08);
  font-size: 14px;
}

@media (min-width: 700px) {
  .w4t-feature-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .w4t-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .w4t-post-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .w4t-container {
    width: min(100% - 60px, 1204px);
  }

  .w4t-nav-toggle {
    display: none;
  }

  .w4t-navigation {
    position: static;
    display: block;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .w4t-menu {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .w4t-menu__link {
    min-height: auto;
    padding: 0;
    font-size: 14px;
    background: transparent;
  }

  .w4t-menu__link:hover,
  .w4t-menu__link:focus,
  .w4t-menu__link[aria-current="page"] {
    color: var(--w4t-text);
    background: transparent;
  }

  .w4t-hero {
    padding: 50px 0 78px;
  }

  .w4t-hero__title {
    margin-top: 20px;
    font-size: 51px;
    line-height: 1;
  }

  .w4t-section__title {
    font-size: 48px;
    line-height: 1.1;
  }

  .w4t-post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .w4t-footer__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.55fr) minmax(180px, 0.55fr);
    align-items: start;
  }

  .w4t-single__title {
    font-size: 54px;
  }
}

@media (max-width: 420px) {
  .w4t-container,
  .w4t-content,
  .w4t-single__image {
    width: min(100% - 32px, 1204px);
  }

  .w4t-header__inner {
    min-height: 64px;
  }

  .w4t-brand {
    font-size: 22px;
  }

  .w4t-hero {
    padding-top: 70px;
  }

  .w4t-proof {
    width: 100%;
    justify-content: center;
  }

  .w4t-proof__text {
    white-space: normal;
  }

  .w4t-hero__button,
  .w4t-button {
    width: 100%;
  }

  .w4t-hero-media {
    width: calc(100% + 44px);
    margin-top: 52px;
    margin-left: -22px;
    border-radius: 14px;
  }

  .w4t-hero-media img {
    aspect-ratio: 1.61 / 1;
  }
}
