:root {
  --bg: #f4efe4;
  --bg-deep: #e4d5bb;
  --ink: #182028;
  --muted: #5b6259;
  --panel: rgba(255, 252, 246, 0.76);
  --panel-strong: #fffdf8;
  --line: rgba(24, 32, 40, 0.14);
  --accent: #0f7c66;
  --accent-strong: #0a594a;
  --accent-warm: #cf6d2a;
  --shadow: 0 26px 60px rgba(43, 35, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(207, 109, 42, 0.22), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(15, 124, 102, 0.18), transparent 26%),
    linear-gradient(180deg, #fbf7ee 0%, var(--bg) 55%, var(--bg-deep) 100%);
  font: 17px/1.6 "Avenir Next", "Trebuchet MS", sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.brand-bar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.58);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: block;
}

.brand-name,
.brand-tag {
  margin: 0;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.86rem;
}

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

.hero-copy,
.hero-panel,
.card,
.section-slab {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 40px 40px 36px;
  border-radius: 34px;
}

.hero-panel {
  padding: 28px;
  border-radius: 28px;
  align-self: end;
}

.hero h1,
.section-slab h2,
.card h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 0.95;
  max-width: 12ch;
}

.eyebrow,
.card-kicker,
.panel-label {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede,
.hero-panel ol,
.card p,
.three-up p,
.footer {
  color: var(--muted);
}

.lede {
  max-width: 42rem;
  margin: 20px 0 0;
  font-size: 1.1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.hero-panel ol {
  margin: 0;
  padding-left: 1.2rem;
}

.hero-panel li + li {
  margin-top: 10px;
}

main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.section-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.section-slab {
  border-radius: 28px;
}

.card {
  padding: 26px;
}

.card h2,
.section-slab h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  line-height: 1.05;
}

.card p {
  margin: 14px 0 0;
}

.card pre {
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(24, 32, 40, 0.1);
  border-radius: 18px;
  background: var(--panel-strong);
  color: var(--ink);
  font: 0.92rem/1.55 "Consolas", "SFMono-Regular", monospace;
}

.section-slab {
  padding: 28px;
}

.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.three-up article {
  padding: 18px 18px 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(24, 32, 40, 0.08);
}

.three-up h3 {
  margin: 0;
  font-size: 1.05rem;
}

.three-up p {
  margin-top: 10px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 2px 0;
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .section-grid,
  .section-grid-wide,
  .three-up {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .card,
  .section-slab {
    border-radius: 24px;
  }

  .hero-copy {
    padding: 28px 24px;
  }

  .hero-panel,
  .card,
  .section-slab {
    padding: 22px;
  }

  .page-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 16px;
  }

  .brand-lockup {
    width: 100%;
    justify-content: center;
  }
}