/* Colours, borders and shadows match the ScryHarder inventory console. */
:root {
  --background: oklch(94.27% 0.0268 242.57);
  --surface: oklch(100% 0 0);
  --foreground: oklch(0% 0 0);
  --main: oklch(66.9% 0.18368 248.8066);
  --ok: oklch(82% 0.16 145);
  --warn: oklch(86% 0.15 75);
  --border: 2px solid #000;
  --radius: 5px;
  --shadow: 4px 4px 0 0 #000;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

h1, h2, .wordmark, .pill, .tile strong { font-weight: 700; }

header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem;
  border-bottom: var(--border);
}

.wordmark { font-size: 1.125rem; letter-spacing: -0.025em; color: inherit; text-decoration: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2rem;
  padding: 0 0.625rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--warn);
  font-size: 0.75rem;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

main {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.card, .tile {
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card { background: var(--surface); padding: 1.5rem; }
.hero { background: var(--main); }
.hero h1 { font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -0.025em; line-height: 1.1; }
.hero p { margin-top: 0.5rem; font-size: 1.125rem; }

h2 {
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.tile strong { font-size: 1.25rem; }
.tile span { font-size: 0.75rem; opacity: 0.75; }
.tile.ok { background: var(--ok); }

/* Pressing into the shadow, as the console's buttons do. */
.tile:hover, .tile:focus-visible { transform: translate(4px, 4px); box-shadow: none; }
.tile:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

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

.card p + p { margin-top: 0.75rem; }
.card a:not(.tile) { color: inherit; }

footer { padding: 1rem; border-top: var(--border); font-size: 0.75rem; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 0.5rem; }
footer a { color: inherit; }
