/* TruckPark — truckparkeu.com
   One stylesheet, no external fonts or images. Dark theme by default,
   light theme when the device asks for it. */

:root {
  color-scheme: dark;
  --bg: #1C1D21;
  --card: #25262B;
  --line: #3A3B42;
  --text: #E6E6E6;
  --muted: #A9ABB2;
  --accent: #FFB300;
  --on-accent: #1C1D21;
  --link: #FFB300;
  --link-hover: #FFCA4D;
  --todo-bg: #FFE066;
  --todo-text: #1C1D21;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 40rem;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #F6F6F3;
    --card: #FFFFFF;
    --line: #D9DAD4;
    --text: #1C1D21;
    --muted: #55585F;
    --link: #8A5300;
    --link-hover: #6B4000;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--font);
  overflow-wrap: break-word;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--link-hover); }
a:focus-visible, .table-wrap:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand img { display: block; }

.langs { display: flex; align-items: center; font-size: 0.95rem; }
.langs a, .langs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 48px;
  padding: 0 0.25rem;
}
.langs a { text-decoration: none; }
.langs a:hover { text-decoration: underline; }
.langs span[aria-current] { font-weight: 700; color: var(--text); }
.langs .sep { min-width: 0; padding: 0; color: var(--muted); }

/* Main */
main { padding-top: 1.5rem; padding-bottom: 2.5rem; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0.5rem 0 0.75rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 0.75rem; scroll-margin-top: 1rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 700; }

.muted { color: var(--muted); }

/* Placeholders that must be filled in before launch */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0 0.2em;
  border-radius: 3px;
  font-weight: 700;
}

/* Documents */
.effective {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.5rem 0.85rem;
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  font-weight: 600;
}

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem 0.5rem;
  margin: 1.25rem 0 1.5rem;
}
.toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.25rem;
}
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 0.4rem 0; }

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 32rem;
  font-size: 0.95rem;
}
th, td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th { background: var(--card); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { color: var(--on-accent); background: #FFC233; }

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin: 0 0 1.25rem;
}
.callout p:last-child { margin-bottom: 0; }

/* Home */
.hero { padding-top: 1rem; }
.hero .logo { display: block; margin-bottom: 1rem; }
.hero h1 { font-size: 2.4rem; margin: 0 0 0.5rem; }
.tagline { font-size: 1.25rem; line-height: 1.45; margin-bottom: 1.5rem; }

.features { list-style: none; padding: 0; margin: 0 0 2rem; }
.features li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  margin-bottom: 0.6rem;
  background: var(--card);
  border-radius: 12px;
}
.features li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 3px;
  background: var(--accent);
}

.store-soon {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0.75rem 1.25rem;
  border: 2px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  cursor: default;
}

.shots { display: flex; gap: 0.75rem; overflow-x: auto; margin: 2rem 0 0; }
.shots[hidden] { display: none; }
.shots img { width: 180px; height: auto; border-radius: 16px; flex: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
  font-size: 0.95rem;
}
.footer-links { display: flex; flex-wrap: wrap; column-gap: 1.25rem; margin-bottom: 0.5rem; }
.footer-links a, .site-footer .contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer p { margin: 0.25rem 0; }
