:root {
  --bg: #1a1a1a;
  --bg-card: #2c2c2e;
  --text: #f6f7f8;
  --text-secondary: #a0a0a0;
  --border: rgba(246, 247, 248, 0.1);
  --green: #6aaa64;
  --yellow: #f4c430;
  --purple: #b888c8;
  --tile-light: #f6f7f8;
  --tile-dark: #1a1a1a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

main.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

main.centered p {
  max-width: 420px;
}

header {
  text-align: center;
  margin-bottom: 48px;
}

.logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
}

.tile {
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 28px;
  position: relative;
}

.tile-green {
  background: var(--green);
}

.tile-hex {
  background: var(--yellow);
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.tile-mini {
  background: var(--tile-light);
  color: var(--tile-dark);
}

.tile-mini::before {
  content: "1";
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 9px;
  font-weight: 600;
}

.tile-purple {
  background: var(--purple);
  color: var(--text);
}

h1 {
  font-family: ui-serif, "New York", Georgia, serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

h2 {
  font-family: ui-serif, "New York", Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 16px;
  color: var(--text);
}

.tagline {
  color: var(--text-secondary);
  font-size: 18px;
}

.puzzle-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}

.puzzle-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-secondary);
}

ul {
  margin: 0 0 16px 24px;
  color: var(--text);
}

ul li {
  margin-bottom: 8px;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.meta {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

footer nav a {
  color: var(--text-secondary);
  margin: 0 12px;
}

footer nav a:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  main {
    padding: 32px 20px 20px;
  }
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 20px;
  }
}
