:root {
  --ink: #171717;
  --muted: #67645f;
  --paper: #f8f3e9;
  --paper-deep: #eee4d4;
  --blue: #2868e8;
  --blue-dark: #174eb9;
  --white: #fffdf8;
  --line: rgba(23, 23, 23, 0.13);
  --shadow: 0 18px 50px rgba(54, 46, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(40, 104, 232, 0.08), transparent 28rem),
    repeating-linear-gradient(0deg, rgba(75, 61, 42, 0.025) 0, rgba(75, 61, 42, 0.025) 1px, transparent 1px, transparent 4px),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(24, 70, 157, 0.2);
}

nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
.language-link {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
.language-link:hover,
.language-link:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  outline: none;
}

main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: clamp(38px, 7vw, 86px);
  padding: 60px 0 90px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 11px;
  border: 1px solid rgba(40, 104, 232, 0.25);
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--blue);
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.23rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
  box-shadow: 4px 5px 0 var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translate(-1px, -2px);
  outline: none;
}

.polaroid-stack {
  position: relative;
  width: min(330px, 76vw);
  aspect-ratio: 0.88;
  margin: 0 auto;
}

.polaroid-stack::before,
.polaroid-stack::after {
  content: "";
  position: absolute;
  inset: 8% 7% 5%;
  border: 1px solid rgba(32, 26, 20, 0.18);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.polaroid-stack::before {
  transform: rotate(-9deg) translate(-13px, 8px);
}

.polaroid-stack::after {
  transform: rotate(7deg) translate(13px, 3px);
}

.polaroid {
  position: absolute;
  z-index: 2;
  inset: 7% 7% 5%;
  padding: 13px 13px 54px;
  border: 1px solid rgba(32, 26, 20, 0.18);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
}

.scribble {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%) rotate(-2deg);
  color: var(--blue);
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 1.1rem;
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 10px 0 90px;
}

.card {
  min-height: 210px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.74);
}

.card-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
}

.card h2 {
  margin-bottom: 7px;
  font-size: 1.15rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.document {
  width: min(820px, 100%);
  margin: 48px auto 90px;
  padding: clamp(28px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}

.document h1 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 7vw, 4.7rem);
  line-height: 0.98;
}

.document .updated {
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 0.9rem;
}

.document section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.document h2 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.document h3 {
  margin-bottom: 7px;
  font-size: 1.02rem;
}

.document ul {
  padding-left: 1.3rem;
}

.document li + li {
  margin-top: 7px;
}

.document a {
  color: var(--blue-dark);
  text-underline-offset: 3px;
}

.language-jump {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.language-link {
  border: 1px solid var(--line);
  background: white;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 5px 15px 15px 5px;
  background: rgba(40, 104, 232, 0.075);
}

.support-email {
  display: inline-block;
  margin: 6px 0 10px;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 800;
}

footer {
  padding: 28px 20px 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

footer a {
  text-underline-offset: 3px;
}

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

  nav {
    max-width: 210px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 50px 0 72px;
  }

  .hero-visual {
    grid-row: 1;
  }

  .polaroid-stack {
    width: min(280px, 72vw);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
