:root {
  color-scheme: dark;
  --paper: #101010;
  --ink: #eeeeee;
  --secondary: #b5b5b5;
  --accent: var(--ink);
  --type-body: "Inter", Arial, sans-serif;
  --text-body: 1rem;
  --leading-body: 1.625;
  --leading-heading: 1.375;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
  /* SPACING  */
  --spacing-xsmall: 4px;
  --spacing-small: 8px;
  --spacing-medium: 16px;
  --spacing-large: 24px;
  --spacing-xlarge: 48px;
}

@supports (font-variation-settings: normal) {
  :root { font-family: InterVariable, sans-serif; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 6vw, 80px);
  background: var(--paper);
  color: var(--secondary);
  font-family: var(--type-body);
  font-feature-settings: 'ss07';
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
}

.profile {
  /* About 60–75 characters per full line in DM Sans at the body size. */
  width: min(100%, 30rem);
  overflow-wrap: break-word;
}

.profile__intro {
  display: grid;
  gap: 0px;
}

h1,
h2,
p {
  margin: 0;
  font: inherit;
}

h1,
h2 {
  color: var(--ink);
  font-weight: 500;
  line-height: var(--leading-heading);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.profile__role,
.profile-note p {
  color: var(--secondary);
}

.profile-note {
  display: grid;
  gap: var(--spacing-xsmall);
  margin-top: var(--spacing-large);
}

a {
  color: var(--ink);
  text-decoration: none;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.1875em;
}

.profile-note a {
  color: var(--ink);
  text-decoration-line: none;
  text-decoration-color: var(--secondary);
}

a:hover,
.email-action:hover {
  color: var(--accent);
  text-decoration-line: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 1px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-top: var(--spacing-large);
  color: var(--ink);
}

.email-action {
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  overflow-wrap: anywhere;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.1875em;
  cursor: pointer;
}

.email-action[data-copied="true"] {
  color: var(--accent);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
