:root {
  --bg: #f8f2df;
  --ink: #171717;
  --muted: #5d554a;
  --line: rgba(23, 23, 23, 0.14);
  --paper: #fffdf5;
  --red: #c93528;
  --blue: #1477d4;
  --yellow: #e5b53a;
  --deep: #14171c;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(20, 23, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff9e8 0%, var(--bg) 54%, #ffffff 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.shell {
  width: min(calc(100% - 32px), 1120px);
  margin-inline: auto;
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 16px;
}

.brand,
.links,
.actions,
.meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 850;
}

.brand img {
  inline-size: 44px;
  block-size: 44px;
  border-radius: var(--radius);
}

.links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
}

.hero {
  padding: 64px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.hero-grid > *,
.section-head > *,
.card,
.preview {
  min-width: 0;
}

.eyebrow {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lede {
  max-width: 64ch;
  color: #3f382f;
  font-size: 1.13rem;
  line-height: 1.72;
  overflow-wrap: break-word;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--deep);
  border-radius: var(--radius);
  padding-inline: 18px;
  font-weight: 850;
}

.button.primary {
  color: #fffdf5;
  background: var(--deep);
}

.button.secondary {
  background: transparent;
}

.preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.preview img {
  border-radius: var(--radius);
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.section {
  padding: 56px 0;
}

.section.alt {
  background: #efe2c5;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.section-head p {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper);
}

.card:nth-child(2) {
  border-top-color: var(--blue);
}

.card:nth-child(3) {
  border-top-color: var(--yellow);
}

.card p,
.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.68;
}

.meta {
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: #fff2dd;
  background: var(--deep);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.legal {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 56px 0;
}

.legal h1 {
  max-width: none;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.legal section {
  margin-top: 30px;
}

@media (max-width: 760px) {
  .nav,
  .section-head,
  .footer-grid {
    align-items: start;
    flex-direction: column;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
}
