/* DBP Labs website. No third-party requests: fonts are self-hosted (SIL OFL, see fonts/OFL.txt),
   so no IP address goes to Google Fonts or any CDN. Colours follow the app's palette
   (apps/mobile/src/design/palette.ts). */

@font-face {
  font-family: 'Literata';
  src: url('fonts/Literata_600SemiBold.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope_400Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope_600SemiBold.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #fbf9f6;
  --surface: #ffffff;
  --text: #1e2140;
  --muted: #5b5e78;
  --line: #e4e1da;
  --primary: #3b5bdb;
  --primary-soft: #e8edfc;
  --accent: #e8a33d;
  --radius: 14px;
  --max: 46rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14131a;
    --surface: #1d1c25;
    --text: #ecebf3;
    --muted: #a6a5b8;
    --line: #2e2d39;
    --primary: #8ea4f2;
    --primary-soft: #262c48;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 1.0625rem/1.65 'Manrope',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2,
h3 {
  font-family: 'Literata', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin: 0 0 0.6rem;
}
h2 {
  font-size: 1.4rem;
  margin: 2.4rem 0 0.6rem;
}
h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.4rem;
}

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

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
nav.top {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
nav.top a {
  color: var(--muted);
  text-decoration: none;
}
nav.top a:hover,
nav.top a[aria-current='page'] {
  color: var(--text);
}

main.wrap {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}
main.legal h2 {
  font-size: 1.2rem;
}
main.legal p,
main.legal li {
  color: var(--text);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: 1.5rem 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.card h3 {
  margin-top: 0;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .button {
    color: #14131a;
  }
}
.button.secondary {
  background: var(--primary-soft);
  color: var(--primary);
}

.note {
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
}

/* Placeholders that must be replaced before going live: [App-Name], [ADRESSE] … */
.todo {
  background: #fff3cd;
  color: #6b4e00;
  padding: 0 0.25em;
  border-radius: 4px;
}
@media (prefers-color-scheme: dark) {
  .todo {
    background: #4a3b10;
    color: #ffe39a;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 600;
}
.table-scroll {
  overflow-x: auto;
}

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.2rem;
}
dl.facts dt {
  font-weight: 600;
}
dl.facts dd {
  margin: 0;
}
@media (max-width: 520px) {
  dl.facts {
    grid-template-columns: 1fr;
  }
  dl.facts dd {
    margin-bottom: 0.6rem;
  }
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
footer.site nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
footer.site a {
  color: var(--muted);
}

.studio {
  max-width: 72rem;
}
.app-hero {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
}
.app-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 7vw, 5.15rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
}
.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.studio-section {
  margin-block: clamp(2.5rem, 7vw, 5rem);
}
.studio-section h2 {
  margin-top: 0;
  font-size: clamp(1.65rem, 4vw, 2.55rem);
}
.text-link {
  font-weight: 600;
}
.reading-example {
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--primary-soft);
}
.reading-quote {
  margin: 0;
  font:
    600 clamp(1.5rem, 4vw, 2.5rem)/1.25 'Literata',
    Georgia,
    serif;
}
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.faq summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
}
.faq details[open] summary {
  color: var(--primary);
}
.faq details p {
  margin: 0;
  padding: 0 1rem 1rem;
}
:where(a, summary):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
@media (min-width: 700px) {
  .app-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }
}
@media (max-width: 440px) {
  header.site .wrap {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-block: 0.75rem;
  }
  nav.top {
    gap: 0.5rem 1rem;
  }
}

.studio-theme {
  color-scheme: light;
  --bg: #fbf9f6;
  --surface: #ebdfd3;
  --text: #30231d;
  --muted: #594438;
  --line: #cbb5a4;
  --primary: #714b36;
  --leather: #b08968;
}
.studio-theme header.site {
  background: var(--bg);
}
.studio-theme header.site .wrap,
.studio-theme footer.site .wrap {
  max-width: 72rem;
}
.studio-theme .studio {
  padding-inline: clamp(1rem, 4vw, 3rem);
}
.studio-hero {
  display: grid;
  gap: clamp(1rem, 5vw, 4rem);
  align-items: end;
  padding-block: clamp(1.5rem, 7vw, 5rem) clamp(2rem, 6vw, 4rem);
  border-bottom: 1px solid var(--leather);
}
.studio-hero h1 {
  margin: 0;
  font-size: clamp(2.625rem, 7.2vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.studio-intro {
  max-width: 28ch;
  font-size: clamp(1.0625rem, 2vw, 1.125rem);
}
.studio-intro p {
  margin: 0 0 0.75rem;
}
.studio-theme .studio-section {
  margin-block: clamp(2rem, 5vw, 3.5rem);
}
.studio-theme .studio-section h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}
.project {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(0.75rem, 3vw, 1.75rem);
  max-width: 47rem;
  padding-block: 1.2rem;
  border-block: 1px solid var(--line);
}
.project-mark {
  width: clamp(3rem, 9vw, 5.75rem);
  height: auto;
  background: var(--surface);
}
.project h3 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}
.project p {
  margin: 0.55rem 0;
}
.project-status {
  color: var(--muted);
  font-size: 0.9rem;
}
.studio-about h1 {
  font-size: clamp(2.625rem, 6vw, 4.5rem);
}
.app-theme .app-hero {
  padding-inline: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.app-theme .cards {
  display: block;
}
.app-theme .card {
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
@media (min-width: 700px) {
  .studio-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  }
}

.app-header .wrap {
  max-width: 72rem;
  flex-wrap: wrap;
  padding-block: 0.625rem;
}
.app-header .brand img {
  flex: none;
}
.app-header .top a[aria-current='page'] {
  color: var(--primary);
  text-decoration: underline;
}
