/* One column, left aligned. The owner's name is the one large element; everything else stays quiet. */
:root {
  --paper: #f2f4f3;
  --ink: #14202b;
  --muted: #55626e;
  --accent: #1d5c86; /* actions only: links, focus */
  --button-bg: #ffffff;
  --button-ink: #1f1f1f;
  --button-line: #747775;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1b23;
    --ink: #e4ebee;
    --muted: #9aa9b4;
    --accent: #8cc2e6;
    --button-bg: #131314;
    --button-ink: #e3e3e3;
    --button-line: #8e918f;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
}

.page {
  max-width: 64rem;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(3rem, 14vh, 9rem) clamp(1rem, 9vw, 8rem) var(--s5);
}

.name {
  margin: 0;
  font: 500 clamp(2.5rem, 7.5vw, 5rem) / 1.02 var(--serif);
  font-optical-sizing: auto;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin: var(--s3) 0 0;
  color: var(--muted);
  font-size: 1.1875rem;
  text-wrap: pretty;
}

.lede .email {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.note {
  max-width: 34rem;
  margin: var(--s2) 0 0;
}

.actions {
  margin-top: var(--s4);
}

/* Google's sign-in button: white (dark: near-black), grey outline, the four-colour G */
.google {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.875rem;
  padding: 0 1.25rem 0 1rem;
  border: 1px solid var(--button-line);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-ink);
  font: 500 1rem/1 var(--sans);
  text-decoration: none;
}

.google:hover {
  background: color-mix(in srgb, var(--button-bg) 90%, var(--ink));
}

.google img {
  display: block;
}

.text-link,
.link-button {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

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

.account {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s2);
  margin: 0 0 var(--s4);
  color: var(--muted);
  font-size: 0.9375rem;
}

.account-email {
  overflow-wrap: anywhere;
}

.section-title {
  margin: var(--s5) 0 var(--s3);
  color: var(--muted);
  font: 500 1.0625rem/1.4 var(--sans);
}

.projects {
  display: grid;
  gap: var(--s4);
  max-width: 40rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  color: inherit;
  text-decoration: none;
}

.project-name {
  color: var(--accent);
  font: 500 clamp(1.625rem, 3.5vw, 2.125rem) / 1.15 var(--serif);
  font-optical-sizing: auto;
}

.project-link:hover .project-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.project-host {
  color: var(--muted);
  font-size: 0.9375rem;
}

.project-text {
  max-width: 34rem;
  margin: var(--s1) 0 0;
  text-wrap: pretty;
}
