/* ============================================================
   andruid.com
   Dark-first with a light toggle. Monospace accents, subtle
   text-game flavor. No frameworks, no dependencies.
   ============================================================ */

:root {
  --bg: #0c0f14;
  --text: #d7dee6;
  --muted: #929dab;
  --silver: #c5ccd6;
  --accent: #5fd3bf;
  --wip: #d7a94e;
  --border: #232a33;
  --chip: #151a21;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f4f0;
  --text: #23282e;
  --muted: #5d6771;
  --silver: #3d444d;
  --accent: #0e8a76;
  --wip: #8a6a1f;
  --border: #dcd9d2;
  --chip: #eceae4;
  color-scheme: light;
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

p {
  margin: 0.6rem 0;
}

em {
  font-style: italic;
}

/* ---------- Type: mono accents ---------- */

h1,
h2,
h3,
.pronouns,
.net,
.score,
#theme-toggle,
.wip {
  font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

h1 {
  font-size: 2.1rem;
  line-height: 1.15;
  margin: 0;
  color: var(--silver);
  letter-spacing: 0.02em;
}

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--silver);
  margin: 2.75rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

h2::before {
  content: "> ";
  color: var(--accent);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.portrait {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  flex-shrink: 0;
}

.cursor {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }
}

.pronouns {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.1rem 0 0.6rem;
}

.tagline {
  font-size: 1.1rem;
  margin: 0;
}

.motto {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.35rem 0 0;
}

/* ---------- Score readout ---------- */

.score {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
}

.score dt {
  color: var(--muted);
}

.score dt::after {
  content: " :";
}

.score dd {
  margin: 0;
  color: var(--silver);
}

@media (max-width: 560px) {
  .score {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .score dd {
    margin-bottom: 0.5rem;
  }
}

/* ---------- Inventory items ---------- */

.item {
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.item:hover {
  border-left-color: var(--accent);
}

.item p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.wip {
  color: var(--wip);
  font-size: 0.85em;
  font-weight: 400;
}

/* ---------- Network links ---------- */

.net {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  font-size: 0.9rem;
}

.net a {
  color: var(--silver);
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.net svg {
  width: 1.3rem;
  height: 1.3rem;
}

.net a:hover,
.net a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 3.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Theme toggle ---------- */

#theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--chip);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
}

#theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Mobile ---------- */

@media (max-width: 560px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .portrait {
    width: 6rem;
    height: 6rem;
  }

  h1 {
    font-size: 1.7rem;
  }
}

/* ---------- Print ---------- */

@media print {
  :root {
    --bg: #ffffff;
    --text: #000000;
    --muted: #444444;
    --silver: #000000;
    --accent: #000000;
    --wip: #444444;
    --border: #bbbbbb;
    --chip: #ffffff;
  }

  #theme-toggle,
  .cursor {
    display: none;
  }

  a {
    color: inherit;
  }
}
