:root {
  color-scheme: light;
  --background: #fafafa;
  --card: #fff;
  --ink: #474747;
  --muted: #7d7d7d;
  --line: #f0f0f0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding: 54px 20px;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 17.3333px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: .025em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 2;
  padding: 8px 14px;
  background: #000;
  color: #fff;
  font: 500 16px/1.5 'Roboto Mono', monospace;
}
.skip-link:focus { top: 8px; }

.card {
  width: min(100%, 590px);
  margin: 0 auto;
  border-radius: 8px;
  background: var(--card);
}

.hero, .section { padding: 72px 70px 84px; }
.hero { padding-top: 86px; }

.portrait {
  width: 164px;
  height: 164px;
  margin-bottom: 31px;
  padding: 8px;
  overflow: hidden;
  border: 2px solid #000;
  border-radius: 50%;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

h1, h2, p { margin: 0; }
h1, h2, .button {
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-weight: 500;
}
h1 { font-size: 41.1667px; letter-spacing: normal; line-height: 1.125; }
.tagline {
  margin: 42px 0 41px;
  color: var(--muted);
  line-height: 2;
}

.hero-actions, .contact-links { display: grid; gap: 20px; }
.hero-actions { gap: 22px; }
.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 61px;
  padding: 10px 30px;
  border: 2px solid #000;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 17.3333px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.button:hover,
.button:focus-visible {
  background: #f3f3f3;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #000;
}
.button:active { transform: translateY(0); box-shadow: none; }
.button-primary { background: #000; color: #fff; }
.button-primary:hover,
.button-primary:focus-visible { background: #333; }
.button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.brand-icon {
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}

.section { border-top: 1px solid var(--line); }
.section h2 {
  margin-bottom: 40px;
  font-size: 34.6667px;
  letter-spacing: .0125em;
  line-height: 1.5;
}
.section p, .topics { color: var(--muted); }
.topics, .contact-links { margin: 0; padding: 0; list-style: none; }
.topics { display: grid; gap: 21px; }
.topics li {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 20px;
  align-items: start;
}
.topics strong { color: var(--ink); font-weight: 500; }
.check {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin-top: 2px;
  border: 2px solid #000;
  border-radius: 50%;
  color: #000;
}
.check svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}
.contact { padding-bottom: 90px; }
.contact h2 { margin-bottom: 45px; }

@media (max-width: 640px) {
  body { padding: 0; }
  .card { border-radius: 0; }
  .hero, .section {
    padding-right: clamp(24px, 8vw, 70px);
    padding-left: clamp(24px, 8vw, 70px);
  }
  h1 { font-size: clamp(30px, 8vw, 40px); }
  .section h2 { font-size: clamp(27px, 7vw, 34px); }
}

@media (max-width: 380px) {
  .topics li { grid-template-columns: 30px 1fr; gap: 14px; }
  .check { width: 30px; height: 30px; }
  .button { padding-right: 20px; padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
