*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --text: #1a1816;
  --text-muted: #6b6560;
  --border: rgba(26, 24, 22, 0.08);
  --accent: #2c2825;
  --shadow: 0 1px 2px rgba(26, 24, 22, 0.04), 0 8px 24px rgba(26, 24, 22, 0.06);
  --shadow-hover: 0 2px 4px rgba(26, 24, 22, 0.06), 0 16px 40px rgba(26, 24, 22, 0.1);
  --radius: 14px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111010;
    --surface: #1a1918;
    --text: #f2efeb;
    --text-muted: #9a948d;
    --border: rgba(242, 239, 235, 0.08);
    --accent: #f2efeb;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.25), 0 16px 40px rgba(0, 0, 0, 0.4);
  }
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(120, 110, 100, 0.08), transparent),
    var(--bg);
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 3rem 1.25rem 2.5rem;
  max-width: 32rem;
  margin: 0 auto;
}

.hero {
  text-align: center;
  margin-bottom: 2.25rem;
}

.title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 2.625rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.credentials {
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.credentials li + li {
  margin-top: 0.15rem;
}

.section-heading {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.education {
  width: 100%;
}

.edu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.edu-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.edu-item:first-child {
  padding-top: 0;
}

.edu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.edu-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.edu-school {
  font-weight: 500;
  font-size: 0.9375rem;
}

.edu-dates {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.edu-degree {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 2rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(120, 110, 100, 0.2);
}

.link-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}

.link-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.link-label {
  font-weight: 500;
  font-size: 0.9375rem;
}

.link-handle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  flex-shrink: 0;
  font-size: 1.125rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.link-card:hover .link-arrow {
  transform: translateX(3px);
  color: var(--text);
}

.footer {
  margin-top: 3rem;
  text-align: center;
}

.footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
