/* younod.app: one stylesheet for every page. The app's Night palette
   (src/constants/colors.js) and its body font, served from this site:
   no request to a font CDN, so a visit reaches no one but Cloudflare.
   Digits are left out (unicode-range) and fall back to the system font, as
   in the app: Atkinson's only zero is slashed ("2Ø26"). */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/AtkinsonHyperlegibleNext_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-002F, U+003A-10FFFF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/AtkinsonHyperlegibleNext_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-002F, U+003A-10FFFF;
}

:root {
  color-scheme: dark;
  --canvas: #10142a;
  --surface: #1a2040;
  --edge: #3e4a80;
  --ink: #eef2f7;
  --body: #c9cfe2;
  --muted: #a3acc8;
  --brand: #10b981;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--ink);
}
a:hover {
  color: #fff;
}
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header and footer */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
}
.top .mail,
.foot,
.foot a {
  color: var(--muted);
  font-size: 16px;
}
.foot-row {
  border-top: 1px solid var(--edge);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: 48px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

/* Home */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 96px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.concept {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 34em;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}
.concept li {
  display: flex;
  gap: 14px;
}
.concept li::before {
  content: '●';
  color: var(--brand);
}
.store {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.store strong {
  color: var(--ink);
}
.orbit {
  margin: 0;
  display: flex;
  justify-content: center;
}
.orbit svg {
  width: 100%;
  max-width: 520px;
  height: auto;
}
.orbit text {
  font-family: inherit;
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}
.band .wrap,
.private {
  padding-top: 80px;
  padding-bottom: 96px;
}
h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.steps {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
}
.steps h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.steps p,
.private dd {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.private {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}
.private h2 {
  max-width: 12ch;
}
.private dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 18px;
  line-height: 1.5;
}
.private dt {
  font-weight: 700;
}
.private dd {
  margin-top: 4px;
}

/* Text pages: privacy, deletion */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}
.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.doc h2 {
  margin: 56px 0 16px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}
.doc h3 {
  margin: 28px 0 8px;
  font-size: 19px;
}
.doc p,
.doc li {
  color: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
.doc p {
  margin: 0 0 16px;
}
.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.doc li {
  margin: 0 0 8px;
}
.doc strong {
  color: var(--ink);
}
.doc .meta {
  color: var(--muted);
}
.table {
  overflow-x: auto;
  margin: 0 0 16px;
}
.doc table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 17px;
  line-height: 1.45;
}
.doc th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--edge);
  text-align: left;
}
.doc td {
  padding: 12px;
  border-bottom: 1px solid var(--edge);
  color: var(--body);
  vertical-align: top;
}
.card {
  margin: 0 0 24px;
  padding: 28px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: var(--surface);
}
.card h2,
.split h2 {
  margin: 0 0 12px;
  font-size: 24px;
}
.card :last-child {
  margin-bottom: 0;
}
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin: 40px 0 24px;
}
