/* Peppox Entertainment – site styles. Brand colours come from the logo (orange gradient on warm dark brown).
   Self-hosted fonts only (no Google Fonts: DSGVO). Dark header/hero/footer, light content; the content flips in dark mode.
   The SHARDFALL page uses the game's own palette (.theme-sf). */

@font-face {
  font-family: 'Montserrat';
  src: url('/static/fonts/montserrat-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oxanium';
  src: url('/static/fonts/oxanium-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Oxanium';
  src: url('/static/fonts/oxanium-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #fff9f2;
  --bg-2: #fbeedd;
  --surface: #ffffff;
  --ink: #2b1a10;
  --ink-2: #6a5445;
  --line: #ebd7c2;
  --link: #b24a0c;
  --brand: #e8742a;
  --brand-2: #f5a13b;
  --dark: #21130b;
  --dark-2: #2e1b10;
  --dark-line: #4a3220;
  --on-dark: #f6e9db;
  --on-dark-2: #c9ae97;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 30, 10, 0.06), 0 8px 24px rgba(60, 30, 10, 0.08);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-sf: 'Oxanium', 'Montserrat', system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17100b;
    --bg-2: #1e150e;
    --surface: #251a12;
    --ink: #f3e6d8;
    --ink-2: #b9a28e;
    --line: #3a2819;
    --link: #f0903f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font);
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-2); padding: 0.1em 0.4em; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; font-weight: 800; margin: 0 0 0.6em; }

.container { width: min(1120px, 100% - 2 * max(16px, 4vw)); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 2 * max(16px, 4vw)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand-2); color: #1e1008; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

.draft-banner { background: #b3261e; color: #fff; text-align: center; padding: 10px 16px; font-size: 0.9rem; position: sticky; top: 0; z-index: 99; }
.draft-banner code { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ---------- header ---------- */
.site-header { background: var(--dark); color: var(--on-dark); border-bottom: 1px solid var(--dark-line); position: relative; z-index: 5; }
.site-header .bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand img { height: 40px; width: auto; }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 30px); margin-left: auto; }
.site-header nav a {
  color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 12px 2px; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; transition: border-color 0.15s, color 0.15s; white-space: nowrap;
}
.site-header nav a:hover { color: var(--brand-2); }
.site-header nav a[aria-current='page'] { border-bottom-color: var(--brand-2); color: #fff; }
.site-header .brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
/* Home: transparent header in normal flow; the hero slides up underneath it (works for any banner height). */
.is-home .site-header { background: transparent; border-bottom: 0; }
.is-home .site-header .bar { justify-content: flex-end; }
.is-home .site-header ~ main .hero { margin-top: -68px; }

/* ---------- hero (home) ---------- */
.hero {
  background:
    radial-gradient(60% 70% at 50% 8%, rgba(245, 161, 59, 0.22), transparent 70%),
    radial-gradient(40% 50% at 85% 100%, rgba(232, 116, 42, 0.14), transparent 70%),
    var(--dark);
  color: var(--on-dark);
  text-align: center;
  padding: clamp(88px, 14vw, 150px) 0 clamp(56px, 9vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero .logo { width: min(760px, 100%); margin: 0 auto clamp(24px, 4vw, 40px); filter: drop-shadow(0 12px 40px rgba(232, 116, 42, 0.25)); }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; margin-bottom: 0.4em; color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand-2), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 640px; margin: 0 auto 2em; color: var(--on-dark-2); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6em; padding: 0.85em 1.5em; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 2px solid transparent; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; line-height: 1.2;
}
.btn.primary { background: linear-gradient(135deg, #f7a53d, #e8742a); color: #1e1008; box-shadow: 0 6px 20px rgba(232, 116, 42, 0.35); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232, 116, 42, 0.45); }
.btn.ghost { color: var(--on-dark); border-color: var(--dark-line); background: rgba(255, 255, 255, 0.04); }
.btn.ghost:hover { border-color: var(--brand-2); color: #fff; }
.btn.outline { color: var(--link); border-color: var(--line); background: var(--surface); }
.btn.outline:hover { border-color: var(--brand); }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-2); }
.eyebrow { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--link); margin: 0 0 0.9em; }
.section h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.section .intro { max-width: 640px; color: var(--ink-2); margin-bottom: 2.2em; }

/* game card on home */
.game-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: #0b0f14; color: #e6edf3; box-shadow: var(--shadow); text-decoration: none; border: 1px solid #1c2a36;
}
.game-card .copy { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.game-card .head { display: flex; align-items: center; gap: 16px; }
.game-card .head img { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 0 32px rgba(63, 216, 196, 0.35); }
.game-card h3 { font: 700 clamp(1.7rem, 3.4vw, 2.3rem)/1 var(--font-sf); letter-spacing: 0.08em; margin: 0; color: #f0cf72; }
.game-card p { margin: 0; color: #a9b8c4; }
.game-card .more { color: #3fd8c4; font-weight: 700; font-size: 0.95rem; margin-top: 4px; }
.game-card .art { position: relative; min-height: 240px; background: #111 center/cover no-repeat; }
.game-card .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0f14 0%, rgba(11, 15, 20, 0) 45%); }
.game-card .art-veil { background-image: url(/static/img/faction-veil.webp); }
.game-card:hover .more { text-decoration: underline; }
.game-card:focus-visible { outline-offset: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.35em 0.8em; border-radius: 999px; border: 1px solid #284050; color: #a9d6cf; background: rgba(63, 216, 196, 0.08); }
.chip.status { color: #f0cf72; border-color: #5a4a1d; background: rgba(240, 207, 114, 0.1); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.principle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.principle svg { width: 36px; height: 36px; color: var(--brand); margin-bottom: 14px; }
.principle h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.principle p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

.contact-strip { background: linear-gradient(135deg, #f7a53d, #e8742a); color: #1e1008; border-radius: calc(var(--radius) + 6px); padding: clamp(26px, 5vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.contact-strip h2 { margin: 0 0 0.3em; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.contact-strip p { margin: 0; max-width: 520px; }
.contact-strip .btn { background: #21130b; color: #fff; }
.contact-strip .btn:hover { background: #000; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(40px, 7vw, 76px) 0 clamp(8px, 2vw, 20px); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 0.3em; }
.page-head .lead { color: var(--ink-2); font-size: 1.1rem; max-width: 640px; margin: 0 0 0.6em; }
.page-head .stand { color: var(--ink-2); font-size: 0.85rem; margin: 0; }
.page-body { padding: 18px 0 clamp(56px, 9vw, 110px); }

.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: 0.4em; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.prose h2:first-of-type { margin-top: 1.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; scroll-margin-top: 110px; }
.prose h4 { font-size: 1rem; margin-top: 1.4em; }
.prose p, .prose li { max-width: 72ch; }
.prose li { margin: 0.35em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose strong { font-weight: 700; }
.link-list { list-style: none; padding-left: 0 !important; }
.link-list li { margin: 0; }
.link-list a { display: inline-block; padding: 9px 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin: 0 0 2em; }
.toc summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.toc ol { columns: 2 280px; column-gap: 32px; margin: 12px 0 4px; padding-left: 1.4em; font-size: 0.93rem; }
.toc li { margin: 0; break-inside: avoid; }
.toc li a { display: inline-block; padding: 6px 0; }
.toc li.sub { margin-left: 1.1em; font-size: 0.9em; color: var(--ink-2); list-style: none; }
.notice { background: var(--bg-2); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 1.4em 0; }
.notice p { margin: 0; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.4rem; line-height: 1; transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }
.faq details > div p { margin: 0 0 0.8em; }

.mailcard { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); margin: 0 0 2.4em; }
.mailcard strong { display: block; font-size: 1.15rem; word-break: break-all; }
.mailcard span { color: var(--ink-2); font-size: 0.92rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: 48px 0 28px; border-top: 1px solid var(--dark-line); font-size: 0.93rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.foot-logo { height: 38px; width: auto; margin-bottom: 14px; }
.foot-note { margin: 0; max-width: 34ch; }
.site-footer h2 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 10px 0; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand-2); text-decoration: underline; }
.site-footer .copy { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--dark-line); font-size: 0.82rem; }

/* ---------- SHARDFALL page (game palette) ---------- */
.theme-sf { --bg: #0b0f14; --bg-2: #101820; --surface: #121b24; --ink: #e6edf3; --ink-2: #9fb0bf; --line: #1f2d3a; --link: #3fd8c4; --brand: #3fd8c4; --brand-2: #f0cf72; --shadow: 0 8px 28px rgba(0, 0, 0, 0.45); }
.theme-sf .site-header { background: #070a0e; border-bottom-color: #14202b; }
.theme-sf .site-footer { background: #070a0e; border-top-color: #14202b; }
.sf-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(55% 80% at 20% 0%, rgba(63, 216, 196, 0.16), transparent 70%), radial-gradient(40% 60% at 90% 30%, rgba(240, 207, 114, 0.1), transparent 70%); }
.sf-hero .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.sf-hero .icon { width: clamp(110px, 18vw, 190px); border-radius: 26%; box-shadow: 0 0 60px rgba(63, 216, 196, 0.35); }
.sf-hero h1 { font: 700 clamp(2.4rem, 7vw, 4.4rem)/1 var(--font-sf); letter-spacing: 0.1em; color: #f0cf72; margin: 0 0 0.25em; }
.sf-hero .tag { font: 600 clamp(1rem, 2.2vw, 1.3rem)/1.4 var(--font-sf); letter-spacing: 0.14em; text-transform: uppercase; color: #3fd8c4; margin: 0 0 1.2em; }
.sf-hero .note { color: var(--ink-2); font-size: 0.92rem; margin: 1.2em 0 0; max-width: 56ch; }
.sf-hero .chips { margin-bottom: 14px; }

.sf-section { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid #14202b; }
.sf-section h2 { font: 700 clamp(1.5rem, 3.2vw, 2rem)/1.2 var(--font-sf); letter-spacing: 0.06em; text-transform: uppercase; color: #f0cf72; }
.sf-section .intro { max-width: 68ch; color: var(--ink-2); }
.sf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.sf-feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sf-feature h3 { font: 700 1.05rem/1.3 var(--font-sf); letter-spacing: 0.04em; color: #e6edf3; margin-bottom: 0.4em; }
.sf-feature p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.factions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.faction { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.faction img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.faction div { padding: 18px 22px 22px; }
.faction h3 { font: 700 1.2rem/1.2 var(--font-sf); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.4em; }
.faction.aegis h3 { color: #e3c97a; }
.faction.veil h3 { color: #ff7a6b; }
.faction p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.sf-section .spaced { margin-top: 28px; }
.sf-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.theme-sf .btn.outline { background: transparent; border-color: #284050; color: #3fd8c4; }
.theme-sf .btn.outline:hover { border-color: #3fd8c4; }
.theme-sf .notice { background: #101820; border-left-color: #3fd8c4; }
.theme-sf code { background: #101820; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .game-card { grid-template-columns: 1fr; }
  .game-card .art { min-height: 180px; order: -1; }
  .game-card .art::after { background: linear-gradient(0deg, #0b0f14 0%, rgba(11, 15, 20, 0) 55%); }
  .principles, .sf-grid { grid-template-columns: 1fr; }
  .factions { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-header .bar { min-height: 60px; }
  .is-home .site-header ~ main .hero { margin-top: -60px; }
  .brand img { height: 32px; }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: 0.7rem; letter-spacing: 0.1em; }
  .sf-hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .sf-hero .icon { width: 96px; }
  .foot-grid { grid-template-columns: 1fr; }
  .mailcard { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 640px) and (max-width: 1100px) { .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .site-header, .site-footer, .skip, .draft-banner, .product-nav, .crumbs, .to-top { display: none; } body { background: #fff; color: #000; } .toc { display: none; } a { color: #000; } }

.to-top { margin-top: 3em; }
.to-top a { display: inline-block; padding: 12px 4px; font-weight: 700; }

/* language switch (sibling of the main nav, so it can sit next to the logo on phones) */
.site-header a.lang {
  color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  padding: 6px 12px; min-height: 44px; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; border: 1px solid var(--dark-line); border-radius: 999px; flex-shrink: 0;
}
.site-header a.lang:hover { border-color: var(--brand-2); color: var(--brand-2); }
@media (max-width: 560px) { .site-header a.lang { padding: 6px 9px; font-size: 0.7rem; letter-spacing: 0.1em; } }
/* Phones/small tablets (inner pages): logo + language switch in row 1, main nav in its own row 2 – nothing shrinks or wraps. */
@media (max-width: 680px) {
  body:not(.is-home) .site-header .bar { flex-wrap: wrap; column-gap: 12px; row-gap: 0; padding-top: 8px; }
  body:not(.is-home) .site-header .brand { margin-right: auto; }
  body:not(.is-home) .site-header a.lang { order: 1; }
  body:not(.is-home) .site-header nav { order: 2; flex: 1 0 100%; margin-left: 0; border-top: 1px solid var(--dark-line); }
}
@media (max-width: 380px) {
  .site-header nav { gap: 10px; }
  .site-header nav a { letter-spacing: 0.06em; }
  .is-home .site-header .bar { gap: 10px; }
}

/* software page / business areas */
.principles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.principle .more-link { display: inline-block; margin-top: 14px; font-weight: 700; padding: 8px 0; }
.block-title { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 1em; }
.block-title.spaced-top { margin-top: clamp(40px, 6vw, 72px); }
.intro-text { max-width: 68ch; color: var(--ink-2); margin: 0 0 clamp(32px, 5vw, 56px); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 68px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f7a53d, #e8742a); color: #1e1008; font-weight: 800; display: grid; place-items: center; }
.page-body .contact-strip { margin-top: clamp(24px, 4vw, 40px); }
.page-body .contact-strip .btn { word-break: break-all; }
@media (max-width: 860px) { .principles.two { grid-template-columns: 1fr; } }
.page-body .intro-text.scope-note { margin: 32px 0 0; }

/* competency tags + compact product row (the game is a secondary product) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 10px 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
.product-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; }
.product-row:hover { border-color: var(--brand); }
.product-row img { width: 64px; height: 64px; border-radius: 16px; }
.product-row h3 { margin: 0 0 0.25em; font-size: 1.1rem; letter-spacing: 0.04em; }
.product-row p { margin: 0; color: var(--ink-2); font-size: 0.95rem; max-width: 62ch; }
.product-row .more { color: var(--link); font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) { .product-row { grid-template-columns: auto minmax(0, 1fr); } .product-row .more { grid-column: 1 / -1; } }

/* facts list (about page) */
.facts { margin: 0; display: grid; gap: 0; max-width: 720px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }
.prose .contact-strip { margin-top: 3em; }
.prose .contact-strip h2 { border-top: 0; padding-top: 0; margin-top: 0; }

/* product sub-navigation on /shardfall/* pages */
.product-nav { background: #0d141b; border-bottom: 1px solid #14202b; }
.product-nav .container { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.product-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #a9b8c4; text-decoration: none; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; border-bottom: 2px solid transparent; }
.product-nav a:hover { color: #fff; }
.product-nav a[aria-current='page'] { color: #f0cf72; border-bottom-color: #f0cf72; }

/* breadcrumbs on /shardfall/* sub pages */
.crumbs { background: #0b0f14; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 12px 0 0; font-size: 0.82rem; color: #9fb0bf; }
.crumbs li + li::before { content: '›'; margin: 0 8px; opacity: 0.6; }
.crumbs a { color: #9fb0bf; text-decoration: none; padding: 6px 0; display: inline-block; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* contact form (no JavaScript: plain HTML form posting to /api/contact) */
.contact-form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 30px); box-shadow: var(--shadow); margin: 0 0 2em; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form label { font-weight: 700; font-size: 0.92rem; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; min-height: 48px; }
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 1px; border-color: var(--brand); }
.contact-form h3 { margin: 0; font-size: 1.15rem; }
.contact-form .hint { margin: 0; color: var(--ink-2); font-size: 0.85rem; }
.contact-form .btn { justify-self: start; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* narrow phones: long German compounds (Datenschutzerklärung, Verbraucherstreitbeilegung …) must not push the page sideways */
@media (max-width: 560px) {
  h1, h2, h3, .prose { -webkit-hyphens: auto; hyphens: auto; }
  .product-nav .container { column-gap: 16px; }
}
@media (max-width: 420px) {
  .page-head h1 { font-size: 1.65rem; }
  .hero h1 { font-size: clamp(1.15rem, 6.2vw, 1.75rem); }
  .prose h2 { font-size: 1.3rem; }
}
@media (max-width: 380px) {
  .page-head h1 { font-size: 1.45rem; }
  .prose h2 { font-size: 1.2rem; }
  .tags li { padding: 10px 14px; }
}
/* tags inside prose: no list indent/margins */
.prose .tags { padding-left: 0; }
.prose .tags li { margin: 0; }
/* e-mail address in the mail card is a real touch target */
.mailcard strong a { display: inline-flex; align-items: center; min-height: 44px; }
/* breadcrumbs: one baseline, 44 px targets */
.crumbs ol { align-items: center; padding-top: 2px; }
.crumbs li { display: flex; align-items: center; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
/* language chooser at / (no header): the hero fills the screen instead of ending in an empty light area */
.is-home main > .hero:only-child { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }

/* font licences dialog (footer link, CSS-only via :target) */
.lic-link { margin-left: 10px; padding: 4px 0; display: inline-block; }
.lic-modal { position: fixed; inset: 0; z-index: 100; display: none; }
.lic-modal:target { display: grid; place-items: center; padding: 16px; }
.lic-backdrop { position: absolute; inset: 0; background: rgba(8, 5, 3, 0.78); }
.lic-card { position: relative; width: 100%; max-width: 720px; max-height: min(86vh, 760px); overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 32px); }
.lic-card h2 { margin: 0 0 8px; padding-right: 48px; font-size: 1.35rem; }
.lic-card p { margin: 0 0 16px; color: var(--ink-2); }
.lic-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 1.8rem; line-height: 1; text-decoration: none; color: var(--ink); }
.lic-close:hover { background: var(--bg); }
.lic-list details { border-top: 1px solid var(--line); padding: 4px 0; }
.lic-list summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.lic-list pre { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; font: 0.76rem/1.5 ui-monospace, Menlo, Consolas, monospace; color: var(--ink-2); max-height: 38vh; overflow: auto; }
body:has(.lic-modal:target) { overflow: hidden; }
