:root {
  --background: #faf9f6;
  --surface: #ffffff;
  --surface-soft: #f4f3f1;
  --surface-strong: #151715;
  --text: #1a1c1a;
  --text-soft: #4d4635;
  --text-muted: #646464;
  --text-inverse: #f8f7f4;
  --primary: #745b21;
  --primary-strong: #cfaf6c;
  --line: rgba(208, 197, 175, 0.32);
  --line-strong: rgba(208, 197, 175, 0.48);
  --shadow-card: 0 24px 54px rgba(26, 28, 26, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

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

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.page-header__inner,
.page-footer__top,
.hero__actions,
.card-grid,
.link-grid {
  display: flex;
}

.page-header__inner {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand,
.page-footer__brand {
  font-family: "Noto Serif", serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.page-nav a,
.text-link {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease, opacity 180ms ease;
}

.page-nav a:hover,
.text-link:hover {
  color: var(--primary);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.9rem;
  margin-bottom: 1.2rem;
  background: rgba(116, 91, 33, 0.08);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.card h3 {
  margin: 0;
  font-family: "Noto Serif", serif;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1.02;
}

.hero p,
.section p,
.card p,
.page-footer p,
.list,
.note {
  margin: 0;
  color: var(--text-muted);
}

.hero p {
  max-width: 46rem;
  margin-top: 1.25rem;
  font-size: 1.08rem;
}

.hero__actions {
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.7rem;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

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

.button--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.button--ghost:hover {
  background: var(--surface-soft);
}

.section {
  padding: 2.6rem 0;
}

.section--alt {
  background: var(--surface-soft);
}

.section__header {
  display: grid;
  gap: 0.8rem;
  max-width: 50rem;
  margin-bottom: 2rem;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.06;
}

.card-grid {
  gap: 1.25rem;
  flex-wrap: wrap;
}

.card {
  flex: 1 1 260px;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.card h3 {
  font-size: 1.45rem;
  line-height: 1.1;
}

.card p {
  margin-top: 0.8rem;
}

.list {
  padding-left: 1.15rem;
}

.list li + li {
  margin-top: 0.55rem;
}

.note {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--primary);
  background: rgba(116, 91, 33, 0.07);
}

.link-grid {
  gap: 0.9rem;
  flex-wrap: wrap;
}

.resource-link {
  flex: 1 1 220px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease;
}

.resource-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.resource-link strong,
.page-footer h4 {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.resource-link span {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.page-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  background: var(--surface-strong);
  color: var(--text-inverse);
}

.page-footer__top {
  justify-content: space-between;
  gap: 2rem;
  align-items: start;
  flex-wrap: wrap;
}

.page-footer__brand {
  max-width: 21rem;
}

.page-footer p,
.page-footer a {
  color: rgba(248, 247, 244, 0.62);
}

.page-footer__links {
  display: grid;
  gap: 0.7rem;
}

.page-footer__meta {
  padding-top: 1.6rem;
  margin-top: 1.6rem;
  border-top: 1px solid rgba(248, 247, 244, 0.14);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .page-header__inner,
  .page-nav,
  .page-footer__top,
  .hero__actions,
  .card-grid,
  .link-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .page-header__inner {
    justify-content: center;
    padding: 1rem 0;
  }

  .page-nav {
    gap: 0.8rem;
  }

  .button,
  .resource-link {
    width: 100%;
  }
}
