/*
Theme Name: How Not To Grow Tomatoes
Theme URI: https://hownottogrowtomatoes.com
Author: How Not To Grow Tomatoes
Description: Classic WordPress theme reproducing the How Not To Grow Tomatoes design — warm paper background, tomato red accent, leafy green, Fraunces display type and Inter Tight body type. Includes homepage, category archive and troubleshooting article templates.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hnttg
*/

/* ---------------------------------------------------------
   Design tokens (ported 1:1 from the original site)
--------------------------------------------------------- */
:root {
  --radius: 0.9rem;
  --background: oklch(0.98 0.012 85);
  --foreground: oklch(0.24 0.02 60);
  --paper: oklch(0.965 0.016 82);
  --card: oklch(0.995 0.006 90);
  --primary: oklch(0.56 0.19 27);
  --primary-foreground: oklch(0.99 0.01 90);
  --leaf: oklch(0.46 0.09 145);
  --leaf-foreground: oklch(0.99 0.01 90);
  --muted-foreground: oklch(0.48 0.018 65);
  --accent: oklch(0.92 0.035 95);
  --soil: oklch(0.42 0.045 60);
  --border: oklch(0.89 0.018 80);
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-card: 0 12px 30px -18px rgba(90, 55, 25, 0.5);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
}

/* ---------------------------------------------------------
   Layout helpers
--------------------------------------------------------- */
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.narrow {
  max-width: 48rem;
  margin: 0 auto;
}

.muted {
  color: var(--muted-foreground);
}

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.section {
  padding-top: 3.5rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-leaf {
  background: var(--leaf);
  color: var(--leaf-foreground);
  padding: 0.5rem 1rem;
}

.btn-outline {
  background: var(--card);
  border-color: var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cta {
  display: none;
  padding: 0.5rem 1rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: transparent;
  padding: 0.5rem 0.65rem;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.mobile-nav li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav li:last-child {
  border-bottom: 0;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
}

.mobile-cta {
  margin: 0.75rem 1rem 1rem;
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
}

@media (min-width: 640px) {
  .wrap,
  .header-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ---------------------------------------------------------
   Breadcrumbs
--------------------------------------------------------- */
.breadcrumbs {
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.breadcrumbs .current {
  color: var(--foreground);
}

/* ---------------------------------------------------------
   Homepage hero
--------------------------------------------------------- */
.hero {
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  margin-top: 1rem;
}

.hero p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin: 1.25rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: 1.5rem;
}

@media (min-width: 640px) {
  .hero-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ---------------------------------------------------------
   Section headings, cards, grids
--------------------------------------------------------- */
.section-heading {
  max-width: 40rem;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.section-heading p {
  margin: 0.75rem 0 0;
  color: var(--muted-foreground);
}

.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-card);
}

.card img {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.125rem;
  line-height: 1.35;
}

.card:hover .card-body h3 {
  color: var(--primary);
}

.card-body p {
  margin: 0.5rem 0 0;
  flex: 1;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.card-more {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.problem-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.5rem;
  transition: border-color 0.15s ease;
}

.problem-card:hover {
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
}

.problem-card .icon {
  font-size: 1.875rem;
}

.problem-card h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.problem-card .line {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.problem-card .examples {
  margin: 0.75rem 0 0;
  flex: 1;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.problem-card .btn-leaf {
  margin-top: 1.25rem;
  width: fit-content;
}

.list-links {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .list-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.list-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 1rem 1.25rem;
  font-size: 0.97rem;
  font-weight: 500;
}

.list-links a:hover {
  border-color: color-mix(in oklab, var(--primary) 60%, transparent);
  color: var(--primary);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.panel-leaf {
  margin-top: 5rem;
  border: 1px solid color-mix(in oklab, var(--leaf) 30%, transparent);
  background: color-mix(in oklab, var(--leaf) 5%, var(--background));
  border-radius: 1.5rem;
  padding: 2rem;
}

.panel-leaf h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  max-width: 40rem;
}

.panel-leaf p {
  max-width: 40rem;
  line-height: 1.7;
}

.panel-paper {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--paper);
  padding: 1.5rem;
}

/* ---------------------------------------------------------
   Symptom finder (troubleshooting page)
--------------------------------------------------------- */
.symptom-groups {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .symptom-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .symptom-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.symptom-group {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.25rem;
}

.symptom-group h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
}

.symptom-group ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  flex: 1;
}

.symptom-group ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
}

.symptom-group ul a:hover {
  background: var(--accent);
  color: var(--primary);
}

.symptom-group .all-link {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
}

/* ---------------------------------------------------------
   Article template
--------------------------------------------------------- */
.article-header {
  padding-top: 1.5rem;
}

.article-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
}

.article-header h1 {
  margin-top: 0.75rem;
  font-size: clamp(1.875rem, 5vw, 2.6rem);
  line-height: 1.15;
}

.standfirst {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.article-hero {
  margin-top: 2rem;
  aspect-ratio: 3 / 2;
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
}

.entry-content {
  margin-top: 2.5rem;
}

.entry-content p {
  margin-block: 1rem;
  line-height: 1.75;
  font-size: 1.0625rem;
}

.entry-content h2 {
  font-size: 1.65rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.entry-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
  margin-block: 1rem;
}

.entry-content li {
  margin-block: 0.4rem;
  line-height: 1.7;
}

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content img {
  border-radius: 1rem;
}

/* Callout boxes used inside article body content */
.hnttg-box {
  margin-top: 2.5rem;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
}

.hnttg-box > h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.hnttg-box.quick-answer {
  border-color: color-mix(in oklab, var(--primary) 25%, transparent);
  background: color-mix(in oklab, var(--primary) 5%, var(--background));
}

.hnttg-box.quick-answer dl {
  margin: 1rem 0 0;
}

.hnttg-box.quick-answer dt {
  font-weight: 600;
  margin-top: 1rem;
}

.hnttg-box.quick-answer dd {
  margin: 0.25rem 0 0;
  color: var(--muted-foreground);
}

.hnttg-box.avoid {
  border-color: var(--border);
  background: color-mix(in oklab, var(--accent) 60%, var(--background));
}

.hnttg-box.recovery {
  border-color: color-mix(in oklab, var(--leaf) 30%, transparent);
  background: color-mix(in oklab, var(--leaf) 5%, var(--background));
}

.related-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  overflow: hidden;
}

.related-list li + li {
  border-top: 1px solid var(--border);
}

.related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  font-weight: 500;
}

.related-list a:hover {
  color: var(--primary);
}

.disclaimer-note {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.disclaimer-note a {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   Email signup
--------------------------------------------------------- */
.email-signup {
  margin: 4rem 0;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--paper);
  padding: 2rem;
}

.email-signup h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
}

.email-signup p {
  color: var(--muted-foreground);
}

.email-signup form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 32rem;
}

.email-signup input[type="email"] {
  width: 100%;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.875rem;
}

.email-signup input[type="email"]:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--primary) 40%, transparent);
}

@media (min-width: 640px) {
  .email-signup {
    padding: 2.5rem;
  }
  .email-signup form {
    flex-direction: row;
    align-items: center;
  }
}

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

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  background: var(--paper);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand {
  max-width: 24rem;
}

.footer-brand p:first-child {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.footer-brand p + p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-legal {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-legal a {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .footer-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .footer-nav ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* ---------------------------------------------------------
   Pagination / misc
--------------------------------------------------------- */
.pagination {
  margin-top: 3rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  background: var(--card);
}

.pagination .page-numbers.current {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.page-hero h1 {
  font-size: clamp(1.875rem, 5vw, 2.6rem);
  padding-top: 1.5rem;
}

.archive-intro p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

.error404 {
  padding: 6rem 0;
  text-align: center;
}

/* ---------------------------------------------------------
   Gutenberg homepage blocks (theme 1.2.0)
   The homepage is a normal Page built from core blocks. These rules make
   core block markup look identical to the original hand-built homepage.
   Selectors are doubled up because core/group can render with or without
   an inner container wrapper.
--------------------------------------------------------- */
.hnttg-home-blocks {
  overflow-x: hidden;
}

.hnttg-home-blocks > * {
  margin: 0;
}

/* Full-bleed hero */
.hnttg-hero {
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  width: 100%;
}

.hnttg-hero-cols {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  gap: 2.5rem;
  align-items: center;
}

.hnttg-hero-cols.wp-block-columns {
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .hnttg-hero-cols {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hnttg-hero-cols {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.hnttg-hero-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  margin: 1rem 0 0;
}

.hnttg-hero-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin: 1.25rem 0 0;
}

.hnttg-hero-eyebrow {
  letter-spacing: 0.2em;
}

.hnttg-hero-image,
.hnttg-hero-image img {
  margin: 0;
  width: 100%;
}

.hnttg-hero-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.5rem;
}

/* Sections */
.hnttg-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1rem 0;
}

@media (min-width: 640px) {
  .hnttg-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.hnttg-section .section-heading h2,
.hnttg-section .section-heading p {
  margin-top: 0;
}

.hnttg-section .section-heading .kicker + h2 {
  margin-top: 0;
}

.hnttg-narrow {
  max-width: 40rem;
  margin-top: 1.5rem;
}

/* Card grids built from a group of groups.
   The grid lives on whichever element actually holds the cards: the group
   itself, or its inner container when WordPress renders one. */
.hnttg-grid {
  margin-top: 2rem;
}

.hnttg-grid > .wp-block-group__inner-container,
.hnttg-grid:not(:has(> .wp-block-group__inner-container)) {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .hnttg-grid > .wp-block-group__inner-container,
  .hnttg-grid:not(:has(> .wp-block-group__inner-container)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hnttg-grid > .wp-block-group__inner-container,
  .hnttg-grid:not(:has(> .wp-block-group__inner-container)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hnttg-flex > .wp-block-group__inner-container,
.hnttg-flex:not(:has(> .wp-block-group__inner-container)) {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hnttg-home-blocks .card,
.hnttg-home-blocks .problem-card {
  display: block;
  height: 100%;
}

/* Hero columns work with or without the core columns stylesheet. */
.hnttg-hero-cols {
  display: flex;
  flex-wrap: wrap;
}

.hnttg-hero-cols > .wp-block-column {
  flex: 1 1 20rem;
  min-width: 0;
}

/* Problem cards */
.hnttg-home-blocks .problem-card > .wp-block-group__inner-container > *,
.hnttg-home-blocks .problem-card > * {
  margin: 0;
}

.hnttg-card-icon {
  font-size: 1.875rem;
  line-height: 1.1;
}

.hnttg-home-blocks .problem-card h3 {
  margin-top: 1rem !important;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hnttg-home-blocks .problem-card .line {
  margin-top: 0.5rem !important;
  font-size: 0.95rem;
}

.hnttg-home-blocks .problem-card .examples {
  margin-top: 0.75rem !important;
  flex: 1;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hnttg-card-buttons {
  margin-top: 1.25rem !important;
}

/* Article cards */
.hnttg-home-blocks .card {
  padding: 0;
}

.hnttg-card-image,
.hnttg-card-image img {
  margin: 0;
  width: 100%;
}

.hnttg-card-image img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hnttg-home-blocks .card-body > *,
.hnttg-home-blocks .card-body > .wp-block-group__inner-container > * {
  margin: 0;
}

.hnttg-home-blocks .card-body h3 {
  font-size: 1.125rem;
  line-height: 1.35;
}

.hnttg-home-blocks .card-body p {
  margin-top: 0.5rem !important;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hnttg-home-blocks .card-body .card-more {
  margin-top: 1rem !important;
  color: var(--primary);
  font-weight: 600;
  flex: 0;
}

.hnttg-home-blocks .card-body p:not(.card-more) {
  flex: 1;
}

.hnttg-home-blocks .card:hover h3 a {
  color: var(--primary);
}

/* Confession list */
.hnttg-list-links a::after {
  content: " →";
  color: var(--muted-foreground);
}

.hnttg-list-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Green closing panel */
.hnttg-home-blocks .panel-leaf > *,
.hnttg-home-blocks .panel-leaf > .wp-block-group__inner-container > * {
  margin: 0;
}

.hnttg-home-blocks .panel-leaf .hnttg-lead {
  font-size: 1.125rem;
  margin-top: 1.25rem !important;
}

.hnttg-home-blocks .panel-leaf .muted {
  margin-top: 1rem !important;
  color: var(--muted-foreground);
}

.hnttg-panel-buttons {
  margin-top: 2rem !important;
}

/* Email signup block */
.hnttg-home-blocks .email-signup > *,
.hnttg-home-blocks .email-signup > .wp-block-group__inner-container > * {
  margin: 0;
  max-width: 36rem;
}

.hnttg-home-blocks .email-signup p {
  margin-top: 0.75rem !important;
}

.hnttg-home-blocks .email-signup .hnttg-small {
  font-size: 0.875rem;
}

.hnttg-home-blocks .email-signup .hnttg-tiny {
  font-size: 0.75rem;
}

.hnttg-signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 32rem;
}

.hnttg-signup-form input[type="email"] {
  width: 100%;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .hnttg-signup-form {
    flex-direction: row;
    align-items: center;
  }
}

/* Buttons rendered by core/buttons */
.hnttg-buttons,
.hnttg-hero-actions,
.hnttg-card-buttons,
.hnttg-panel-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hnttg-hero-actions {
  margin-top: 2rem !important;
}

.hnttg-btn-primary .wp-block-button__link,
.hnttg-btn-outline .wp-block-button__link,
.hnttg-btn-leaf .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hnttg-btn-primary .wp-block-button__link {
  background: var(--primary);
  color: var(--primary-foreground);
}

.hnttg-btn-primary .wp-block-button__link:hover {
  opacity: 0.9;
  color: var(--primary-foreground);
}

.hnttg-btn-outline .wp-block-button__link {
  background: var(--card);
  border-color: var(--border);
  color: var(--foreground);
}

.hnttg-btn-outline .wp-block-button__link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hnttg-btn-leaf .wp-block-button__link {
  background: var(--leaf);
  color: var(--leaf-foreground);
  padding: 0.5rem 1rem;
}

.hnttg-btn-leaf .wp-block-button__link:hover {
  opacity: 0.9;
  color: var(--leaf-foreground);
}
