:root {
  color-scheme: light;
  --ink: #332735;
  --yellow: #fdfeb3;
  --blue: #9fbcce;
  --red: #e3503c;
  --lavender: #c1bac3;
  --plum: #380c3a;
  --cream: #e8dfdd;
  --muted: #9b929d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--plum);
  background-image: url("/background-texture.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.62;
}
a { color: var(--plum); }
a:hover { color: var(--red); }
.shell { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 94px;
  padding: 18px 0;
  border-bottom: 1.5px solid var(--yellow);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 204px;
  max-width: 42vw;
  aspect-ratio: 612 / 174;
  background: var(--yellow);
  -webkit-mask: url("/logo-stackpile.png") center / contain no-repeat;
  mask: url("/logo-stackpile.png") center / contain no-repeat;
}
.brand img { display: block; width: 100%; height: auto; visibility: hidden; }
.home .brand { width: 310px; max-width: 54vw; }
.home .nav { min-height: 120px; }
.links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.links a { color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 700; }
.links a:hover, .links a[aria-current="page"] { color: var(--yellow); }
.hero-wrap { margin-top: 26px; background: var(--plum); border: 1.5px solid var(--yellow); border-radius: 26px; overflow: hidden; }
.hero {
  position: relative;
  padding: clamp(56px, 10vw, 104px) clamp(26px, 7vw, 78px);
  max-width: 920px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -75px;
  top: -75px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: -80px 160px 0 12px var(--lavender);
  opacity: 0.96;
}
.eyebrow { color: var(--red); font-size: 13px; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--yellow); }
h1 { margin: 12px 0 20px; font-size: clamp(43px, 8vw, 82px); line-height: 0.98; letter-spacing: -0.055em; }
.hero h1 { color: var(--cream); max-width: 770px; position: relative; z-index: 1; }
h2 { margin: 0 0 12px; font-size: clamp(25px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.035em; }
h3 { margin: 30px 0 7px; font-size: 19px; }
p, li { color: var(--ink); }
.lead { font-size: clamp(18px, 2.4vw, 23px); max-width: 680px; }
.hero .lead { color: var(--lavender); position: relative; z-index: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; position: relative; z-index: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--red); color: var(--cream); text-decoration: none; font-weight: 800; }
.button:hover { color: var(--cream); background: var(--ink); }
.button.secondary { background: var(--lavender); color: var(--ink); }
.button.secondary:hover { background: var(--yellow); color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px 0 88px; }
.card, .document { border: 1.5px solid var(--ink); border-radius: 18px; }
.card { min-height: 220px; padding: 28px; }
.card:nth-child(1) { background: var(--yellow); }
.card:nth-child(2) { background: var(--blue); }
.card:nth-child(3) { background: var(--lavender); }
.card p { margin-bottom: 0; }
.document { max-width: 840px; padding: clamp(24px, 5vw, 58px); margin: 44px auto 80px; background: var(--cream); box-shadow: 12px 12px 0 var(--lavender); }
.document h1 { font-size: clamp(38px, 7vw, 64px); color: var(--plum); }
.document h2 { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--muted); }
.document .meta { color: var(--muted); font-size: 14px; font-weight: 750; }
.notice { margin: 28px 0; padding: 18px 20px; border-left: 5px solid var(--red); background: var(--yellow); border-radius: 0 14px 14px 0; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding: 0 0 22px 50px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--cream); font-weight: 850; }
footer { background: var(--ink); border-top: 1.5px solid var(--yellow); padding: 30px 0 44px; font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-row p, footer a { margin: 0; color: var(--cream); }

@media (max-width: 760px) {
  .nav { align-items: flex-start; min-height: 82px; }
  .brand { width: 158px; }
  .home .nav { align-items: center; flex-direction: column; min-height: 0; padding: 24px 0 18px; }
  .home .brand { width: 230px; max-width: 72vw; }
  .home .links { justify-content: center; }
  .links { gap: 8px 13px; }
  .hero-wrap { margin-top: 18px; }
  .hero { padding: 52px 24px 58px; }
  .hero::after { width: 150px; height: 150px; right: -90px; top: -70px; box-shadow: none; }
  .grid { grid-template-columns: 1fr; padding-bottom: 64px; }
  .card { min-height: auto; }
  .document { margin-top: 24px; box-shadow: 7px 7px 0 var(--lavender); }
}

.support-email { font-size: 1.25rem; font-weight: 800; overflow-wrap: anywhere; }
.support-contact p { margin: 12px 0 0; }
