:root {
  color-scheme: light;
  --bg: #f5eddb;
  --text: #1f1c18;
  --soft: #5a5348;
  --line: #a99f8b;
  --accent: #bd2d15;
  --mono: "Ubuntu Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

::selection { background: var(--accent); color: var(--bg); }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
}

.avatar {
  display: block;
  width: 116px;
  height: 116px;
  margin: 0 0 2rem;
  border-radius: 22px;
  padding: 6px;
  border: 2px dashed #857b68;
  object-fit: cover;
  transform: rotate(-3deg);
  user-select: none;
  -webkit-user-select: none;
}

h1, h2, h3 {
  line-height: 1.15;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 9vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 1.75rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h3 {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 2.25rem 0 0.5rem;
}

h3::after {
  content: "_";
  content: "_" / "";
  margin-left: 0.15em;
  animation: blink 1.1s steps(1) infinite;
}

p { margin: 0 0 1.25rem; max-width: 38rem; }

header p:first-of-type { font-size: 1.1875rem; line-height: 1.6; font-weight: 500; }
header p:first-of-type strong { font-weight: inherit; }

section:last-child p:last-child { margin-bottom: 0; }

section {
  max-width: 38rem;
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 2px dashed var(--line);
}

.hero + section {
  border-top: 0;
  padding-top: 0;
}

a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

a strong { font-weight: inherit; }

@media (hover: hover) {
  a:hover {
    color: var(--bg);
    background: var(--accent);
    box-shadow: 0 0 0 0.2em var(--accent);
    text-decoration-color: var(--bg);
  }
}

a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  font-size: 1.25rem;
}

.links li:not(:last-child)::after {
  content: "·";
  content: "·" / "";
  margin: 0 0.6rem;
  color: var(--soft);
}

.nowrap { white-space: nowrap; }

.email {
  color: var(--accent);
  font-weight: 500;
  overflow-wrap: anywhere;
  user-select: all;
}

.tag {
  display: inline-block;
  padding: 0 0.8em;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.6;
}

@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 499px) {
  .links { gap: 0.35rem 1.25rem; }
  .links li:not(:last-child)::after { display: none; }
}

@media (min-width: 600px) {
  body { font-size: 1.125rem; }
  main { padding-top: 5rem; padding-bottom: 5rem; }
  .avatar { width: 136px; height: 136px; border-radius: 28px; }
  h2 { font-size: 1.75rem; }
  header p:first-of-type { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  h3::after { animation: none; }
}
