:root {
  color-scheme: light;

  /* Brand and semantic colors */
  --growon-color-ink: #0b1e2d;
  --growon-color-ink-soft: #173346;
  --growon-color-text: #18221f;
  --growon-color-muted: #56635e;
  --growon-color-brand: #2a9546;
  --growon-color-brand-strong: #1f7d39;
  --growon-color-brand-soft: #e1f2e5;
  --growon-color-surface: #f5f7f5;
  --growon-color-surface-raised: #fcfdfc;
  --growon-color-surface-subtle: #e9efeb;
  --growon-color-line: rgb(11 30 45 / 14%);
  --growon-color-line-strong: rgb(11 30 45 / 24%);
  --growon-color-focus: #1f7d39;
  --growon-color-focus-on-dark: #7ad78f;
  --growon-color-error: #a52a2a;

  /* Layout */
  --growon-shell-width: 1200px;
  --growon-content-width: 760px;
  --growon-gutter: 24px;
  --growon-header-height: 68px;
  --growon-section-space: clamp(64px, 5.55vw, 80px);
  --growon-section-space-dense: clamp(52px, 4.45vw, 64px);

  /* Spacing scale */
  --growon-space-2xs: 4px;
  --growon-space-xs: 8px;
  --growon-space-sm: 12px;
  --growon-space-md: 16px;
  --growon-space-lg: 24px;
  --growon-space-xl: 32px;
  --growon-space-2xl: 48px;
  --growon-space-3xl: 64px;
  --growon-space-4xl: 80px;

  /* Shape and depth */
  --growon-radius-control: 10px;
  --growon-radius-card: 14px;
  --growon-radius-pill: 999px;
  --growon-shadow-raised: 0 18px 48px rgb(11 30 45 / 10%);
  --growon-shadow-menu: 0 20px 52px rgb(5 22 17 / 18%);

  /* Type */
  --growon-font-sans: "Avenir Next", "Segoe UI Variable", "Segoe UI", ui-sans-serif, sans-serif;
  --growon-font-size-body: clamp(1rem, 0.2vw + 0.95rem, 1.09375rem);
  --growon-line-height-body: 1.65;

  /* Systemic layers only */
  --growon-z-scrim: 30;
  --growon-z-header: 40;
  --growon-z-submenu: 50;
}

@media (max-width: 767px) {
  :root {
    --growon-gutter: 20px;
    --growon-header-height: 64px;
    --growon-section-space: clamp(44px, 13vw, 56px);
    --growon-section-space-dense: clamp(36px, 11vw, 48px);
  }
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--growon-header-height) + var(--growon-space-lg));
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--growon-color-surface);
  color: var(--growon-color-text);
  font-family: var(--growon-font-sans);
  font-size: var(--growon-font-size-body);
  line-height: var(--growon-line-height-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection {
  background: var(--growon-color-brand-soft);
  color: var(--growon-color-ink);
}

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

img,
video {
  height: auto;
}

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

button,
summary,
input[type="submit"] {
  cursor: pointer;
}

a {
  color: var(--growon-color-brand-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--growon-color-ink-soft);
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--growon-color-focus);
  outline-offset: 3px;
}

:where(h1, h2, h3, h4, h5, h6) {
  margin-block: 0 0.65em;
  color: var(--growon-color-ink);
  font-family: var(--growon-font-sans);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h1 {
  max-width: 20ch;
  font-size: clamp(2.5rem, 4vw, 3.625rem);
  letter-spacing: -0.04em;
  text-wrap: pretty;
}

h2 {
  max-width: 27ch;
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  text-wrap: pretty;
}

h3 {
  max-width: 34ch;
  font-size: clamp(1.25rem, 1.7vw, 1.625rem);
}

h4 {
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
}

p,
ul,
ol,
blockquote {
  margin-block: 0 1.4em;
}

p,
li,
blockquote {
  text-wrap: pretty;
}

:where(p, li, blockquote):last-child {
  margin-bottom: 0;
}

hr {
  height: 1px;
  margin-block: var(--growon-space-xl);
  border: 0;
  background: var(--growon-color-line);
}

.growon-shell {
  width: 100%;
  max-width: calc(var(--growon-shell-width) + 48px);
  margin-inline: auto;
  padding-inline: var(--growon-gutter);
}

.growon-site {
  min-height: 100%;
}

.site-main {
  min-height: calc(100dvh - var(--growon-header-height));
}

.entry-content {
  width: 100%;
}

.entry-content::after {
  display: table;
  clear: both;
  content: "";
}

.entry-content > :where(:not(.alignfull):not(.alignwide)) {
  max-width: var(--growon-content-width);
  margin-inline: auto;
}

.entry-content > .alignwide {
  width: min(100%, var(--growon-shell-width));
  margin-inline: auto;
}

.entry-content > .alignfull {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

[id] {
  scroll-margin-top: calc(var(--growon-header-height) + var(--growon-space-lg));
}

.wp-block-spacer {
  max-height: var(--growon-section-space);
}

.wp-block-button__link,
.growon-button,
input[type="submit"],
button[type="submit"],
.search-submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--growon-radius-pill);
  background: var(--growon-color-brand-strong);
  box-shadow: none;
  color: #fcfdfc;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.wp-block-button__link:hover,
.growon-button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.search-submit:hover {
  background: var(--growon-color-ink-soft);
  color: #fcfdfc;
}

.wp-block-button__link:active,
.growon-button:active,
input[type="submit"]:active,
button[type="submit"]:active,
.search-submit:active {
  transform: translateY(1px);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--growon-color-line-strong);
  border-radius: var(--growon-radius-control);
  background: var(--growon-color-surface-raised);
  color: var(--growon-color-text);
  line-height: 1.45;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  min-height: 168px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #69746f;
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--growon-color-brand-strong);
  box-shadow: 0 0 0 3px rgb(42 149 70 / 16%);
}

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

.screen-reader-text:focus,
.skip-link:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: calc(var(--growon-z-submenu) + 10);
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  clip-path: none;
  border-radius: var(--growon-radius-control);
  background: var(--growon-color-surface-raised);
  color: var(--growon-color-ink);
  font-weight: 700;
  white-space: normal;
}

/* Generic classic-template surfaces */
.growon-page-header,
.growon-index__header,
.growon-not-found {
  width: min(100%, var(--growon-shell-width));
  margin-inline: auto;
  padding: var(--growon-section-space-dense) var(--growon-gutter) var(--growon-space-xl);
}

.growon-page-header__title,
.growon-index__title,
.growon-not-found__title {
  margin-bottom: var(--growon-space-md);
}

.growon-post-list,
.growon-index__empty {
  width: min(100%, calc(var(--growon-shell-width) + 48px));
  margin-inline: auto;
  padding: 0 var(--growon-gutter) var(--growon-section-space);
}

.growon-post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--growon-space-xl);
}

.growon-post-card {
  padding: var(--growon-space-lg);
  border: 1px solid var(--growon-color-line);
  border-radius: var(--growon-radius-card);
  background: var(--growon-color-surface-raised);
}

.growon-post-card__meta {
  margin-bottom: var(--growon-space-sm);
  color: var(--growon-color-muted);
  font-size: 0.875rem;
}

.growon-pagination {
  width: min(100%, var(--growon-shell-width));
  margin: 0 auto var(--growon-section-space);
  padding-inline: var(--growon-gutter);
}

.growon-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--growon-space-sm);
}

.growon-pagination :where(.page-numbers) {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--growon-color-line);
  border-radius: var(--growon-radius-control);
  background: var(--growon-color-surface-raised);
  text-decoration: none;
}

.growon-pagination .current {
  border-color: var(--growon-color-brand-strong);
  background: var(--growon-color-brand-strong);
  color: #fcfdfc;
}

.growon-article-header {
  padding-block: var(--growon-section-space-dense);
  background: var(--growon-color-surface-subtle);
}

.growon-article-header__inner {
  max-width: calc(var(--growon-content-width) + (var(--growon-gutter) * 2));
}

.growon-article-header h1 {
  margin-bottom: var(--growon-space-lg);
}

.growon-article-meta {
  margin-bottom: var(--growon-space-md);
  color: var(--growon-color-brand-strong);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.growon-article-deck {
  max-width: 62ch;
  color: var(--growon-color-muted);
  font-size: clamp(1.0625rem, 1.2vw, 1.25rem);
}

.growon-article-content {
  padding-block: var(--growon-section-space);
}

.growon-article-content > :where(:not(.alignfull):not(.alignwide)) {
  width: calc(100% - (var(--growon-gutter) * 2));
}

.growon-article-content > .alignwide {
  width: min(calc(100% - (var(--growon-gutter) * 2)), var(--growon-shell-width));
}

.growon-article-content > * + * {
  margin-top: var(--growon-space-lg);
}

.growon-article-featured {
  overflow: hidden;
  border-radius: var(--growon-radius-card);
  background: var(--growon-color-surface-subtle);
}

.growon-article-featured img {
  width: 100%;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--growon-space-sm);
  width: min(100%, 620px);
}

.search-form__label {
  grid-column: 1 / -1;
  color: var(--growon-color-ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

@media (max-width: 767px) {
  h1 {
    font-size: clamp(2.25rem, 10vw, 2.625rem);
    letter-spacing: -0.035em;
  }

  h2 {
    font-size: clamp(1.875rem, 8vw, 2.125rem);
  }

  h3 {
    font-size: clamp(1.25rem, 5.7vw, 1.5rem);
  }

  .growon-shell {
    max-width: calc(var(--growon-shell-width) + 40px);
  }

  .growon-post-list {
    grid-template-columns: 1fr;
    gap: var(--growon-space-lg);
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-form__label {
    grid-column: auto;
  }

  .search-submit {
    width: 100%;
  }
}

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

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