:root {
  color-scheme: light;
  --ink: #12364a;
  --ink-deep: #082533;
  --paper: #f1f4f3;
  --surface: #dce5e5;
  --line: #8ea2aa;
  --muted: #45606d;
  --accent: #9db635;
  --shell: min(1180px, calc(100% - 64px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-deep);
  font-family: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid #335b18;
  outline-offset: 4px;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  background: var(--accent);
  color: var(--ink-deep);
  font-weight: 800;
  text-decoration: none;
}

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

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

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -.08em;
  text-decoration: none;
}

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

nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }

nav a, .language-link, .text-link, .footer-inner a {
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .02em;
  text-decoration: none;
}

nav a { border-bottom: 1px solid transparent; }
nav a:hover, nav a:focus-visible { border-color: currentColor; }

.language-link { justify-self: end; }
.language-link span { color: var(--accent); }

.hero { padding-block: clamp(5.75rem, 12vw, 10rem) clamp(5rem, 10vw, 8.5rem); }

.context {
  margin: 0 0 clamp(2rem, 5vw, 4.5rem);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: 18ch;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: .98;
  text-wrap: balance;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 37rem) auto;
  align-items: end;
  gap: 2rem;
  max-width: 55rem;
}

.hero-copy p, .about-copy p { max-width: 38rem; margin-bottom: 0; font-size: clamp(1.1rem, 2vw, 1.35rem); }

.text-link { width: max-content; border-bottom: 1px solid currentColor; padding-bottom: .25rem; }

.statement { background: var(--ink); color: #f6f8f7; }

.statement-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 7vw, 8rem);
  padding-block: clamp(3.75rem, 8vw, 7rem);
}

.statement p { margin: 0; }
.statement p:first-child { font-size: clamp(2rem, 4.3vw, 4.25rem); font-weight: 780; letter-spacing: -.045em; line-height: 1.02; }
.statement p:last-child { max-width: 25rem; align-self: end; color: #cbd6d5; }

.portfolio, .about { padding-block: clamp(5rem, 10vw, 9rem); }
.about { padding-top: 0; }

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(14rem, 25rem);
  gap: 2rem;
  align-items: baseline;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 820; letter-spacing: -.055em; line-height: .96; }
.section-heading p { margin-bottom: 0; color: var(--muted); }

.project-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.project-list li { border-bottom: 1px solid var(--line); }

.project-list a {
  display: grid;
  grid-template-columns: minmax(10rem, .8fr) minmax(0, 1.35fr) auto;
  gap: 2rem;
  align-items: baseline;
  padding: clamp(1.5rem, 3vw, 2.4rem) 0;
  text-decoration: none;
  transition: background-color 180ms ease, padding-inline 180ms ease;
}

.project-list a:hover { background: var(--surface); padding-inline: 1rem; }
.project-name { font-size: clamp(1.35rem, 2.5vw, 2.15rem); font-weight: 800; letter-spacing: -.045em; }
.project-description { max-width: 35rem; color: var(--muted); }
.project-arrow { color: var(--accent); font-size: 1.4rem; font-weight: 800; }

.about-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 8rem); }
.about-copy p + p { color: var(--muted); }

.contact-band { background: var(--surface); border-block: 1px solid var(--line); }
.contact-content { padding-block: clamp(4.5rem, 9vw, 7rem); }
.contact-content h2 { max-width: 11ch; margin-bottom: 1.5rem; }
.contact-content p { margin-bottom: 0; color: var(--muted); }
.contact-email {
  color: var(--ink-deep);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.site-footer { background: var(--ink-deep); color: #dbe4e4; }
.footer-inner { display: flex; gap: 1rem 2rem; justify-content: space-between; padding-block: 1.5rem; font-size: .8rem; }
.footer-inner p { margin-bottom: 0; }
.footer-inner a { color: var(--accent); }
.site-footer a:focus-visible { outline-color: #d6ef70; }

@media (max-width: 720px) {
  :root { --shell: min(100% - 40px, 1180px); }
  .header-inner { min-height: 70px; grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { padding-top: 4.5rem; }
  .hero-copy, .statement-grid, .section-heading, .about-copy { grid-template-columns: 1fr; }
  .hero-copy { gap: 1.5rem; }
  .statement-grid { gap: 2rem; }
  .section-heading { gap: .85rem; }
  .project-list a { grid-template-columns: 1fr auto; gap: .55rem 1rem; }
  .project-description { grid-column: 1 / -1; }
  .project-arrow { grid-column: 2; grid-row: 1; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-list a { transition: none; }
}
