:root{
  --bg:#f4f7fb;
  --paper:#ffffff;
  --text:#0b1324;
  --muted:#42526b;

  --line: rgba(11,19,36,.10);

  --blue:#1f5fbf;
  --blueDeep:#123b86;

  --blueWash: rgba(31,95,191,.10);
  --blueWash2: rgba(31,95,191,.16);

  --shadow: 0 14px 40px rgba(2,6,23,.08);

  --radius:18px;
  --max:980px;
}

*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);

  /* smoother, less “banding” near footer */
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(31,95,191,.14), transparent 55%),
    radial-gradient(900px 650px at 110% 12%, rgba(18,59,134,.10), transparent 60%),
    linear-gradient(180deg, #f7f9fd, var(--bg));
  background-attachment: fixed;

  line-height:1.55;
  letter-spacing:.01em;
}

a{ color:var(--blueDeep); text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:28px 18px 80px;
}

header.wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;

  padding:16px 18px;
  background: rgba(255,255,255,.76);

  border:1px solid var(--line);
  border-radius:var(--radius);

  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);

  /* normal scroll (NOT sticky) */
  position: static;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:260px;
}
.brand strong{
  font-size:16px;
  font-weight:700;
  letter-spacing:.02em;
}
.brand span{
  font-size:13px;
  color:var(--muted);
}

nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.tab{
  display:inline-block;
  border:1px solid transparent;
  padding:9px 12px;
  border-radius:14px;

  font-size:13px;
  color:var(--muted);
  background:transparent;

  cursor:pointer;
  transition: all .15s ease;
  user-select:none;
}

.tab:hover{
  background: var(--blueWash);
  color: var(--text);
  border-color: rgba(31,95,191,.18);
}

/* Multi-page active state */
.tab[aria-current="page"]{
  background: var(--blueWash2);
  border-color: rgba(31,95,191,.28);
  color: var(--text);
}

/* (keeps compatibility if any old aria-selected remains somewhere) */
.tab[aria-selected="true"]{
  background: var(--blueWash2);
  border-color: rgba(31,95,191,.28);
  color: var(--text);
}

main{ margin-top:22px; }

.panel{
  background: rgba(255,255,255,.84);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:28px 24px;
  backdrop-filter: blur(8px);
}

h1{
  margin:0;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-.02em;
}

.lead{
  margin:0;
  color:var(--muted);
  font-size:16px;
  max-width:76ch;
}

p{ max-width:68ch; }

.cardrow{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:14px;
}

.card{
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  background: rgba(255,255,255,.94);
}

.card h3{
  margin:0 0 6px;
  font-size:14px;
  font-weight:700;
}

.card p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.u{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-decoration-color: rgba(31,95,191,.45);
  text-underline-offset:4px;
}

.divider{
  height:1px;
  background: linear-gradient(to right, transparent, rgba(11,19,36,.14), transparent);
  margin:18px 0;
}

.minimal-block{
  font-size:16px;
  max-width:92ch;
}

.micro{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
}

.note{
  border-left:3px solid rgba(31,95,191,.55);
  padding-left:12px;
  color:var(--muted);
  font-size:13px;
  margin-top:14px;
  max-width:92ch;
}

.callout{
  border:1px solid rgba(31,95,191,.22);
  background: rgba(31,95,191,.06);
  border-radius:16px;
  padding:14px;
  color:var(--muted);
  font-size:13px;
}

.callout strong{ color:var(--text); }

.boxgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:14px;
}

.bullets{
  margin:10px 0 0;
  padding:0;
  list-style:none;
  color:var(--muted);
  font-size:13px;
}

.bullets li{
  padding:6px 0;
  border-bottom:1px solid rgba(11,19,36,.07);
}
.bullets li:last-child{ border-bottom:none; }

.tag{
  display:inline-block;
  font-size:12px;
  color:var(--muted);
  border:1px solid rgba(11,19,36,.10);
  background: rgba(255,255,255,.60);
  padding:6px 10px;
  border-radius:999px;
  margin:6px 8px 0 0;
}

footer.wrap{
  /* keep footer clean + readable */
  padding-top:18px;
  padding-bottom:28px;

  margin-top:18px;
  color: rgba(66,82,107,.85);
  font-size:12px;
  text-align:center;

  /* no “card” look */
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

footer.wrap a{ color: rgba(66,82,107,.85); }
footer.wrap a:hover{ color: var(--text); }

@media (max-width:740px){
  h1{ font-size:28px; }
  .cardrow, .boxgrid{ grid-template-columns:1fr; }
}


.profile-pic{
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 999px;
  display: block;
  margin: 0 0 18px;
  border: 1px solid rgba(11,19,36,.10);
}
@media (max-width:740px){
  .profile-pic{
    width: 140px;
    height: 140px;
  }
}