/* The noahzr design system: colors, type, spacing, corners and
   components under the system's own token names. Light or dark follows
   the visitor's own setting; the dark values are the system's proposed
   dark theme, adopted by Noah on Dec 2, 2026. */

:root {
  color-scheme: light;

  --font-sans: Arial, Helvetica, sans-serif;

  --nzground: #d7d9dc;
  --nzsurface: #eceef1;
  --nzcard: #ffffff;
  --nzink: #111111;
  --nzinksoft: #565c64;
  --nzline: #cdd0d5;
  --nzlinestrong: #777777;
  --nzfocus: #245cb7;

  --nzspace6: 6px;
  --nzspace8: 8px;
  --nzspace9: 9px;
  --nzspace10: 10px;
  --nzspace12: 12px;
  --nzspace13: 13px;
  --nzspace16: 16px;
  --nzspace18: 18px;
  --nzspace20: 20px;
  --nzspace24: 24px;
  --nzspace28: 28px;
  --nzspace32: 32px;
  --nzspace40: 40px;
  --nzspace56: 56px;

  --nzradius5: 5px;
  --nzradius12: 12px;
  --nzradius28: 28px;
  --nzpill: 100px;
  --nzcircle: 50%;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --nzground: #08090a;
    --nzsurface: #1d1f22;
    --nzcard: #2a2d32;
    --nzink: #eceef1;
    --nzinksoft: #9aa0a8;
    --nzline: #3f434a;
    --nzlinestrong: #8a9099;
    --nzfocus: #6f9cf0;
  }
}

/* Page shell: a backdrop, one rounded panel. */
* { box-sizing: border-box; }

:root {
  font-family: var(--font-sans);
  color: var(--nzink);
  background: var(--nzground);
}

body {
  margin: 0;
  padding: var(--nzspace40) var(--nzspace20);
  min-width: 240px;
  font-size: 1rem;
  line-height: 1.55;
}

main {
  width: 100%;
  max-width: 640px;
  margin: auto;
  padding: var(--nzspace56) var(--nzspace28) var(--nzspace28);
  background: var(--nzsurface);
  border-radius: var(--nzradius28);
}

/* Headings are centered; paragraphs and lists read left-aligned. */
h1, h2, h3 {
  text-align: center;
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 var(--nzspace24);
  font-size: clamp(1.45rem, 4.6vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

h2 {
  margin: var(--nzspace40) 0 var(--nzspace12);
  font-size: 1.25rem;
  line-height: 1.3;
}

h3 {
  margin: 0 0 var(--nzspace8);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

p, ul { margin: 0 0 var(--nzspace16); }
ul { padding-left: var(--nzspace20); }
li + li { margin-top: var(--nzspace8); }

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--nzfocus);
  outline-offset: 4px;
}

.nzsmall {
  font-size: 0.875rem;
  color: var(--nzinksoft);
}

/* Menu: a centered row of text links, each tall enough to tap. */
nav.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 var(--nzspace20);
  margin: 0 0 var(--nzspace32);
}

nav.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

nav.menu a:hover { text-decoration: underline; }

/* Home: avatar, name, bio, social pills, all centered. */
.avatar {
  display: block;
  margin: 0 auto var(--nzspace20);
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: var(--nzcircle);
}

.bio {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.bio + .cards { margin-top: var(--nzspace32); }

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--nzspace6);
  max-width: 460px;
  margin: var(--nzspace24) auto var(--nzspace8);
}

.socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--nzspace9) var(--nzspace13);
  border: 1px solid var(--nzline);
  border-radius: var(--nzpill);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.socials a:hover { background: var(--nzcard); }

/* Platform icons (Simple Icons, CC0) before each social name, in the
   text color so they follow light and dark. */
.socials a { gap: var(--nzspace8); }

.socials svg, a.card svg {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  fill: currentColor;
}

a.card svg {
  display: inline-block;
  vertical-align: -0.2em;
  margin-right: var(--nzspace8);
}

/* Cards: a white layer on the panel, no border until hover. */
.cards {
  display: grid;
  gap: var(--nzspace16);
}

.card {
  display: block;
  padding: var(--nzspace18) var(--nzspace20);
  background: var(--nzcard);
  border: 1px solid transparent;
  border-radius: var(--nzradius12);
}

.card > :last-child { margin-bottom: 0; }
.card h2 { margin-top: 0; }

a.card {
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

a.card .nzsmall {
  display: block;
  font-weight: 400;
}

a.card:hover {
  border-color: var(--nzlinestrong);
  transform: translateY(-2px);
}

footer {
  margin-top: var(--nzspace40);
  text-align: center;
  font-size: 0.875rem;
  color: var(--nzinksoft);
}

footer p { margin: 0; }

/* Phones: the panel fills the screen. */
@media (max-width: 600px) {
  :root { background: var(--nzsurface); }
  body { padding: 0; }
  main {
    border-radius: 0;
    padding: var(--nzspace40) var(--nzspace20) var(--nzspace28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .socials a, a.card { transition: none !important; }
}
