/*
 * The look of dealbaron.app: the app's own table, a lit felt in a dark room.
 * Colours are the app's tokens (packages/app/src/theme.ts). No web fonts:
 * a privacy page that quietly reports its readers to a font host would be
 * saying one thing and doing another.
 */
:root {
  --bg: #08192c;
  --surface: #102c48;
  --line: #1a4066;
  --text: #eaf3fa;
  --dim: #93b4ce;
  --gold: #ffc65c;
  --gold-deep: #c6890f;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-inline: 20px;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, #1f3a5c 0%, transparent 70%),
    var(--bg);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding-block: 32px 64px;
}

/* ------------------------------------------------------------------ top */

header.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--gold); }

nav.langs { display: flex; gap: 6px; }
nav.langs a {
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
nav.langs a:hover { color: var(--gold); border-color: var(--gold-deep); }

/* ---------------------------------------------------------------- text */

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.2;
  margin: 0 0 8px;
}
h2 {
  font-size: 18px;
  margin: 36px 0 8px;
  color: var(--gold);
}
h3 { font-size: 16px; margin: 20px 0 4px; }

p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

.meta { color: var(--dim); font-size: 14px; margin-bottom: 28px; }
.dim { color: var(--dim); }

a { color: var(--gold); text-underline-offset: 3px; }

.card {
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.mail {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  word-break: break-all;
}

/* One language block after another. */
section.lang + section.lang {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------- links */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.tiles a {
  display: block;
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
}
.tiles a:hover { border-color: var(--gold-deep); }
.tiles strong { display: block; color: var(--gold); margin-bottom: 2px; }
.tiles span { font-size: 14px; color: var(--dim); }

footer.bottom {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer.bottom a { color: var(--dim); }
.card .after { margin-top: 10px; }
