/* Crown Crawler: the support site. Dark stone, gold lettering, vellum text,
   the same palette and type as the game and its App Store images. */

@font-face { font-family: "Grenze"; src: url("fonts/Grenze-Variable.woff2") format("woff2");
             font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Regular.woff2") format("woff2");
             font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Italic.woff2") format("woff2");
             font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Medium.woff2") format("woff2");
             font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Bold.woff2") format("woff2");
             font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #120e0f;
  --stone: #1c1617;
  --line: rgba(235, 219, 179, 0.12);
  --gold: #f5b84d;
  --gold-dim: #c9944a;
  --vellum: #ebdbb3;
  --muted: #b3a688;
  --lettering: "Grenze", "Iowan Old Style", Georgia, serif;
  --text: "Alegreya Sans", -apple-system, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(77, 51, 31, 0.55), rgba(18, 14, 15, 0) 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 48px);
  color: var(--vellum);
  font: 400 1.125rem/1.6 var(--text);
}

main, header, footer { max-width: 42rem; margin: 0 auto; padding: 0 1rem; }

a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: #ffd38a; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--lettering); color: var(--gold); font-weight: 800; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 9vw, 4rem); margin: 0.6rem 0 0.4rem; }
h2 { font-size: 1.9rem; margin: 3rem 0 0.8rem; }
h3 { font-size: 1.3rem; font-weight: 700; margin: 1.8rem 0 0.4rem; color: var(--vellum); }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }
strong { color: #f6e9c8; font-weight: 700; }

/* The top of the front page: the icon, the name, the line. */
.masthead { text-align: center; padding-top: 3.5rem; }
.masthead img { width: 128px; height: 128px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.7)); }
.masthead .line { font-size: 1.35rem; color: var(--vellum); margin: 0 0 1.4rem; }
.badge {
  display: inline-block; padding: 0.55rem 1.1rem; border: 1px solid var(--gold-dim); border-radius: 999px;
  font-family: var(--lettering); font-weight: 700; font-size: 1.1rem; color: var(--gold); letter-spacing: 0.02em;
}

/* Inner pages: a small mark home. */
.crumb { display: flex; align-items: center; gap: 0.6rem; padding-top: 1.5rem; text-decoration: none;
         font-family: var(--lettering); font-weight: 700; font-size: 1.25rem; }
.crumb img { width: 36px; height: 36px; }

.panel { background: var(--stone); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; margin: 1.2rem 0; }
.panel p:last-child { margin-bottom: 0; }

details { border-top: 1px solid var(--line); padding: 0.8rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; color: #f6e9c8; list-style: none; padding-right: 1.6rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.2rem; top: -0.1rem; color: var(--gold); font-size: 1.3rem; }
details[open] summary::after { content: "−"; }
details > p, details > ul { margin-top: 0.6rem; color: var(--vellum); }

.small { font-size: 0.95rem; color: var(--muted); }

footer { margin-top: 4rem; padding-bottom: 3rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
footer p { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 0.8rem; font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .masthead img { animation: rise 0.8s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* The press kit. */
.line-lead { font-size: 1.3rem; margin-top: -0.2rem; }
.button {
  display: inline-block; padding: 0.6rem 1.1rem; border-radius: 10px; text-decoration: none;
  background: linear-gradient(#f5b84d, #c9944a); color: #1c1213; font-weight: 700;
}
.button:hover { color: #1c1213; filter: brightness(1.08); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.2rem; margin: 0 0 1rem; }
.facts dt { color: var(--gold); font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.6rem; }
}
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.shots img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--line); }
.shots a:focus-visible img { outline: 2px solid var(--gold); outline-offset: 3px; }
.icon-row { display: flex; gap: 1rem; align-items: center; }
.icon-row img { flex: none; border-radius: 22px; }
.icon-row p { margin: 0; }

/* A few screens on the front page, scrolling sideways on a phone. */
.strip { display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.25rem 0 0.75rem; scroll-snap-type: x mandatory; }
.strip img { flex: none; width: 11rem; height: auto; border-radius: 20px; border: 1px solid var(--line); scroll-snap-align: start; }
