:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #536174;
  --line: #dce5ee;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --blue: #2364aa;
  --green: #2a9d8f;
  --yellow: #f4c430;
  --coral: #f26d5b;
  --shadow: 0 18px 40px rgba(20, 33, 61, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header,
.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--yellow), #fff4bf);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 24px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 36px;
  align-items: center;
  padding: 48px 0 36px;
}

.hero h1,
.legal h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p,
.lead {
  margin: 18px 0 0;
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-art {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(35, 100, 170, 0.15), rgba(42, 157, 143, 0.08)),
    var(--surface);
  box-shadow: var(--shadow);
}

.letter {
  position: absolute;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 2rem;
  font-weight: 900;
}

.letter-a {
  top: 42px;
  left: 42px;
  background: #ffd166;
}

.letter-b {
  top: 112px;
  right: 52px;
  background: #9be7d8;
}

.letter-c {
  bottom: 56px;
  left: 104px;
  background: #ff9f8e;
}

.mascot {
  position: absolute;
  right: 88px;
  bottom: 48px;
  width: 108px;
  height: 128px;
  border: 2px solid var(--ink);
  border-radius: 26px 26px 18px 18px;
  background: #ffffff;
  box-shadow: 5px 5px 0 var(--ink);
}

.mascot::before,
.mascot::after {
  content: "";
  position: absolute;
  top: 38px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
}

.mascot::before {
  left: 30px;
}

.mascot::after {
  right: 30px;
}

.smile {
  position: absolute;
  left: 36px;
  top: 66px;
  width: 36px;
  height: 18px;
  border-bottom: 3px solid var(--ink);
  border-radius: 0 0 40px 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 8px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(20, 33, 61, 0.06);
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

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

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 24px 56px;
}

.meta {
  color: var(--muted);
  font-weight: 700;
  margin: 18px 0 28px;
}

.legal section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.25rem;
}

.notice {
  padding: 18px;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #edf9f6;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.link-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

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

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

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

  .grid,
  .link-list {
    grid-template-columns: 1fr;
  }
}
