@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');

:root {
  --ink: #FFF1F0;
  --paper: #D1B1AB;
  --muted: #9a9a9a;
  --rule: #dcdcdc;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.45;
}

a {
  color: var(--muted);
  text-decoration: none;
}
a:hover { color: var(--ink); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}

header.site-header {
  margin-bottom: 56px;
}

.name {
  font-size: 24px;
  margin: 0 0 6px 0;
}

nav.tabs {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: 19px;
}

nav.tabs .active {
  font-weight: 600;
}

nav.tabs .sep {
  color: var(--muted);
}

nav.tabs a {
  color: var(--ink);
}
nav.tabs a.inactive {
  color: var(--muted);
}
nav.tabs a.inactive:hover { color: var(--ink); }

/* ---- Bio page ---- */
.bio-grid {
  display: grid;
  grid-template-columns: minmax(260px, 460px) 1fr;
  gap: 64px;
  align-items: start;
}

.bio-grid img {
  width: 100%;
  max-width: 520px;
  filter: grayscale(1) contrast(1.05);
  justify-self: end;
}

.bio-text p { margin: 0 0 22px 0; max-width: 460px; }
.bio-text a { border-bottom: 1px solid var(--rule); }

/* ---- Projects page ---- */
.section-title {
  margin: 64px 0 28px 0;
  font-size: 19px;
}
.section-title:first-of-type { margin-top: 0; }

.project-row {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.project-row:first-of-type { border-top: none; padding-top: 0; }

.project-label {
  text-align: right;
}
.project-label .title {
  font-style: italic;
  display: block;
}
.project-label .meta {
  display: block;
  color: var(--muted);
  font-size: 16px;
  margin-top: 4px;
}

.project-desc {
  text-align: center;
  padding: 0 24px;
}

.project-image {
  justify-self: end;
}
.project-image img {
  width: 100%;
  filter: grayscale(1) contrast(1.05);
  display: block;
}

footer.site-footer {
  margin-top: 96px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  font-style: italic;
  color: var(--ink);
  font-size: 17px;
}
footer.site-footer .lines { text-align: right; }
footer.site-footer .arrows {
  color: var(--muted);
  font-style: normal;
}

@media (max-width: 800px) {
  .bio-grid, .project-row {
    grid-template-columns: 1fr;
  }
  .project-label, .project-desc, .project-image {
    text-align: left;
    justify-self: start;
    padding: 0;
  }
  .bio-grid img, .project-image img { justify-self: start; max-width: 100%; }
  
}
