:root {
  --bg: #f6f3ec;
  --ink: #1d1b18;
  --muted: #6c665c;
  --tile: #ffffff;
  --line: rgba(29, 27, 24, 0.08);
  --radius: 28px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --ink: #f3efe7;
    --muted: #a39d92;
    --tile: #1c1b19;
    --line: rgba(255, 255, 255, 0.08);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; }

.intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 32px;
}

.mark {
  display: inline-grid;
  grid-template-columns: repeat(2, 14px);
  gap: 5px;
  padding: 11px;
  border-radius: 16px;
  background: var(--tile);
  border: 1px solid var(--line);
}
.dot { width: 14px; height: 14px; border-radius: 50%; }
.d1 { background: #0278ef; }
.d2 { background: #48af72; }
.d3 { background: #e1344f; }
.d4 { background: #d48a49; }

h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 24px 0 12px;
}

.lede {
  max-width: 620px;
  margin: 0;
  font-size: 20px;
  color: var(--muted);
}

.grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  min-height: 290px;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c2) 85%, transparent), transparent 60%),
    linear-gradient(150deg, var(--c1), color-mix(in srgb, var(--c1) 55%, #000));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 30px -18px color-mix(in srgb, var(--c1) 80%, #000);
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s;
}
.tile::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
}
.tile:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 24px 40px -20px color-mix(in srgb, var(--c1) 90%, #000); }
.tile:hover::after { transform: scale(1.25); }
.tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.tile img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 1;
}

.body { position: relative; z-index: 1; }
.tile h2 { font-size: 28px; letter-spacing: -0.02em; margin: 10px 0 2px; }
.tag { margin: 0 0 10px; font-weight: 600; opacity: 0.95; }
.tile p:last-child { margin: 0; opacity: 0.85; font-size: 16px; }

.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.status.soon { background: rgba(0, 0, 0, 0.22); }

.go {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 22px;
  opacity: 0.7;
  transition: transform 0.25s, opacity 0.25s;
  z-index: 1;
}
.tile:hover .go { transform: translate(3px, -3px); opacity: 1; }

.note {
  color: var(--ink);
  background: var(--tile);
  border: 2px dashed var(--line);
  box-shadow: none;
  justify-content: flex-end;
}
.note::after { background: color-mix(in srgb, #d48a49 12%, transparent); }
.note h2 { font-size: 24px; line-height: 1.2; }
.note .status { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.note:hover { box-shadow: none; }

.wide { grid-column: span 2; flex-direction: row; align-items: flex-end; }
.wide img { width: 112px; height: 112px; border-radius: 26px; align-self: flex-start; }
.wide .body { max-width: 440px; margin-left: auto; }
.wide h2 { font-size: 40px; }

footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 64px;
  color: var(--muted);
}
footer a { color: var(--ink); }
footer .small { font-size: 13px; }

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

@media (max-width: 600px) {
  .intro { padding: 48px 16px 20px; }
  .grid { grid-template-columns: 1fr; padding: 12px 16px 40px; gap: 14px; }
  .wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .wide img { width: 72px; height: 72px; border-radius: 18px; }
  .wide .body { margin-left: 0; }
  .wide h2 { font-size: 28px; }
  .tile { min-height: 0; }
  footer { padding: 8px 16px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .tile::after, .go { transition: none; }
}
