/* madebytrowel.com - the whole site's stylesheet. No build step, no JavaScript.
   Colours live only in the tokens on :root. Nothing below this block names one. */

:root {
  --bg: #151412;        /* warm near-black */
  --text: #ebe7df;
  --muted: #9c968b;
  --rule: rgba(255, 255, 255, 0.10);
  --accent: #d3b06a;    /* brass; underlines, hover, focus, selection */
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

main {
  flex: 1;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 1.75rem 0;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 24;
  color: var(--text);
  text-decoration: none;
}

.wordmark:hover,
.wordmark:focus {
  color: var(--accent);
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--body);
  font-size: 0.9375rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--text);
}

.site-header nav a[aria-current="page"] {
  color: var(--text);
}

main {
  padding-block: 4.5rem 4rem;
}

h1 {
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.lead {
  font-family: var(--body);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 2.5rem;
}

h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48;
  margin: 3rem 0 0.75rem;
}

p {
  margin: 0 0 1.25rem;
}

.muted {
  color: var(--muted);
}

.games {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.games li {
  border-bottom: 1px solid var(--rule);
  padding-block: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1.5rem;
  row-gap: 0.25rem;
}

.games a {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  font-variation-settings: "opsz" 32;
  grid-column: 1;
  grid-row: 1;
  text-decoration: none;
}

.games a:hover {
  text-decoration: underline;
}

.games li span {
  grid-column: 1;
  grid-row: 2;
  color: var(--muted);
}

.games .state {
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-size: 0.9375rem;
  white-space: nowrap;
  align-self: baseline;
}

.games + .muted {
  margin-top: 2.5rem;
}

.facts {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0 0 2rem;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

main a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

main a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding-block: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 40rem) {
  .site-header,
  main,
  .site-footer {
    padding-inline: 1.25rem;
  }

  main {
    padding-block: 3rem 3rem;
  }

  h1 {
    font-size: 2.125rem;
  }

  .lead {
    font-size: 1.125rem;
  }

  .games li {
    grid-template-columns: 1fr;
  }

  .games a,
  .games li span,
  .games .state {
    grid-column: 1;
  }

  .games .state {
    grid-row: 3;
    white-space: normal;
  }
}

@media (max-width: 30rem) {
  .facts {
    grid-template-columns: 1fr;
  }

  .facts dt {
    margin-top: 0.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 140ms;
  }
}
