/* ritora.io (наряд SITE-1) — the app's paper/ink/brass (mobile/lib/theme/colors.dart), its two faces (Literata, Inter; OFL,
   subset to Latin + Cyrillic), one column of 680 px. The dark scheme is the app's ink plate. No scripts, no third parties. */

@font-face { font-family: Literata; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/Literata-Regular.woff2) format("woff2"); }
@font-face { font-family: Literata; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/Literata-Medium.woff2) format("woff2"); }
@font-face { font-family: Literata; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/Literata-Italic.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/Inter-Regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/Inter-SemiBold.woff2) format("woff2"); }

:root {
  color-scheme: light dark;
  --paper: #f6f3ec;
  --raised: #fcfaf5;
  --ink: #2e2620;
  --body: #4a443d;
  --muted: #6e6862;
  --hairline: rgba(46, 38, 32, .14);
  --accent: #8c6a3a;
  --link: #8c4a34;
  --button-bg: #2e2620;
  --button-fg: #f6f3ec;
  --serif: Literata, "Iowan Old Style", Georgia, serif;
  --sans: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #221c17;
    --raised: #2a231d;
    --ink: #f6f3ec;
    --body: #ddd6cb;
    --muted: #b4aea6;
    --hairline: rgba(246, 243, 236, .16);
    --accent: #c9a469;
    --link: #e3c08a;
    --button-bg: #f6f3ec;
    --button-fg: #2e2620;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 1.125rem/1.65 var(--serif);
  font-feature-settings: "kern", "liga";
}

.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 8px;
  font: 600 .875rem/1 var(--sans);
}

.mark { display: inline-flex; align-items: baseline; color: var(--ink); text-decoration: none; font: 500 1.5rem/1 var(--serif); }
.mark .dot, .dot { color: var(--accent); }

nav.lang { display: flex; gap: 4px; }
nav.lang a, nav.lang span {
  display: inline-block;
  min-width: 44px;
  padding: 14px 8px;
  text-align: center;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .06em;
}
nav.lang span[aria-current] { color: var(--ink); }
nav.lang a:hover { color: var(--ink); }

main { padding: 24px 0 48px; }

h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 500; line-height: 1.2; }
h1 { font-size: 2.25rem; margin: .4em 0 .3em; letter-spacing: -.01em; }
h2 { font-size: 1.375rem; margin: 2em 0 .5em; }
h3 { font-size: 1.125rem; margin: 1.6em 0 .4em; }
p, ul, ol, dl { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin: .3em 0; }
strong { color: var(--ink); font-weight: 500; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.meta { font: 400 .875rem/1.5 var(--sans); color: var(--muted); margin-bottom: 2em; }
.lead { font-size: 1.25rem; color: var(--ink); }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.25em; font: 400 .9375rem/1.5 var(--sans); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
th { color: var(--ink); font-weight: 600; }
.table { overflow-x: auto; }

details { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--hairline); }
summary {
  cursor: pointer;
  padding: 12px 0;
  color: var(--ink);
  font-weight: 500;
  list-style-position: outside;
}
details > *:not(summary) { margin-top: 0; }

/* The landing: one screen. */
.hero { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0 8px; }
.hero .name { font: 500 clamp(3rem, 12vw, 4.75rem)/1 var(--serif); color: var(--ink); margin: 0 0 .2em; letter-spacing: -.02em; }
.hero .slogan { font: italic 400 1.5rem/1.35 var(--serif); color: var(--ink); margin: 0 0 1.2em; }
.hero ul { list-style: none; padding: 0; margin: 0 0 2em; }
.hero li { padding-left: 1.1em; position: relative; margin: .5em 0; }
.hero li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.button {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-fg);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
}
.button:hover { opacity: .9; }
.soon { display: block; margin-top: 12px; font: 400 .875rem/1.4 var(--sans); color: var(--muted); }

footer.bottom {
  border-top: 1px solid var(--hairline);
  padding: 20px 0 40px;
  font: 400 .875rem/1.6 var(--sans);
  color: var(--muted);
}
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; }
footer.bottom nav a { display: inline-block; padding: 10px 0; color: var(--ink); text-decoration: none; }
footer.bottom nav a:hover { text-decoration: underline; }
footer.bottom p { margin: 0; }

@media (max-width: 480px) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 1.875rem; }
}
