:root {
  --ink: #171915;
  --muted: #62665d;
  --paper: #f3f0e8;
  --paper-deep: #e9e5da;
  --card: #faf8f2;
  --line: #cbc8bd;
  --accent: #d98270;
  --violet: #6657df;
  --white: #fff;
  --radius: 18px;
  --page: min(1180px, calc(100vw - 48px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
}

.site-header,
.site-footer,
.hero,
.projects,
.closing {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.brand-mark::before {
  top: 6px;
  left: 7px;
  width: 5px;
  height: 5px;
}

.brand-mark::after {
  right: 5px;
  bottom: 6px;
  width: 7px;
  height: 7px;
}

.brand-mark span {
  right: 6px;
  top: 5px;
  width: 3px;
  height: 3px;
}

.site-header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-header nav a {
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  min-height: 660px;
  padding: 84px 0;
}

.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 6.5rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero h1 em {
  display: block;
  color: var(--violet);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.hero-intro {
  max-width: 650px;
  margin: 40px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover {
  background: var(--violet);
}

.button-secondary:hover {
  background: var(--accent);
}

.hero-graphic {
  aspect-ratio: 1;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  border-radius: 50%;
  background: url("../og.png") 97.4% center / auto 122% no-repeat;
}

.projects {
  padding: 112px 0 128px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading h2,
.closing h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading > p {
  max-width: 430px;
  margin: 0 0 5px auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.project-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transform: translate(-4px, -4px);
}

.project-card-featured {
  grid-column: span 2;
  min-height: 390px;
  background: var(--ink);
  color: var(--white);
}

.project-card-topline,
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-index,
.project-kicker,
.project-meta {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-index,
.project-kicker {
  color: var(--muted);
}

.project-card-featured .project-index,
.project-card-featured .project-kicker {
  color: #aaa99f;
}

.project-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.project-card:hover .project-arrow {
  background: var(--accent);
  color: var(--ink);
  transform: rotate(7deg);
}

.project-card-body {
  margin: auto 0;
  padding: 42px 0;
}

.project-kicker {
  margin: 0 0 8px;
}

.project-card h3 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.project-card-body > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.project-card-featured .project-card-body > p:last-child {
  color: #c5c5bc;
  font-size: 1.08rem;
}

.project-meta {
  justify-content: flex-start;
  gap: 9px;
  color: var(--muted);
}

.project-meta span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.project-card-featured .project-meta {
  color: #c5c5bc;
}

.project-card-featured .project-meta span,
.project-card-featured .project-arrow {
  border-color: #55564f;
}

.all-projects-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 36px;
  font-size: 0.95rem;
  font-weight: 750;
  text-underline-offset: 5px;
}

.all-projects-link:hover span {
  transform: translateX(4px);
}

.all-projects-link span {
  transition: transform 160ms ease;
}

.closing {
  padding: 104px 0 112px;
  border-top: 1px solid var(--line);
}

.closing h2 {
  max-width: 960px;
}

.closing > a {
  display: inline-block;
  margin-top: 36px;
  font-weight: 750;
  text-underline-offset: 6px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 126px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer p:last-child {
  text-align: right;
}

@media (max-width: 900px) {
  :root {
    --page: min(100% - 36px, 740px);
  }

  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  }

  .hero-graphic {
    width: min(31vw, 280px);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading > p {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-graphic {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --page: calc(100% - 28px);
  }

  .site-header {
    min-height: 76px;
  }

  .site-header nav {
    gap: 18px;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    gap: 30px;
    padding: 68px 0 76px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .hero-intro {
    margin-top: 30px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .projects {
    padding: 88px 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card-featured {
    grid-column: span 1;
    min-height: 330px;
    padding: 22px;
  }

  .project-card h3 {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

  .project-meta {
    flex-wrap: wrap;
  }

  .closing {
    padding: 80px 0 88px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 34px 0;
  }

  .site-footer p:last-child {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
