/* Aura design language: no boxed cards, serif names, a soft aura in the card's accent. */
:root {
  --accent: #216A8E;
  --canvas: #F6F5EF;
  --surface: #FFFEFA;
  --ink: #1D2B3A;
  --muted: #596877;
  --line: #DEE5E9;
  --on-accent: #FFFFFF;
  --serif: "New York", ui-serif, "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #131C26;
    --surface: #1D2A37;
    --ink: #F2F6FA;
    --muted: #AEBECD;
    --line: #344858;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* The aura: a wide, soft glow in the card's own colour behind the portrait. */
.aura {
  position: fixed;
  inset: -20vh -30vw auto -30vw;
  height: 75vh;
  background:
    radial-gradient(closest-side at 50% 55%, color-mix(in srgb, var(--accent) 34%, transparent), transparent),
    radial-gradient(closest-side at 28% 40%, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

body.theme-bold { --canvas: #152637; --ink: #FFFFFF; --muted: rgba(255,255,255,.75); --line: rgba(255,255,255,.16); }
body.theme-classic { --canvas: color-mix(in srgb, var(--accent) 38%, #000); --ink: #FFFFFF; --muted: rgba(255,255,255,.85); --line: rgba(255,255,255,.18); }
body.theme-minimal .aura { opacity: .35; }

main, .footer { position: relative; z-index: 1; width: 100%; max-width: 30rem; padding: 0 1.5rem; }

main {
  flex: 1;
  padding-top: max(3.5rem, env(safe-area-inset-top));
}

.status { text-align: center; color: var(--muted); margin-top: 30vh; }
.status strong { display: block; font: 600 1.6rem/1.2 var(--serif); color: var(--ink); margin-bottom: .5rem; }

.identity { text-align: center; }

.portrait {
  width: 8.5rem;
  height: 8.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent), 0 18px 50px color-mix(in srgb, var(--accent) 30%, transparent);
  overflow: hidden;
}

.portrait img { width: 100%; height: 100%; object-fit: cover; }

.initials { font: 600 2.75rem/1 var(--serif); color: var(--accent); }
body.theme-bold .initials, body.theme-classic .initials { color: var(--ink); }

.name {
  font: 600 2.25rem/1.1 var(--serif);
  letter-spacing: -.01em;
  margin: 0;
  overflow-wrap: anywhere;
}

.pronouns { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; }
.role { margin: .5rem 0 0; color: var(--muted); font-size: 1.05rem; }
.logo { display: block; max-height: 2.5rem; max-width: 9rem; margin: 1rem auto 0; object-fit: contain; }

.actions { display: flex; justify-content: center; margin: 1.75rem 0 1.5rem; }

.primary {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 3.25rem;
  padding: 0 2rem;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 1.05rem/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent);
}
.primary:active { transform: scale(.97); }
.primary:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; }

.bio { text-align: center; margin: 0 0 2rem; white-space: pre-line; overflow-wrap: anywhere; }

.section-label {
  font: 600 .78rem/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 2rem 0 .5rem;
}

.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--line); }
.rows a {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .85rem 0;
  color: inherit;
  text-decoration: none;
  min-height: 3rem;
}
.rows .label { font-size: .8rem; color: var(--muted); }
.rows .value { color: var(--accent); overflow-wrap: anywhere; }
body.theme-bold .rows .value, body.theme-classic .rows .value { color: var(--ink); }

.project-image { width: 100%; border-radius: 18px; display: block; margin: .5rem 0 1rem; }
.project-title { font: 600 1.35rem/1.2 var(--serif); margin: .25rem 0; }
.project-description { margin: .25rem 0 .75rem; color: var(--muted); white-space: pre-line; }
.project-link { color: var(--accent); font-weight: 600; text-decoration: none; }
body.theme-bold .project-link, body.theme-classic .project-link { color: var(--ink); text-decoration: underline; }

.footer {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  padding-top: 3rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}
.footer p { margin: .25rem 0; }
.footer a { color: inherit; }
.wordmark { font-family: var(--serif); font-weight: 600; color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .card:not([hidden]) { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
