/* Loudace website - one stylesheet for every page.
   The brand is a cream mark on pure black; the pages are black, so the logo needs no tile. */

:root {
  color-scheme: dark;

  --bg: #000;
  --surface: #0e0d0b;
  --surface-2: #17150f;
  --ink: #fdf6e5;
  --ink-2: rgba(253, 246, 229, 0.74);
  --ink-3: rgba(253, 246, 229, 0.52);
  --line: rgba(253, 246, 229, 0.12);
  --line-strong: rgba(253, 246, 229, 0.24);
  --accent: #ffd23f;
  --accent-ink: #1a1400;

  --radius: 18px;
  --radius-sm: 10px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: 8px;
}

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

/* --- header ------------------------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand img {
  width: 22px;
  height: auto;
}

.nav {
  display: flex;
  gap: clamp(12px, 2.4vw, 28px);
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

@media (max-width: 640px) {
  .nav .wide {
    display: none;
  }
}

/* --- type ----------------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
}

.display {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h2.display {
  font-size: clamp(32px, 5.2vw, 56px);
  max-width: 18ch;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-2);
  max-width: 62ch;
  margin: 18px 0 0;
}

/* --- hero --------------------------------------------------------------------------------------- */

.hero {
  position: relative;
  text-align: center;
  padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 9vw, 120px);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 48% at 50% 30%, rgba(253, 246, 229, 0.09), transparent 70%),
    radial-gradient(30% 22% at 50% 26%, rgba(255, 210, 63, 0.07), transparent 70%);
}

.hero-logo {
  width: min(440px, 74vw);
  margin: 0 auto;
}

.hero h1 {
  margin: clamp(36px, 6vw, 56px) auto 0;
  font-size: clamp(34px, 6.4vw, 72px);
  max-width: 16ch;
}

.hero .lead {
  margin-left: auto;
  margin-right: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn.primary {
  background: var(--ink);
  color: #000;
  border-color: var(--ink);
}

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

.btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.18);
}

.btn.primary .dot {
  background: #000;
  box-shadow: none;
}

/* --- sections ------------------------------------------------------------------------------------ */

.section {
  padding: clamp(64px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* sources */

/* Five sources: two wide cards over three (desktop), one wide card over two pairs (tablet),
   one column (phone) - never a card left alone on a row. */
.cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.cards > .card {
  grid-column: span 2;
}

.cards > .card:nth-child(-n + 2) {
  grid-column: span 3;
}

@media (max-width: 999px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards > .card,
  .cards > .card:nth-child(-n + 2) {
    grid-column: span 1;
  }

  .cards > .card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards > .card:first-child {
    grid-column: span 1;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.card .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 21px;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.note {
  margin: 22px 0 0;
  color: var(--ink-3);
  font-size: 15px;
}

/* tabs */

/* Four tabs: a row of four, two pairs, or one column - never three and one. */
.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.tab {
  padding: 26px 24px 8px 0;
}

.tab + .tab {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

@media (max-width: 1060px) {
  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

@media (max-width: 600px) {
  .tabs {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tab .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.tab h3 {
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 10px 0 12px;
}

.tab p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

@media (max-width: 1060px) {
  .tab + .tab {
    border-left: 0;
    padding-left: 0;
  }

  .tab {
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }
}

/* split: car, cast */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  /* one column: the heading of a section first, its panel after it */
  .split > .panel {
    order: 2;
  }
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.ticks li {
  position: relative;
  padding: 16px 0 16px 38px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.ticks li:last-child {
  border-bottom: 0;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ticks strong {
  color: var(--ink);
  font-weight: 700;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}

/* the drawing of a car screen and of a cast */

.screen {
  border-radius: 22px;
  background: linear-gradient(180deg, #121110, #070706);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(253, 246, 229, 0.06);
  display: grid;
  grid-template-columns: 64px 1fr;
  overflow: hidden;
}

.screen .rail {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
}

.screen .rail span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.screen .rail span.on {
  background: var(--ink);
}

.screen .body {
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-width: 0;
}

.screen .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.screen .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-content: start;
}

.screen .grid i {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.screen .grid i:nth-child(1) {
  background: linear-gradient(135deg, #3a2f18, #16130b);
}

.screen .grid i:nth-child(2) {
  background: linear-gradient(135deg, #2a2a28, #101010);
}

.screen .grid i:nth-child(3) {
  background: linear-gradient(135deg, #43200f, #160b05);
}

.screen .grid i:nth-child(4) {
  background: linear-gradient(135deg, #1c2430, #0a0d12);
}

.screen .bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
  min-width: 0;
}

.screen .bar b {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  flex: none;
  background: linear-gradient(135deg, #3a2f18, #16130b);
}

.screen .bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen .bar em {
  margin-left: auto;
  font-style: normal;
  color: var(--accent);
  letter-spacing: 0.2em;
  flex: none;
}

/* privacy */

.trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.trio .card h3 {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.more {
  display: inline-block;
  margin-top: 28px;
  font-weight: 700;
}

/* availability */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--ink-2);
}

.chip.soon {
  border-style: dashed;
  color: var(--ink-3);
}

/* --- legal pages --------------------------------------------------------------------------------- */

.doc-head {
  padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.doc-head h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.doc-head .meta {
  color: var(--ink-3);
  margin: 16px 0 0;
  font-size: 15px;
}

.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(64px, 9vw, 112px);
}

@media (max-width: 960px) {
  .doc {
    grid-template-columns: 1fr;
  }
}

.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  font-size: 14px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.toc p {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  border-left-color: var(--accent);
}

@media (max-width: 960px) {
  .toc {
    position: static;
    max-height: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
  }

  .toc ol {
    columns: 2 130px;
    column-gap: 20px;
  }

  .toc li {
    break-inside: avoid;
  }
}

.prose {
  max-width: 72ch;
  color: var(--ink-2);
}

.prose > section + section {
  margin-top: 44px;
}

.prose h2 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.2;
}

.prose h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 8px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin: 6px 0;
}

.prose li::marker {
  color: var(--ink-3);
}

.prose strong {
  color: var(--ink);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink);
}

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 22px 8px;
  margin-bottom: 44px;
}

.summary h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--ink);
  font-weight: 700;
  background: var(--surface);
  white-space: nowrap;
}

td:first-child {
  color: var(--ink);
  font-weight: 600;
  min-width: 140px;
}

/* support */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 44px;
}

.contact p {
  margin: 0;
}

.contact .mail {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  position: relative;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink-3);
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details > div {
  padding: 0 0 12px;
}

/* --- footer -------------------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  font-size: 14px;
  color: var(--ink-3);
}

.site-footer .top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
}

.site-footer nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--accent);
}

.site-footer p {
  margin: 0 0 8px;
  max-width: 90ch;
}
