* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  background-color: #0a1632;
  background-image:
    radial-gradient(ellipse 60% 50% at 18% 18%, hsla(220, 80%, 50%, 0.65), transparent 60%),
    radial-gradient(ellipse 55% 45% at 82% 12%, hsla(280, 65%, 50%, 0.55), transparent 60%),
    radial-gradient(ellipse 65% 55% at 92% 82%, hsla(190, 80%, 45%, 0.60), transparent 60%),
    radial-gradient(ellipse 60% 50% at 8% 92%, hsla(255, 70%, 40%, 0.65), transparent 60%),
    radial-gradient(ellipse 40% 35% at 60% 55%, hsla(340, 55%, 38%, 0.25), transparent 70%),
    linear-gradient(135deg, #08132c 0%, #15103a 45%, #0a2542 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  max-width: 760px;
  margin: 2.75rem auto;
  padding: 2.75rem 2.25rem 3rem;
  color: #0f172a;
  line-height: 1.65;

  /* Frosted glass */
  background-color: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    0 1px 2px rgba(2, 6, 23, 0.25),
    0 12px 40px rgba(2, 6, 23, 0.45),
    0 30px 90px rgba(2, 6, 23, 0.35);

  -webkit-font-smoothing: antialiased;
}

/* Fallback for browsers without backdrop-filter (older Firefox) */
@supports not (backdrop-filter: blur(1px)) {
  body { background-color: rgba(255, 255, 255, 0.92); }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 2.5rem;
}
nav .brand { font-weight: 700; font-size: 1.05rem; text-decoration: none; color: #0f172a; }
nav ul { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
nav a { text-decoration: none; color: #475569; font-size: 0.95rem; }
nav a:hover { color: #1e3a8a; }

h1 { font-size: 2.15rem; margin: 0 0 0.5rem; line-height: 1.2; letter-spacing: -0.015em; color: #0f172a; }
h2 { font-size: 1.45rem; margin-top: 2.5rem; margin-bottom: 0.75rem; line-height: 1.3; color: #0f172a; }
h3 { font-size: 1.1rem; margin-top: 2rem; margin-bottom: 0.4rem; color: #0f172a; }

p { margin: 0 0 1.15rem; color: #1e293b; }

a { color: #1e40af; text-decoration: none; }
a:hover { text-decoration: underline; }

.role { font-size: 1.1rem; color: #334155; font-weight: 500; margin-bottom: 1.5rem; }

.hero p { font-size: 1.05rem; }

.post-list { list-style: none; padding: 0; margin-top: 1rem; }
.post-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.post-list a { font-weight: 500; }
.post-list .date { font-size: 0.85rem; color: #64748b; }

footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.88rem;
  color: #475569;
}
footer a { color: #475569; text-decoration: underline; }

article p { margin-bottom: 1.25rem; }
article h2 { margin-top: 2.25rem; }

.headshot {
  float: right;
  width: 200px;
  height: auto;
  margin: 0 0 1rem 1.5rem;
  border-radius: 12px;
  display: block;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 8px 24px rgba(2, 6, 23, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.cert-list { list-style: disc; padding-left: 1.5rem; }
.cert-list li { margin-bottom: 0.4rem; color: #1e293b; }

.post-meta {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  body {
    margin: 0.75rem;
    padding: 1.5rem 1.25rem 2.5rem;
    border-radius: 16px;
  }
  .headshot { float: none; margin: 0 auto 1.5rem; width: 60%; }
  h1 { font-size: 1.75rem; }
  nav { flex-direction: row; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
  nav ul { gap: 1rem; }
}
