:root {
  --cream: #fff8e9;
  --paper: #fffdf7;
  --ink: #173d68;
  --muted: #716b63;
  --coral: #f26549;
  --teal: #2fa99d;
  --yellow: #f5bd3d;
  --sky: #d9eef3;
  --line: rgba(23, 61, 104, 0.12);
  --shadow: 0 18px 50px rgba(62, 48, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(47, 169, 157, 0.18) 0 7rem, transparent 7.1rem),
    radial-gradient(circle at 92% 12%, rgba(242, 101, 73, 0.18) 0 8rem, transparent 8.1rem),
    linear-gradient(135deg, rgba(245, 189, 61, 0.1), transparent 44%),
    var(--cream);
  font-family: Inter, ui-rounded, "Hiragino Sans", "Yu Gothic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--coral);
  border: 3px solid var(--ink);
  border-radius: 12px 12px 17px 12px;
  box-shadow: 4px 4px 0 var(--yellow);
  transform: rotate(-4deg);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

nav a {
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--coral);
}

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

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(36px, 8vw, 96px);
  padding: 64px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 9vw, 7.3rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--coral);
  color: white;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.paper-scene {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.paper-sheet {
  position: absolute;
  width: min(390px, 86vw);
  aspect-ratio: 4 / 5;
  border: 3px solid var(--ink);
  border-radius: 25px 18px 34px 18px;
  box-shadow: var(--shadow);
}

.paper-sheet.back-one {
  background: var(--yellow);
  transform: rotate(9deg) translate(13px, -2px);
}

.paper-sheet.back-two {
  background: var(--teal);
  transform: rotate(-8deg) translate(-8px, 6px);
}

.paper-sheet.front {
  position: relative;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  transform: rotate(1.5deg);
}

.paper-title {
  display: block;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.suits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 12px;
  font-size: clamp(2rem, 6vw, 3.7rem);
  text-align: center;
}

.suits span:nth-child(1) { color: var(--ink); }
.suits span:nth-child(2) { color: var(--coral); }
.suits span:nth-child(3) { color: #f28a35; }
.suits span:nth-child(4) { color: var(--teal); }

.section {
  padding: 88px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: 24px 18px 28px 20px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 6px 6px 0 rgba(23, 61, 104, 0.14);
}

.card:nth-child(2) {
  transform: translateY(18px) rotate(1deg);
}

.card:nth-child(3) {
  transform: rotate(-1deg);
}

.card-number {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-weight: 900;
}

.panel {
  margin: 34px 0;
  padding: clamp(26px, 5vw, 54px);
  border: 2px solid var(--ink);
  border-radius: 30px 22px 38px 24px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow);
}

.panel.accent {
  background: var(--sky);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: white;
  border: 2px solid var(--ink);
  font-weight: 800;
}

.page-hero {
  padding: 80px 0 30px;
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
}

.prose {
  max-width: 820px;
  padding-bottom: 80px;
}

.prose h2 {
  margin-top: 54px;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
}

.prose ul {
  padding-left: 1.35rem;
}

.note {
  padding: 18px 22px;
  border-left: 6px solid var(--yellow);
  background: rgba(255, 253, 247, 0.9);
}

.site-footer {
  margin-top: 64px;
  padding: 42px 16px;
  color: var(--muted);
  text-align: center;
}

.site-footer a {
  margin: 0 8px;
  font-weight: 700;
}

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

  nav {
    gap: 10px 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero-copy {
    text-align: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .actions {
    justify-content: center;
  }

  .paper-scene {
    min-height: 410px;
  }

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

  .card:nth-child(2),
  .card:nth-child(3) {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
