/* Yasno public site. No web fonts, no scripts, no third-party requests — the privacy policy
   says there are no trackers, and the site itself should prove it. */

:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --text: #15191e;
  --muted: #535c66;
  --border: #dde2e7;
  --accent: #1670c9;
  --accent-text: #ffffff;
  --mark: #fff1a8;
  --fine: #1f7a3d;
  --caution: #8a5a00;
  --avoid: #b3261e;
  --radius: 10px;
  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --surface: #1b2026;
    --text: #e8ecf0;
    --muted: #a3adb8;
    --border: #2c333b;
    --accent: #6cb4ff;
    --accent-text: #0b1520;
    --mark: #5a4a00;
    --fine: #6fd393;
    --caution: #f2c25c;
    --avoid: #ff8a80;
  }
}

*,
*::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 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 16px;
}

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

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

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

.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--bg);
  padding: 8px 12px;
  z-index: 10;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

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

.lang {
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-bottom: 12px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Content */
main {
  padding-top: 28px;
  padding-bottom: 48px;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.2em 0 0.5em;
}

h3 {
  font-size: 1.1rem;
  margin: 1.6em 0 0.4em;
}

p,
ul,
ol,
table {
  margin: 0 0 1em;
}

li + li {
  margin-top: 0.35em;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 1.5em 0;
}

.box > :last-child {
  margin-bottom: 0;
}

.box h2:first-child,
.box h3:first-child {
  margin-top: 0;
}

.warning {
  border-left: 4px solid var(--avoid);
}

/* Tables scroll inside themselves on a phone instead of widening the page. */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Verdicts: glyph + word, never colour alone. */
.verdicts {
  list-style: none;
  padding: 0;
}

.verdicts li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.verdict {
  font-weight: 700;
  white-space: nowrap;
}

.verdict.fine {
  color: var(--fine);
}

.verdict.caution {
  color: var(--caution);
}

.verdict.avoid {
  color: var(--avoid);
}

/* Home page */
.hero {
  padding: 12px 0 8px;
}

.hero h1 {
  font-size: 2.3rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  min-height: 32px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

mark.todo {
  background: var(--mark);
  color: inherit;
  padding: 0 3px;
  border-radius: 3px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px 0 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 8px;
}

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

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1,
  .hero h1 {
    font-size: 1.7rem;
  }
}
