/* 7minus — see the design canvas. Dark only: the app follows the system, the site does not. */

:root {
  /* warm neutrals, hue 55 in oklch; hex is authoritative because the Expo app cannot read oklch */
  --bg: #16120f;
  --surface: #221d1a;
  --raised: #2c2623;
  --rule: #39332e;
  --rule-strong: #554d47;
  --fg: #eee8e4;
  --muted: #a79e98;
  /* oklch(0.80 0.012 55) — for secondary text that still has to be read, not just noticed */
  --muted-strong: #c4bcb7;

  /* burgundy, hue 18. accent-solid is the same value light or dark; the others are dark-mode values */
  --accent-solid: #871e2d;
  --accent-edge: #b84c55;   /* 1px border: the solid fill is only 2:1 against this page */
  --accent-press: #a43944;
  --accent-text: #e06870;   /* the only token that changes character between themes */
  --accent-text-hover: #eb898d;
  --accent-weak: #3f2223;
  --on-accent: #fff8f7;

  /* direction A. Flip this one line to "Newsreader, Georgia, 'Times New Roman', serif" for B. */
  --font-display: Archivo, 'Helvetica Neue', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-seven: Newsreader, Georgia, 'Times New Roman', serif;

  --measure: 66ch;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 2rem; }
/* keep policy text on the same left edge as the header, rather than centring it */
.wrap--prose > * { max-width: 46rem; }

/* ---------- the logotype ---------- */
/* 7 at 98.3% of the MINUS size, dropped 0.138em of that size.
   0.1404em in the transform, because em there resolves against the 7's own size. */
.sevenminus {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  text-decoration: none;
  color: var(--fg);
}
.sevenminus .seven {
  font: 700 0.983em var(--font-seven);
  letter-spacing: -0.015em;
  display: inline-block;
  transform: translateY(0.1404em);
}
.sevenminus .word {
  font: 700 1em var(--font-display);
  letter-spacing: 0.06em;
  color: var(--accent-text);
}
/* case by case: a rule on the baseline, or a height we do not control */
.sevenminus.is-flat .seven { font-size: 0.977em; transform: none; }

/* ---------- chrome ---------- */
header { border-bottom: 1px solid var(--rule); }
header.is-bare .wrap { justify-content: flex-end; }
header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  flex-wrap: wrap;
}
.brand { font-size: 1.375rem; }

nav { margin-left: auto; display: flex; gap: 1.75rem; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
nav a:hover { color: var(--fg); }
nav a.nav-contact { color: var(--fg); font-weight: 600; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; }
h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.625rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }

p, li { max-width: var(--measure); }
a { color: var(--accent-text); }
a:hover { color: var(--accent-text-hover); }

.lede { font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 40ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }

/* ---------- pieces ---------- */
.section { border-top: 1px solid var(--rule); }
.section .wrap { padding-top: 4rem; padding-bottom: 4rem; }
.section--tinted { background: #1b1613; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 1.5rem;
  border-radius: 6px;
  background: var(--accent-solid);
  border: 1px solid var(--accent-edge);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}
.btn:hover { background: var(--accent-press); color: var(--on-accent); }

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.75rem 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3.5rem;
}
.grid > div { border-top: 2px solid var(--accent-edge); padding-top: 0.875rem; }
.grid h3 { margin-bottom: 0.5rem; }
.grid p { color: var(--muted); font-size: 1rem; line-height: 1.55; margin: 0; }

/* the one standalone statement on the page. Same left edge and same measure as every other
   section body; only the size is raised, because the section is this sentence and nothing else. */
.statement { margin-top: 1.25rem; font-size: 1.3125rem; line-height: 1.5; max-width: 52ch; text-wrap: pretty; }

/* how it works: a stack, heading beside its explanation */
.steps { display: flex; flex-direction: column; gap: 1.75rem; margin-top: 2rem; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: 0.5rem 3rem;
  border-top: 2px solid var(--accent-edge);
  padding-top: 1rem;
}
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--muted-strong); font-size: 1rem; line-height: 1.55; max-width: 58ch; }


@media (max-width: 48rem) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
}

/* hero: mark and tagline face each other, lede and aside face each other.
   Source order is mark, tagline, lede, aside — the order it should be read in. */
.hero .wrap {
  padding-top: 5rem;
  padding-bottom: 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: 3rem 4rem;
  align-items: start;
}
.hero-mark { font-size: clamp(2.75rem, 6vw, 4.5rem); align-self: start; }
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-copy h1 { margin-bottom: 0.25rem; }
.hero-cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding-top: 0.5rem; }
.hero-aside { max-width: 27rem; margin-top: 0.5rem; }  /* top border lands on the lede's cap line */

/* The sample exchange. Vertical is time, horizontal is language: the left column is always
   the caller's language and the right column is always the subscriber's. A filled box is a
   message somebody actually sent; plain text is the translation of the box above it, and the
   diagonal arrow is the translation happening. No labels needed. */
.relay { display: flex; flex-direction: column; gap: 1rem; }
.relay-head {
  display: flex; align-items: baseline; gap: 0.625rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem; font-weight: 600;
}

.relay-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.25rem; row-gap: 1.75rem; }
.relay-body > *:nth-child(1) { grid-area: 1 / 1; }
.relay-body > *:nth-child(2) { grid-area: 2 / 2; }
.relay-body > *:nth-child(3) { grid-area: 3 / 2; }
.relay-body > *:nth-child(4) { grid-area: 4 / 1; }

.relay-msg {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  border-radius: 10px;
  padding: 0.625rem 0.8125rem;
  max-width: none;
}
.relay-msg--them { background: var(--raised); border: 1px solid var(--accent-edge); }
.relay-msg--us { background: var(--accent-solid); border: 1px solid var(--accent-edge); color: var(--on-accent); }

/* the translation: no box, because it is not a message anybody typed */
.relay-tr { position: relative; margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--muted-strong); max-width: none; padding: 0.125rem 0.1875rem; }
.relay-arrow { position: absolute; top: -2.05rem; color: var(--accent-edge); }
.relay-arrow--dr { left: -1.65rem; }
.relay-arrow--dl { right: -1.65rem; transform: scaleX(-1); }

@media (max-width: 34rem) {
  .relay-body { column-gap: 1.125rem; }
  .relay-msg { font-size: 0.875rem; }
  .relay-tr { font-size: 0.8125rem; }
}

/* ---------- the beta form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 44rem; }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.8125rem; font-weight: 600; }
.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0 0.75rem;
  height: 44px;
  width: 100%;
}
.field textarea { height: auto; min-height: 8rem; padding: 0.625rem 0.75rem; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border: 2px solid var(--accent-edge); padding-left: calc(0.75rem - 1px); }
.field textarea:focus { padding: calc(0.625rem - 1px) calc(0.75rem - 1px); }
.field .hint { font-size: 0.8125rem; color: var(--muted); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--accent-text); background: var(--accent-weak); }
.field .err { font-size: 0.8125rem; font-weight: 600; color: var(--accent-text); }
.field .err:empty { display: none; }

.cf-turnstile { min-height: 65px; }

.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.form button { border: 1px solid var(--accent-edge); cursor: pointer; font-family: inherit; }
.form button[disabled] { background: #2d2824; border-color: var(--rule); color: #6f6762; cursor: default; }
.form-status { font-size: 0.9375rem; color: var(--muted); }
.form-status.is-bad { color: var(--accent-text); font-weight: 600; }
.form-done { font-size: 1.25rem; font-weight: 600; }

@media (max-width: 34rem) { .form { grid-template-columns: minmax(0, 1fr); } }

/* prose pages */
.prose h1 { margin-bottom: 0.5rem; }
.prose h2 { margin: 2.75rem 0 0.75rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { margin: 0 0 0.875rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.4rem 0; }
.prose .panel p:last-child { margin-bottom: 0; }
.prose .wrap { padding-top: 3rem; padding-bottom: 4rem; }

footer { border-top: 1px solid var(--rule); background: #120f0d; }
footer .wrap {
  padding-top: 1.75rem; padding-bottom: 1.75rem;
  display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap;
  color: var(--muted); font-size: 0.9375rem;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
footer .brand { margin-left: auto; font-size: 1rem; }

@media (max-width: 60rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 3rem; }

  .hero-aside { max-width: none; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
}
@media (max-width: 34rem) {
  body { font-size: 16px; }
  .wrap { padding: 0 1.25rem; }
  .section .wrap { padding-top: 2.75rem; padding-bottom: 2.75rem; }
  nav { gap: 1.125rem; width: 100%; margin-left: 0; }
  footer .brand { margin-left: 0; }
}
