@font-face {
  font-family: Archivo;
  src: url("assets/archivo.woff2") format("woff2");
  font-weight: 200 600;
  font-stretch: 125%;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/jetbrains-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --text: #f2f0ec;
  --secondary-text: #aaa399;
  --divider: #2a2825;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-block-size: 100vh;
  min-block-size: 100svh;
  padding: 28px clamp(24px, 6.9vw, 132.3px) 28px clamp(24px, 6.11vw, 117.3px);
}

.hero__photo,
.hero::before {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
}

.hero__photo {
  z-index: -2;
  object-fit: cover;
}

.hero::before {
  z-index: -1;
  content: "";
  background: rgb(0 0 0 / 80%);
}

.hero__content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
}

.hero__mark {
  display: block;
}

.announcement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "wordmark email"
    "rule rule"
    "category description";
  column-gap: 24px;
  align-items: end;
  padding-block-start: 9px;
}

.announcement::before {
  grid-area: rule;
  content: "";
  border-block-start: 1px solid var(--divider);
  margin-block: 16px 12px;
}

.wordmark,
.category,
.description {
  margin: 0;
}

.wordmark {
  grid-area: wordmark;
  font-family: Archivo, Arial, sans-serif;
  font-size: 2.24rem;
  font-weight: 200;
  font-stretch: 125%;
  letter-spacing: -0.045em;
  line-height: 28px;
  text-transform: uppercase;
}

.wordmark strong {
  font-weight: 600;
}

.category,
.email {
  color: var(--secondary-text);
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
}

.category {
  grid-area: category;
  align-self: center;
  font-size: 0.6875rem;
  letter-spacing: 0.36em;
}

.description {
  grid-area: description;
  align-self: center;
  justify-self: end;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: end;
  text-transform: uppercase;
}

.keep-together {
  white-space: nowrap;
}

.email {
  grid-area: email;
  justify-self: end;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}

.email:hover,
.email:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

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

@media (max-width: 820px) {
  .hero {
    align-items: stretch;
    padding-inline: clamp(20px, 5vw, 42px);
  }

  .hero__photo {
    object-position: 62% center;
  }

  .hero__content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(24px, 1fr) auto auto auto;
    grid-template-areas:
      "mark"
      "wordmark"
      "category"
      "."
      "rule"
      "description"
      "email";
    align-items: start;
    max-inline-size: 30rem;
  }

  .hero__mark {
    grid-area: mark;
    inline-size: clamp(56px, 9svh, 76px);
    block-size: auto;
    margin-block-end: 16px;
  }

  .announcement {
    display: contents;
  }

  .wordmark {
    line-height: 1;
  }

  .category {
    margin-block-start: 12px;
    letter-spacing: 0.23em;
  }

  .announcement::before {
    margin-block: 0 8px;
  }

  .description,
  .email {
    justify-self: start;
    text-align: start;
  }

  .description {
    max-inline-size: 32ch;
    font-size: 1.125rem;
    line-height: 1.3;
  }

  .email {
    margin-block-start: 8px;
    padding-block: 14px;
    font-size: 0.75rem;
  }
}

@media (max-width: 820px) and (orientation: landscape) {
  .hero {
    padding-block: 16px;
  }

  .hero__content {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto minmax(24px, 1fr) auto auto auto;
    grid-template-areas:
      "mark wordmark"
      "mark category"
      ". ."
      "rule rule"
      "description description"
      "email email";
    max-inline-size: 22rem;
    column-gap: 14px;
  }

  .hero__mark {
    margin-block-end: 0;
  }

  .wordmark {
    font-size: 1.8rem;
  }

  .category {
    margin-block-start: 4px;
  }

  .announcement::before {
    inline-size: min(100%, 12rem);
    margin-block-end: 10px;
  }

  .description {
    font-size: 1rem;
  }

  .email {
    margin-block-start: 4px;
    padding-block: 8px;
  }
}
