/* MoonWell site. The look follows the game's interface, Crater Silver (UIStyle.cs): honed slate, crater-silver
   hairlines, small silver points. No moon ornament anywhere (Jake, 13 Nov). Headings in Cinzel, as in the game;
   body text in the reader's own system font so nothing waits on a download. */

@font-face {
  font-family: "Cinzel";
  src: url("/fonts/Cinzel-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --slate: #1e212e;        /* UIStyle.Slate */
  --strip: #161924;        /* UIStyle.StripSlate */
  --pill: #1a1d29;         /* UIStyle.PillSlate */
  --silver: #d1d9f0;       /* UIStyle.CraterSilver */
  --line: rgba(209, 217, 240, 0.28);
  --text: #e4e8f3;
  --muted: #a7afc4;
  --confirm: #e0b25a;
  --max: 46rem;
}

* { box-sizing: border-box; }

html { background: var(--strip); }

body {
  margin: 0;
  color: var(--text);
  background: var(--strip);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--silver); text-underline-offset: 3px; }
a:hover { color: #fff; }

h1, h2, h3, .wordmark {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--silver);
  line-height: 1.25;
}
h1 { font-size: 2rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; }

/* The bar along the top */
.bar {
  position: sticky; top: 0; z-index: 2;
  background: rgba(22, 25, 36, 0.96);
  border-bottom: 1px solid var(--line);
}
.bar .in {
  max-width: 64rem; margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.2rem;
}
.wordmark { font-size: 1.25rem; text-decoration: none; margin-right: auto; }
.bar nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; font-size: 0.95rem; }
.bar nav a { text-decoration: none; color: var(--muted); padding: 0.2rem 0; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--silver); }
.bar nav a[aria-current] { border-bottom: 1px solid var(--silver); }

/* The picture at the top of the home page */
.hero { position: relative; background: #000; }
.hero img { display: block; width: 100%; height: auto; min-height: 16rem; max-height: 70vh; object-fit: cover; object-position: 50% 30%; }
.hero .over {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3rem 0 1.2rem;
  background: linear-gradient(to bottom, rgba(22, 25, 36, 0) 0%, rgba(22, 25, 36, 0.85) 55%, var(--strip) 100%);
}
.hero .over .in { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.hero h1 { font-size: 2.6rem; margin: 0; }
.hero .tag { margin: 0.2rem 0 0; color: var(--text); font-size: 1.05rem; }

/* Pages */
main { max-width: var(--max); margin: 0 auto; padding: 1.2rem 1rem 3rem; }
main > p:first-child { margin-top: 0.4rem; }
.lead { font-size: 1.1rem; }
.muted { color: var(--muted); }

/* A slate card with a silver hairline set in from its edge, as the game's popups have */
.card {
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
  box-shadow: inset 0 0 0 5px var(--slate), inset 0 0 0 6px rgba(209, 217, 240, 0.12);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.store {
  display: inline-block;
  border: 1px solid var(--silver);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  color: var(--silver);
  background: var(--pill);
  font-weight: 600;
}

/* A thin silver rule with one small silver point in its middle */
.rule { position: relative; height: 1px; max-width: 18rem; margin: 2.2rem auto; background: var(--line); }
.rule::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; margin: -4px 0 0 -4px;
  background: var(--strip); border: 1px solid var(--silver); transform: rotate(45deg);
}

/* Three portraits */
.cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1.2rem 0; }
.cast figure {
  margin: 0; background: var(--slate); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.6rem 0.4rem 0.5rem; text-align: center;
}
.cast img { display: block; width: 100%; height: 13rem; object-fit: contain; }
.cast figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; line-height: 1.35; }
.cast figcaption b { display: block; color: var(--text); font-weight: 600; }

ul.points { list-style: none; padding: 0; }
ul.points li { position: relative; padding-left: 1.3rem; margin: 0.5rem 0; }
ul.points li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.62em;
  width: 6px; height: 6px; background: var(--silver); transform: rotate(45deg);
}

/* Tables (the privacy page) */
.wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.5rem; border-top: 1px solid var(--line); }
th { color: var(--silver); font-weight: 600; }
td:first-child { width: 30%; }

/* What Jake or a lawyer still has to confirm. Every one of these comes off before the page is given to a store. */
.confirm {
  color: var(--confirm);
  font-weight: 600;
}
.confirm::before { content: "To confirm: "; }
.draft {
  border: 2px solid var(--confirm);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
  background: rgba(224, 178, 90, 0.07);
}
.draft h2 { margin-top: 0; color: var(--confirm); }

.button {
  display: inline-block; padding: 0.6rem 1.2rem; border-radius: 8px;
  background: var(--silver); color: var(--strip); font-weight: 700; text-decoration: none;
}
.button:hover { background: #fff; color: var(--strip); }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer .in { max-width: var(--max); margin: 0 auto; padding: 1.2rem 1rem 2rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin-bottom: 0.6rem; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 2.1rem; }
  .cast { gap: 0.5rem; }
  .cast img { height: 9.5rem; }
  .cast figcaption { font-size: 0.75rem; }
  td:first-child { width: 36%; }
}

@media (min-width: 900px) {
  .hero img { max-height: 78vh; }
  .hero h1 { font-size: 3.2rem; }
}
