/* OutlierBio — the "outlier dot" look: a cluster of grey dots, one coral dot apart. */

:root {
  --bg: #fafaf7;
  --text: #12161c;
  --muted: #566070;
  --line: #e4e6e8;
  --dot: #9aa3b0;
  --accent: #e5482d;
  --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --text: #eef0f3;
    --muted: #9aa4b2;
    --line: #232a34;
    --dot: #4a5565;
    --accent: #ff6a4d;
    --card: #141920;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- header ---------- */

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand em { font-style: normal; font-weight: 400; color: var(--muted); }

.mark { width: 1.9rem; height: 1.9rem; }
.mark .dot, .hero-art .dot { fill: var(--dot); }
.mark .out, .hero-art .out { fill: var(--accent); }

nav a {
  margin-left: 1.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

nav a:hover { color: var(--text); }

nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- hero (home) ---------- */

.hero { padding: 1.5rem 0 0.5rem; }

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.5rem;
}

.hero-art .ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring 3.2s ease-out infinite;
}

@keyframes ring {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .ring { animation: none; opacity: 0.5; }
  html { scroll-behavior: auto; }
}

h1 {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

h1 .accent { color: var(--accent); }

.lede {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 36rem;
}

/* ---------- about: intro + portrait ---------- */

.about-head {
  display: grid;
  grid-template-columns: 1fr 14rem;
  gap: 2rem;
  align-items: center;
}

.portrait { position: relative; width: 14rem; }

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

/* the one coral dot, like the logo */
.portrait::after {
  content: "";
  position: absolute;
  top: 6%;
  right: 6%;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
}

@media (max-width: 640px) {
  .about-head { grid-template-columns: 1fr; gap: 1.25rem; }
  .portrait { order: -1; width: 9rem; }
}

/* ---------- content ---------- */

main.wrap { padding-top: 1.5rem; padding-bottom: 4.5rem; }

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

h2::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

p { margin: 0 0 1rem; }

a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

/* two cards on the home page */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.3rem 0.4rem;
}

.card h2 { margin-top: 0; font-size: 1.15rem; }

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
}

/* dot bullets */
ul { list-style: none; padding: 0; margin: 0 0 1rem; }

li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0.45rem 0;
}

li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--dot);
}

li:first-child::before { background: var(--accent); }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

footer .wrap { padding-top: 1.5rem; padding-bottom: 2.2rem; }

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

@media (max-width: 480px) {
  body { font-size: 17px; }
  .brand { font-size: 1.05rem; gap: 0.4rem; }
  .mark { width: 1.6rem; height: 1.6rem; }
  nav a { margin-left: 0.8rem; font-size: 0.88rem; }
  .lede { font-size: 1.15rem; }
}
