@font-face {
  font-family: Archivo;
  src: url("./fonts/archivo-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Archivo;
  src: url("./fonts/archivo-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Ojuju;
  src: url("./fonts/ojuju-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #404e67;
  --paper: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  z-index: 20;
  top: -5rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 104px;
  padding: 1.7rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header a { text-decoration: none; }

.site-title {
  font-family: Ojuju, Archivo, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.site-header nav a {
  font-size: .93rem;
  line-height: 1.4;
}
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }

.site-header a:hover,
.site-header a:focus-visible { text-decoration: underline; }

.intro {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 5rem 7vw;
  text-align: center;
}

.intro-inner { display: grid; justify-items: center; gap: 2rem; }

.explore-entry {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .95rem 1.35rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.explore-entry:hover,
.explore-entry:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.intro h1 {
  max-width: 1060px;
  margin: 0;
  font-family: Ojuju, Archivo, sans-serif;
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.grid-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eee;
}

.grid-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-item:focus-visible { outline: 4px solid var(--ink); outline-offset: -4px; }

.achievement-detail {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 5rem max(6vw, 1.5rem);
  text-align: center;
}

.detail-content { max-width: 1000px; }
.detail-content :empty { display: none; }

.detail-content h4 {
  margin: 0 0 2rem;
  font-family: Ojuju, Archivo, sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.detail-content h2 {
  margin: 0;
  font-family: Ojuju, Archivo, sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.detail-content p { margin: 1.5rem 0 0; }

.item-navigation {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 4vw 4rem;
}

.item-navigation-link {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  max-width: min(42vw, 28rem);
  text-decoration: none;
}

.item-navigation-link span { font-size: .8rem; }
.item-navigation-link strong { font-family: Ojuju, Archivo, sans-serif; font-size: clamp(1rem, 1.7vw, 1.3rem); line-height: 1.3; }
.item-navigation-link.next { text-align: right; }
.item-navigation-link:hover strong,
.item-navigation-link:focus-visible strong { text-decoration: underline; }

.not-found { min-height: 60vh; padding: 7rem 6vw; text-align: center; }
.not-found h1 { font-family: Ojuju, Archivo, sans-serif; font-size: clamp(2rem, 5vw, 4rem); }

.credits-content {
  width: min(100% - 3rem, 760px);
  min-height: 68vh;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0 6rem;
}
.credits-eyebrow {
  margin: 0 0 .75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.credits-content h1, .credits-content h2 { font-family: Ojuju, Archivo, sans-serif; font-weight: 600; }
.credits-content h1 { margin: 0 0 1rem; font-size: clamp(2.6rem, 7vw, 4.7rem); line-height: 1; }
.credits-intro { max-width: 46ch; margin: 0 0 3rem; line-height: 1.7; }
.credit-card { padding: clamp(1.5rem, 5vw, 2.5rem); border: 1px solid #cdd3dd; border-radius: 1.25rem; background: #f7f6f4; }
.credit-card h2 { margin: 0 0 1.25rem; font-size: clamp(1.6rem, 4vw, 2.25rem); }
.credit-card p { line-height: 1.6; }
.credit-card p:last-child { margin-bottom: 0; }
.credits-return { display: inline-block; margin-top: 2rem; font-weight: 700; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .achievement-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro { min-height: 300px; }
}

@media (max-width: 640px) {
  .site-header { min-height: 80px; padding: 1.2rem 5vw; flex-wrap: wrap; }
  .site-title { font-size: 1.45rem; }
  .site-header nav { margin-left: auto; gap: .45rem 1rem; justify-content: flex-end; flex-wrap: wrap; }
  .site-header nav a { font-size: .8rem; }
  .intro { min-height: 280px; padding: 4rem 6vw; }
  .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .achievement-detail { min-height: 66vh; padding-block: 4rem; }
}

@media (max-width: 380px) {
  .site-header { align-items: flex-start; }
  .site-header nav { text-align: right; }
}

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