/* Glyphbound site: the game's night-teal scene, lime actions, gold rewards, Fredoka. */
@font-face { font-family: 'Fredoka'; src: url('fonts/Fredoka_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('fonts/Fredoka_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('fonts/Fredoka_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg-top: #0d2530;
  --bg-bottom: #18424a;
  --panel: #1e4852;
  --panel-dark: #14363f;
  --line: #2d5c66;
  --text: #f4f1e6;
  --text-soft: #a7c2c1;
  --lime: #acf29a;
  --lime-dark: #6db85a;
  --lime-ink: #16380f;
  --gold: #f6c453;
  --gold-dark: #c48f22;
  --slab: #f3ebdd;
  --slab-edge: #cdbd9f;
  --slab-ink: #2b2721;
  --slab-soft: #8a7e6e;
}

* { box-sizing: border-box; }
html { background: var(--bg-top); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) fixed;
  line-height: 1.55;
}
a { color: var(--lime); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

header.site { padding: 18px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-size: 26px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo span { color: var(--lime); }
nav a { color: var(--text-soft); text-decoration: none; margin-left: 18px; font-weight: 600; }
nav a:hover { color: var(--lime); }

.hero { text-align: center; padding: 48px 0 32px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 0 0 14px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { font-size: 19px; color: var(--text-soft); max-width: 560px; margin: 0 auto 28px; }

.buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 18px; text-decoration: none;
  padding: 14px 26px; border-radius: 18px; border: 0; cursor: pointer;
  background: var(--lime); color: var(--lime-ink); box-shadow: 0 5px 0 var(--lime-dark);
  transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lime-dark); }
.btn.gold { background: var(--gold); color: #4a3305; box-shadow: 0 5px 0 var(--gold-dark); }
.btn.ghost { background: var(--panel); color: var(--text); box-shadow: 0 5px 0 var(--panel-dark); }
.soon { font-size: 13px; color: var(--text-soft); margin-top: 12px; }

/* A slice of a tablet: the inscription in numbered stone tiles. */
.tablet {
  display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  background: #e4d7c1; border: 2px solid var(--slab-edge); border-bottom-width: 7px;
  border-radius: 22px; padding: 18px; margin: 36px auto 0; max-width: 560px;
}
.word { display: flex; gap: 4px; }
.tile {
  width: 38px; height: 54px; border-radius: 9px; background: var(--slab);
  border: 1px solid var(--slab-edge); border-bottom-width: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 3px 0;
}
.tile b { font-size: 22px; color: var(--slab-ink); line-height: 1.2; }
.tile i { font-style: normal; font-size: 12px; color: var(--slab-soft); font-weight: 600; }
.tile.hot { background: #ddf7d2; border-color: var(--lime-dark); }
.tile.hot b { color: #2f7a4a; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 48px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.card .icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--lime-ink);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; margin-bottom: 10px;
}
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* Legal pages */
.doc { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 28px clamp(18px, 4vw, 40px); margin: 16px 0 40px; }
.doc h1 { margin-top: 0; font-size: 34px; }
.doc h2 { color: var(--lime); font-size: 22px; margin-top: 30px; }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--text-soft); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--gold); }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--text-soft); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer.site a { color: var(--text-soft); }

@media (max-width: 520px) {
  nav a { margin-left: 12px; font-size: 14px; }
  .tile { width: 30px; height: 44px; }
  .tile b { font-size: 18px; }
}
