/* Tenwise website (tenwise.skyweb.dev). Colours follow the game: warm paper,
   deep green, tangerine accent. No web fonts, no trackers. */
:root {
  --bg: #f6f3ec;
  --card: #fffdf8;
  --ink: #1d2027;
  --muted: #5b5f68;
  --line: #e3ddd0;
  --accent: #2f6f5e;
  --accent-ink: #ffffff;
  --tangerine: #c4531c;
  --wrap: 760px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16191e;
    --card: #1e2228;
    --ink: #f1ede4;
    --muted: #a9aab0;
    --line: #30353d;
    --accent: #3f8f79;
    --tangerine: #f2894f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: #7fc4b0; } }
:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header and footer of the text pages */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a[aria-current="page"] { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 0 32px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer a { color: inherit; }

/* Text pages */
.doc { padding: 32px 0 8px; }
.doc h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.2; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 24px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; line-height: 1.3; }
.doc h3 { font-size: 18px; margin: 22px 0 4px; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 20px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 2px; }
.contact { font-size: 19px; font-weight: 700; }

/* Landing page */
.landing { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; text-align: center; }
.landing main { max-width: 420px; }
.landing .icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.landing h1 { margin: 18px 0 4px; font-size: 34px; letter-spacing: 0.5px; }
.landing p { margin: 0 0 26px; color: var(--muted); }
.stores { display: grid; gap: 12px; }
a.store { display: block; padding: 15px 20px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; }
a.store.soon { background: transparent; color: var(--muted); border: 2px dashed currentColor; pointer-events: none; }
.landing small { display: block; margin-top: 28px; color: var(--muted); font-size: 14px; }
.landing small a { color: inherit; }
