/* Layout: one narrow column, left-aligned, centered in the viewport on wide screens.
   Accent = yellowcake (uranium concentrate) ochre. */
:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --surface: #efede4;
  --fg: #1b1a16;
  --muted: #6b675a;
  --line: #dedacb;
  --accent: #8a6400;
  --mark: #e2b100;
  --mark-fg: #1b1a16;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131310;
    --surface: #1c1b17;
    --fg: #eceae2;
    --muted: #9a968a;
    --line: #2c2a24;
    --accent: #f0c63a;
    --mark: #f0c63a;
    --mark-fg: #131310;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #131310;
  --surface: #1c1b17;
  --fg: #eceae2;
  --muted: #9a968a;
  --line: #2c2a24;
  --accent: #f0c63a;
  --mark: #f0c63a;
  --mark-fg: #131310;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: 3rem;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

main {
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Periodic-table tile for uranium */
.tile {
  width: 4.25rem;
  aspect-ratio: 1;
  max-width: 100%;
  background: var(--mark);
  color: var(--mark-fg);
  border-radius: 0.5rem;
  padding: 0.4rem 0.45rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: var(--font-mono);
  line-height: 1;
}

.tile .z { font-size: 0.625rem; font-weight: 500; }

.tile .sym {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  align-self: center;
  letter-spacing: -0.02em;
}

.tile .mass { font-size: 0.5625rem; opacity: 0.75; }

header { display: flex; flex-direction: column; gap: 1.25rem; }

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 11vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 30ch;
  text-wrap: pretty;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

nav li { border-bottom: 1px solid var(--line); }

nav a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1rem 0.25rem;
  color: var(--fg);
  text-decoration: none;
  border-radius: 0.25rem;
  transition: color 0.15s, padding 0.2s;
}

nav .name { font-weight: 600; }

nav .handle {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

nav .arrow {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.2s, color 0.15s;
}

nav a:hover .name,
nav a:hover .arrow { color: var(--accent); }

nav a:hover .arrow { transform: translate(2px, -2px); }

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

.tracks { display: flex; flex-direction: column; gap: 0.6rem; }

.label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tickers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.tickers li {
  background: var(--surface);
  border-radius: 0.25rem;
  padding: 0.15rem 0.45rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

footer a {
  color: inherit;
  text-underline-offset: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
