@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  color-scheme: light;
  --text: #222;
  --muted: #555;
  --link: #1772d0;
  --accent: #f09228;
  --rule: #ececec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Lato", Verdana, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.52;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(900px, calc(100% - 40px)); margin: 0 auto; }
.site-nav {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--rule);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 13px 4px;
  white-space: nowrap;
  font-size: 14px;
}
.nav-inner a { color: #333; }
.page-content { padding-top: 34px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
  align-items: start;
  padding: 20px 18px 35px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
}
p { margin-bottom: 13px; }
.hero-copy p:last-child, .content-section > p:last-child, .record-copy p:last-child { margin-bottom: 0; }
.profile-links {
  margin-top: 17px;
  text-align: left;
}
.profile-links span { padding: 0 6px; color: #777; }
.portrait-link {
  display: block;
  width: 250px;
  justify-self: end;
}

.portrait-link img {
  display: block;
  width: 250px;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 12%);
}

.content-section {
  scroll-margin-top: 52px;
  padding: 27px 18px 2px;
}
h2 {
  margin-bottom: 13px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
}
.record {
  display: grid;
  grid-template-columns: minmax(155px, 31%) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 17px 0 0;
}
.record-visual {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 16px;
  border-radius: 5px;
  color: #222;
  text-align: center;
}
.record-visual span { font-size: 20px; font-weight: 700; }
.record-copy h3 { margin-bottom: 2px; font-size: 15px; line-height: 1.42; }
.record-meta { margin-bottom: 8px; color: var(--muted); font-style: italic; }
.record-compact .record-visual { min-height: 96px; }
.awards p { margin-bottom: 6px; }

.visual-blue { background: #c9dcf2; }
.visual-green { background: #c7d8be; }
.visual-sand { background: #d8cfba; }
.visual-orange { background: #f1c096; }
.visual-violet { background: #d7c9e8; }
.visual-yellow { background: #edd892; }

footer { padding: 46px 18px 28px; color: #666; font-size: 12px; text-align: right; }
footer p { margin: 0; }

@media (max-width: 620px) {
  body { font-size: 14px; }
  .container { width: min(100% - 24px, 900px); }
  .page-content { padding-top: 25px; }
  .hero { grid-template-columns: 1fr; gap: 18px; padding: 0 6px 16px; }
  .hero-copy { order: 2; }
  .portrait-link { order: 1; width: min(220px, 60vw); margin: 0 auto; }
  h1 { margin-bottom: 17px; font-size: 29px; }
  .content-section { padding: 26px 6px 1px; }
  .record { grid-template-columns: 125px minmax(0, 1fr); gap: 14px; }
  .record-visual { min-height: 98px; }
}

@media (max-width: 430px) {
  .nav-inner { gap: 16px; }
  .record { grid-template-columns: 1fr; gap: 10px; }
  .record-visual, .record-compact .record-visual { min-height: 68px; }
  footer { padding-left: 6px; padding-right: 6px; text-align: left; }
}

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