/* The legal pages: the page's ground and type, set for reading. */

@font-face {
  font-family: 'Anonymous Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/anonymous-pro-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Anonymous Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/anonymous-pro-700.woff2) format('woff2');
}

:root {
  --void: #050604;
  --rot: #2A3320;
  --ash: #7C886F;
  --bone: #EEF3E2;
  --acid: #C6FF1A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font: 400 16px/1.6 'Anonymous Pro', ui-monospace, Menlo, monospace;
}

main {
  max-width: 72ch;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
/* The letters fill the top 52% of the wordmark and the drips hang below:
   move the image so the letters' centre, not the box's, meets the nav's. */
header img { display: block; height: 32px; width: auto; transform: translateY(23.3%); }
nav { display: flex; gap: 20px; }

a { color: var(--bone); text-underline-offset: 3px; }
a:hover { color: var(--acid); }
nav a { color: var(--ash); text-decoration: none; }
nav a[aria-current="page"] { color: var(--bone); }

h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
h2 { margin: 40px 0 8px; font-size: 18px; }
p, ul, dl { margin: 0 0 12px; }
ul { padding-left: 20px; }
.small { color: var(--ash); font-size: 14px; }

dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 24px; }
dt { color: var(--ash); }
dd { margin: 0; }

@media (max-width: 520px) {
  header { flex-direction: column; align-items: flex-start; }
  dl { grid-template-columns: 1fr; gap: 0; }
  dd { margin-bottom: 8px; }
}
