:root {
  color-scheme: light;
  --bg: #f3efe6;
  --surface: #fffdf9;
  --ink: #191510;
  --muted: #584a3d;
  --line: rgba(25, 21, 16, 0.12);
  --accent: #7f5c25;
  --accent-soft: #ece2cf;
  --shadow: 0 16px 36px rgba(25, 21, 16, 0.07);
  --radius: 18px;
  --content: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.shell,
.page-shell {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-row,
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(127, 92, 37, 0.16);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark-simple {
  width: 52px;
  height: 52px;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
}

.nav a:hover,
.link-list a:hover,
.post-card a:hover,
.breadcrumbs a:hover {
  color: var(--accent);
}

.simple-page,
.post-main {
  padding: 38px 0 60px;
}

.page-stack,
.post-stack {
  display: grid;
  gap: 28px;
}

.feature-panel,
.post-hero,
.post-card,
.archive-note,
.section-block,
.author-card,
.callout,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}

.feature-image {
  min-height: 300px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f1e5ce, #efe7d8);
  border: 1px solid rgba(127, 92, 37, 0.16);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.feature-mark {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(127, 92, 37, 0.2);
  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 800;
}

.feature-copy {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.page-title,
.post-hero h1,
.not-found h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-copy p,
.post-lead,
.post-card p,
.archive-note p,
.callout p,
.not-found p,
.section-block p,
.meta-list,
.author-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.82;
  font-size: 1rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--ink);
}

.section-block,
.post-hero,
.post-card,
.archive-note,
.author-card,
.panel,
.callout {
  padding: 24px 26px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  padding: 24px;
}

.simple-card h3,
.post-card h2,
.section-block h2,
.callout h2,
.archive-note h2,
.author-card h2,
.post-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.post-card .date,
.post-meta,
.meta-kicker {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-left: 4px solid rgba(127, 92, 37, 0.44);
  background: rgba(127, 92, 37, 0.06);
  border-radius: 0 16px 16px 0;
  color: #4c3c2f;
  line-height: 1.8;
}

.dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.link-list,
.meta-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.site-footer {
  padding: 22px 0 42px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.breadcrumbs {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.meta-list strong {
  color: var(--ink);
}

.not-found {
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 36px 0;
}

.not-found .panel {
  max-width: 720px;
  text-align: left;
}

@media (max-width: 980px) {
  .grid,
  .dual,
  .feature-panel,
  .author-grid,
  .brand-bar {
    grid-template-columns: 1fr;
  }

  .brand-bar {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .shell,
  .page-shell {
    width: min(var(--content), calc(100% - 20px));
  }

  .header-row,
  .brand-bar {
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .panel,
  .post-hero,
  .post-card,
  .callout,
  .archive-note,
  .section-block,
  .author-card,
  .feature-panel {
    padding: 24px;
    border-radius: 16px;
  }
}
