:root {
  --paper: #f2eee3;
  --paper-deep: #e4dcc9;
  --ink: #181614;
  --muted: #5f594f;
  --line: rgba(24, 22, 20, 0.18);
  --accent: #8f1d12;
  --accent-soft: #d3b29f;
  --shadow: 0 22px 60px rgba(24, 22, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(143, 29, 18, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f3ea 0%, #ede6d7 100%);
  font-family: "Manrope", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(24, 22, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 22, 20, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 82%);
}

.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 28px auto;
  padding: 32px;
  border: 1px solid var(--line);
  background: rgba(242, 238, 227, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero,
.section,
.footer {
  position: relative;
  overflow: hidden;
}

.hero {
  padding: 28px 0 48px;
  border-bottom: 1px solid var(--line);
  animation: rise 850ms ease-out both;
}

.eyebrow,
.section-marker,
.resource-label,
.footer-label,
.hero-note-label {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 10vw, 7.4rem);
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.hero-copy,
.section-body p,
.card p,
.resource-card p,
.hero-note p,
.footer-meta,
.footer-contact a {
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-copy {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
}

.hero-note {
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(143, 29, 18, 0.08), rgba(143, 29, 18, 0.02));
  transform: translateY(18px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(24, 22, 20, 0.06);
}

.section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  animation: rise 850ms ease-out both;
}

.section:nth-of-type(2) {
  animation-delay: 120ms;
}

.section:nth-of-type(3) {
  animation-delay: 220ms;
}

.section:nth-of-type(4) {
  animation-delay: 320ms;
}

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

.card,
.resource-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
}

.accent-card,
.feature-card {
  background:
    linear-gradient(180deg, rgba(143, 29, 18, 0.12), rgba(143, 29, 18, 0.04)),
    rgba(255, 255, 255, 0.36);
}

.resource-card a {
  color: var(--ink);
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  animation: rise 850ms ease-out both 420ms;
}

.footer-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.footer-meta,
.footer-contact a {
  margin: 6px 0 0;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
    margin: 12px auto;
    padding: 22px;
  }

  .hero-grid,
  .section,
  .cards,
  .resource-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .section {
    gap: 18px;
  }

  .hero-note {
    transform: none;
  }
}
