/* Fluent-inspired design tokens */

:root {
  --accent: #0078d4;
  --accent-hover: #106ebe;
  --accent-press: #005a9e;

  --bg: #faf9f8;            /* neutral foreground 2-ish page background */
  --bg-card: #ffffff;
  --stroke: #edebe9;
  --text: #201f1e;
  --text-secondary: #605e5c;

  --radius: 8px;
  --shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-hover: 0 6px 14px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .05);
  --header-bg: rgba(250, 249, 248, .8);
  --focus: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #479ef5;
    --accent-hover: #62a9f6;
    --accent-press: #2886de;

    --bg: #1b1a19;
    --bg-card: #252423;
    --stroke: #3b3a39;
    --text: #f3f2f1;
    --text-secondary: #c8c6c4;

    --header-bg: rgba(27, 26, 25, .8);
    --focus: #ffffff;
  }
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, "Segoe UI", "Segoe UI Variable Text", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header (acrylic) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--header-bg);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.brand-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  transition: background-color .15s ease;
}

.nav-list a:hover {
  background-color: var(--stroke);
  text-decoration: none;
}

/* Hero */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 28px;
  border-radius: 50%;
  font-size: 40px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #8764b8);
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.hero-role {
  margin: 12px 0 0;
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* About card */

main {
  flex: 1;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 64px;
  transition: box-shadow .2s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--accent);
}

.card p {
  margin: 0 0 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Media mentions */

.mentions-title {
  margin: 24px 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.mentions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mentions li {
  padding: 6px 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 15px;
}

.mentions li:last-child {
  border-bottom: none;
}

.card p.social-link {
  margin-top: 16px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 24px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

/* Responsive */

@media (max-width: 480px) {
  .hero {
    padding: 64px 0 48px;
  }

  .card {
    padding: 24px;
  }
}
