﻿:root {
  color-scheme: light;
  --paper: #f3f1e9;
  --ink: #242b27;
  --muted: #62675e;
  --accent: #bb3e25;
  --line: #cecec2;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { color: var(--paper); background: var(--accent); }

.page {
  width: min(100% - 112px, 1280px);
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.period { color: var(--accent); }

main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding-block: 80px 96px;
}

.portrait {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 30px;
  border-radius: 50%;
  filter: grayscale(1);
}

h1 {
  margin: 0 0 0 -4px;
  font-size: clamp(72px, 8vw, 112px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.075em;
}

h1 > span:not(.period) {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -.065em;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  -webkit-tap-highlight-color: #bb3e2520;
  transition: color 160ms ease, border-color 160ms ease;
}

.links .fa, .links svg {
  flex: 0 0 20px;
  width: 20px;
  font-size: 18px;
  text-align: center;
}

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

@media (hover: hover) {
  .links a:hover { color: var(--accent); border-color: var(--accent); }
}

footer {
  padding-block: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 11px "Courier New", Courier, monospace;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .links { grid-template-columns: minmax(0, 1fr); }
  .links a { min-height: 52px; padding-block: 12px; }
}

@media (max-width: 760px) {
  .page { width: calc(100% - 48px); }
  main { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px 64px; }
  .portrait { width: 60px; height: 60px; }
  h1 { font-size: clamp(68px, 14vw, 96px); }
}

@media (max-width: 480px) {
  .links { grid-template-columns: minmax(0, 1fr); }
  .links a { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .links a { transition: none; }
}
