/* Encounter website: the only stylesheet. Black on white like the web app; no external fonts or resources. */

:root {
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --soft: #f9fafb;
  --hover: #374151;
  --todo: #fde68a;
  --radius: 12px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--hover);
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

h1,
h2,
h3 {
  color: #000;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

/* Layout */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Readable line length, left edge aligned with the other sections */
.narrow > * {
  max-width: 46rem;
}

.section {
  padding: 4rem 0;
}

.section-soft {
  background: var(--soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intro {
  max-width: 44rem;
  color: var(--muted);
}

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

.small {
  font-size: 0.9375rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 10;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  color: #fff;
}

/* Header */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #000;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #000;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.site-nav .lang a {
  padding: 0.125rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #000;
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-nav .lang a:hover {
  background: var(--soft);
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid #000;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.button:hover {
  background: var(--hover);
  border-color: var(--hover);
  color: #fff;
}

.button-secondary {
  background: #fff;
  border-color: #d1d5db;
  color: #000;
}

.button-secondary:hover {
  background: var(--soft);
  border-color: #9ca3af;
  color: #000;
}

/* Home page */

.hero {
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
}

.lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.5;
}

.hero-shot img {
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.cards,
.steps {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.steps {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  counter-reset: step;
}

.card,
.steps li {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.card p,
.steps li p {
  margin: 0;
  color: var(--muted);
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.875rem;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-weight: 700;
}

.badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: 0.15em;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin: 2rem 0 0;
}

figure {
  margin: 0;
}

.shot img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #000;
}

figcaption {
  margin-top: 0.625rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  white-space: nowrap;
}

/* Legal and help pages */

.page {
  padding: 3rem 0 4rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

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

.prose li + li {
  margin-top: 0.375rem;
}

.draft-note {
  padding: 0.875rem 1.125rem;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  background: #fffbeb;
}

mark.todo {
  padding: 0 0.25em;
  border-radius: 4px;
  background: var(--todo);
  color: var(--text);
}

.panel {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.panel .lang-part + .lang-part {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.panel h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.panel h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.panel ol {
  padding-left: 1.25rem;
}

/* Footer */

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

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

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

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: #000;
}

@media (max-width: 600px) {
  .site-nav ul {
    gap: 0.25rem 1rem;
  }

  .site-nav a {
    font-size: 0.9375rem;
  }

  .site-nav .lang a {
    font-size: 0.875rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .panel {
    padding: 1.5rem;
  }
}
