@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/bricolage-grotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #eaf3ec;
  --ink: #193b35;
  --quiet: #415e54;
  --fir: #204c41;
  --stroke: #a6bdae;
  --gold: #ffd489;
  --mint: #cde5da;
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body, figure, h1, h2, h3, p, dl, dd, pre { margin: 0; }
body { line-height: 1.5; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .16em; }
a:focus-visible { outline: 3px solid #1563ac; outline-offset: 5px; }
.wrap { width: min(79rem, calc(100% - clamp(2.5rem, 9vw, 9rem))); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 1rem; top: -5rem; background: white; padding: .65rem 1rem; }
.skip:focus { top: .75rem; }

.mast-inner, .mast nav, .wordmark, .actions, figcaption, .footer-inner {
  display: flex;
  align-items: center;
}
.mast-inner { justify-content: space-between; min-height: 5.5rem; border-bottom: 1px solid var(--stroke); }
.wordmark { gap: .65rem; font-size: 2rem; font-weight: 800; letter-spacing: -.043em; text-decoration: none; }
.glyph {
  width: 1.65rem;
  height: 1.65rem;
  background: var(--fir);
  clip-path: polygon(0 100%, 0 25%, 25% 25%, 25% 0, 75% 0, 75% 25%, 100% 25%, 100% 100%, 64% 100%, 64% 49%, 36% 49%, 36% 100%);
}
.mast nav { gap: clamp(1rem, 3vw, 2.8rem); }
.mast nav a { padding-block: .5rem; font-weight: 600; text-decoration: none; }
.mast nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 5vw, 5.5rem); }
.hero-copy { padding-bottom: 1.2rem; }
h1, h2, h3 { line-height: 1.02; }
h1 { max-width: 10ch; font-size: clamp(3.5rem, 5.9vw, 6.2rem); font-weight: 770; letter-spacing: -.043em; }
.hero-copy p { max-width: 36ch; font-size: clamp(1.08rem, 1.5vw, 1.325rem); line-height: 1.52; color: var(--quiet); margin-block: 1.3rem 1.7rem; }
.actions { flex-wrap: wrap; gap: 1.5rem; }
.button { display: inline-block; padding: .8rem 1.3rem; border-radius: .45rem; background: var(--fir); color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #123b31; }
.text-link { font-weight: 650; }
.game-shot { display: block; border: .38rem solid #284c42; border-radius: .75rem; overflow: hidden; background: #284c42; box-shadow: .45rem .45rem 0 #d5aa60; }
.game-shot img { display: block; width: 100%; height: auto; }
figcaption { justify-content: space-between; gap: 1rem; padding: 1.15rem .12rem 0; font-size: .94rem; }
figcaption strong { font-weight: 750; margin-right: .6rem; }
figcaption span { color: var(--quiet); }
figcaption a { flex-shrink: 0; }

.start { background: var(--fir); color: #f7fff6; }
.start-inner { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: 3.6rem; }
h2 { font-size: clamp(2.35rem, 3.85vw, 4rem); font-weight: 710; letter-spacing: -.037em; }
.start p, .directory-intro p { margin: 1rem 0; max-width: 38ch; font-size: 1.1rem; }
.start p { color: #e1efe5; }
.start a { color: var(--gold); }
.start a:focus-visible { outline-color: var(--gold); }
.commands { min-width: 0; background: #153a31; border-left: .3rem solid var(--gold); padding: 1.2rem clamp(1.05rem, 2.5vw, 2rem); border-radius: 0 .4rem .4rem 0; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; }
code { color: #f4f7e8; font: .94rem/1.85 ui-monospace, Consolas, monospace; }

.directory { padding-block: clamp(3.5rem, 6vw, 6rem); }
.directory-intro { display: flex; gap: 2rem; justify-content: space-between; align-items: baseline; padding-bottom: 2.5rem; }
.directory-intro p { margin: 0; max-width: 49ch; color: var(--quiet); }
.directory-groups { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(2rem, 5vw, 5rem); }
.directory h3 { font-weight: 660; font-size: 1.55rem; letter-spacing: -.035em; padding-bottom: .9rem; border-bottom: 2px solid var(--fir); }
.repo-list > div { display: grid; grid-template-columns: minmax(8rem, .8fr) 1.2fr; gap: 1rem; padding-block: .95rem; border-bottom: 1px solid var(--stroke); }
.repo-list dt { font-weight: 700; }
.repo-list dd { color: var(--quiet); }
footer { background: var(--mint); }
.footer-inner { justify-content: space-between; gap: 2rem; padding-block: 1.4rem; font-size: .9rem; }
.footer-inner a { flex-shrink: 0; }

@media (max-width: 56rem) {
  .hero, .start-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { padding-bottom: 0; }
  h1 { max-width: 15ch; }
  .hero-copy p, .start p { max-width: 55ch; }
  .directory-groups { grid-template-columns: 1fr 1fr; }
  .repo-list > div { grid-template-columns: 1fr; gap: .25rem; }
}
@media (max-width: 38rem) {
  .mast-inner { min-height: 4.25rem; }
  .mast nav { font-size: .9rem; gap: .9rem; }
  .wordmark { font-size: 1.65rem; gap: .45rem; }
  .glyph { width: 1.3rem; height: 1.3rem; }
  .hero { padding-block: 2.5rem; }
  h1 { font-size: clamp(3.15rem, 11vw, 4.35rem); }
  figcaption { align-items: flex-start; font-size: .9rem; }
  figcaption strong, figcaption span { display: block; }
  .start-inner { padding-block: 2.7rem; }
  .directory-intro, .footer-inner { display: block; }
  .directory-intro p, .footer-inner p { margin: .85rem 0; }
  .directory-groups { grid-template-columns: 1fr; }
  .footer-inner { padding-block: 1rem 1.5rem; }
}
