/*
 * Shared look of the site: the JustOne brand kit (orange gradient, graphite, light grey, white)
 * and the dark theme of the extension. System fonts only: the site loads nothing from third
 * parties.
 */
:root {
  --bg: #3a3a3a;
  --surface: #454545;
  --border: #5a5a5a;
  --text: #ffffff;
  --muted: #e6e6e6;
  --accent: #f85d05;
  --accent-light: #fe8521;
  --radius: 16px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--accent-light);
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

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

.wrap {
  width: min(960px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 24px 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 15px;
}

.site-nav a {
  text-decoration-color: transparent;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  text-decoration-color: var(--accent);
}

/* Hero */
.hero {
  padding: 48px 0 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 .accent {
  color: var(--accent);
}

h2 {
  margin: 48px 0 12px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  margin: 28px 0 8px;
  font-size: 19px;
}

.lead {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 20px;
}

p,
li {
  color: var(--muted);
}

strong {
  color: var(--text);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-light);
}

.button[aria-disabled='true'] {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: default;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Cards and lists */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin: 0;
}

.shots {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}

.shots img {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.lang-switch {
  margin: 0 0 24px;
  font-size: 15px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 40px;
}

.updated {
  font-size: 14px;
}

hr {
  margin: 56px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer {
  margin-top: 72px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer p {
  margin: 0;
}
