/* Bleedgen site styles. No third-party requests: fonts are self-hosted
   (Manrope and Newsreader, SIL Open Font License, see /assets/fonts/). */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;
  --bg: #F6F4F0;
  --text: #1C1B19;
  --soft: #3A3542;
  --muted: #5E5868;
  --rule: #DDD8E2;
  --card: #FFFFFF;
  --border: #DDD8E2;
  --link: #5B2E91;
  --accent: #5B2E91;
  --on-accent: #FFFFFF;
  --focus: #5B2E91;
  --glow: none;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121018;
    --text: #F3F0F7;
    --soft: #DCD7E6;
    --muted: #A49FB0;
    --rule: #2A2433;
    --card: #1C1726;
    --border: rgba(255, 255, 255, 0.12);
    --link: #C9A9F0;
    --accent: #5B2E91;
    --on-accent: #F1E8FB;
    --focus: #B693E0;
  }
}

/* Gee pages: the Glass design (colours from Gee's ui/theme/GeeTheme.kt). */
.gee {
  --bg: #F6F4F0;
  --card: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  .gee {
    --bg: #0D0B12;
    --text: #EDEAF2;
    --soft: #DCD7E6;
    --muted: #A49FB0;
    --rule: rgba(255, 255, 255, 0.1);
    --card: rgba(28, 23, 38, 0.92);
    --border: rgba(255, 255, 255, 0.12);
    --link: #B693E0;
    --glow: radial-gradient(circle at 20% 0%, rgba(139, 95, 191, 0.35), rgba(139, 95, 191, 0) 460px),
      radial-gradient(circle at 95% 8%, rgba(91, 46, 145, 0.25), rgba(91, 46, 145, 0) 380px);
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--glow);
  background-repeat: no-repeat;
  color: var(--text);
  font: 17px/1.6 var(--sans);
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }

code { font-size: 0.9em; overflow-wrap: anywhere; }

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 8px 14px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }

/* ---------- Bleedgen home ---------- */

.label {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 16px;
}
.label h1 {
  font-size: clamp(2.6rem, 9vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}
.label .line {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  line-height: 1.35;
  color: var(--soft);
  margin: 0 0 48px;
}
.label h2 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
}
.product {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin: 0 0 48px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}
.product:hover { border-color: var(--muted); }
.product img { width: 56px; height: 56px; flex: none; border-radius: 14px; }
.product strong { display: block; font-size: 1.1rem; }
.product span { color: var(--muted); font-size: 0.95rem; }
.label .contact { margin: 0; color: var(--soft); }
.label footer { margin-top: 64px; color: var(--muted); font-size: 0.875rem; }

/* ---------- Gee header and footer ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-head nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.site-head nav a { color: var(--soft); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

.site-foot {
  margin-top: 72px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}
.site-foot p { margin: 0 0 8px; max-width: 72ch; }
.site-foot a { color: var(--muted); }

/* ---------- Gee product page ---------- */

.hero { padding: 32px 0 16px; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; display: block; margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 14px;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  line-height: 1.25;
  color: var(--soft);
  margin: 0 0 16px;
  max-width: 28ch;
}
.hero .sub { color: var(--soft); max-width: 60ch; margin: 0 0 28px; }

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.12); }
.price { color: var(--muted); font-size: 0.95rem; margin: 0; }

section { padding-top: 56px; }
section > h2 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  margin: 0 0 8px;
}
section > .intro { color: var(--soft); margin: 0 0 24px; max-width: 64ch; }

.shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 700px) { .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shots figure { margin: 0; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
}
.shots figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--soft); }

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.card h3 { font-size: 1.1rem; margin: 0 0 6px; }
.card p { margin: 0; color: var(--soft); }

.list { padding-left: 1.2em; margin: 0; max-width: 68ch; }
.list li { margin: 0 0 8px; color: var(--soft); }
.list li strong { color: var(--text); }

.summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  max-width: 68ch;
}
.summary p { margin: 0 0 12px; }
.summary p:last-child { margin: 0; }

/* ---------- Privacy policy ---------- */

.doc h1 { font-size: clamp(2rem, 7vw, 2.6rem); margin: 16px 0 8px; }
.doc h2 { font-size: 1.3rem; margin: 40px 0 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.doc h3 { font-size: 1.05rem; margin: 24px 0 4px; }
.doc p, .doc li { max-width: 68ch; }
.doc .meta { color: var(--muted); margin: 0 0 24px; }
.doc .summary p { margin: 0; }

.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--rule); }
.doc th { color: var(--muted); font-weight: 600; }

/* Tables stack into labelled blocks at phone width, so the page never scrolls sideways. */
@media (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .doc tr {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px 14px;
    margin: 0 0 12px;
  }
  .doc td { padding: 8px 0; }
  .doc td:last-child { border-bottom: 0; }
  .doc td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.85rem;
  }
}

/* ---------- Testers ---------- */

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; max-width: 620px; }
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px 18px 64px;
  margin: 0 0 12px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h2 { font-size: 1.05rem; margin: 2px 0 4px; }
.steps p { margin: 0; color: var(--soft); }
.steps .btn { margin-top: 12px; }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 28px; max-width: 620px; }

/* ---------- 404 ---------- */

.lost { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 620px; margin: 0 auto; padding: 64px 16px; }
.lost h1 { font-size: clamp(2rem, 7vw, 3rem); margin: 0 0 12px; }
.lost p { color: var(--soft); margin: 0 0 12px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .product { transition: filter 0.15s ease, border-color 0.15s ease; }
}

.also { font-size: 1.1rem; margin: 32px 0 10px; }

.page-title { font-size: clamp(2rem, 7vw, 2.4rem); letter-spacing: -0.02em; margin: 16px 0 10px; }
.lead { color: var(--soft); margin: 0 0 28px; max-width: 620px; }
