/* ENGSHP-470: the colours match the app's Quasar brand variables
   (app/src/css/quasar.variables.scss). */
:root {
  --primary: #e8590c;
  /* The brand orange behind white text is 3.6:1, under WCAG AA's 4.5:1 for
     button-size text (Lighthouse, ENGSHP-471). This shade is 4.7:1. */
  --primary-fill: #c94a0a;
  --primary-ink: #b8430a;
  --ink: #1f2a30;
  --muted: #5b6770;
  --bg: #ffffff;
  --surface: #f5f6f7;
  --border: #dfe3e6;
  --mark: #fff1c2;
  --mark-ink: #5a4300;
  --banner: #fff4e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-ink: #ff8a4c;
    --ink: #e9edef;
    --muted: #a3afb6;
    --bg: #171f23;
    --surface: #1f2a30;
    --border: #2e3b42;
    --mark: #4d3d00;
    --mark-ink: #ffe9a3;
    --banner: #3a2a1a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

a {
  color: var(--primary-ink);
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

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

.skip-link:focus {
  left: 16px;
  top: 8px;
  z-index: 10;
  background: var(--bg);
  padding: 8px 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.1;
}

/* ENGSHP-931: the ™ logo is never shown under 200px wide (brand spec §5). */
.brand-logo {
  display: block;
  width: 200px;
  height: auto;
}

.brand-by {
  font-size: 0.8rem;
  color: var(--muted);
}

.draft-banner {
  background: var(--banner);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  text-align: center;
  font-size: 0.95rem;
}

mark,
mark.placeholder {
  background: var(--mark);
  color: var(--mark-ink);
  padding: 0 3px;
  border-radius: 3px;
}

/* Landing */

.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.15;
  margin: 0 auto;
  max-width: 18ch;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40ch;
  margin: 16px auto 0;
}

.prose .lede {
  margin-left: 0;
}

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

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--primary);
}

.btn-primary {
  background: var(--primary-fill);
  border-color: var(--primary-fill);
  color: #fff;
}

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

.shot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  padding: 16px;
  text-align: center;
}

.shot-wide .shot-frame {
  aspect-ratio: 16 / 9;
  max-width: 880px;
  margin: 0 auto;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.feature {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.cta {
  margin-top: 64px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0;
}

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

/* Text pages */

.prose {
  max-width: 72ch;
  margin: 0 auto;
  padding-top: 40px;
}

.prose h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin: 0;
}

.prose h2 {
  margin-top: 40px;
  font-size: 1.4rem;
}

.prose h3 {
  margin-top: 24px;
  font-size: 1.1rem;
}

.prose li {
  margin: 6px 0;
}

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

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 24px 0;
  padding: 16px;
  background: var(--surface);
  border-radius: 8px;
}

.contact-email {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 32px 0;
}

/* Footer */

.site-footer {
  padding: 24px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.copyright {
  margin: 12px 0 0;
}
