@import url('https://fonts.googleapis.com/css2?family=Chivo:wght@300;400;700;900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

/* Skip link for keyboard/screen reader users */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #111;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  z-index: 100;
  text-decoration: none;
}

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

body {
  margin: 0;
  font-family: 'Chivo', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

a {
  color: #222;
  text-decoration: none;
}

a:hover {
  opacity: 0.6;
}

a:active {
  opacity: 0.4;
}

/* Visible focus for keyboard navigation — WCAG 2.4.7 */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #222;
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */

header {
  padding: 2.5rem 0 0;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.site-title a {
  color: inherit;
}

nav {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
}

nav a {
  font-size: 0.875rem;
  font-weight: 400;
  /* #595959 on white = 7:1 contrast — WCAG AA + AAA */
  color: #595959;
  margin-right: 1.5rem;
  padding: 0.25rem 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav a:hover {
  color: #222;
  opacity: 1;
}

/* #c00 on white = 5.9:1 — passes WCAG AA */
nav a.active {
  color: #c00;
  opacity: 1;
}

/* Main */

main {
  padding: 4rem 0 5rem;
}

/* Page headings — secondary pages only */
/* Larger than site-title (1.25rem) but not overwhelming */

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 2rem;
}

/* Home / About */

.about-text {
  max-width: 600px;
}

.about-text p {
  margin: 0 0 1.5rem;
  line-height: 1.7;
  font-weight: 300;
}

.values {
  line-height: 1.7;
  font-weight: 400;
}

.contact-links {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-links a {
  font-size: 0.9rem;
  font-weight: 400;
}

/* Project pages */

.project-meta {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 2.2;
  margin-bottom: 2rem;
  /* #767676 on white = 4.54:1 — passes WCAG AA */
  color: #767676;
}

/* Each meta item on its own line */
.project-meta span {
  display: block;
}

.project-intro {
  max-width: 600px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-weight: 300;
}

/* Coming soon / placeholder notices */
.coming-soon {
  font-size: 0.875rem;
  font-weight: 300;
  color: #767676;
  margin-bottom: 1.5rem;
}

.project-image {
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.project-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  font-size: 0.8rem;
  font-weight: 300;
  color: #767676;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

.project-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* Footer */

footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  font-weight: 300;
  /* #767676 on white = 4.54:1 — passes WCAG AA */
  color: #767676;
}

/* Responsive */

@media (max-width: 600px) {
  .wrap {
    padding: 0 1.25rem;
  }

  header {
    padding-top: 1.75rem;
  }

  main {
    padding: 3rem 0 4rem;
  }

  nav a {
    margin-right: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}
