:root {
  color-scheme: light;
  --burgundy: #65182d;
  --burgundy-dark: #481021;
  --ink: #19181d;
  --muted: #5d5961;
  --paper: #fbf9f6;
  --surface: #fff;
  --line: #e4ded8;
  --rose: #f6e9ed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

a {
  color: var(--burgundy);
  text-underline-offset: 0.2em;
}

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

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 2;
  padding: 0.65rem 1rem;
  color: white;
  background: var(--burgundy);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  color: white;
  background: var(--burgundy);
}

.header-inner,
.footer-inner {
  display: flex;
  width: min(1100px, calc(100% - 3rem));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-inner {
  min-height: 76px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: white;
  font-size: 1.08rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover,
.site-header nav a:hover {
  color: #ffe5ec;
}

.wordmark-icon {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.4rem;
}

.site-header nav a {
  color: white;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.content {
  width: min(820px, calc(100% - 3rem));
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.hero {
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background:
    radial-gradient(ellipse at 100% 0%, #f1dce3 0, transparent 42%),
    var(--surface);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

h3 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.12rem;
}

p,
ul,
ol {
  margin: 0.75rem 0 1.1rem;
}

.hero p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-block;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--burgundy);
  border-radius: 0.6rem;
  color: white;
  background: var(--burgundy);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: white;
  background: var(--burgundy-dark);
}

.button.secondary {
  color: var(--burgundy);
  background: transparent;
}

.button.secondary:hover {
  background: var(--rose);
}

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

.feature,
.card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
}

.feature h3,
.card h3 {
  margin-top: 0;
}

.feature p,
.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--burgundy);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--rose);
}

.callout p:last-child {
  margin-bottom: 0;
}

.content > h1 {
  font-size: clamp(2.2rem, 6vw, 3rem);
}

.content li {
  padding-left: 0.25rem;
}

.content li + li {
  margin-top: 0.4rem;
}

.content code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.25rem;
  background: #eee9e5;
  font-size: 0.9em;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  font-size: 0.9rem;
}

.footer-inner {
  min-height: 84px;
}

@media (max-width: 700px) {
  .header-inner,
  .footer-inner {
    width: min(100% - 2rem, 1100px);
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .site-header nav {
    justify-content: flex-start;
    gap: 0.6rem 1rem;
  }

  .content {
    width: min(100% - 2rem, 820px);
    padding: 2rem 0 3rem;
  }

  .hero {
    padding: 1.5rem;
  }

  .feature-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}
