:root {
  color-scheme: light;
  --background: #f7f3eb;
  --text: #1d1a16;
  --muted: #716a60;
  --soft: #ded5c6;
  --line: #e6dece;
  --accent: #8b513f;
  --accent-strong: #5d3028;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 34rem),
    linear-gradient(180deg, #fbf8f1 0%, var(--background) 42%, #f2ece1 100%);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  width: min(100% - 40px, 620px);
  margin: 0 auto;
  padding: 72px 0 56px;
}

.intro {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: block;
  width: 104px;
  height: 104px;
  margin-bottom: 26px;
  border-radius: 35%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(29, 26, 22, 0.08),
    0 18px 42px rgba(83, 62, 38, 0.16);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 2.05rem + 1.2vw, 3.05rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.04;
}

.bio {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.02rem;
}

.bio p {
  margin-bottom: 14px;
}

.bio p:last-child {
  margin-bottom: 0;
}

.projects {
  padding: 40px 0 38px;
}

h2 {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-list {
  display: grid;
  gap: 2px;
}

.project {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.project:last-child {
  border-bottom: 1px solid var(--line);
}

.project img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 1px rgba(29, 26, 22, 0.07);
}

.project-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.project-copy strong {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.project-copy span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.project-meta {
  align-self: center;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.project[href="#"] {
  cursor: default;
}

.project:not([href="#"]):hover .project-meta,
.project:not([href="#"]):focus-visible .project-meta,
.footer a:hover,
.footer a:focus-visible {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

.project:not([href="#"]):hover .project-copy strong,
.project:not([href="#"]):focus-visible .project-copy strong {
  color: var(--accent-strong);
}

.project:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 8px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.footer a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 32px, 620px);
    padding-top: 46px;
  }

  h1 {
    max-width: 11ch;
    font-size: 2.3rem;
  }

  .project {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }

  .project-meta {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }
}
