/* What every page of the site shares: its fonts, colours, top bar, gold rules and footer. Each page adds its own
   styles after this (public/index.html, public/privacy/index.html). */
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Cinzel;
  src: url('fonts/cinzel.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --night: #040a18; /* the pictures' own dark: their edges fade into it (art/draw.mjs GROUND too) */
  --gold: #e8bf7c;
  --line: rgb(232 191 124 / 0.42);
  --cream: #f6ead3;
  --soft: #d9ccb6;
  --prism: linear-gradient(90deg, #ff92cf, #b38dff 35%, #73d2ff 68%, #ffd78a);
  --serif: 'EB Garamond', Garamond, Georgia, serif;
  --caps: Cinzel, 'EB Garamond', Georgia, serif;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 1.1875rem/1.55 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}
.wrap {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

/* the top bar and the logo */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 18px 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: auto;
  height: 58px;
}
.wordmark {
  display: grid;
  justify-items: center;
  font-family: var(--caps);
  line-height: 1;
  text-transform: uppercase;
}
.wm-name {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.wm-sub {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 5px;
  font-size: 0.8rem;
  letter-spacing: 0.45em;
  color: var(--gold);
}
.wm-sub::before,
.wm-sub::after {
  content: '';
  width: 2.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.wm-sub::after {
  margin-left: -0.45em; /* the letter spacing after the last letter */
}
nav {
  display: flex;
  gap: clamp(20px, 4vw, 60px);
}
nav a {
  font-size: 1.3rem;
  text-decoration: none;
}
nav a:hover {
  color: var(--gold);
}

/* a gold rule with a sparkle in its middle */
.rule {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}
.rule::before,
.rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.rule::after {
  background: linear-gradient(90deg, var(--line), transparent);
}
.spark {
  flex: none;
  width: 14px;
  height: 14px;
  fill: currentColor;
  filter: drop-shadow(0 0 5px rgb(232 191 124 / 0.9));
}

.foot {
  position: relative;
  isolation: isolate;
  margin-top: 64px;
  padding-bottom: 120px;
  text-align: center;
}
.foot-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
  mask-image: linear-gradient(180deg, transparent, #000 45%);
}
.foot .brand {
  justify-content: center;
  margin: 36px 0 14px;
}
.foot p {
  margin: 0;
  font-size: 1rem;
  color: var(--soft);
}
.foot p a {
  text-decoration-color: rgb(232 191 124 / 0.4);
  text-underline-offset: 4px;
}
.foot p a:hover {
  color: var(--gold);
  text-decoration-color: currentColor;
}

@media (max-width: 560px) {
  .bar {
    justify-content: center;
  }
  .brand img {
    height: 50px;
  }
  .wm-name {
    font-size: 1.6rem;
  }
  nav a {
    font-size: 1.15rem;
  }
}
