:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #242321;
  --muted: #66635f;
  --accent: #75674c;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --page: min(1030px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 2px; }
img { display: block; max-width: 100%; }
::selection { background: #ddd5c5; color: var(--ink); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  text-decoration: none;
}
.skip-link:focus { transform: none; }

main,
.site-footer { width: var(--page); margin-inline: auto; }

.intro {
  padding: clamp(58px, 7vw, 88px) 0 clamp(52px, 6vw, 76px);
  text-align: center;
}
.intro h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.55rem, 4.2vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.05;
  text-transform: uppercase;
}
.title-rule {
  display: block;
  width: 62px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--accent);
}

.about {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(38px, 5vw, 62px);
  align-items: start;
  padding: 0 0 clamp(72px, 9vw, 110px);
}
.portrait { margin: 0; }
.portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.9);
}
.about-copy { padding-top: 14px; }
h2 {
  margin: 0 0 28px;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.about-copy p,
.profile-section > p {
  max-width: 720px;
  margin: 0 0 16px;
  color: #34322f;
}
.profile-links { display: flex; gap: 25px; margin-top: 22px; }
.profile-links a { color: var(--accent); font-size: 0.88rem; font-weight: 600; }

.profile-section { padding: 0 0 clamp(66px, 8vw, 98px); }
.profile-section h2 a { color: var(--accent); font-size: 0.7em; font-weight: 500; }
.work-list { max-width: 900px; }
.work-item { margin: 0 0 34px; }
.work-item p { margin: 0; }
.work-title { font-weight: 600; }
.work-title a:first-child { text-decoration: none; }
.work-title a:first-child:hover,
.work-title a:first-child:focus-visible { color: var(--accent); text-decoration: underline; }
.work-item > p:not(.work-title):not(.work-meta) { color: #45423e; }
.work-meta { color: var(--muted); font-size: 0.82rem; }

.plain-list {
  max-width: 900px;
  margin: 18px 0 20px;
  padding-left: 22px;
}
.plain-list li { margin-bottom: 10px; padding-left: 5px; }
.plain-list strong { font-weight: 600; }
.roles { list-style: none; padding-left: 0; }
.roles li { margin-bottom: 13px; padding-left: 0; }
.roles span { color: var(--muted); font-size: 0.88rem; }
.roles a,
.contact a { color: var(--accent); }

.contact { padding-bottom: 76px; }
.contact p { color: var(--muted); }
.site-footer {
  display: flex;
  padding: 25px 0 42px;
  justify-content: space-between;
  border-top: 1px solid #dedbd4;
  color: var(--muted);
  font-size: 0.75rem;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 720px) {
  :root { --page: min(100% - 34px, 620px); }
  body { font-size: 15.5px; }
  .intro { padding: 62px 0 58px; }
  .intro h1 { letter-spacing: 0.025em; }
  .about { grid-template-columns: 1fr; gap: 34px; }
  .portrait { width: min(76vw, 280px); }
  .about-copy { padding-top: 0; }
  .site-footer { gap: 24px; }
}

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