/*
Theme Name: Verdant Table Journal
Author: Mira Dalton Studio
Description: A classic PHP WordPress theme with dynamic menus, categories, Customizer controls, and a genomeplatform-derived gp prefix.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gp-theme
*/

:root {
  --gp-bg: #f5ece4;
  --gp-surface: #eadfd4;
  --gp-text: #111111;
  --gp-muted: #676767;
  --gp-accent: #7f7239;
  --gp-footer: #1b3c2d;
  --gp-white: #ffffff;
  --gp-body-font: "Instrument Sans", "Geist", Arial, sans-serif;
  --gp-heading-font: "Fraunces", Georgia, serif;
  --gp-container: min(100% - 32px, 1180px);
  --gp-radius: 28px;
  --gp-radius-sm: 16px;
  --gp-shadow: 0 24px 80px rgba(17, 17, 17, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gp-bg);
  color: var(--gp-text);
  font-family: var(--gp-body-font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.gp-skip-link:focus {
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  white-space: normal;
  z-index: 1000;
  background: var(--gp-white);
  color: var(--gp-text);
  border-radius: 999px;
}

.gp-site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  padding: 18px 0;
}

.gp-header-inner {
  width: var(--gp-container);
  margin: 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--gp-white);
}

.gp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--gp-heading-font);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.gp-brand .custom-logo {
  width: auto;
  max-height: 38px;
}

.gp-main-nav {
  display: none;
}

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

.gp-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.gp-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-weight: 600;
  color: var(--gp-white);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gp-menu a:hover,
.gp-menu a:focus-visible {
  opacity: 0.72;
  transform: translateY(-1px);
}

.gp-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gp-button,
.gp-icon-button,
.gp-card-link,
.gp-newsletter button,
.gp-post-nav a {
  cursor: pointer;
}

.gp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gp-accent);
  color: var(--gp-white);
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.gp-button:hover,
.gp-button:focus-visible {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--gp-accent) 88%, #000000);
}

.gp-button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
}

.gp-button-outline:hover,
.gp-button-outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.gp-desktop-cta {
  display: none;
}

.gp-menu-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.gp-icon-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: var(--gp-white);
  background: rgba(255, 255, 255, 0.12);
}

.gp-icon-button-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  position: relative;
  transition: background 160ms ease;
}

.gp-icon-button-line::before,
.gp-icon-button-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: top 160ms ease, transform 160ms ease;
}

.gp-icon-button-line::before {
  top: -7px;
}

.gp-icon-button-line::after {
  top: 7px;
}

.gp-mobile-panel {
  width: var(--gp-container);
  margin: 8px auto 0;
  padding: 22px;
  border-radius: 24px;
  background: var(--gp-footer);
  color: var(--gp-white);
  box-shadow: var(--gp-shadow);
}

.gp-mobile-panel {
  display: none;
}

.gp-menu-checkbox:checked ~ .gp-mobile-panel {
  display: block;
}

.gp-menu-checkbox:checked ~ .gp-header-inner .gp-icon-button-line {
  background: transparent;
}

.gp-menu-checkbox:checked ~ .gp-header-inner .gp-icon-button-line::before,
.gp-menu-checkbox:checked ~ .gp-header-inner .gp-icon-button-line::after {
  top: 0;
}

.gp-menu-checkbox:checked ~ .gp-header-inner .gp-icon-button-line::before {
  transform: rotate(45deg);
}

.gp-menu-checkbox:checked ~ .gp-header-inner .gp-icon-button-line::after {
  transform: rotate(-45deg);
}

.gp-mobile-menu a,
.gp-mobile-categories a {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-weight: 700;
  color: var(--gp-white);
}

.gp-mobile-menu .gp-menu {
  display: grid;
  gap: 10px;
}

.gp-mobile-categories {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.gp-mobile-categories .gp-category-list {
  display: grid;
  gap: 10px;
}

.gp-main {
  min-height: 70vh;
}

.gp-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--gp-white);
  background-color: var(--gp-footer);
  background-position: center;
  background-size: cover;
}

.gp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 28%);
}

.gp-hero-inner {
  position: relative;
  z-index: 1;
  width: var(--gp-container);
  margin: 0 auto;
  padding: 170px 0 72px;
  display: grid;
  gap: 34px;
}

.gp-hero-copy {
  max-width: 970px;
}

.gp-eyebrow,
.gp-section-kicker,
.gp-card-meta,
.gp-entry-meta {
  color: var(--gp-accent);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.gp-hero .gp-eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.gp-hero h1,
.gp-single-hero h1,
.gp-section-heading,
.gp-footer-cta h2 {
  margin: 0;
  font-family: var(--gp-heading-font);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
}

.gp-hero h1 {
  max-width: 1060px;
  font-size: clamp(54px, 9vw, 126px);
}

.gp-hero p {
  max-width: 670px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.gp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.gp-hero-lower {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
}

.gp-category-band {
  padding: 26px 0 0;
}

.gp-category-wrap,
.gp-section-inner,
.gp-posts-inner,
.gp-footer-inner,
.gp-single-inner {
  width: var(--gp-container);
  margin: 0 auto;
}

.gp-category-wrap {
  display: grid;
  gap: 14px;
}

.gp-category-list,
.gp-category-pills {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gp-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gp-category-pills a,
.gp-category-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--gp-accent) 32%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--gp-surface) 78%, var(--gp-white));
  color: var(--gp-text);
  font-weight: 700;
}

.gp-section {
  padding: 76px 0;
}

.gp-section-soft {
  background: var(--gp-surface);
}

.gp-intro-grid {
  display: grid;
  gap: 34px;
}

.gp-intro-copy {
  max-width: 760px;
}

.gp-section-heading {
  font-size: clamp(42px, 6vw, 82px);
}

.gp-section-text {
  margin: 18px 0 0;
  color: var(--gp-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.gp-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gp-icon-tile {
  min-height: 138px;
  padding: 22px;
  border-radius: var(--gp-radius-sm);
  background: var(--gp-bg);
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.gp-icon-tile img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.gp-icon-tile span {
  font-weight: 800;
  color: var(--gp-text);
}

.gp-posts-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
}

.gp-post-grid {
  display: grid;
  gap: 22px;
}

.gp-post-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--gp-radius);
  background: color-mix(in srgb, var(--gp-surface) 58%, var(--gp-white));
}

.gp-post-card:hover .gp-card-media img {
  transform: scale(1.04);
}

.gp-card-media {
  aspect-ratio: 1.24 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gp-footer), var(--gp-accent));
}

.gp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.home .gp-post-card .gp-card-media,
.blog .gp-post-card .gp-card-media {
  display: block;
}

.home .gp-card-title,
.blog .gp-card-title,
.home .gp-card-excerpt,
.blog .gp-card-excerpt,
.home .gp-card-meta,
.blog .gp-card-meta {
  display: block;
}

.single-post .gp-single-hero {
  background-image: none !important;
}

.gp-mobile-categories {
  display: none !important;
}

.gp-card-body {
  padding: 22px;
}

.gp-card-title {
  margin: 9px 0 10px;
  font-family: var(--gp-heading-font);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.08;
}

.gp-card-title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 180ms ease;
}

.gp-card-title a:hover,
.gp-card-title a:focus-visible {
  background-size: 100% 2px;
}

.gp-card-excerpt {
  margin: 0;
  color: var(--gp-muted);
}

.gp-card-link {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
  color: var(--gp-accent);
}

.gp-empty {
  padding: 34px;
  border-radius: var(--gp-radius-sm);
  background: var(--gp-surface);
  color: var(--gp-muted);
}

.gp-archive-header {
  padding: 160px 0 54px;
  background: var(--gp-footer);
  color: var(--gp-white);
}

.gp-archive-header .gp-section-heading {
  color: var(--gp-white);
}

.gp-archive-grid {
  padding: 54px 0 82px;
}

.gp-single-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background-color: var(--gp-footer);
  background-position: center;
  background-size: cover;
  color: var(--gp-white);
}

.gp-single-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.42) 44%, rgba(0, 0, 0, 0.76));
}

.gp-single-hero-content {
  position: relative;
  z-index: 1;
  width: var(--gp-container);
  margin: 0 auto;
  padding: 170px 0 72px;
}

.gp-single-hero h1 {
  max-width: 980px;
  font-size: clamp(46px, 7vw, 104px);
}

.gp-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.gp-single-inner {
  display: grid;
  gap: 32px;
  padding: 64px 0 86px;
}

.gp-entry-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.78;
}

.gp-entry-content > * + * {
  margin-top: 1.25em;
}

.gp-entry-content h2,
.gp-entry-content h3,
.gp-entry-content h4 {
  font-family: var(--gp-heading-font);
  line-height: 1.1;
}

.gp-entry-content a {
  color: var(--gp-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gp-entry-content img {
  border-radius: var(--gp-radius-sm);
}

.gp-post-nav {
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid color-mix(in srgb, var(--gp-text) 12%, transparent);
}

.gp-post-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--gp-surface);
  font-weight: 800;
}

.gp-site-footer {
  background: var(--gp-footer);
  color: var(--gp-white);
}

.gp-footer-inner {
  padding: 70px 0 28px;
}

.gp-footer-cta {
  display: grid;
  gap: 24px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.gp-footer-cta h2 {
  max-width: 780px;
  font-size: clamp(38px, 6vw, 82px);
}

.gp-footer-grid {
  display: grid;
  gap: 28px;
  padding: 42px 0;
}

.gp-footer-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.gp-footer-text,
.gp-footer a,
.gp-footer-bottom {
  color: rgba(255, 255, 255, 0.76);
}

.gp-footer-menu {
  display: grid;
  gap: 10px;
}

.gp-footer-menu a,
.gp-footer-categories a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
}

.gp-footer .gp-category-list a {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
}

.gp-footer a:hover,
.gp-footer a:focus-visible {
  color: var(--gp-white);
}

.gp-newsletter {
  position: relative;
  display: flex;
  margin-top: 16px;
}

.gp-newsletter input {
  width: 100%;
  min-height: 54px;
  padding: 0 132px 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--gp-white);
  background: color-mix(in srgb, var(--gp-footer) 82%, var(--gp-white));
  outline: none;
}

.gp-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.gp-newsletter button {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--gp-accent);
  color: var(--gp-white);
  font-weight: 800;
}

.gp-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
}

@media (min-width: 700px) {
  .gp-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gp-footer-cta,
  .gp-intro-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .gp-footer-grid {
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  }
}

@media (min-width: 1024px) {
  .gp-site-header {
    padding: 26px 0;
  }

  .gp-main-nav,
  .gp-desktop-cta {
    display: block;
  }

  .gp-menu-toggle {
    display: none;
  }

  .gp-hero {
    min-height: 820px;
  }

  .gp-hero-inner {
    padding-bottom: 86px;
  }

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

  .gp-post-card:nth-child(1) {
    grid-column: span 2;
  }

  .gp-post-card:nth-child(1) .gp-card-media {
    aspect-ratio: 1.5 / 1;
  }
}

@media (max-width: 520px) {
  .gp-header-inner {
    min-height: 54px;
  }

  .gp-brand {
    font-size: 20px;
  }

  .gp-hero {
    min-height: 660px;
  }

  .gp-hero-inner {
    padding-bottom: 46px;
  }

  .gp-hero h1 {
    font-size: 48px;
  }

  .gp-button {
    width: 100%;
  }

  .gp-icon-grid {
    grid-template-columns: 1fr;
  }

  .gp-card-body {
    padding: 20px;
  }
}
