:root {
  color-scheme: light;
  --canvas-top: #fff6e7;
  --canvas-bottom: #ead2ad;
  --panel: #fffaf0;
  --paper: #f5e5c8;
  --ink: #3f2a18;
  --ink-soft: #765d43;
  --line: #d5b98c;
  --orange: #c85125;
  --yellow: #efb733;
  --shadow: rgba(79, 49, 22, 0.19);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas-bottom);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.8), transparent 34%),
    radial-gradient(circle at 92% 92%, rgba(200, 81, 37, 0.12), transparent 28%),
    linear-gradient(145deg, var(--canvas-top), var(--canvas-bottom));
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.22;
  pointer-events: none;
}

a {
  color: var(--orange);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100% - 48px, 1200px);
  min-height: 100svh;
  margin-inline: auto;
  padding: 28px 0 20px;
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 52px;
  margin-bottom: 26px;
}

.wordmark,
footer p {
  margin: 0;
}

.wordmark {
  font-family: Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(255, 250, 240, 0.85);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  border: 1px solid color-mix(in srgb, var(--orange) 44%, var(--line));
  background: rgba(255, 250, 240, 0.72);
  color: var(--orange);
}

main {
  flex: 1 0 auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lead {
  max-width: 40rem;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
}

.page-hero {
  padding: clamp(30px, 4vw, 54px) 0 clamp(26px, 3vw, 40px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0 0 30px;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 14px 40px var(--shadow);
}

.card > h2,
.card > h3 {
  margin: 0;
  font-family: Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link::after {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  content: "";
}

.card:has(.card-link):hover {
  border-color: color-mix(in srgb, var(--orange) 44%, var(--line));
  translate: 0 -2px;
}

.card .go {
  margin-top: auto;
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 46rem;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 18px 52px var(--shadow);
}

.feature h2 {
  margin: 0;
  font-family: Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  letter-spacing: -0.03em;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.btn {
  align-self: flex-start;
  justify-self: start;
  margin-top: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff8ee;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.08);
}

.aside-note {
  max-width: 44rem;
  margin: 26px 0 0;
  padding: 15px 18px;
  border-left: 4px solid var(--yellow);
  background: #f8ecd8;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.55;
}

.aside-note p {
  margin: 0;
}

.prose {
  max-width: 44rem;
}

.prose p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.prose strong {
  color: var(--ink);
}

footer {
  min-height: 48px;
  padding-top: 18px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

footer span {
  margin-inline: 6px;
  color: var(--orange);
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 24px, 1200px);
    padding-top: 14px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  footer {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  main {
    animation: arrive 500ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
  }

  .card:has(.card-link) {
    transition: translate 160ms ease, border-color 160ms ease;
  }

  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

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