/* Film Binder site: one shared stylesheet. System fonts only, no external requests. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f4f4f6;
  --text: #16161a;
  --muted: #55555e;
  --accent: #b4321f;
  --border: #dcdce2;
  --banner-bg: #fff4d6;
  --banner-text: #4a3500;
  --banner-border: #e8c766;
  --focus: #1a5fd0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f12;
    --surface: #1b1b20;
    --text: #f2f2f5;
    --muted: #b4b4bd;
    --accent: #ff8a73;
    --border: #33333b;
    --banner-bg: #3a2e0a;
    --banner-text: #fbe7ad;
    --banner-border: #7a6220;
    --focus: #8cb4ff;
  }
}

*,
*::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-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

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

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  z-index: 10;
}

/* Header and footer shared by every page */

.site-header,
.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer ul,
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-footer a,
.links a,
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Landing page */

.hero {
  min-height: calc(100vh - 10rem);
  min-height: calc(100svh - 10rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero .lede {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  line-height: 1.45;
}

.hero .beta {
  display: inline-block;
  margin: 0 0 1.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Long-form pages (privacy) */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 3rem;
}

.doc h1 {
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  line-height: 1.15;
  margin: 1rem 0 1rem;
}

.doc h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li {
  margin: 0.35rem 0;
}

.banner {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--banner-border);
  border-radius: 10px;
  background: var(--banner-bg);
  color: var(--banner-text);
  font-weight: 600;
}

.not-found {
  max-width: 44rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
