:root {
  color-scheme: light;
  --paper: #F7F5F0;
  --ink: #1A1918;
  --muted: #5C5852;
  --line: #DFDBD2;
  --accent: #9E472A;
  --page-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.page-shell {
  width: min(100% - 3rem, var(--page-width));
  margin-inline: auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header {
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent);
}

section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  border-bottom: 1px solid var(--line);
}

.hero {
  padding-top: clamp(5rem, 12vw, 10rem);
  padding-bottom: clamp(5rem, 11vw, 9rem);
}

.eyebrow,
.section-index {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 14ch;
  margin-top: 1.25rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

h1 span {
  display: block;
  color: var(--muted);
  font-size: 0.53em;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero-copy {
  max-width: 68ch;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.project-list {
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 3rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.project p {
  max-width: 62ch;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.video-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e7e3db;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
}

.contact-content p {
  max-width: 40ch;
  margin: 0;
  color: var(--muted);
}

.contact-content .contact-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.2rem;
}

.meta-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.meta-links a {
  color: var(--muted);
}

.site-footer {
  min-height: 5.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .page-shell {
	width: min(100% - 2rem, var(--page-width));
  }

  .site-header {
	align-items: flex-start;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
	padding-block: 1rem;
  }

  .nav-list {
	gap: 0.5rem 1rem;
  }

  .project {
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
  }

  .project-link {
	justify-self: start;
  }

  .video-grid,
  .contact-content {
	grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
	align-items: flex-start;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
	padding-block: 1.25rem;
  }
}

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

::selection {
  color: var(--paper);
  background-color: var(--accent);
}
