/* Puluc — site styles.
   Palette and type taken from the game itself: warm temple stone and gold,
   jungle green, sunset-dark ground. Headings use the same Alegreya SC the
   game renders (SIL Open Font License — see /assets/OFL.txt in the repo). */

@font-face {
  font-family: 'Alegreya SC';
  src: url('AlegreyaSC-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya SC';
  src: url('AlegreyaSC-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #141009;
  --bg-soft: #1e1810;
  --card: rgba(240, 200, 119, 0.05);
  --card-strong: rgba(240, 200, 119, 0.09);
  --line: rgba(224, 176, 98, 0.22);
  --line-soft: rgba(224, 176, 98, 0.12);
  --gold: #e0b062;
  --gold-bright: #f2ce8a;
  --jungle: #8aa86d;
  --text: #f0e5d3;
  --muted: #b9a68d;
  --radius: 14px;
  --wrap: 820px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 50% -8%, rgba(224, 176, 98, 0.13), transparent 70%),
    radial-gradient(700px 420px at 100% 100%, rgba(138, 168, 109, 0.07), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(20, 16, 9, 0.72);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  flex: none;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.wordmark {
  font-family: 'Alegreya SC', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-family: 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.03em;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom-color: var(--line);
}

/* ---------- layout ---------- */

main { padding: 40px 0 8px; }

h1 {
  font-family: 'Alegreya SC', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--gold-bright);
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  line-height: 1.15;
}

h2 {
  font-family: 'Alegreya SC', Georgia, serif;
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin: 2.2rem 0 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-soft);
}

h3 {
  font-family: 'Alegreya SC', Georgia, serif;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--text);
  margin: 1.5rem 0 0.4rem;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.12rem;
  color: #e6d8c2;
}

a { color: var(--gold-bright); }
a:hover { color: #fff0d4; }

strong { color: #fff3e0; }

ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }

/* ---------- blocks ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 1.4rem;
}

.card--strong { background: var(--card-strong); border-color: var(--line); }

.contact {
  text-align: center;
  padding: 26px 22px;
}

.contact .label {
  display: block;
  font-family: 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.contact .email {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: clamp(1.05rem, 4.2vw, 1.5rem);
  font-weight: 700;
  color: var(--gold-bright);
  text-decoration: none;
  word-break: break-word;
}
.contact .email:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  font-family: 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #e8bd72, #cf9c46);
  color: #241a0c;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 236, 200, 0.5);
  margin-top: 10px;
}
.btn:hover { color: #241a0c; filter: brightness(1.06); }

/* hero image */
.hero { margin: 0 0 1.6rem; }

.hero img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 8px;
  text-align: center;
}

/* landing tiles */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 1.6rem 0 0.5rem;
}

.tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tile:hover { border-color: var(--line); background: var(--card-strong); }

.tile .t {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 1.1rem;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 2px;
}
.tile .d { color: var(--muted); font-size: 0.92rem; }

/* definitions / fact sheet */
table.facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
table.facts th,
table.facts td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.facts th {
  color: var(--muted);
  font-family: 'Alegreya SC', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  width: 44%;
}
table.facts td { color: var(--text); }
table.facts tr:last-child th,
table.facts tr:last-child td { border-bottom: none; }

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- footer ---------- */

.site-foot {
  margin-top: 56px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.site-foot a { color: var(--gold); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .fine { font-size: 0.82rem; margin-top: 10px; color: #8e7f6b; }

@media (min-width: 620px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile--wide { grid-column: 1 / -1; }
}