:root {
  --bg: #E6EEEE;
  --ink: #10262C;
  --muted: #4A6169;
  --accent: #C24E00;
  --rule: #10262C33;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F2227;
    --ink: #E9F1F1;
    --muted: #8FA6AC;
    --accent: #FF8A3D;
    --rule: #E9F1F133;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Familjen Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0 clamp(16px, 4vw, 64px);
  padding: clamp(24px, 5vw, 72px);
  max-width: 1280px;
  margin: 0 auto;
}

.text {
  align-self: center;
}

h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(3.5rem, 13vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.lede {
  margin: clamp(16px, 2.5vw, 28px) 0 0;
  max-width: 30ch;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.4;
  color: var(--muted);
}

.links {
  list-style: none;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  max-width: 30rem;
  border-top: 1px solid var(--rule);
}

.links li {
  border-bottom: 1px solid var(--rule);
}

.links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
}

.links a span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  transition: color .15s;
}

.links a:hover,
.links a:focus-visible {
  color: var(--accent);
}

.links a:hover span,
.links a:focus-visible span {
  color: var(--accent);
}

.links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.portrait {
  margin: 0;
  align-self: center;
  justify-self: end;
  width: min(100%, 560px);
  aspect-ratio: 1;
  position: relative;
}

.portrait img,
.portrait canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portrait canvas {
  image-rendering: pixelated;
  pointer-events: none;
}

@media (max-width: 760px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .portrait {
    justify-self: center;
    width: min(88%, 420px);
    margin-top: 24px;
  }
}
