/* Mendlore website. Colors follow the game's workshop (composeApp/.../ui/Theme.kt): a dark evening workshop, paper
   cards, brass accents, the mat-green workbench; PT Sans everywhere, set large for readers 45+. */
@font-face { font-family: "PT Sans"; src: url("fonts/pt_sans_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("fonts/pt_sans_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f6efe3;
  --text: #f1e9dc;
  --text-dim: rgba(241, 233, 220, .74);
  --ink: #3b3025;
  --ink-soft: #d9cdb6;
  --brass: #d9a94b;
  --brass-light: #f0d9a8;
  --brass-dark: #8c6a24;
  --mat: #3c4a40;
  --mat-dark: #26302a;
  --workshop: #2b2622;
  --night: #1a1714;
  --red: #b3402e;
  --ok: #4c8c4a;
  --line: rgba(240, 217, 168, .18);
  --max: 1080px;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 19px/1.6 "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brass-light); text-underline-offset: 3px; }
a:hover { color: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; line-height: 1.15; color: var(--paper); }
h1 { font-size: clamp(38px, 6vw, 60px); margin: 8px 0 16px; }
p { text-wrap: pretty; }
strong, b { font-weight: 700; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 50;
  padding: 10px 14px; background: var(--paper); color: var(--ink); border-radius: 12px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 8px; }

/* ---------- The workshop behind every page: lamp light over the bench ---------- */
.workshop-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% -5%, rgba(255, 213, 138, .20), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 115%, rgba(60, 74, 64, .55), transparent 70%),
    linear-gradient(180deg, var(--workshop), var(--night) 70%);
}

/* ---------- Navigation ---------- */
header {
  background: rgba(26, 23, 20, .82);
  backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  max-width: var(--max); margin: auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); font-size: 24px; font-weight: 700; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand:hover { color: var(--paper); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; }
.nav a:not(.brand) {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--text-dim); text-decoration: none; font-weight: 700; font-size: 17px;
}
.nav a:not(.brand):hover, .nav a[aria-current=page] { color: var(--paper); background: rgba(217, 169, 75, .16); }

/* ---------- Buttons and store badges ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--brass-light), var(--brass) 60%, var(--brass-dark));
  color: var(--ink); font: 700 18px/1 "PT Sans", sans-serif; text-decoration: none;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 3px 0 #5e4718, 0 12px 26px rgba(0, 0, 0, .3);
}
a.button:hover { color: var(--ink); filter: brightness(1.06); }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.actions.center { justify-content: center; }

/* Store badges. Until the listings exist they are not links: `.store.soon`. */
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 64px; min-width: 200px;
  padding: 8px 24px; border-radius: 16px; line-height: 1.15; text-decoration: none;
  background: rgba(16, 14, 12, .85); border: 1px solid var(--line); color: var(--paper);
}
.store small { font-size: 14px; color: var(--text-dim); }
.store span { font-size: 21px; font-weight: 700; }
a.store:hover { color: var(--paper); border-color: var(--brass); }
.store.soon { opacity: .8; }

/* ---------- Panels ---------- */
.glass {
  background: linear-gradient(160deg, rgba(60, 74, 64, .55), rgba(26, 23, 20, .78));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .05);
}
/* The paper card of the game's intake plate. */
.paper {
  background: var(--paper); color: var(--ink); border-radius: 16px; padding: 22px 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.paper h3, .paper strong { color: var(--ink); }

/* ---------- Home ---------- */
.hero { max-width: var(--max); margin: auto; padding: 72px 24px 40px; text-align: center; }
.hero .lead { font-size: clamp(21px, 2.6vw, 26px); color: var(--text); max-width: 760px; margin: 0 auto 30px; }
.hero .logo { width: 112px; height: 112px; margin: 0 auto 12px; }
.note { color: var(--text-dim); font-size: 17px; margin-top: 18px; }
.eyebrow { color: var(--brass); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.eyebrow.center { text-align: center; }
.section { max-width: var(--max); margin: auto; padding: 40px 24px; }
.section > h2 { font-size: clamp(28px, 3.6vw, 38px); text-align: center; margin: 6px 0 26px; }
.steps.spaced { margin-top: 26px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li { padding: 26px; }
.steps h3 { font-size: 23px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--text-dim); }
.steps .num { display: inline-block; color: var(--brass); font-weight: 700; font-size: 15px; letter-spacing: .12em; margin-bottom: 6px; }
.complaint { max-width: 520px; margin: 0 auto; text-align: left; }
.complaint p { margin: 4px 0; }
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; list-style: none; padding: 26px 30px; margin: 0; }
.promises li { padding-left: 28px; position: relative; }
.promises li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--brass); }

/* ---------- Footer ---------- */
footer {
  max-width: var(--max); margin: 40px auto 0; padding: 26px 24px 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); color: var(--text-dim); font-size: 16px;
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--text-dim); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--paper); }

/* ---------- Text pages (support, legal, contact, 404) ---------- */
.page { max-width: 800px; margin: auto; padding: 56px 24px 72px; }
.page h2 { font-size: 27px; margin: 42px 0 10px; }
.page p, .page li { color: rgba(241, 233, 220, .9); }
.page ul { padding-left: 22px; }
.effective { color: var(--text-dim); font-weight: 700; font-size: 16px; }
.summary { padding: 22px 28px; margin: 28px 0; }
.summary strong { color: var(--brass); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.summary ul { margin: 10px 0 0; }
.contact-box { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 26px; margin: 28px 0; }
.faq details { margin: 10px 0; border-radius: 18px; }
.faq summary { cursor: pointer; padding: 18px 24px; font-weight: 700; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 28px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 20px; }
.legal-note { color: var(--text-dim); font-size: 16px; margin-top: 40px; }
.page-404 { text-align: center; padding-top: 6vh; }
.page-404 img { width: 120px; height: 120px; margin: 0 auto 16px; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .nav { padding: 12px 16px; gap: 10px; }
  .nav ul { margin-left: 0; }
  .hero, .section, .page { padding-left: 16px; padding-right: 16px; }
  footer { padding-left: 16px; padding-right: 16px; }
  .store { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
