/* Crossroads Foundry: one page, pixel art, no trackers, no outside fonts */
@font-face { font-family: 'Jersey 15'; src: url('fonts/Jersey15.ttf') format('truetype'); font-display: swap; }

:root {
  --night: #0e1125;
  --parchment: #f4e8c8;
  --ember: #e0a35c;
  --wood: #c98a4b;
  --wood-light: #e6b273;
  --wood-dark: #9a5e2e;
  --ink: #2b170c;
  --dusk: #b7b1e0;
}

* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--parchment);
  font-family: 'Jersey 15', system-ui, sans-serif;
  background: var(--night) url('assets/stars.png') repeat;
  image-rendering: pixelated;
}

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 24px;
  text-align: center;
}

.crest { position: relative; }
.crest::before {   /* (the forge's glow behind the emblem) */
  content: '';
  position: absolute;
  left: 50%; top: 64px;
  width: 260px; height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(194, 94, 51, 0.32) 0%, rgba(122, 53, 64, 0.18) 38%, transparent 66%);
  pointer-events: none;
}
.emblem { position: relative; display: block; margin: 0 auto 8px; width: 128px; height: 128px; image-rendering: pixelated; }
h1 {
  position: relative;
  margin: 0;
  font-weight: normal;
  font-size: clamp(40px, 9vw, 76px);
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #0b0a14;
}
.tagline { margin: 10px 0 0; font-size: clamp(22px, 4.4vw, 32px); color: var(--ember); text-shadow: 2px 2px 0 #0b0a14; }
.about { margin: 28px auto 8px; max-width: 600px; font-size: 24px; line-height: 1.25; color: #ddd6f2; }

/* The links: wooden signs, pointing one way then the other */
.signs h2 {
  margin: 30px 0 12px;
  font-weight: normal;
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dusk);
}
.signs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 18px;
}
.signs li {   /* (the dark outline and the drop shadow, round the sign's arrow shape) */
  filter: drop-shadow(3px 0 0 var(--ink)) drop-shadow(-3px 0 0 var(--ink)) drop-shadow(0 3px 0 var(--ink)) drop-shadow(0 -3px 0 var(--ink)) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.45));
}
.sign {
  display: block;
  padding: 10px 30px 9px;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  background: var(--wood);
  box-shadow: inset 0 4px 0 var(--wood-light), inset 0 -4px 0 var(--wood-dark);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  transition: transform 0.08s steps(2), background-color 0.08s steps(2);
}
.signs li:nth-child(even) .sign { clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%); }
.sign:hover { background: #d99a55; transform: translateY(-3px); }
.sign:focus-visible { outline: none; background: #ffd36b; }
.signs li:focus-within { filter: drop-shadow(3px 0 0 #fff4d6) drop-shadow(-3px 0 0 #fff4d6) drop-shadow(0 3px 0 #fff4d6) drop-shadow(0 -3px 0 #fff4d6); }
.sign[href^="TODO"] { opacity: 0.4; pointer-events: none; }   /* (a channel whose address isn't filled in yet) */

footer { position: relative; z-index: 1; text-align: center; font-size: 20px; color: #8f8ac0; margin-bottom: -40px; }
footer p { margin: 24px 0 0; }

/* The crossroads at dusk along the bottom; its sky fades into the page's navy */
.land {
  width: 100%;
  height: min(calc(100vw * 190 / 480), 520px);
  background: url('assets/landscape.png') center bottom / cover no-repeat;
  image-rendering: pixelated;
}

@media (prefers-reduced-motion: reduce) { .sign { transition: none; } .sign:hover { transform: none; } }
