:root {
  color-scheme: light;
  --ink: #1b2620;
  --muted: #4b5b52;
  --paper: #f8f5ee;
  --paper-warm: #efe9dc;
  --surface: #ffffff;
  --surface-tint: #f3f7f4;
  --forest: #163828;
  --accent: #245c43;
  --accent-hover: #194230;
  --sage-soft: #e2efe8;
  --ochre: #b04b25;
  --ochre-soft: #faeae3;
  --line: #d8d1c3;
  --shadow-sm: 0 2px 8px rgba(22, 56, 40, 0.06);
  --shadow-md: 0 12px 30px rgba(22, 56, 40, 0.09);
  --radius-sm: 0.45rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.25rem;
  --font-serif: "Playfair Display", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

img, video {
  height: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--forest);
  color: #ffffff;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* Containers */
.container,
.site-header-inner,
.top-bar-inner,
main,
.site-footer-inner,
.messages {
  width: min(1200px, calc(100% - 2.5rem));
  min-width: 0;
  margin-inline: auto;
}

/* Top Announcement Bar */
.top-bar {
  background: var(--forest);
  color: #e9f2ec;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 0.55rem 0;
}

.top-bar p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
}

.top-bar-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-links a {
  text-decoration: none;
  color: #d6e6dc;
}

.top-bar-links a:hover {
  color: #ffffff;
}

/* Site Header & Navigation */
.site-header {
  background: rgba(248, 245, 238, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  text-decoration: none;
  color: var(--forest);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--forest);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--forest);
}

.brand-sub {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-weight: 600;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.95rem;
}

nav a {
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}

nav a:hover {
  color: var(--accent);
  background: var(--sage-soft);
}

nav a.nav-cta {
  background: var(--accent);
  color: #ffffff;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
}

nav a.nav-cta:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

main {
  min-height: 70vh;
  padding-bottom: 4rem;
}

/* Typography */
h1, h2, h3, h4, p, li {
  max-width: 100%;
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--forest);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0.25em 0 0.4em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 1.4em 0 0.5em;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  line-height: 1.28;
  margin: 1.1em 0 0.4em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  background: var(--sage-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin: 0 0 0.75rem;
}

.eyebrow-warm {
  color: var(--ochre);
  background: var(--ochre-soft);
}

.lead {
  font-size: clamp(1.06rem, 2.2vw, 1.25rem);
  color: var(--muted);
  line-height: 1.65;
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.45rem;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.button:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.button-secondary {
  background: var(--surface);
  color: var(--forest);
  border-color: var(--line);
}

.button-secondary:hover {
  background: var(--paper-warm);
  color: var(--forest);
}

.button-ochre {
  background: var(--ochre);
  color: #ffffff;
}

.button-ochre:hover {
  background: #8f3b1b;
  color: #ffffff;
}

/* Homepage Hero */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2.5rem;
}

.hero-content h1 {
  margin-top: 0.15rem;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.hero-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-badge-card {
  margin-top: -2rem;
  margin-left: 1.25rem;
  margin-right: 1.25rem;
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-badge-card strong {
  color: var(--forest);
  display: block;
  font-size: 0.95rem;
}

.hero-badge-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  margin: 1rem 0 3.5rem;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  padding: 0.25rem 0.5rem;
  border-left: 3px solid var(--accent);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--forest);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Section Headers */
.section-block {
  margin: 4rem 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.section-header h2 {
  margin: 0.2rem 0 0;
}

.section-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 640px;
}

.page-heading {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  max-width: 840px;
}

.hero {
  padding: clamp(3rem, 7vw, 5rem) 0;
  max-width: 820px;
}

/* Pillar Cards */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 1.15rem;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--sage-soft);
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.pillar-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.pillar-card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.pillar-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
}

/* Editorial Feature Split */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin: 4rem 0;
}

.feature-split-media img {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  width: 100%;
  object-fit: cover;
}

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

.check-list li {
  position: relative;
  padding-left: 1.75rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Card Grids */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}

.grid article,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.grid article:hover,
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.grid article:not(.has-media) {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--paper-warm);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media-book {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e7efe9 0%, #f5efe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card-media-book img {
  max-height: 190px;
  width: auto;
  object-fit: contain;
  border-radius: 0.25rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.price-pill {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--ochre);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h2,
.card-body h3 {
  margin: 0.35rem 0 0.6rem;
  font-size: 1.28rem;
}

.card-body h2 a,
.card-body h3 a {
  color: var(--forest);
  text-decoration: none;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
  color: var(--accent);
}

.card-body p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Topic Badges & Filter Pills */
.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.topic-pill:hover,
.topic-pill.is-active {
  background: var(--forest);
  color: #ffffff;
}

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: transparent;
  border: 0;
  padding: 0;
}

.search-form input[type="search"] {
  flex: 1 1 240px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font: inherit;
}

/* Prose & Rich Article Content */
.prose,
form.contact-form-card {
  background: var(--surface);
  padding: clamp(1.5rem, 4.5vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.prose {
  max-width: 880px;
  margin: 2.25rem auto;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.blog-summary {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.blog-summary h2,
.blog-summary h3 {
  margin-top: 0.35rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
}

.post-body {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.06rem;
  line-height: 1.75;
}

.post-body h2 {
  margin-top: 2rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.post-body h3 {
  margin-top: 1.6rem;
  color: var(--accent);
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem auto;
  border: 1px solid var(--line);
}

.post-body figure {
  margin: 1.75rem 0;
}

.post-body figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

.post-body blockquote {
  margin: 1.75rem 0;
  padding: 1.1rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--surface-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.post-body pre,
.post-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.post-body th,
.post-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  text-align: left;
}

.post-body th,
.post-body tr:first-child td strong {
  background: var(--sage-soft);
  color: var(--forest);
  font-weight: 700;
}

.post-body tr:nth-child(even) td {
  background: #faf8f3;
}

/* Author / Homestead Callout Box */
.author-card {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.author-card strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--forest);
}

.author-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

/* Forms & Contact Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-sidebar {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

form {
  background: var(--surface);
  padding: clamp(1.3rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--forest);
}

input:not([type="checkbox"]),
textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fdfcf9;
}

input:not([type="checkbox"]):focus,
textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
}

.messages {
  margin: 1rem auto;
  padding: 0.75rem 1.25rem;
  background: var(--sage-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--forest);
  font-weight: 600;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 880px;
  padding-bottom: 3rem;
}

.faq-list details,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--forest);
}

.faq-list details[open] summary {
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

/* Footer */
.site-footer {
  background: var(--forest);
  color: #dce8e0;
  margin-top: 4rem;
  padding: 4rem 0 2.5rem;
  font-size: 0.92rem;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.25rem;
}

.site-footer strong {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.65rem;
}

.site-footer p {
  color: #c2d6c9;
  margin: 0 0 1rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
  margin: 0 0 0.5rem;
}

.site-footer nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.site-footer a {
  color: #d5e5db;
  text-decoration: none;
  padding: 0.15rem 0;
}

.site-footer a:hover {
  color: #ffffff;
  background: transparent;
  text-decoration: underline;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: #b2c9bb;
  font-size: 0.85rem;
}

/* Focus Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Responsive Breakpoints */
@media (max-width: 920px) {
  .hero-split,
  .feature-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .top-bar-links {
    display: none;
  }

  .site-header {
    position: static;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 0;
  }

  .site-header nav {
    width: 100%;
    gap: 0.35rem 0.65rem;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .container,
  .site-header-inner,
  .top-bar-inner,
  main,
  .site-footer-inner,
  .messages {
    width: min(100% - 1.25rem, 1200px);
  }

  .hero {
    padding-block: 2.25rem;
  }

  .grid article:not(.has-media),
  .prose,
  form {
    padding: 1.1rem;
  }
}
