@font-face {
  font-family: "Goudaworld Wordmark";
  src: url("./assets/HelveticaNeueLTPro-BdEx.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
  background: #fff;
  --gutter: clamp(.75rem, 4vw, 2rem);
  --border: #d5d5d5;
  --hover: #f4f4f4;
  --muted: #4c4c4c;
  --content: 69rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.skip-link {
  position: absolute;
  z-index: 2;
  inset: .75rem auto auto var(--gutter);
  padding: .625rem .875rem;
  background: #000;
  color: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: relative;
  z-index: 1;
  margin-inline: var(--gutter);
  padding-block-start: max(1rem, env(safe-area-inset-top));
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.nav-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-block-size: 2.75rem;
  padding: .5rem clamp(.625rem, 3vw, .875rem);
  border: 1px solid var(--border);
  border-radius: .375rem;
  background: #fff;
  color: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

summary.nav-control::-webkit-details-marker {
  display: none;
}

summary.nav-control::after {
  content: "";
  inline-size: .375rem;
  block-size: .375rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.09rem) rotate(45deg);
}

details[open] summary::after {
  transform: translateY(.09rem) rotate(225deg);
}

.nav-control:hover,
details[open] summary {
  background: var(--hover);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.nav-panel {
  position: absolute;
  inset-block-start: calc(100% + .5rem);
  inset-inline: 0;
  inline-size: min(100%, 21rem);
  margin-inline: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: .375rem;
  background: #fff;
  box-shadow: 0 .375rem 1.5rem rgb(0 0 0 / 7%);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.nav-panel p {
  margin: 0 0 .5rem;
}

a {
  color: inherit;
  text-underline-offset: .2em;
}

main {
  margin-inline: var(--gutter);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-block-size: clamp(23rem, 62svh, 37rem);
  padding: 3rem 0 3.5rem;
  text-align: center;
}

.wordmark {
  font: 400 clamp(2rem, 11vw, 6rem)/1.1 "Goudaworld Wordmark", "Arial Black", Arial, sans-serif;
  letter-spacing: -.083333em;
  white-space: nowrap;
}

.hero h1 {
  margin: 1.25rem 0 .5rem;
  font-size: 1rem;
  line-height: 1.3;
}

.hero p {
  max-inline-size: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.5;
}

.content-section,
.site-footer {
  max-inline-size: var(--content);
  margin-inline: auto;
  border-block-start: 1px solid var(--border);
}

.content-section {
  padding-block: clamp(1.75rem, 5vw, 3rem) clamp(2.5rem, 6vw, 4rem);
}

.content-section h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3.5vw, 2.5rem);
}

.project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-image {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--hover);
}

.project h3 {
  margin: 1.125rem 0 .375rem;
  font-size: 1.375rem;
  line-height: 1.2;
}

.project p,
.contact p {
  margin: 0 0 1rem;
  max-inline-size: 48ch;
  color: var(--muted);
  line-height: 1.55;
}

.project-link,
.contact-link {
  font-weight: 600;
}

.project-link {
  margin-block-start: auto;
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3.5vw, 2.5rem);
}

.contact h2 {
  margin: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  inline-size: min(calc(100% - 2 * var(--gutter)), var(--content));
  padding-block: 1.25rem 2rem;
  color: var(--muted);
  font-size: .875rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 39rem) {
  .site-nav {
    gap: .25rem;
  }

  .nav-control {
    gap: .25rem;
    padding-inline: .375rem;
  }

  .hero {
    min-block-size: clamp(20rem, 48svh, 27rem);
  }

  .project-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .project-grid {
    gap: 2rem;
  }
}
