:root {
  color-scheme: light;
  font-family: Georgia, "Times New Roman", serif;
  color: #302c29;
  background: #f7f5f0;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 280px; }

.page {
  width: min(100% - 3rem, 848px);
  margin: clamp(1.5rem, 6vw, 4rem) auto;
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid #eae5de;
  border-radius: 12px;
  background: #fdfcf9;
}

.heading-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }

h1, h2, p { margin: 0; }

h1 {
  font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.045em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-link {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid #cbc2b8;
  border-radius: 50%;
  color: #62584f;
  transition: background-color .2s ease, border-color .2s ease;
}

.profile-link[hidden] { display: none; }

svg { width: calc(1.15rem + 4px); height: calc(1.15rem + 4px); padding: 2px; fill: currentColor; }

.introduction {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: #6b625b;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.7;
}

.projects { margin-top: clamp(4rem, 10vw, 6rem); }

.section-heading { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.4rem; }

h2 { font-size: .85rem; font-weight: 400; letter-spacing: .17em; text-transform: uppercase; }

.rule { height: 1px; flex: 1; background: #dcd6ce; }

.status { color: #6b625b; line-height: 1.6; }

.status[hidden] { display: none; }

.project-list { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }

.project-item { display: flex; align-items: stretch; gap: .7rem; --project-accent: #8b7b70; }

.project-link, .source-link {
  position: relative;
  overflow: hidden;
  border: 1px solid #ded7cf;
  border-radius: 4px;
  background: #f7f5f0;
  color: #302c29;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.project-link::before, .source-link::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 3px 3px 0 0;
  background: var(--project-accent);
}

.project-link {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  min-height: 5.5rem;
  padding: 1.25rem 1.5rem;
}

.project-title { display: flex; align-items: center; gap: .7rem; }

.project-icon { display: inline-grid; flex: none; place-items: center; width: calc(1.15rem + 4px); height: calc(1.15rem + 4px); color: #76685c; }

.project-icon svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.project-icon.is-monogram { padding: 2px; font-size: 1rem; line-height: 1; font-weight: 700; }

.project-name { font-family: "Bodoni Moda", Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 500; line-height: 1.25; }

.project-description { color: #6b625b; font-size: .95rem; line-height: 1.45; }

.source-link { display: grid; flex: none; place-items: center; width: 4rem; }

.source-link.is-disabled { color: #b9b3ad; background: #f0ede8; cursor: not-allowed; }

a:hover { border-color: #ac9e90; background: #f2eee8; }

.project-link:hover, .source-link:not(.is-disabled):hover { transform: translateY(-2px); }

a:focus-visible { outline: 2px solid #6e5e4f; outline-offset: 3px; }

.no-script { margin: 1rem auto; width: min(100% - 3rem, 760px); color: #6b625b; }

@media (max-width: 480px) {
  .page { width: calc(100% - 1.25rem); padding: 1.35rem; }
  .heading-row { gap: .7rem; }
  .profile-link { width: 2.35rem; height: 2.35rem; }
  .project-link { padding: 1rem; }
  .source-link { width: 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-link, .project-link, .source-link { transition: none; }
}
