:root {
  --colour: #12693A;
  --colour-dark: #0B4F2A;
  --ink: #fff;
  --paper: #000;
  --quiet: #b5b5b5;
  --rule: var(--colour);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --font: "Merriweather", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a { transition: color 0.15s ease; }
a:hover { color: var(--colour-dark); text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Hero */
.hero {
  min-height: 100svh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("images/header.jpg") center / cover no-repeat,
    var(--paper);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  padding: calc(var(--gutter) + 3.5rem) var(--gutter) var(--gutter);
}
.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem var(--gutter);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--colour);
}
.topbar nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar a[aria-current="page"] { color: var(--colour); text-decoration: underline; }

/* Inner pages */
.page {
  min-height: 70vh;
  padding-top: 3.5rem;
}
.page > section:first-child { border-top: none; }
.page-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.name {
  margin: 0;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(3.5rem, 16vw, 15rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.name span { display: block; }
.name .surname { color: var(--colour); }

.hero-foot {
  margin-top: clamp(1.5rem, 4vw, 3rem);
}
.intro {
  margin: 0 auto;
  max-width: 30ch;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  font-weight: 500;
}

/* Body sections */
main > section {
  padding: clamp(3.5rem, 9vw, 8rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 1.5rem var(--gutter);
  border-top: 4px solid var(--rule);
}
h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lede {
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 24ch;
}
.prose { max-width: 58ch; margin: 2rem 0 0; color: var(--quiet); }

.work { list-style: none; margin: 0; padding: 0; }
.work li { border-bottom: 2px solid var(--rule); }
.work li:first-child { border-top: 2px solid var(--rule); }
.work a {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.4rem 0.75rem;
  margin: 0 -0.75rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.work a:hover, .work a:focus-visible { background: var(--colour); }
.work .title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.work .what { color: var(--quiet); }
.work a:hover .what, .work a:focus-visible .what { color: var(--ink); }
.work .year { font-variant-numeric: tabular-nums; font-weight: 600; }

.now { margin: 0; padding: 0; list-style: none; max-width: 58ch; }
.now li { padding: 0.9rem 0; border-bottom: 1px solid #cfcfcf; }
.now strong { font-weight: 700; }

/* Contact */
.contact {
  background: var(--colour);
  color: #fff;
  padding: clamp(3.5rem, 9vw, 8rem) var(--gutter) var(--gutter);
}
.contact h2 { margin-bottom: 1.5rem; }
.contact a:hover { color: #000; }
.contact :focus-visible { outline-color: #fff; }
.mail {
  display: inline-block;
  font-size: clamp(1.75rem, 7.2vw, 7.5rem);
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.04em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.social { margin: 0; }
.social + .social { margin-top: 0.15em; }
.links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  margin: 2.5rem 0 0; padding: 0; list-style: none;
  font-weight: 600;
}
.smallprint { margin: clamp(3rem, 8vw, 6rem) 0 0; font-size: 0.95rem; }

@media (max-width: 720px) {
  main > section { grid-template-columns: 1fr; }
  .work a { grid-template-columns: 1fr auto; }
  .work .what { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
