/* Kauri website: Dark Luxury palette from the game (chau-ka-baara/scripts/theme/theme_config.gd). */
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #080b09;
  --bg-lamp: #2a2216;
  --surface: #121714;
  --surface-hi: #1a211c;
  --line: rgba(199, 149, 62, 0.35);
  --gold: #c7953e;
  --gold-hi: #f5cf79;
  --text: #f4e8cd;
  --dim: #b9b09d;
  --muted: #8a8475;
  --danger: #e0705f;
  --ok: #5fbf8c;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 50% -10%, var(--bg-lamp), transparent 70%), var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: #fff3d0; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; color: var(--gold-hi); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
h3 { font-size: 1.25rem; color: var(--text); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header and footer */
.top { border-bottom: 1px solid rgba(199, 149, 62, 0.18); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.5rem var(--serif); color: var(--gold-hi); }
.brand img { border-radius: 9px; }
.top-nav { display: flex; gap: 18px; font-size: 0.95rem; }
.top-nav a { color: var(--dim); text-decoration: none; }
.top-nav a:hover { color: var(--gold-hi); }
.foot { border-top: 1px solid rgba(199, 149, 62, 0.18); margin-top: 64px; padding: 28px 0 36px; color: var(--muted); font-size: 0.92rem; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 6px 0 12px; }
.foot-brand { font-family: var(--serif); color: var(--dim); margin: 0; }
.foot-small { font-size: 0.82rem; margin: 0; }

/* Landing */
.hero { text-align: center; padding: 56px 0 24px; }
.ornament { width: 72px; height: 2px; margin: 4px auto 18px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.tagline { font-size: clamp(1.05rem, 3.4vw, 1.3rem); color: var(--dim); margin-bottom: 0.4em; }
.lead { max-width: 620px; margin: 0 auto 28px; color: var(--text); }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 28px; border-radius: 999px;
  background: linear-gradient(180deg, #f7dd98, #d6a852 55%, #8e5e22); color: #24180c; font: 700 1.15rem var(--serif); text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }
.cta:hover { color: #24180c; filter: brightness(1.06); }
.soon { display: inline-block; padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); }
.shots { display: flex; gap: 16px; padding: 28px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
/* Centre when it fits; when it overflows, every screenshot stays reachable by scrolling. */
.shots > :first-child { margin-left: auto; }
.shots > :last-child { margin-right: auto; }
.shots figure { margin: 0; flex: 0 0 auto; width: min(240px, 70vw); scroll-snap-align: center; }
.shots img { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.shots figcaption { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 8px; }
.section { padding: 48px 0 0; }
.section > .wrap > p.intro { color: var(--dim); max-width: 680px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: linear-gradient(180deg, var(--surface-hi), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { color: var(--dim); margin: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 60px; background: var(--surface); border: 1px solid rgba(199, 149, 62, 0.2); border-radius: var(--radius); color: var(--dim); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: #24180c; font: 700 1rem/30px var(--serif); text-align: center; }
.steps strong { color: var(--text); }
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: start; }
.themes img { border-radius: 18px; border: 1px solid var(--line); }
.note { color: var(--muted); font-size: 0.92rem; }

/* Document pages */
.doc { padding: 40px 0 0; }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.meta { color: var(--muted); font-size: 0.92rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(199, 149, 62, 0.2); }
th { color: var(--gold-hi); font-weight: 600; white-space: nowrap; }
td { color: var(--dim); }

/* Deletion form */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 20px; }
.notice { border-radius: var(--radius); padding: 16px 18px; margin: 0 0 20px; }
.notice.ok { border: 1px solid rgba(95, 191, 140, 0.5); background: rgba(95, 191, 140, 0.1); }
.notice.err { border: 1px solid rgba(224, 112, 95, 0.6); background: rgba(224, 112, 95, 0.1); }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; }
label span.hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
input[type="email"], input[type="text"], textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(199, 149, 62, 0.4);
  background: #0d110e; color: var(--text); font: inherit; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--dim); }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--gold); flex: 0 0 auto; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button { justify-self: start; min-height: 52px; padding: 12px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #f7dd98, #d6a852 55%, #8e5e22); color: #24180c; font: 700 1.05rem var(--serif); }
button:hover { filter: brightness(1.06); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .top-nav { gap: 12px; font-size: 0.88rem; }
  .hero { padding-top: 36px; }
  .section { padding-top: 36px; }
}
.themes { max-width: 640px; }
