:root {
  color-scheme: dark;
  --background: #0d1512;
  --surface: #111d17;
  --line: #2b3e35;
  --text: #f2f5ee;
  --muted: #b4c2b8;
  --accent: #a9dfb8;
  --sans: Geist, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.shell { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: .75rem 1rem;
  background: var(--accent);
  color: var(--background);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

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

.header-inner {
  min-height: 73px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.025em;
}

.brand-icon {
  display: grid;
  place-content: center;
  gap: 4px;
  width: 29px;
  height: 29px;
  border: 1px solid #517161;
  border-radius: 7px;
  background: #192c22;
}

.brand-icon i {
  display: block;
  width: 12px;
  height: 2px;
  background: var(--accent);
  transform: rotate(-32deg);
}

.nav-link, .site-footer {
  color: var(--muted);
  font: 500 .77rem/1.4 var(--mono);
}

.nav-link span, .site-footer a span { margin-inline-start: .25rem; color: var(--accent); }
.nav-link:hover, .site-footer a:hover { color: var(--text); }

.hero {
  display: flex;
  align-items: center;
  min-height: clamp(365px, 36vw, 482px);
  margin-top: 30px;
  padding: clamp(26px, 6%, 68px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background-color: #081711;
  background-image: linear-gradient(90deg, rgba(5, 16, 12, .83), rgba(5, 16, 12, .45) 47%, transparent 82%), url("./assets/contours.jpg");
  background-position: center, center 49%;
  background-size: cover;
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  color: #f1f7ec;
  font-size: clamp(3rem, 8.2vw, 7rem);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.085em;
}

.hero h1 span { color: var(--accent); }

.hero p {
  margin: 20px 0 0;
  color: #c8d9cc;
  font-size: clamp(1rem, 2vw, 1.28rem);
  letter-spacing: -.02em;
}

.projects { padding-top: 58px; scroll-margin-top: 24px; }

.projects h2 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -.055em;
}

.project-list { margin: 0; padding: 0; list-style: none; }
.project-list li + li { margin-top: 18px; }

.project-link {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  transition: border-color .2s, background-color .2s;
}

.project-link:hover { border-color: #5d826d; background-color: #15251c; }

.project-art {
  position: relative;
  overflow: hidden;
  min-height: 244px;
  background: #23182b;
}

.project-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transition: transform .3s;
}

.project-link:hover img { transform: scale(1.025); }

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(23px, 4vw, 53px);
}

.project-copy h3 {
  margin: 0;
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.06em;
}

.project-copy p { margin: 0; color: var(--muted); line-height: 1.55; }

.project-cta {
  margin-top: 5px;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 600;
}

.project-cta span { display: inline-block; margin-inline-start: 4px; }
.project-link:hover .project-cta { text-decoration: underline; text-underline-offset: 4px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 57px;
  padding-block: 22px 31px;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; }

  .hero {
    min-height: 345px;
    align-items: flex-start;
    margin-top: 18px;
    padding-top: 52px;
    background-image: linear-gradient(180deg, #071712 2%, rgba(7, 23, 18, .8) 30%, transparent 78%), url("./assets/contours.jpg");
    background-position: center, 68% center;
  }

  .hero h1 { font-size: clamp(2.5rem, 12vw, 5rem); }
  .hero p { margin-top: 13px; }
  .projects { padding-top: 39px; }
  .project-link { grid-template-columns: 1fr; }
  .project-art { aspect-ratio: 1.9; min-height: 0; }
  .project-copy { padding-block: 25px 31px; }
  .site-footer { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
