/* One Last Game Interactive — shared styles.
   Palette: ink-blue night, bone text, brass accent, and five stone colours
   (the stones are the one decorative motif; everything else stays quiet). */

:root {
  --ink: #0f1626;
  --panel: #162039;
  --line: #2b3855;
  --bone: #e9e4d6;
  --muted: #a8a698;
  --brass: #c9a35a;
  --brass-dim: #8f7440;

  --ruby: #c4483f;
  --sapphire: #4a7fc4;
  --emerald: #3f9a6b;
  --topaz: #d9a93f;
  --amethyst: #8a64b8;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 1.0625rem/1.65 var(--sans);
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brass); text-underline-offset: 0.18em; }
a:hover { color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--brass);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header ------------------------------------------------------------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--bone);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.wordmark small {
  font-size: 0.8em;
  color: var(--muted);
  font-style: italic;
}

.stones { display: inline-flex; gap: 0.3rem; }
.stones i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c);
}
.stones .s1 { --c: var(--ruby); }
.stones .s2 { --c: var(--sapphire); }
.stones .s3 { --c: var(--emerald); }
.stones .s4 { --c: var(--topaz); }
.stones .s5 { --c: var(--amethyst); }

.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--bone); }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.4em;
}

/* Hero --------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 2.5rem 4rem;
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.4;
  color: var(--bone);
  max-width: 30ch;
  margin: 0 0 1.25rem;
}

.hero p { max-width: 46ch; }

.hero-art { justify-self: center; width: min(100%, 20rem); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.btn:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }

.btn.ghost { background: transparent; color: var(--brass); }
.btn.ghost:hover { background: transparent; border-color: var(--bone); color: var(--bone); }
.btn[aria-disabled="true"] {
  border-style: dashed;
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

/* Content sections --------------------------------------------------- */

main section.block {
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}
main section.block + section.block { margin-top: 0; }

h2 {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  line-height: 1.2;
}

h3 {
  margin: 1.8rem 0 0.4rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
}

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1rem; }

.page-title {
  margin: 1rem 0 0.75rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 2rem;
  margin: 0;
  max-width: 34rem;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.stone-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.7rem; max-width: 34rem; }
.stone-list li { display: flex; align-items: center; gap: 0.9rem; }
.stone-list .gem {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset -0.15rem -0.15rem 0 rgba(0, 0, 0, 0.22);
}
.stone-list .s1 { --c: var(--ruby); }
.stone-list .s2 { --c: var(--sapphire); }
.stone-list .s3 { --c: var(--emerald); }
.stone-list .s4 { --c: var(--topaz); }
.stone-list .s5 { --c: var(--amethyst); }

.note {
  max-width: 62ch;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--brass-dim);
  background: var(--panel);
  color: var(--muted);
}

/* Footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--bone); }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Small screens ------------------------------------------------------ */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; padding-bottom: 3rem; }
  .hero-art { width: min(70%, 14rem); order: -1; justify-self: start; }
  .facts { grid-template-columns: 1fr; gap: 0 0; }
  .facts dd { margin-bottom: 0.9rem; }
}
