@font-face {
  font-family: "WZ Major Arcana";
  src: url("/fonts/WZMajorArcana19pBetav1.004-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fffdf3;
  --text: #3b2416;
  --muted: #7a6455;
  --link: #d6337f;
  --rule: #ece3cf;
  --pixel: "WZ Major Arcana", ui-monospace, monospace;
  --sans: "Redaction", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 2.5rem 1.25rem 3rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

/* Custom pixel font for titles (19px grid, so sizes are multiples of 19px) */
.site-name, h1, h2, h3, h4 {
  font-family: var(--pixel);
  font-weight: 400;
  line-height: 1.5;
}

.site-name { margin: 0 0 1rem; font-size: 1.1875rem; }
.site-name a { color: var(--text); text-decoration: none; }

h1 { font-size: 2.375rem; margin: 2.5rem 0 1.5rem; }
h2 { font-size: 1.78125rem; margin: 2.25rem 0 1rem; }
h3, h4 { font-size: 1.1875rem; margin: 2rem 0 0.75rem; }
h2 strong, h2 em, h3 strong, h3 em { font-weight: inherit; font-style: inherit; }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
nav a[aria-current="page"] { color: var(--text); font-weight: 700; }

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: #4e3527;
}

ul { padding-left: 1.25rem; }
li { margin: 0.25rem 0; }

table.forms {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
table.forms th, table.forms td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}
table.forms th { font-weight: 700; }

footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}
footer p { margin: 0.4rem 0; }

@media (max-width: 34rem) {
  body { padding-top: 1.5rem; font-size: 1rem; }
  h1 { font-size: 1.78125rem; }
  h2 { font-size: 1.1875rem; }
  table.forms { font-size: 0.875rem; }
}
