:root {
  --background: #fafafa;
  --foreground: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e8e8e8;
  --green: #1f4d3a;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
}

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

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

.brand {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.6;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.15rem;
  font-size: 0.75rem;
}

.site-nav a {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a.is-active {
  color: var(--foreground);
}

.site-nav a:not(.is-active) {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--foreground);
  opacity: 1;
}

.page-main {
  flex: 1;
  padding: 0 1.5rem 4rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.footer-inner {
  display: flex;
  max-width: 64rem;
  margin: 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-mark {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--foreground);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--foreground);
}

.narrow {
  max-width: 42rem;
  margin: 0 auto;
}

.about {
  max-width: 72rem;
  margin: 0 auto;
}

.about-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-role {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.about-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 2.75rem 0 3rem;
}

.about-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f0f0f0;
}

.about-photo img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  height: 100%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}

.about-lead {
  max-width: 40rem;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.about-lead:last-of-type {
  margin-bottom: 0;
}

.about-sections {
  display: grid;
  gap: 2.75rem;
  margin-top: 4rem;
}

.about-block h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.7rem;
}

.about-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-block li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.skill-list {
  margin: 0;
}

.skill-list > div {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.skill-list dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--foreground);
}

.skill-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.signoff {
  margin: 3.5rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .about-photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .about-sections {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
  }

  .about-block-wide {
    grid-column: 1 / -1;
  }

  .skill-list > div {
    grid-template-columns: 7.5rem 1fr;
    gap: 1.25rem;
    align-items: baseline;
  }
}

.wide {
  max-width: 64rem;
  margin: 0 auto;
}

.mid {
  max-width: 48rem;
  margin: 0 auto;
}

.page-title {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3rem);
  letter-spacing: 0.02em;
}

.lede {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}

.prose {
  margin-top: 3rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

.prose p {
  margin: 0 0 1.5rem;
}

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

.prose .signoff {
  color: var(--foreground);
}

.project-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
}

.project-thumb img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  height: 100%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

.inline-links a {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--foreground);
  transition: opacity 0.2s ease;
}

.inline-links a:hover {
  opacity: 0.6;
}

.project-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 4rem;
}

.project-card {
  text-decoration: none;
}

.project-card h2 {
  margin: 1rem 0 0;
  font-size: 1.25rem;
}

.project-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.entry-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

.entry-card {
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.2s ease;
}

.entry-card:hover {
  border-color: rgba(26, 26, 26, 0.2);
}

.entry-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.entry-card p {
  margin: 0.75rem 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.entry-card a {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.entry-card a:hover {
  opacity: 0.6;
}

.legal {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.legal h1 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  color: var(--foreground);
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.legal p,
.legal li {
  margin: 0 0 0.75rem;
}

.legal a {
  color: var(--foreground);
}

.form {
  max-width: 32rem;
  margin-top: 3rem;
}

.field {
  margin-bottom: 1.5rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.field .optional {
  opacity: 0.6;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  font: inherit;
  outline: none;
  resize: none;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--foreground);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-flash {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  color: var(--muted);
}

.form-flash.is-error {
  font-size: 0.875rem;
  color: #b42318;
}

.btn {
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--foreground);
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--foreground);
  color: var(--background);
}

@media (min-width: 640px) {
  .site-header,
  .page-main,
  .site-footer {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .site-header {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .site-nav {
    gap: 1.5rem;
    font-size: 0.875rem;
  }

  .site-nav a {
    letter-spacing: 0.2em;
  }

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

  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
