/* solel.io inner pages (Get Solel//os, Roadmap, About, Privacy, Terms).
   The home page flies through the night to sunrise; these pages live in the daylight after it:
   Paper ground, Ink type, Flare kept for the one action and for progress.
   Brand tokens, a subset of brand/tokens/tokens.css.
   Fonts: SIL Open Font License 1.1, see fonts/OFL-*.txt */
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-var.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #FBF5EF;
  --raised: #FFFFFF;
  --sunken: #F3ECE2;
  --ink: #1A120D;
  --ink-2: #5E4C40;
  --ink-3: #6E5546;
  --accent: #B83A0A;          /* Flare deep enough for text and marks on Paper (5.3:1) */
  --flare: #FF5B1F;
  --flare-hover: #FF7A45;
  --on-flare: #1A0D07;
  --line: rgba(26, 18, 13, 0.12);
  --line-strong: rgba(26, 18, 13, 0.42); /* 3:1 on Paper, for marks that carry meaning */
  --wash: rgba(255, 91, 31, 0.08);
  --mark: #FFE3D3;
  --focus: #B83A0A;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wide: 76rem;
  --read: 44rem;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0B0807;
    --raised: #15100D;
    --sunken: #100C0A;
    --ink: #F6EFE9;
    --ink-2: #C4B6AB;
    --ink-3: #A8988C;
    --accent: #FF8A55;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.45);
    --wash: rgba(255, 91, 31, 0.10);
    --mark: rgba(255, 91, 31, 0.28);
    --focus: #FF8A55;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0B0807; --raised: #15100D; --sunken: #100C0A;
  --ink: #F6EFE9; --ink-2: #C4B6AB; --ink-3: #A8988C; --accent: #FF8A55;
  --line: rgba(255, 255, 255, 0.12); --line-strong: rgba(255, 255, 255, 0.45);
  --wash: rgba(255, 91, 31, 0.10); --mark: rgba(255, 91, 31, 0.28); --focus: #FF8A55;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); font-kerning: normal; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--flare); color: var(--on-flare); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: calc(var(--wide) + 2 * 32px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.read { max-width: var(--read); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-head .wrap { display: flex; align-items: center; gap: 8px 28px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: 16px; flex-wrap: wrap; }
.site-head .home { display: block; padding: 10px 6px 10px 0; margin: -10px 0; border-radius: 6px; }
.site-head .home img { width: 132px; height: auto; }
.site-head nav { display: flex; gap: 4px 24px; margin-left: auto; }
.site-head nav a { display: block; padding: 12px 0; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); }
.site-head nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--flare); text-decoration-thickness: 2px; text-underline-offset: 8px; }
@media (max-width: 520px) {
  .site-head .wrap { gap: 4px 16px; }
  .site-head nav { order: 3; width: 100%; margin-left: 0; gap: 20px; }
  .site-head .btn { margin-left: auto; }
}

/* buttons: the primary is Ink on Flare */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 12px;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  background: var(--flare); color: var(--on-flare); transition: background-color 160ms var(--ease); }
.btn:hover { background: var(--flare-hover); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.quiet:hover { background: var(--wash); }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }

/* type */
h1, h2, h3 { margin: 0; text-wrap: balance; }
/* Solel//io, Solel//os and the other division names always appear as their wordmarks (site/wordmarks.py),
   drawn from one sprite in the colour of the text around them */
.wm { display: inline-block; height: 0.8em; width: auto; vertical-align: -0.03em; fill: currentColor; overflow: visible; }
h1 .wm, h2 .wm, h3 .wm { height: 0.86em; }
.nw { white-space: nowrap; }
.wm-io { aspect-ratio: 445.9 / 84.3; } .wm-os { aspect-ratio: 483 / 84.3; } .wm-dev { aspect-ratio: 558.3 / 84.3; } .wm-org { aspect-ratio: 538.1 / 84.3; }
.wm-sdk { aspect-ratio: 561.7 / 84.3; } .wm-ai { aspect-ratio: 442.4 / 84.3; } .wm-id { aspect-ratio: 450.2 / 84.3; }
.display { font-family: var(--display); font-weight: 300; letter-spacing: -0.035em; line-height: 0.98; font-size: clamp(42px, 7vw, 104px); }
.title { font-family: var(--display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(28px, 3.6vw, 46px); }
.sub { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; font-size: 20px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 40em; margin: 0; text-wrap: pretty; }
.muted { color: var(--ink-2); }
p { text-wrap: pretty; }

.page-top { padding-top: clamp(40px, 8vw, 112px); padding-bottom: clamp(32px, 5vw, 64px); }
.page-top .lead { margin-top: 24px; }
.section { padding-block: clamp(40px, 6vw, 88px); }

/* long reading: privacy, terms, about */
.prose { max-width: var(--read); }
.prose h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; font-size: 22px; line-height: 1.25; margin: 48px 0 12px; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 28px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose strong { font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; margin: 8px 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }
.prose .scroll { overflow-x: auto; }

/* footer */
.site-foot { margin-top: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.site-foot .wrap { display: grid; gap: 20px 40px; grid-template-columns: 1fr; padding-top: 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-foot nav a { display: inline-block; padding: 11px 0; text-decoration: none; color: var(--ink); }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot p { margin: 0; }
@media (min-width: 860px) { .site-foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }
