@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f6ee;
  --ink: #1e2c24;
  --muted: #4e5c51;
  --forest: #213e31;
  --leaf: #dff095;
  --line: #d6d9cb;
  --display: "Bricolage Grotesque", Arial, sans-serif;
  --gutter: clamp(20px, 4.4vw, 60px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--display);
}

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.04; }
img { display: block; max-width: 100%; }
a { color: inherit; }

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.shell {
  width: min(calc(100% - var(--gutter) * 2), 1200px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(calc(-100% - 12px));
  background: var(--leaf);
  color: var(--ink);
}

.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: 76px;
  gap: 24px;
  font-size: 0.9rem;
}

.wordmark, .header-contact, .header-inner nav a, .text-link {
  text-decoration: none;
  font-weight: 650;
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  gap: 11px;
  align-items: center;
}

.wordmark-icon {
  display: grid;
  width: 37px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--leaf);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.header-inner nav {
  display: flex;
  gap: clamp(18px, 3.1vw, 42px);
}

.header-contact {
  justify-self: end;
  border-bottom: 1px solid var(--ink);
}

.header-contact span, .text-link span { margin-left: 3px; }

.header-inner nav a:hover, .text-link:hover, .header-contact:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.89fr) minmax(0, 1.11fr);
  gap: clamp(28px, 5.6vw, 80px);
  align-items: center;
  padding-block: clamp(50px, 6vw, 87px);
}

.hero-copy { padding-bottom: 26px; }

.eyebrow {
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.location {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 23px;
  color: var(--forest);
}

.location::before {
  content: "";
  width: 8px;
  aspect-ratio: 1;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #66844d;
}

.hero-intro {
  max-width: 38ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
}

.hero-actions, .footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 19px;
  row-gap: 10px;
  margin-top: 27px;
  font-size: 0.9rem;
}

.profile-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.button {
  display: inline-flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 17px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.button:hover {
  background: var(--leaf);
  color: var(--forest);
}

.button:focus-visible { outline-color: var(--forest); }

.hero-photo {
  overflow: hidden;
  background: #b2b6a8;
  border-radius: 5px;
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.19;
  object-fit: cover;
  object-position: 46% 50%;
}

.hero-figure figcaption {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 550;
}

.caption-mark {
  color: #547453;
  font-size: 1rem;
  line-height: 1;
}

.work-section {
  border-top: 1px solid var(--line);
  background: #efefe4;
}

.work-section, .outside-section, .finds-section {
  padding-block: clamp(52px, 7vw, 100px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.section-heading h2, .footer-inner h2 {
  font-size: clamp(2.7rem, 5.3vw, 4.9rem);
  font-weight: 740;
  letter-spacing: -0.048em;
  word-spacing: 0.035em;
}

.section-heading h2 span, .footer-inner h2 span { color: #66844d; }

.section-heading > p {
  flex: 0 1 34ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.project-grid, .finds-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}

.project-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 2.3;
}

.etashi-art {
  background-color: #dce5c5;
  background-image: radial-gradient(#82936a55 1px, transparent 1px);
  background-size: 14px 14px;
}

.etashi-art img {
  width: clamp(65px, 8vw, 105px);
  height: auto;
  padding: 12px;
  border-radius: 5px;
  background: #f2f4e6;
  box-shadow: 0 8px 32px #35543d29;
}

.game-art {
  position: relative;
  background: #163c47;
}

.game-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 85%;
}

.project-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: clamp(17px, 3vw, 32px);
}

.project-copy h3 {
  margin-block: 5px 7px;
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  letter-spacing: -0.045em;
}

.project-copy p { color: var(--muted); }

.circle-arrow, .back-to-top {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid #9da897;
  border-radius: 50%;
  font-size: 1.25rem;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.project-card:hover .circle-arrow, .back-to-top:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper);
}

.outside-section {
  background: var(--forest);
  color: var(--paper);
}

.outside-section .section-heading p { color: #dde5d8; }
.outside-section .section-heading h2 span { color: var(--leaf); }

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.field-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.16;
  object-fit: cover;
  border-radius: 5px;
  background: #365448;
}

.field-grid figure:last-child img { object-position: center 60%; }

.field-grid figcaption {
  padding-block: 10px;
  border-bottom: 1px solid #ffffff3b;
  color: var(--paper);
  font-size: 1.1rem;
  font-weight: 650;
}

.finds-grid { column-gap: clamp(28px, 7vw, 100px); }
.finds-grid h3 { margin-bottom: 12px; }
.link-list { padding: 0; margin: 0; list-style: none; }

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 600;
  text-decoration: none;
}

.link-list li:last-child a { border-bottom: 1px solid var(--line); }

.link-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-list a span { color: #4a6249; }

.site-footer { background: var(--leaf); }

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 32px;
  padding-block: 34px;
}

.footer-inner h2 { font-size: clamp(2.35rem, 5vw, 4.1rem); }
.footer-links { margin-top: 0; }
.footer-links .button:hover { background: #385947; color: var(--paper); }
.back-to-top { border-color: #839353; }

@media (max-width: 980px) {
  .hero-actions { column-gap: 15px; }
  .hero-copy { padding-bottom: 0; }
  .section-heading h2 { max-width: 13ch; }
}

@media (max-width: 759px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0 12px;
    min-height: auto;
    padding-block: 14px;
  }

  .header-inner nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 43px 40px;
  }

  .hero-actions { margin-top: 20px; }
  .hero-actions, .profile-links { column-gap: 12px; }
  .hero-actions .button { gap: 11px; padding-inline: 14px; }
  .location { margin-bottom: 18px; }
  .hero-photo img { aspect-ratio: 1.4; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .section-heading > p { flex: auto; max-width: 48ch; }
}

@media (max-width: 540px) {
  .project-grid, .finds-grid { grid-template-columns: 1fr; }
  .finds-grid { row-gap: 28px; }
  .field-grid { grid-template-columns: 1fr; gap: 22px; }
  .field-grid img { aspect-ratio: 1.55; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; }
  .back-to-top { grid-column: 2; grid-row: 1; }
}

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