:root {
  color-scheme: dark;
  --cerulean: #003f5c;
  --cerulean-deep: #002f45;
  --ink: #073244;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.18);
  --line: rgba(255, 255, 255, 0.38);
  --text-muted: #4d7180;
  --shadow: 0 20px 50px rgba(0, 44, 64, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cerulean);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: white;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 280px),
    var(--cerulean);
}

a {
  color: inherit;
}

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

.site-header {
  display: grid;
  gap: 10px;
  padding: 6px 0 34px;
}

.site-name,
h1 {
  margin: 0;
  letter-spacing: 0;
}

.site-name {
  font-size: clamp(2.1rem, 8vw, 5.2rem);
  font-weight: 850;
  line-height: 0.96;
}

h1 {
  max-width: 780px;
  font-size: clamp(1.18rem, 3.7vw, 2.2rem);
  font-weight: 650;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.86);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 26px 58px rgba(0, 44, 64, 0.24);
  outline: none;
}

.tile:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.62), 0 26px 58px rgba(0, 44, 64, 0.24);
}

.tile-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--cerulean-deep);
}

.tile-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-copy {
  display: grid;
  gap: 8px;
}

.tile-copy strong {
  font-size: 1.1rem;
}

.tile-copy span {
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.tile-action {
  margin-top: auto;
  align-self: flex-start;
  color: var(--cerulean-deep);
  font-size: 0.76rem;
  font-weight: 800;
}

.watermark {
  position: fixed;
  right: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

@media (max-width: 860px) {
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding-top: 26px;
    padding-bottom: 74px;
  }

  .site-header {
    padding-bottom: 24px;
  }

  .tile-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tile {
    min-height: 188px;
    padding: 18px;
  }

  .watermark {
    position: static;
    width: min(100% - 24px, 1120px);
    margin: -46px auto 18px;
    text-align: right;
  }
}
