:root {
  --bg: #111312;
  --panel: #1b1e1c;
  --text: #f4f4ec;
  --muted: #b4bbb3;
  --line: #363c35;
  --lime: #d1f56b;
  --max: 1320px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 6px;
}

.wrap {
  width: min(var(--max), calc(100% - 96px));
  margin: auto;
}

/* Header */

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

.brand {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -3px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-line {
  width: 32px;
  height: 7px;
  background: var(--lime);
  display: inline-block;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
}

nav a:hover,
.text-link:hover {
  color: var(--lime);
}

.nav-contact {
  border: 1px solid var(--line);
  padding: 12px 18px;
}

.nav-contact span {
  margin-left: 20px;
}

/* General */

.eyebrow {
  font-size: 13px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--muted);
  display: block;
}

.button {
  background: var(--lime);
  color: #151914;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
}

.button:hover {
  background: #e0ff8c;
}

/* Hero */

.hero {
  padding-top: 54px;
}

.hero-heading {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: 65px;
  padding: 37px 0 52px;
}

h1 {
  font-size: clamp(80px, 10.8vw, 154px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  margin: 0;
  font-weight: 800;
}

h1 span {
  color: var(--lime);
}

.hero-copy {
  max-width: 430px;
  padding-bottom: 3px;
}

.intro {
  font-size: 32px;
  line-height: 1.16;
  letter-spacing: -1px;
  margin: 0 0 20px;
}

.hero-copy > p:not(.intro) {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 27px;
}

.hero-bottom {
  border-top: 1px solid var(--line);
  padding: 19px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}

.hero-bottom a {
  color: var(--text);
}

/* Collage */

.collage-section {
  padding-top: 52px;
}

.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-kicker h2 {
  font-size: 17px;
  font-weight: 400;
  margin: 0;
}

.section-kicker > span {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--panel);
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
}

figcaption a {
  color: var(--text);
}

/* Work / Projects */

.work,
.credits {
  padding: 112px 0;
}

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 45px;
}

h2 {
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1.05;
  letter-spacing: 0px;
  font-weight: 500;
  margin: 20px 0 0;
}

.section-top > p {
  max-width: 340px;
  color: var(--muted);
  margin-bottom: 0;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project {
  padding: 36px 36px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--panel);
}

.project:nth-child(3n + 2) {
  background: var(--bg);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}

.project h3 {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -1.4px;
  line-height: 1.12;
  margin: 36px 0 18px;
}

.project .credit {
  color: var(--lime);
  font-size: 14px;
  margin: 0 0 10px;
}

.project p:not(.credit) {
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 470px;
  font-size: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tags span {
  font-size: 12px;
  border: 1px solid #42493d;
  padding: 5px 10px;
}

/* About */

.about {
  background: #e9ece3;
  color: #171c16;
  padding: 90px 0;
}

.about .eyebrow {
  color: #4f5c4b;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
}

.text-link {
  font-size: 14px;
  display: inline-block;
  border-bottom: 1px solid #7a8477;
  margin-top: 34px;
  padding-bottom: 6px;
}

.about .text-link:hover {
  color: #4b6200;
}

.about-body > p {
  color: #485143;
  margin: 0 0 22px;
}

.about-body .large {
  font-size: 27px;
  line-height: 1.3;
  color: #171c16;
  letter-spacing: -0.6px;
}

/* Qualifications */

.qualifications {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  border-top: 1px solid #b9c2b4;
  padding-top: 30px;
  margin-top: 35px;
}

.qualifications span {
  font-size: 12px;
  letter-spacing: 1px;
  color: #485143;
}

.qualifications p {
  font-size: 15px;
  line-height: 1.45;
  margin: 20px 0 0;
}

.qualifications small {
  font-size: 13px;
  color: #56614f;
}

/* Skills */

.skills {
  padding-top: 65px;
  padding-bottom: 65px;
  border-bottom: 1px solid var(--line);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  margin-top: 28px;
}

.skill-grid h3 {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 14px;
}

.skill-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Credits */

.credits {
  padding-bottom: 85px;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 23px 0;
  font-size: 21px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 28px;
  color: var(--lime);
  font-weight: 300;
}

details[open] summary::after {
  content: "−";
}

.credit-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 3px 0 30px;
  margin: 0;
  list-style: none;
}

.credit-items li {
  font-size: 14px;
  color: var(--muted);
  padding: 7px 12px;
  border: 1px solid var(--line);
}

.credit-note {
  font-size: 13px;
  color: var(--muted);
  max-width: 790px;
  margin: 25px 0 0;
}

/* Contact */

.contact {
  background: var(--lime);
  color: #171c16;
  padding: 80px 0 35px;
}

.contact .eyebrow {
  color: #425328;
}

.contact h2 {
  font-size: clamp(42px, 6.3vw, 88px);
  line-height: 1.03;
  letter-spacing: -3.8px;
}

.email {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(20px, 3.3vw, 45px);
  letter-spacing: -1px;
  border-bottom: 1px solid #789a42;
  padding: 35px 0 25px;
  gap: 12px;
}

.email:hover {
  text-decoration: underline;
}

.contact-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-top: 20px;
  font-size: 14px;
}

.contact-bottom > div {
  display: flex;
  gap: 30px;
}

/* Footer */

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 12px;
  color: var(--muted);
}

.footer-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

/* Accessibility */

.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: var(--lime);
  color: var(--bg);
  z-index: 10;
}

.skip:focus {
  top: 10px;
}

/* Large Screens */

@media (min-width: 1600px) {
  .hero-heading {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* Tablets / Smaller Desktops */

@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .hero-heading {
    gap: 28px;
    grid-template-columns: 1.1fr 1fr;
  }

  h1 {
    font-size: 10.6vw;
  }

  .hero-copy .intro {
    font-size: 28px;
  }

  .about-grid {
    gap: 40px;
  }

  .project {
    padding: 26px;
  }

  .hero-bottom {
    font-size: 11px;
  }

  .skill-grid {
    gap: 25px;
  }
}

/* Mobile */

@media (max-width: 700px) {
  header {
    height: 84px;
  }

  nav {
    gap: 17px;
    font-size: 13px;
  }

  nav .nav-contact {
    padding: 0;
    border: 0;
  }

  .nav-contact span {
    display: none;
  }

  .brand {
    font-size: 29px;
  }

  .brand-line {
    width: 20px;
    height: 5px;
  }

  .hero {
    padding-top: 35px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.1px;
  }

  .hero-heading {
    grid-template-columns: 1fr;
    padding-top: 30px;
    gap: 32px;
  }

  h1 {
    font-size: clamp(65px, 16vw, 110px);
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy .intro {
    font-size: 30px;
  }

  .hero-bottom {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 22px;
  }

  .hero-bottom a {
    margin-left: auto;
  }

  .section-kicker {
    align-items: flex-start;
  }

  .section-kicker > span {
    display: none;
  }

  .section-kicker h2 {
    font-size: 16px;
  }

  .collage-section {
    padding-top: 28px;
  }

  figcaption {
    font-size: 12px;
    align-items: flex-start;
  }

  figcaption > span {
    max-width: 52%;
  }

  .work,
  .credits {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .section-top {
    display: block;
    margin-bottom: 30px;
  }

  .section-top > p {
    max-width: 100%;
    margin-top: 23px;
  }

  h2 {
    letter-spacing: 1.5px;
  }

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

  .project h3 {
    font-size: 34px;
    margin-top: 28px;
  }

  .project {
    padding: 26px 22px;
  }

  .about {
    padding: 60px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .qualifications {
    gap: 20px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .skills {
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .contact {
    padding-top: 55px;
  }

  .contact h2 {
    letter-spacing: -2px;
  }

  .contact-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .email {
    letter-spacing: -0.7px;
    overflow-wrap: anywhere;
  }

  .contact-bottom > div {
    width: 100%;
    justify-content: space-between;
  }

  footer {
    flex-wrap: wrap;
  }

  footer .footer-name {
    width: 100%;
  }

  .credit-items {
    gap: 8px;
  }

  .credit-items li {
    font-size: 13px;
  }

  summary {
    font-size: 18px;
  }

  .button {
    font-size: 13px;
    gap: 16px;
  }
}

/* Reduced Motion */

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