:root {
  --bg: #f6efe6;
  --paper: rgba(255, 249, 241, 0.92);
  --paper-strong: #fffaf2;
  --ink: #1e1e1b;
  --muted: #655f59;
  --line: rgba(30, 30, 27, 0.12);
  --accent: #d2643f;
  --accent-deep: #8d3d2a;
  --accent-soft: rgba(210, 100, 63, 0.12);
  --teal: #2f7d79;
  --shadow: 0 24px 80px rgba(66, 34, 17, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --wrap: min(1120px, calc(100vw - 32px));
  --body-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --ui-font: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(47, 125, 121, 0.15), transparent 30%),
    radial-gradient(circle at top right, rgba(210, 100, 63, 0.18), transparent 26%),
    linear-gradient(180deg, #f8f1e8 0%, #f4eadf 100%);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}

.page-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.26;
  pointer-events: none;
  z-index: -1;
}

.page-glow-a {
  background: rgba(210, 100, 63, 0.25);
  top: -8rem;
  right: -10rem;
}

.page-glow-b {
  background: rgba(47, 125, 121, 0.22);
  bottom: -10rem;
  left: -8rem;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100vw - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(246, 239, 230, 0.72);
  border-bottom: 1px solid rgba(30, 30, 27, 0.06);
}

.header-row,
.footer-row,
.hero-grid,
.section-head,
.hero-actions,
.header-actions,
.post-meta,
.tag-list,
.lang-switcher {
  display: flex;
  gap: 16px;
}

.header-row,
.footer-row,
.section-head {
  align-items: center;
  justify-content: space-between;
}

.header-row {
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font: 700 0.95rem/1 var(--ui-font);
  letter-spacing: 0.08em;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 32px rgba(141, 61, 42, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
.nav-link,
.button,
.lang-link,
.text-link,
.panel-label,
.eyebrow,
.post-meta,
.tag,
.back-link,
.taxonomy-card span {
  font-family: var(--ui-font);
}

.brand-copy span,
.post-meta,
.page-summary,
.section-lead,
.taxonomy-card span,
.footer-row p {
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-link,
.lang-link {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.lang-link:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.nav-link.is-active,
.lang-link.is-active {
  background: var(--paper-strong);
  box-shadow: inset 0 0 0 1px rgba(30, 30, 27, 0.08);
}

.site-main {
  padding-bottom: 48px;
}

.hero,
.section-block,
.page-shell,
.single-post {
  padding-top: 40px;
}

.hero-grid {
  align-items: stretch;
  gap: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
}

.hero-copy,
.hero-panel,
.post-card,
.page-shell,
.single-post,
.taxonomy-card,
.not-found,
.empty-state {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.post-card,
.page-shell,
.single-post,
.taxonomy-card,
.not-found,
.empty-state {
  border-radius: var(--radius);
}

.hero-copy,
.hero-panel,
.page-shell,
.single-post,
.not-found,
.empty-state {
  padding: 30px;
}

.hero-copy h1,
.section-head h1,
.section-head h2,
.page-header h1,
.post-header h1,
.not-found h1 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero-copy .lead,
.hero-panel p,
.page-summary,
.section-lead,
.rich-copy p,
.rich-copy li {
  font-size: 1.08rem;
}

.eyebrow,
.panel-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent-deep);
}

.hero-actions {
  margin-top: 28px;
  flex-wrap: wrap;
}

.contact-block,
.contact-links,
.contact-card-grid,
.footer-links-block {
  display: flex;
  gap: 14px;
}

.contact-block {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  background: var(--ink);
  color: #fff8f0;
}

.button-secondary {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.hero-panel {
  align-self: end;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(255, 246, 235, 0.92)),
    linear-gradient(135deg, rgba(47, 125, 121, 0.12), rgba(210, 100, 63, 0.14));
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.05;
}

.stat-grid,
.post-grid,
.taxonomy-grid {
  display: grid;
  gap: 18px;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.stat-grid div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 18px;
}

.stat-grid strong {
  display: block;
  font: 700 1.55rem/1 var(--ui-font);
  margin-bottom: 6px;
}

.section-block {
  padding-bottom: 8px;
}

.section-head {
  margin-bottom: 22px;
  gap: 24px;
}

.section-head h2,
.section-head h1 {
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.03;
}

.section-lead {
  max-width: 32rem;
}

.post-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.post-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card h3 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.08;
}

.post-card p,
.footer-row p {
  margin: 0;
}

.post-meta {
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.tag-list {
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 125, 121, 0.1);
  color: var(--teal);
  font-size: 0.9rem;
}

.text-link,
.back-link {
  font-weight: 700;
  color: var(--accent-deep);
}

.contact-block-compact {
  align-items: center;
  flex-wrap: wrap;
}

.contact-kicker,
.contact-link,
.contact-card-label,
.contact-card-value,
.contact-intro {
  font-family: var(--ui-font);
}

.contact-kicker {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-links {
  flex-wrap: wrap;
}

.contact-link {
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(30, 30, 27, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-link:hover,
.contact-card-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(66, 34, 17, 0.12);
  border-color: rgba(141, 61, 42, 0.2);
}

.contact-link-label {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-link-value {
  font-size: 0.96rem;
  font-weight: 700;
}

.contact-block-full {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(255, 244, 231, 0.94)),
    linear-gradient(135deg, rgba(47, 125, 121, 0.08), rgba(210, 100, 63, 0.12));
  border: 1px solid rgba(30, 30, 27, 0.08);
}

.contact-intro {
  margin: 0;
  color: var(--muted);
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-card-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(30, 30, 27, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-card-label {
  color: var(--accent-deep);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card-value {
  font-size: 1rem;
  line-height: 1.35;
}

.page-header,
.post-header {
  margin-bottom: 24px;
}

.rich-copy > :first-child {
  margin-top: 0;
}

.rich-copy h2,
.rich-copy h3 {
  margin-top: 2.4rem;
  line-height: 1.1;
}

.rich-copy ul,
.rich-copy ol {
  padding-left: 1.25rem;
}

.rich-copy blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(210, 100, 63, 0.08);
  border-radius: 0 18px 18px 0;
}

.rich-copy a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.rich-copy img {
  margin: 24px auto;
  box-shadow: 0 18px 50px rgba(35, 24, 17, 0.14);
}

.taxonomy-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.taxonomy-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.not-found,
.empty-state {
  text-align: center;
}

.site-footer {
  padding: 36px 0 48px;
}

.footer-meta,
.footer-links-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-meta {
  max-width: 34rem;
}

.footer-links-block {
  align-items: flex-end;
}

.footer-row {
  gap: 24px;
  align-items: flex-start;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--ui-font);
}

@media (max-width: 860px) {
  .hero-grid,
  .header-row,
  .header-actions,
  .footer-row,
  .section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-panel,
  .page-shell,
  .single-post,
  .not-found,
  .empty-state {
    padding: 24px;
  }

  .footer-links-block {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .wrap,
  .narrow {
    width: min(100vw - 20px, 100%);
  }

  .site-nav,
  .lang-switcher,
  .hero-actions,
  .tag-list,
  .contact-links {
    width: 100%;
  }

  .nav-link,
  .lang-link,
  .button {
    width: 100%;
    justify-content: center;
  }

  .contact-link,
  .contact-card-link {
    width: 100%;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}
