:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  background: #fff8f4;
  color: #2f211d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at top right, rgba(241, 118, 72, 0.17), transparent 34rem),
    #fff8f4;
}

a {
  color: #a33f1d;
}

.shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #c64f23, #f28a5c);
  color: #fff;
  font-weight: 800;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a {
  color: inherit;
  text-underline-offset: 4px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #a33f1d;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 42rem;
  margin: 24px 0 40px;
  color: #715d55;
  font-size: 1.12rem;
  line-height: 1.75;
}

.content {
  display: grid;
  gap: 16px;
}

.card {
  padding: 24px;
  border: 1px solid rgba(89, 48, 32, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 40px rgba(104, 49, 28, 0.07);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.card p,
.card li {
  line-height: 1.75;
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

.card li + li {
  margin-top: 8px;
}

.primary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: 12px;
  background: #a33f1d;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.site-footer {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(89, 48, 32, 0.14);
  color: #806c64;
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #1b110d;
    color: #fff3ed;
  }

  body {
    background:
      radial-gradient(circle at top right, rgba(221, 90, 42, 0.25), transparent 34rem),
      #1b110d;
  }

  a,
  .eyebrow {
    color: #ffad87;
  }

  .lede,
  .site-footer {
    color: #cfb8ad;
  }

  .card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(55, 34, 26, 0.9);
    box-shadow: none;
  }

  .primary-link {
    background: #d35f32;
    color: #fff;
  }
}
