/* bryanzchen.com — minimal, text-forward stylesheet. No frameworks, no JS. */

:root {
  color-scheme: light dark;

  --bg: #fdfdfc;
  --fg: #1c1c1c;
  --muted: #5a5a5a;
  --accent: #0b5fa5;
  --rule: #d9d9d6;

  --measure: 65ch;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
          "Apple Color Emoji", "Segoe UI Emoji";
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --fg: #e8e8e6;
    --muted: #a6a6a3;
    --accent: #6fb3ef;
    --rule: #333331;
  }
}

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

html {
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--fg);
  overflow-wrap: break-word;
}

/* Layout: one comfortable reading column */
.site-header,
main,
.site-footer {
  max-width: var(--measure);
  margin-inline: auto;
}

.site-header {
  padding-top: 4rem;
  padding-bottom: 0.25rem;
}

main {
  padding-bottom: 3rem;
}

.site-footer {
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.site-footer p {
  font-size: 0.9rem;
}

/* Type */
h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}


p {
  margin: 0 0 1rem;
}

.bio {
  font-size: 1.15rem;
  margin: 0;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link: hidden until focused */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  color: var(--accent);
  font-weight: 600;
  z-index: 1;
}

.skip-link:focus {
  top: 1rem;
}

/* Small screens */
@media (max-width: 40em) {
  .site-header {
    padding-top: 2.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
