:root {
  color: #f1f3ec;
  background: #0b0f0d;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }

header,
footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem clamp(1rem, 5vw, 5rem);
  border-bottom: 1px solid #ffffff1c;
}

header p,
footer p { margin: 0; color: #a7afa9; }
.brand { font-weight: 900; letter-spacing: .14em; text-decoration: none; }

main { width: min(1480px, 100%); margin: auto; padding: 0 clamp(1rem, 5vw, 5rem) 7rem; }
.intro {
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(3rem, 5vw, 5rem);
  max-width: 1280px;
}
.eyebrow,
.projects span { color: #82efc7; font-size: .7rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: .8rem 0 1.6rem; max-width: 1280px; font: 500 clamp(3.7rem, 6.2vw, 7.5rem)/1.02 Georgia, serif; letter-spacing: -.055em; }
h1 .title-line { white-space: normal; }
.intro > p { max-width: 1100px; color: #bcc4bf; font-size: 1.1rem; line-height: 1.7; }
.portfolio-actions { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.75rem; }
.portfolio-actions a { color: #82efc7; text-underline-offset: .25em; }
.portfolio-actions a:focus-visible { outline: 2px solid #82efc7; outline-offset: 5px; }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #ffffff24; border-left: 1px solid #ffffff24; }
.projects a { min-height: 280px; padding: 2rem; border-right: 1px solid #ffffff24; border-bottom: 1px solid #ffffff24; text-decoration: none; transition: background-color 240ms ease, transform 240ms ease; }
.projects a:hover,
.projects a:focus-visible { background: #14231d; transform: translateY(-4px); outline: 2px solid #82efc7; outline-offset: -2px; }
.projects h2 { margin: 3.8rem 0 .8rem; font: 500 clamp(1.8rem, 3vw, 3rem)/1 Georgia, serif; letter-spacing: -.03em; }
.projects p { margin: 0; color: #aeb6b1; line-height: 1.6; }

footer { border-top: 1px solid #ffffff1c; border-bottom: 0; font-size: .78rem; }

@media (max-width: 900px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  header,
  footer { flex-direction: column; gap: .5rem; }
  .intro { padding: 4rem 0 3rem; }
  h1 { font-size: clamp(1.8rem, 9vw, 3.6rem); }
  .projects { grid-template-columns: 1fr; }
  .projects a { min-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .projects a { transition: none; }
  .projects a:hover,
  .projects a:focus-visible { transform: none; }
}
