:root{
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --bg:#ffffff;
  --accent:#2563eb;
  --accent-soft:rgba(37,99,235,.08);
  --radius:14px;
  --radius-sm:10px;
  --max:1120px;
}

/* RESET & BASE */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.8;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto;display:block}
a{
  color:var(--accent);
  text-decoration:none;
  transition:color .15s ease
}
a:hover{color:#1d4ed8;text-decoration:underline}

.container-max{
  max-width:var(--max);
  margin-inline:auto;
  padding-inline:1.25rem
}

/* HEADER */
header{
  background:#fff;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:100;
}
.site-brand{
  font-weight:800;
  font-size:1.5rem;
  letter-spacing:-.5px;
}
nav a{
  color:var(--text);
  font-weight:600;
  margin-left:1.25rem;
  position:relative;
}
nav a::after{
  content:"";
  position:absolute;
  left:0;bottom:-6px;
  width:0;height:2px;
  background:var(--accent);
  transition:width .2s ease;
}
nav a:hover::after{width:100%}

/* TYPOGRAPHY */
h1{
  font-size:2.4rem;
  line-height:1.2;
  letter-spacing:-.8px;
}
h2{
  font-size:1.7rem;
  margin-top:3rem;
  letter-spacing:-.4px;
}
h3{
  font-size:1.25rem;
}
p{margin-bottom:1.4rem}

.lede{
  font-size:1.15rem;
  color:#334155;
  max-width:720px;
}

/* HOME BIO CARDS */
.bio-card{
  height:100%;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}
.bio-card:hover{
  transform:translateY(-6px);
  border-color:#dbeafe;
  box-shadow:
    0 10px 30px rgba(15,23,42,.08),
    0 2px 6px rgba(15,23,42,.05);
}
.bio-card img{
  height:230px;
  object-fit:cover;
}
.bio-card .card-body{
  padding:1.1rem 1.15rem 1.25rem;
}
.bio-card h3{
  margin:.2rem 0;
}
.bio-card p{
  color:var(--muted);
  font-size:.95rem;
}

/* BIO PAGE */
article{
  max-width:760px;
  margin-inline:auto;
  padding-top:1rem;
}
.profile-img{
  width:190px;
  height:190px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:
    0 15px 40px rgba(15,23,42,.18),
    inset 0 0 0 1px rgba(255,255,255,.4);
  margin-inline:auto;
}
.meta{
  color:var(--muted);
  font-size:.95rem;
}

/* SECTION SEPARATION */
article section{
  padding-top:1.5rem;
}
article section:not(:last-child){
  border-bottom:1px solid var(--border);
  padding-bottom:2rem;
}

/* TRUST & AUTHOR */
.trust-line{
  font-size:.85rem;
  color:var(--muted);
  margin-bottom:1rem;
}
.author-box{
  margin-top:3rem;
  padding-top:1.5rem;
  border-top:1px solid var(--border);
  font-size:.9rem;
  color:#475569;
  background:linear-gradient(to right, var(--accent-soft), transparent);
  padding-left:1rem;
}

/* TABLES (AGES PAGE) */
table{
  width:100%;
  border-collapse:collapse;
  margin-top:1.5rem;
}
th,td{
  padding:.7rem .6rem;
  border-bottom:1px solid var(--border);
  text-align:left;
}
th{
  font-size:.75rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}

/* FORMS */
input,textarea{
  width:100%;
  padding:.7rem .75rem;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  font-family:inherit;
  transition:border .15s ease, box-shadow .15s ease;
}
input:focus,textarea:focus{
  outline:none;
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
button{
  background:var(--accent);
  color:#fff;
  border:none;
  padding:.65rem 1.4rem;
  border-radius:var(--radius-sm);
  font-weight:600;
  cursor:pointer;
  transition:background .15s ease, transform .1s ease;
}
button:hover{background:#1d4ed8}
button:active{transform:translateY(1px)}

/* FOOTER */
footer{
  margin-top:5rem;
  padding-top:2rem;
  border-top:1px solid var(--border);
}
footer p,footer a{
  font-size:.9rem;
  color:#475569;
}

/* MOBILE */
@media(max-width:768px){
  h1{font-size:1.95rem}
  h2{font-size:1.5rem}
  .profile-img{width:150px;height:150px}
  nav a{margin-left:.75rem}
}