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

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

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

:root {
  color-scheme: light;
  --paper: #e8eee4;
  --ink: #172f29;
  --muted: #435b50;
  --bench: #18362e;
  --frame: #a4b3a5;
  --label: #f5f7ef;
  --gold: #f0c967;
  --gutter: clamp(1.125rem, 4vw, 3rem);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: Barlow, system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

h1, h2, p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #286454;
  outline-offset: 4px;
}

.page-width {
  max-width: 77rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  background: var(--bench);
  color: var(--label);
}

.masthead-inner {
  min-height: 4.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.masthead :focus-visible {
  outline-color: var(--gold);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font: 700 1.8rem / 1 var(--display);
  text-decoration: none;
}

.bench-mark {
  width: 1.875rem;
  aspect-ratio: 1;
  background: var(--gold);
  clip-path: polygon(0 0, 76% 0, 100% 24%, 100% 100%, 0 100%);
  display: grid;
  place-items: center;
  flex: none;
}

.bench-mark::after {
  content: "";
  width: 1.125rem;
  height: 1rem;
  background: var(--bench);
  clip-path: polygon(0 20%, 61% 0, 100% 19%, 100% 37%, 39% 57%, 0 38%,
    0 51%, 39% 70%, 100% 50%, 100% 66%, 39% 86%, 0 67%, 0 80%,
    39% 100%, 100% 80%, 100% 97%, 39% 100%, 0 83%);
}

.project-link {
  font-weight: 600;
  text-underline-offset: .25em;
  text-decoration-color: #9eb4a3;
}

.project-link:hover {
  text-decoration-color: var(--gold);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  align-items: end;
  gap: 1.25rem 3rem;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.75rem, 3.5vw, 2.75rem);
}

h1 {
  font: 700 clamp(3.75rem, 7.3vw, 7.25rem) / .86 var(--display);
  letter-spacing: -.025em;
}

.intro-copy {
  padding-bottom: .15rem;
  line-height: 1.36;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.project-status {
  margin-top: .7rem;
  font-size: 1rem;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
  padding-block-end: clamp(2.5rem, 6vw, 5rem);
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--label);
  border: 1px solid var(--frame);
  border-radius: .45rem;
}

.tool-card:hover,
.tool-card:focus-within {
  border-color: #607e6e;
}

.tool-art {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: .39rem .39rem 0 0;
  background: #39483c;
}

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

.tool-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex: 1;
  padding: clamp(.85rem, 2vw, 1.225rem) clamp(1rem, 2.2vw, 1.4rem);
  border-top: 1px solid var(--frame);
}

h2 {
  font: 700 clamp(2rem, 3.2vw, 2.7rem) / 1 var(--display);
  letter-spacing: -.01em;
}

.tool-label p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.37;
  margin-top: .3rem;
}

.details-button,
.close-button {
  flex: none;
  padding: .5rem .8rem;
  min-height: 2.75rem;
  border: 1px solid #84998a;
  border-radius: .25rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}

.details-button::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tool-card:hover .details-button,
.details-button:focus-visible,
.close-button:hover {
  background: var(--bench);
  border-color: var(--bench);
  color: var(--label);
}

.tool-dialog {
  width: min(36rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--frame);
  border-top: .35rem solid var(--gold);
  border-radius: .45rem;
  background: var(--label);
  color: var(--ink);
}

.tool-dialog::backdrop {
  background: rgba(15, 34, 29, .72);
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tool-description {
  font-size: 1.125rem;
  line-height: 1.55;
}

.tool-description ul {
  padding-inline-start: 1.2em;
}

.tool-description li + li {
  margin-top: .3em;
}

.tool-status {
  border-top: 1px solid var(--frame);
  padding-top: .85rem;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 880px) {
  .intro {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
    column-gap: 1.5rem;
  }

  .tool-label {
    align-items: start;
  }
}

@media (max-width: 700px) {
  .masthead-inner {
    min-height: 3.75rem;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  h1 {
    font-size: clamp(3.2rem, 12vw, 4.8rem);
  }

  .desktop-break {
    display: none;
  }

  .intro-copy {
    max-width: 29rem;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-label {
    align-items: center;
  }
}

@media (max-width: 360px) {
  .wordmark {
    font-size: 1.55rem;
  }

  .tool-label {
    gap: .5rem;
  }

  .details-button {
    padding-inline: .55rem;
  }
}
