/* Fabled Realm / Ebon Field.  Palette is taken from the app icon:
   clay and ember from its sky, sage from the helmet, amber from the sword and pauldrons. */
:root {
  --ground: #1b120d;
  --ground-raised: #251911;
  --clay: #8c553b;
  --ember: #e8905a;
  --amber: #edb865;
  --sage: #a3a285;
  --text: #f1e6d3;
  --muted: #c4b39c;
  --line: #43301f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.65 var(--sans);
}
.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: 40rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ground-raised); padding: .5rem 1rem; z-index: 10; }
.draft-banner { background: #4a2f12; color: #f6dca8; padding: .6rem 1rem; text-align: center; font-size: .9rem; }

/* header */
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none;
  font: 600 1.2rem/1 var(--serif); letter-spacing: .01em;
}
.brand img { border-radius: 22.4%; display: block; }
nav a {
  color: var(--muted); text-decoration: none; margin-right: 1.25rem; padding: .25rem 0;
  border-bottom: 2px solid transparent; font-size: .97rem;
}
nav a:last-child { margin-right: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--ember); }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--text); }
h1 { font-size: 2.6rem; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 1rem; }
h2 { font-size: 1.65rem; line-height: 1.25; margin: 2.6rem 0 .6rem; }
h3 { font-size: 1.25rem; margin: 1.8rem 0 .4rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .35rem; }
li::marker { color: var(--ember); }
a { color: var(--amber); text-underline-offset: .18em; }
a:hover { color: #f7cf8c; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
blockquote {
  margin: 1.2rem 0; padding: .9rem 1.1rem; background: var(--ground-raised);
  border-left: 3px solid var(--ember); border-radius: 0 .5rem .5rem 0; color: var(--text);
}
blockquote p { margin: 0; }
code { background: var(--ground-raised); padding: .1em .35em; border-radius: 4px; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.meta { color: var(--muted); font-size: .9rem; }

main { min-height: 55vh; }
.prose { padding: 2.5rem 0 3.5rem; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); margin: 0; }

/* button */
.button {
  display: inline-block; background: var(--amber); color: var(--ground); font-weight: 600;
  text-decoration: none; padding: .75rem 1.35rem; border-radius: .55rem;
}
.button:hover { background: #f7cf8c; color: var(--ground); }

/* home hero: the knight emerges from the icon's own glow */
.hero {
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(40rem 21rem at 74% 50%, rgba(232, 144, 90, .30), rgba(140, 85, 59, .14) 52%, rgba(27, 18, 13, 0) 100%),
    var(--ground);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 1rem 2rem; }
.hero h1 {
  font-size: clamp(3.4rem, 10vw, 7.2rem); line-height: .94; letter-spacing: -.025em; margin: 0 0 1.4rem;
}
.hero .lede { font-size: 1.25rem; line-height: 1.55; max-width: 32rem; margin-bottom: 1.4rem; }
.status { font: italic 1.2rem/1.3 var(--serif); color: var(--ember); margin: 0 0 1.3rem; }
.hero-art img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 46%, transparent 98%);
  mask-image: radial-gradient(closest-side, #000 46%, transparent 98%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: emerge 1.2s ease-out both; }
  @keyframes emerge { from { opacity: 0; transform: translateY(.9rem) scale(.985); } to { opacity: 1; transform: none; } }
}

/* studio strip */
.studio { border-top: 1px solid var(--line); background: var(--ground-raised); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; padding-top: 2.5rem; padding-bottom: 3rem; }
.studio h2 { margin: 0 0 .5rem; font-size: 1.45rem; }
.studio p { max-width: 28rem; margin: 0; color: var(--muted); }
.contact { margin: 0; }
.contact dt { color: var(--muted); font-size: .92rem; margin-top: .9rem; }
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: 0; font-size: 1.1rem; }

/* game page */
.game-head { padding: 2.5rem 0 0; }
.game-head-grid { display: flex; align-items: center; gap: 1.75rem; }
.app-icon { width: 144px; height: 144px; border-radius: 22.4%; flex: none; box-shadow: 0 0 0 1px rgba(237, 184, 101, .25), 0 .9rem 2.4rem rgba(0, 0, 0, .45); }
.game-head h1 { font-size: clamp(2.6rem, 7vw, 4rem); margin: 0 0 .3rem; }
.subtitle { margin: 0 0 .5rem; color: var(--muted); font-size: 1.15rem; }
.game-head .status { margin: 0; }
.game-body > p:first-child { font: 1.3rem/1.6 var(--serif); }
.game-body ul { list-style: none; padding: 0; margin: 1rem 0 2rem; border-top: 1px solid var(--line); }
.game-body li {
  display: grid; grid-template-columns: minmax(9.5rem, 12rem) minmax(0, 1fr); gap: .15rem 1.75rem;
  padding: 1.1rem 0; margin: 0; border-bottom: 1px solid var(--line);
}
.game-body li strong { font: 700 1.3rem/1.25 var(--serif); color: var(--amber); }

/* footer */
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 1.75rem 0 2.75rem; }
footer.site p { margin: 0 0 .4rem; }
footer.site .legal { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0; }
footer.site a { color: var(--muted); white-space: nowrap; }
footer.site a:hover { color: var(--text); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 26rem; margin: -.5rem auto 0; }
  .studio-grid { grid-template-columns: 1fr; }
  .game-body li { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 2.1rem; }
  .game-head-grid { gap: 1.1rem; }
  .app-icon { width: 96px; height: 96px; }
  nav a { margin-right: .95rem; }
}
