/*
Theme Name: Redfield Ledger
Author: Maren Holt Studio
Description: A mobile-first classic WordPress publishing theme with an editorial red-and-white layout, editable homepage copy, dynamic menus, and flexible post grids.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: wpfg-theme
*/

:root {
  --wpfg-bg: #ffffff;
  --wpfg-ink: #0a0a0a;
  --wpfg-muted: #5f5f5f;
  --wpfg-soft: #f6efe3;
  --wpfg-soft-green: #dfead6;
  --wpfg-line: #e9e9e9;
  --wpfg-red: #ff2e31;
  --wpfg-red-dark: #d51219;
  --wpfg-focus: #174ee8;
  --wpfg-container: 1168px;
  --wpfg-single: 980px;
  --wpfg-radius: 8px;
  --wpfg-font-mono: "DM Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wpfg-font-display: Impact, Haettenschweiler, "Arial Black", "Arial Narrow Bold", sans-serif;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--wpfg-ink);
  background: var(--wpfg-bg);
  font-family: var(--wpfg-font-mono);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--wpfg-red-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: #ffffff;
  background: var(--wpfg-red);
}

.wpfg-body {
  overflow-x: hidden;
}

.wpfg-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border: 1px solid var(--wpfg-ink);
  border-radius: var(--wpfg-radius);
  color: #ffffff;
  background: var(--wpfg-ink);
  text-decoration: none;
  transition: transform 160ms ease;
}

.wpfg-skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--wpfg-focus);
  outline-offset: 2px;
}

.wpfg-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wpfg-site {
  min-height: 100vh;
}

.wpfg-container {
  width: min(calc(100% - 32px), var(--wpfg-container));
  margin: 0 auto;
}

.wpfg-site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--wpfg-line);
  backdrop-filter: blur(16px);
}

body.admin-bar .wpfg-site-header {
  top: 32px;
}

.wpfg-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--wpfg-container));
  min-height: 68px;
  margin: 0 auto;
  gap: 16px;
}

.wpfg-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--wpfg-red);
  text-decoration: none;
  text-transform: uppercase;
}

.wpfg-brand-mark {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--wpfg-red);
  border-radius: var(--wpfg-radius);
  color: #ffffff;
  background: var(--wpfg-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.wpfg-brand-logo {
  display: inline-flex;
  flex: 0 0 auto;
}

.wpfg-brand-logo-image {
  width: 42px;
  height: 42px;
  border-radius: var(--wpfg-radius);
  object-fit: cover;
}

.wpfg-brand-text {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.wpfg-brand-name {
  overflow: hidden;
  max-width: 48vw;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wpfg-brand-description {
  overflow: hidden;
  max-width: 48vw;
  color: var(--wpfg-muted);
  font-size: 0.68rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wpfg-menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--wpfg-line);
  border-radius: var(--wpfg-radius);
  color: var(--wpfg-red);
  background: #ffffff;
}

.wpfg-menu-toggle:focus-visible {
  outline: 3px solid var(--wpfg-focus);
  outline-offset: 2px;
}

.wpfg-toggle-bars {
  display: grid;
  width: 18px;
  gap: 4px;
}

.wpfg-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.wpfg-menu-toggle[aria-expanded="true"] .wpfg-toggle-line:first-child {
  transform: translateY(6px) rotate(45deg);
}

.wpfg-menu-toggle[aria-expanded="true"] .wpfg-toggle-line:nth-child(2) {
  opacity: 0;
}

.wpfg-menu-toggle[aria-expanded="true"] .wpfg-toggle-line:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.wpfg-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  left: 16px;
  z-index: 120;
  max-height: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--wpfg-radius);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(10, 10, 10, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: max-height 220ms ease, opacity 180ms ease, border-color 180ms ease;
}

.wpfg-nav.wpfg-is-open {
  max-height: 72vh;
  overflow: auto;
  border-color: var(--wpfg-line);
  opacity: 1;
  pointer-events: auto;
}

.wpfg-header-inner:focus-within .wpfg-nav,
.wpfg-body.wpfg-menu-open .wpfg-nav,
.wpfg-nav[aria-hidden="false"] {
  max-height: 72vh;
  overflow: auto;
  border-color: var(--wpfg-line);
  opacity: 1;
  pointer-events: auto;
}

.wpfg-menu,
.wpfg-sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wpfg-menu {
  display: grid;
  padding: 8px;
  gap: 4px;
}

.wpfg-sub-menu {
  display: grid;
  margin-left: 12px;
  padding-left: 10px;
  border-left: 1px solid var(--wpfg-line);
}

.wpfg-menu-item {
  position: relative;
}

.wpfg-menu-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--wpfg-radius);
  color: var(--wpfg-ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.wpfg-menu-link:hover,
.wpfg-menu-link:focus-visible,
.wpfg-menu-item-current > .wpfg-menu-link {
  color: #ffffff;
  background: var(--wpfg-red);
  outline: 0;
}

.wpfg-main {
  width: 100%;
}

.wpfg-hero {
  padding: clamp(30px, 5vw, 54px) 0 clamp(48px, 9vw, 96px);
}

.wpfg-hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  color: var(--wpfg-red);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.wpfg-hero-meta-item {
  margin: 0;
}

.wpfg-hero-meta-item:nth-child(2) {
  text-align: left;
}

.wpfg-hero-meta-item:nth-child(3) {
  text-align: left;
}

.wpfg-hero-title {
  position: relative;
  z-index: 1;
  display: block;
  width: 100vw;
  margin: clamp(34px, 7vw, 76px) 0 clamp(22px, 5vw, 42px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  color: var(--wpfg-red);
  font-family: var(--wpfg-font-display);
  font-size: clamp(4rem, 19vw, 15rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  isolation: isolate;
}

.wpfg-hero-title-track {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  will-change: transform;
  animation: wpfg-title-marquee 10s linear infinite;
}

.wpfg-hero-title-text {
  display: block;
  flex: 0 0 auto;
  padding-inline: clamp(10px, 2vw, 28px);
}

@keyframes wpfg-title-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.wpfg-hero-title:not(:has(.wpfg-hero-title-track)) {
  overflow: visible;
  animation: wpfg-title-slide 5s ease-in-out infinite alternate;
}

@keyframes wpfg-title-slide {
  from {
    transform: translateX(-12vw);
  }

  to {
    transform: translateX(12vw);
  }
}

.wpfg-hero-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(94vw, 1060px);
  height: clamp(150px, 30vw, 330px);
  border-radius: var(--wpfg-radius) var(--wpfg-radius) 120px var(--wpfg-radius);
  background-image: url("assets/images/wpfg-hero-backdrop.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.28;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.wpfg-hero-text {
  max-width: 720px;
  margin: 0 auto;
  color: var(--wpfg-red);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.wpfg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.wpfg-home-visual {
  width: min(100%, 980px);
  margin: clamp(28px, 5vw, 52px) auto 0;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--wpfg-red);
  border-radius: var(--wpfg-radius) var(--wpfg-radius) 110px var(--wpfg-radius);
  background:
    linear-gradient(135deg, rgba(255, 46, 49, 0.08), transparent 45%),
    var(--wpfg-soft);
}

.wpfg-home-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wpfg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--wpfg-red);
  border-radius: var(--wpfg-radius);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.wpfg-button:focus-visible {
  outline: 3px solid var(--wpfg-focus);
  outline-offset: 2px;
}

.wpfg-button-primary {
  color: #ffffff;
  background: var(--wpfg-red);
}

.wpfg-button-primary:hover {
  color: #ffffff;
  background: var(--wpfg-red-dark);
  border-color: var(--wpfg-red-dark);
}

.wpfg-button-secondary {
  color: var(--wpfg-red);
  background: #ffffff;
}

.wpfg-button-secondary:hover {
  color: #ffffff;
  background: var(--wpfg-red);
}

.wpfg-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 4vw, 48px);
  margin-top: clamp(48px, 8vw, 78px);
}

.wpfg-feature-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.wpfg-feature-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.45 / 1;
  border-radius: var(--wpfg-radius) var(--wpfg-radius) 92px var(--wpfg-radius);
  background: var(--wpfg-soft);
  text-decoration: none;
}

.wpfg-feature-card:nth-child(even) .wpfg-feature-media {
  border-radius: var(--wpfg-radius) var(--wpfg-radius) var(--wpfg-radius) 92px;
  background: var(--wpfg-red);
}

.wpfg-feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.wpfg-feature-media:hover .wpfg-feature-image {
  transform: scale(1.035);
}

.wpfg-feature-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--wpfg-red);
  background:
    linear-gradient(135deg, rgba(255, 46, 49, 0.14), transparent 46%),
    var(--wpfg-soft);
  font-family: var(--wpfg-font-display);
  font-size: clamp(4rem, 13vw, 8rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.wpfg-feature-card:nth-child(even) .wpfg-feature-placeholder {
  color: #ffffff;
  background: var(--wpfg-red);
}

.wpfg-feature-title {
  margin: 0;
  color: var(--wpfg-red);
  font-size: clamp(1.1rem, 2.4vw, 1.42rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.wpfg-feature-title-link {
  text-decoration: none;
}

.wpfg-feature-date {
  margin: 0;
  color: var(--wpfg-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.wpfg-section {
  padding: clamp(52px, 8vw, 92px) 0;
  border-top: 1px solid var(--wpfg-line);
}

.wpfg-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(24px, 5vw, 42px);
}

.wpfg-section-kicker {
  margin: 0;
  color: var(--wpfg-red);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wpfg-section-title {
  max-width: 860px;
  margin: 0;
  color: var(--wpfg-ink);
  font-family: var(--wpfg-font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.wpfg-section-text {
  max-width: 660px;
  margin: 0;
  color: var(--wpfg-muted);
  font-size: 0.94rem;
}

.wpfg-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.wpfg-post-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--wpfg-line);
}

.wpfg-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.3 / 1;
  border-radius: var(--wpfg-radius);
  background: var(--wpfg-soft-green);
  text-decoration: none;
}

.wpfg-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.wpfg-card-media:hover .wpfg-card-image {
  transform: scale(1.035);
}

.wpfg-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #ffffff;
  background: var(--wpfg-red);
  font-family: var(--wpfg-font-display);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
}

.wpfg-card-body {
  display: grid;
  gap: 10px;
}

.wpfg-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--wpfg-red);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.wpfg-card-topic {
  text-decoration: none;
}

.wpfg-card-topic:hover {
  text-decoration: underline;
}

.wpfg-card-title {
  margin: 0;
  color: var(--wpfg-ink);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 800;
  line-height: 1.14;
  text-transform: uppercase;
}

.wpfg-card-title-link {
  text-decoration: none;
}

.wpfg-card-title-link:hover {
  color: var(--wpfg-red);
}

.wpfg-card-excerpt {
  margin: 0;
  color: var(--wpfg-muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.55;
}

.wpfg-card-more {
  width: fit-content;
  color: var(--wpfg-red);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.wpfg-card-more::after {
  content: " ->";
}

.wpfg-archive-head {
  padding: clamp(48px, 8vw, 90px) 0 clamp(30px, 5vw, 56px);
}

.wpfg-archive-title {
  max-width: 960px;
  margin: 0;
  color: var(--wpfg-red);
  font-family: var(--wpfg-font-display);
  font-size: clamp(3.4rem, 14vw, 12rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.wpfg-archive-description {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--wpfg-muted);
}

.wpfg-empty {
  display: grid;
  gap: 10px;
  max-width: 680px;
  padding: 22px;
  border: 1px solid var(--wpfg-line);
  border-radius: var(--wpfg-radius);
  background: #ffffff;
}

.wpfg-empty-title {
  margin: 0;
  color: var(--wpfg-red);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.wpfg-empty-text {
  margin: 0;
  color: var(--wpfg-muted);
}

.wpfg-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 36px;
}

.wpfg-pagination a,
.wpfg-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--wpfg-red);
  border-radius: var(--wpfg-radius);
  color: var(--wpfg-red);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.wpfg-pagination a:hover {
  color: #ffffff;
  background: var(--wpfg-red);
}

.wpfg-single-wrap {
  width: min(80vw, var(--wpfg-single));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 88px) 0;
}

.wpfg-single-header {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(28px, 5vw, 46px);
}

.wpfg-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--wpfg-red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wpfg-single-meta a {
  color: var(--wpfg-red);
  text-decoration: none;
}

.wpfg-single-title {
  margin: 0;
  color: var(--wpfg-red);
  font-family: var(--wpfg-font-display);
  font-size: clamp(3.2rem, 13vw, 11rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.wpfg-entry-content {
  color: var(--wpfg-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.02rem, 2.2vw, 1.16rem);
  line-height: 1.75;
}

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

.wpfg-entry-content h1,
.wpfg-entry-content h2,
.wpfg-entry-content h3,
.wpfg-entry-content h4,
.wpfg-entry-content h5,
.wpfg-entry-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.55em;
  color: var(--wpfg-red);
  font-family: var(--wpfg-font-mono);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wpfg-entry-content a {
  color: var(--wpfg-red);
}

.wpfg-entry-content img,
.wpfg-entry-content figure {
  border-radius: var(--wpfg-radius);
}

.wpfg-entry-content blockquote {
  margin-right: 0;
  margin-left: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--wpfg-red);
  color: var(--wpfg-ink);
  background: var(--wpfg-soft);
}

.wpfg-entry-content pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: var(--wpfg-radius);
  color: #ffffff;
  background: var(--wpfg-ink);
}

.wpfg-entry-content code {
  border-radius: 4px;
  background: rgba(255, 46, 49, 0.12);
}

.wpfg-entry-content pre code {
  background: transparent;
}

.wpfg-entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.wpfg-entry-content th,
.wpfg-entry-content td {
  padding: 10px;
  border: 1px solid var(--wpfg-line);
  text-align: left;
}

.wpfg-entry-footer {
  display: grid;
  gap: 16px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--wpfg-line);
}

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

.wpfg-tax-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--wpfg-red);
  border-radius: var(--wpfg-radius);
  color: var(--wpfg-red);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.wpfg-tax-link:hover {
  color: #ffffff;
  background: var(--wpfg-red);
}

.wpfg-post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 34px;
}

.wpfg-post-nav-link {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--wpfg-line);
  border-radius: var(--wpfg-radius);
  color: var(--wpfg-ink);
  text-decoration: none;
}

.wpfg-post-nav-link:hover {
  border-color: var(--wpfg-red);
}

.wpfg-post-nav-label {
  color: var(--wpfg-red);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wpfg-post-nav-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.wpfg-site-footer {
  border-top: 1px solid var(--wpfg-red);
  background: var(--wpfg-red);
  color: #ffffff;
}

.wpfg-footer-inner {
  display: grid;
  width: min(calc(100% - 32px), var(--wpfg-container));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 58px) 0;
  gap: 24px;
}

.wpfg-footer-brand {
  display: grid;
  gap: 8px;
}

.wpfg-footer-title {
  margin: 0;
  font-family: var(--wpfg-font-display);
  font-size: clamp(2.4rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.wpfg-footer-text {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.wpfg-footer-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.wpfg-footer-widget {
  color: rgba(255, 255, 255, 0.82);
}

.wpfg-footer-widget a {
  color: #ffffff;
}

.wpfg-footer-widget ul {
  margin: 0;
  padding-left: 18px;
}

.wpfg-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.wpfg-footer-link {
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 782px) {
  body.admin-bar .wpfg-site-header {
    top: 46px;
  }

  .wpfg-home-visual {
    aspect-ratio: 4 / 3;
    border-radius: var(--wpfg-radius) var(--wpfg-radius) 54px var(--wpfg-radius);
  }
}

@media (min-width: 700px) {
  .wpfg-hero-meta {
    grid-template-columns: 1fr auto 1fr;
  }

  .wpfg-hero-meta-item:nth-child(2) {
    text-align: center;
  }

  .wpfg-hero-meta-item:nth-child(3) {
    text-align: right;
  }

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

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

@media (min-width: 980px) {
  .wpfg-menu-toggle {
    display: none;
  }

  .wpfg-nav {
    position: static;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    opacity: 1;
  }

  .wpfg-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    gap: 4px;
  }

  .wpfg-sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    min-width: 190px;
    margin-left: 0;
    padding: 8px;
    border: 1px solid var(--wpfg-line);
    border-radius: var(--wpfg-radius);
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .wpfg-menu-item-parent:hover > .wpfg-sub-menu,
  .wpfg-menu-item-parent:focus-within > .wpfg-sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .wpfg-menu-link {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.72rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .wpfg-hero-title-track,
  .wpfg-hero-title:not(:has(.wpfg-hero-title-track)) {
    animation-duration: 10s !important;
    animation-iteration-count: infinite !important;
  }
}
