:root {
  color-scheme: light;
  --bg: #faf9f7;
  --text: #1a1a1a;
  --muted: #666666;
  --border: #e8e6e1;
  --link: #1a1a1a;
  --link-hover: #000000;
  --max: 40rem;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.35rem 4rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 150ms ease;
}

a:hover {
  color: var(--link-hover);
}

.back {
  display: inline-block;
  margin-bottom: 1.75rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.back:hover {
  color: var(--text);
  text-decoration: underline;
}

.who {
  margin-bottom: 2.75rem;
}

.who h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.55rem;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.now {
  margin: 0 0 3rem;
  color: var(--text);
  font-size: 1.0625rem;
}

.now a {
  color: var(--text);
}

section {
  margin-bottom: 3rem;
}

.section-label {
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-list,
.lessons-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-list li,
.lessons-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.work-list li:last-child,
.lessons-list li:last-child {
  border-bottom: 1px solid var(--border);
}

span.work-title {
  cursor: default;
}

.work-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 550;
  font-size: 1.0625rem;
  color: var(--text);
  text-decoration: none;
}

.work-title:hover {
  color: var(--text);
}

.work-title .ext {
  font-size: 0.8em;
  color: var(--muted);
  font-weight: 400;
}

.work-blurb,
.lesson-body {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9875rem;
  line-height: 1.55;
}

.lesson-name {
  font-weight: 550;
  color: var(--text);
  font-size: 1.0625rem;
}

.find-me {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #777777;
  transition: color 150ms ease;
}

.social:hover {
  color: #333333;
}

.social svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.email-link {
  color: var(--muted);
  font-size: 0.9875rem;
  text-decoration: none;
}

.email-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-sep {
  margin: 0 0.45rem;
  color: #b0aea8;
}

.legal h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.legal p {
  margin: 0 0 1rem;
  color: var(--text);
}

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

.legal strong {
  font-weight: 550;
}

@media (max-width: 480px) {
  main {
    padding: 2.75rem 1.15rem 3.5rem;
  }

  .who {
    margin-bottom: 2.25rem;
  }

  section {
    margin-bottom: 2.5rem;
  }
}


/* Project detail */
.project-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  line-height: 1.2;
}

.project-lesson {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.55;
}

.project-link {
  display: inline-block;
  margin: 0 0 2.5rem;
  font-size: 0.9875rem;
  color: var(--muted);
  text-decoration: none;
}

.project-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.project-photos {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0 0 2.5rem;
}

.project-photos figure {
  margin: 0;
}

.project-photos img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
  background: #efece6;
}

.project-photos figcaption {
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
