/*
 * The front page's look (site/index.html) for the plain-HTML Privacy Policy and Terms of Use
 * (site/privacy.html, site/terms.html): the "Wanderer's Road" colours, light and dark.
 */
@font-face {
  font-family: 'Cinzel';
  font-weight: 700;
  font-display: swap;
  src: url('/site/fonts/cinzel-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-weight: 400;
  font-display: swap;
  src: url('/site/fonts/eb-garamond-latin-400-normal.woff2') format('woff2');
}

:root {
  --background: #efe3c8;
  --surface: #f7efdb;
  --ink: #2b1d0e;
  --muted: #5a4630;
  --border: #a0845c;
  --primary: #2f5233;
  --primary-contrast: #fcf7ea;
  --focus: #1d4f7a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #17130f;
    --surface: #221c16;
    --ink: #eedfc0;
    --muted: #c4ad86;
    --border: #5f4d38;
    --primary: #e3a94f;
    --primary-contrast: #17130f;
    --focus: #8cc4ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.55;
}
h1,
h2,
.brand,
.button {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
h1 {
  margin: 32px 0 8px;
  font-size: 2rem;
}
h2 {
  margin: 28px 0 8px;
  font-size: 1.25rem;
}
a {
  color: var(--primary);
}
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--surface);
}

header.top {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  max-width: 1120px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--ink);
  font-size: 1.3rem;
  text-decoration: none;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-contrast);
  font-size: 1rem;
  text-decoration: none;
}

main {
  padding-bottom: 40px;
}
.updated {
  color: var(--muted);
}

footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 1rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
