:root {
  --paper: #fbf7f0;
  --paper-deep: #f1e7d9;
  --ink: #28231f;
  --muted: #6d6258;
  --accent: #ad4e44;
  --accent-dark: #843a33;
  --gold: #d79a34;
  --line: #dfd2c2;
  --white: #fffdfa;
  --shadow: 0 18px 50px rgba(55, 39, 27, 0.12);
  --radius: 24px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
a:hover { color: var(--accent-dark); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 12px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 240, 0.96);
}

.header-inner,
.footer-inner,
.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
}

.brand {
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero {
  display: block;
  padding: 84px 0 74px;
}

.hero-copy { max-width: 820px; }

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 {
  margin: 14px 0 24px;
  font-size: clamp(3rem, 7vw, 6.6rem);
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.25rem);
}

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: var(--accent-dark); color: white; }
.button.secondary { background: transparent; color: var(--accent-dark); }
.button.secondary:hover { background: var(--paper-deep); }

.section { padding: 78px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 10px 0 22px; font-size: clamp(2rem, 4vw, 3.6rem); }
.section-intro { max-width: 720px; color: var(--muted); font-size: 1.1rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 38px;
}
.card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.card h3 { margin-top: 0; font-size: 1.25rem; }
.card p { margin-bottom: 0; color: var(--muted); }

.page-hero { padding: 76px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.8rem, 7vw, 5.5rem); }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 1.12rem; }

.prose { max-width: 820px; padding: 60px 0 90px; }
.prose h2 { margin-top: 48px; font-size: 1.7rem; }
.prose h3 { margin-top: 32px; font-size: 1.2rem; }
.prose p, .prose li { color: #493f37; }
.prose a { color: var(--accent-dark); }
.notice {
  padding: 20px 22px;
  border-left: 4px solid var(--gold);
  background: var(--paper-deep);
  border-radius: 0 12px 12px 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.site-footer {
  padding: 52px 0 30px;
  background: var(--ink);
  color: #f5ede4;
}
.footer-inner { display: grid; gap: 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; }
.footer-copy { max-width: 470px; color: #cfc3b7; }
.footer-nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px 20px; }
.footer-nav a { color: #f5ede4; text-decoration: none; }
.footer-bottom { padding-top: 24px; border-top: 1px solid #544940; color: #bcaea1; font-size: 0.86rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@media (max-width: 850px) {
  .footer-top { align-items: flex-start; flex-direction: column; padding-block: 20px; }
  .hero { padding-top: 58px; }
  .cards { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
