/*
 * Die beiden kleinen Seiten vor dem Spiel: www.petrodollar89.de und boardgame.petrodollar89.de.
 * Farbrollen der Richtung „Vorstandsetage“, dieselben Namen und Werte wie in frontend/src/styles/theme.css
 * (SiteFilesTest vergleicht sie). Die Seiten selbst nennen keine Farbe und tragen keinen Stil:
 * Die Content-Security-Policy ließe ihn nicht zu.
 */
:root {
  --color-brand: #0e1e25;
  --color-brand-ink: #f1e9d8;
  --color-brand-soft: #9fb2b8;
  --color-paper: #f1e9d8;
  --color-ink: #182a31;
  --color-ink-soft: #4d5d63;
  --color-accent: #c9a44c;
  --color-accent-soft: #e9cf8b;
  --color-accent-ink: #1b1606;
  --color-accent-deep: #8a6a1c;
  --color-line: #c9a44c55;

  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --font-display: 'IBM Plex Sans Condensed', 'IBM Plex Sans', system-ui, sans-serif;
}

/* Nur lateinische Zeichensätze; latin-ext deckt Türkisch ab. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+1E00-1E9F;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+1E00-1E9F;
}
@font-face {
  font-family: 'IBM Plex Sans Condensed';
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-condensed-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'IBM Plex Sans Condensed';
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-condensed-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+1E00-1E9F;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--color-brand);
  color: var(--color-brand-ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
}

h1,
p,
ul {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent-soft);
  outline-offset: 2px;
}

.page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 28rem;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 1rem;
}

.top {
  padding: 0.5rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-transform: uppercase;
}

main {
  flex: 1;
  padding: 1.5rem 0 2rem;
}

.picture {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: top;
}

.kicker {
  color: var(--color-accent-soft);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.intro {
  margin-top: 1rem;
  line-height: 1.625;
}

.intro + .intro {
  margin-top: 0.75rem;
}

/* Die beiden Türen: Karten aus Papier, ganz anzutippen. */
.doors {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  list-style: none;
}

.door {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 2.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--color-paper);
  color: var(--color-ink);
  text-decoration: none;
}

.door-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.door-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.door-note {
  color: var(--color-ink-soft);
  font-size: 0.875rem;
}

.door-host {
  color: var(--color-accent-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Icons des einen Sets (Tabler, Strichstärke 1,5): eine Maske in der Farbe des Textes, wie Icon.vue. */
.icon {
  flex: none;
  width: 2rem;
  height: 2rem;
  background: currentColor;
  color: var(--color-accent-deep);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.icon-derrick {
  -webkit-mask-image: url(icons/derrick.svg);
  mask-image: url(icons/derrick.svg);
}

.icon-map {
  -webkit-mask-image: url(icons/map-2.svg);
  mask-image: url(icons/map-2.svg);
}

.icon-go {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-ink-soft);
  -webkit-mask-image: url(icons/chevron-down.svg);
  mask-image: url(icons/chevron-down.svg);
  transform: rotate(-90deg);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.btn-quiet {
  border: 1px solid var(--color-accent);
  color: var(--color-accent-soft);
}

footer {
  padding: 0.5rem 0;
  border-top: 1px solid var(--color-line);
  color: var(--color-brand-soft);
  font-size: 0.875rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

footer a[aria-current] {
  color: var(--color-brand-ink);
  font-weight: 600;
  text-decoration: none;
}
