:root {
  color-scheme: light;
  --bg: #f5efe4;
  --bg-accent: #efe1cb;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: rgba(255, 250, 243, 0.96);
  --text: #1d1711;
  --muted: #65584b;
  --line: rgba(29, 23, 17, 0.12);
  --brand: #b6542d;
  --brand-deep: #874022;
  --shadow: 0 20px 60px rgba(88, 56, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(182, 84, 45, 0.16), transparent 28rem),
    radial-gradient(circle at top right, rgba(121, 78, 28, 0.13), transparent 22rem),
    linear-gradient(180deg, var(--bg) 0%, #fbf8f2 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.shell-narrow {
  width: min(860px, calc(100% - 2rem));
}

.hero,
.card,
.prose,
.page-header {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  padding: 3rem;
  border-radius: 32px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

h1,
h2 {
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.lede,
.prose p,
.prose li,
.meta,
.card p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

.lede {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  font-size: 1.12rem;
}

.actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button {
  background: var(--brand);
  color: #fff7ef;
}

.button-secondary {
  background: transparent;
  color: var(--brand-deep);
  border: 1px solid rgba(135, 64, 34, 0.24);
}

.button:hover,
.button-secondary:hover,
.text-link:hover,
.back-link a:hover {
  transform: translateY(-1px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  padding: 1.6rem;
  border-radius: 24px;
}

.card h2,
.prose h2 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.text-link,
.back-link a {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

.back-link {
  margin: 0 0 1rem;
}

.page-header {
  padding: 2rem 2rem 1.4rem;
  border-radius: 28px 28px 0 0;
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  max-width: none;
}

.meta {
  margin: 0.8rem 0 0;
}

.prose {
  padding: 2rem;
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: var(--surface-strong);
}

.prose ul {
  margin: 0.5rem 0 1.5rem 1.2rem;
  padding: 0;
}

.prose p,
.prose li {
  margin-top: 0;
}

.note {
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(182, 84, 45, 0.08);
  border: 1px solid rgba(182, 84, 45, 0.14);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 1rem, 1120px);
    padding: 1rem 0 2rem;
  }

  .hero,
  .page-header,
  .prose,
  .card {
    padding: 1.3rem;
    border-radius: 22px;
  }

  .prose {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .page-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

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