/* Same tokens as the I5R-80 (apps/i5r-80/src/app/globals.css). */
:root {
  --background: #ffffff;
  --foreground: #171717;
  --muted: #666666;
  --panel: #f6f6f6;
  --line: #d4d4d4;
  --accent: #e0702b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
    --muted: #9a9a9a;
    --panel: #151515;
    --line: #333333;
    --accent: #f08a4b;
  }
}

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

html {
  color-scheme: light dark;
}

body {
  min-height: 100vh;
  color: var(--foreground);
  background: var(--background);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.mark {
  height: 2.6rem;
  width: auto;
  overflow: visible;
}

.letters {
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 44px;
  font-weight: 900;
  font-style: italic;
}

.tagline {
  padding-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro {
  max-width: 36rem;
  margin-top: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  list-style: none;
}

.module {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.module:hover,
.module:focus-visible {
  border-color: var(--accent);
}

.module:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.module-id {
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  font-style: italic;
}

.module-kind {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.module-text {
  line-height: 1.4;
  color: var(--muted);
}
