/* Generated by tools/about/build.mjs from the YesDao frontend. Do not edit. */
@import url("/assets/about/site.css");
/* base.css */
:root {
    /* Бумага и тушь */
    --bg: #f6f1e7;
    --card: #fffaf0;
    --sunk: #efe8d9;
    --btn: #e7dfcf;
    --field: #ffffff;
    --line: #e6decd;
    --line-strong: #8f8672;
    --ink: #1d1d1f;
    --muted: #5c5a55;

    /* Шкала нефрита */
    --jade-50: #eef6f3;
    --jade-100: #d7ebe5;
    --jade-200: #a9d3c9;
    --jade-300: #6fb3a6;
    --jade-500: #0f766e;
    --jade-700: #0b625b;
    --jade-900: #0b3b37;

    /* Роли */
    --accent: var(--jade-500);
    --accent-strong: var(--jade-700);
    --accent-soft: var(--jade-100);
    --on-accent: #ffffff;
    --error: #a8392e;
    --disabled-bg: var(--btn);
    --disabled-ink: var(--muted);
    --focus: var(--jade-500);
    --focus-ring: 2px solid var(--focus);
    --focus-offset: 3px;

    /* Пять элементов (五行): текст и фон */
    --wood: #42613c;
    --wood-bg: #e0e8d7;
    --fire: #a44832;
    --fire-bg: #f4ded1;
    --earth: #7a5f28;
    --earth-bg: #eee2c6;
    --metal: #555b61;
    --metal-bg: #e4e3df;
    --water: #356477;
    --water-bg: #dce8ed;

    /* Шрифты */
    --font-serif: Georgia, "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-han: "Noto Serif TC", "Songti TC", "PMingLiU", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;

    /* Шкала размеров */
    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 22px;
    --fs-2xl: 28px;
    --fs-h2: clamp(24px, 4vw, 28px);
    --fs-h1: clamp(28px, 4vw, 32px);
    --fs-display: clamp(36px, 9vw, 54px);
    --lh-tight: 1.15;
    --lh-heading: 1.25;
    --lh-body: 1.6;

    /* Отступы */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;
    --sp-8: 64px;

    /* Радиусы, тени, размеры элементов управления */
    --r-control: 10px;
    --r-card: 14px;
    --r-pill: 999px;
    --shadow-card: 0 8px 18px rgb(29 29 31 / 5%);
    --shadow-pop: 0 8px 24px rgb(29 29 31 / 12%);
    --control-h: 48px;
    --touch: 44px;

    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    color-scheme: light;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*
 * Вечерняя тема («Вечерняя тушь»): те же роли, другие значения.
 * Атрибут ставит inline-скрипт в index.html, дальше им управляет src/utils/theme.ts.
 */
:root[data-theme="night"] {
    /* Бумага и тушь */
    --bg: #0f1a17;
    --card: #16241f;
    --sunk: #0b1412;
    --btn: #22352d;
    --field: #0b1412;
    --line: #2b3d37;
    --line-strong: #6f8079;
    --ink: #ece6d8;
    --muted: #a7b0a8;

    /* Шкала нефрита: перевёрнута, светлые ступени — для текста и акцента */
    --jade-50: #0b1412;
    --jade-100: #16241f;
    --jade-200: #1f4a40;
    --jade-300: #2f7d70;
    --jade-500: #6cc7b8;
    --jade-700: #8ad6c9;
    --jade-900: #d7ebe5;

    /* Роли */
    --accent-soft: var(--jade-200);
    --on-accent: #0b1412;
    --error: #f0a79b;

    /* Пять элементов (五行): текст и фон */
    --wood: #a9cc9c;
    --wood-bg: #1f3220;
    --fire: #f0a48f;
    --fire-bg: #40221b;
    --earth: #dcc07e;
    --earth-bg: #3a2f17;
    --metal: #c3c9cf;
    --metal-bg: #2c3236;
    --water: #9cc8dc;
    --water-bg: #1b3440;

    --shadow-card: none;
    --shadow-pop: 0 12px 32px rgb(0 0 0 / 45%);

    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

/*
 * Базовые стили, которые раньше протекали из HomeView (глобальный <style>).
 * На них полагаются страницы без собственных правил (Profile, Legend,
 * Initiate, DayForecast, заголовки статей), поэтому они сохранены здесь.
 */
h1 {
    margin: 23px 0 18px;
    font-family: var(--font-serif);
    font-size: var(--fs-display);
    line-height: var(--lh-tight);
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: center;
}

.intro {
    max-width: 440px;
    margin: 0 auto 32px;
    color: var(--muted);
    font-size: var(--fs-md);
    line-height: var(--lh-body);
    text-align: center;
}

label {
    color: var(--ink);
    font-size: var(--fs-sm);
    font-weight: 600;
}

input {
    width: 100%;
    min-width: 0;
    min-height: var(--control-h);
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-control);
    background: var(--field);
    color: var(--ink);
    font-size: var(--fs-md);
}

input:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

input::placeholder {
    color: var(--muted);
    opacity: 1;
}

@media (max-width: 600px) {
    h1 {
        margin-top: 20px;
    }

    .intro {
        margin-bottom: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* App */

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Страница занимает остаток экрана под шапкой: без второго 100vh и лишнего скролла. */
.app-shell > main {
  flex: 1 0 auto;
  width: 100%;
}

/* ArticleLayout */

.article-page {
  padding: 0 24px 40px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
}

.article-page * {
  box-sizing: border-box;
}

.article {
  width: 100%;
  /* 16px при 660px — около 74 знаков в строке. */
  max-width: 660px;
  margin: 0 auto;
}

.back-link {
  margin: 24px 0 8px;
}

.top-link:hover,
.back-to-overview:hover,
.breadcrumbs a:hover,
.sequence-link:hover .sequence-title {
  color: var(--accent);
}

.breadcrumbs {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: var(--lh-body);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: '›';
  margin: 0 8px;
  color: var(--muted);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs [aria-current='page'] {
  color: var(--ink);
}

.article-sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;

}

.sequence-link {
  display: flex;
  min-width: 0;
  min-height: var(--touch);
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}

.sequence-link--next {
  align-items: flex-end;
  text-align: right;
}

.sequence-direction {
  color: var(--accent);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
}

.sequence-title {
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
}

.back-to-overview,
.top-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--ink);
  font-size: var(--fs-sm);
  text-decoration: none;
}

.back-to-overview:focus-visible,
.top-link:focus-visible,
.breadcrumbs a:focus-visible,
.sequence-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

@media (max-width: 600px) {
  .article-page {
    padding: 0 20px 32px;
  }

  .article-sequence {
    grid-template-columns: minmax(0, 1fr);
  }

  .sequence-link--next {
    align-items: flex-start;
    text-align: left;
  }

}


:where(.article-page) .article-hero {
  padding: 28px 0 38px;
}

:where(.article-page) .article-hero--centered {
  text-align: center;
}

:where(.article-page) .eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.18em;
}

:where(.article-page) .article-hero h1 {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -1px;
}

:where(.article-page) .article-hero--centered h1 {
  margin-inline: auto;
}

:where(.article-page) .lead {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: var(--fs-lg);
  line-height: var(--lh-body);
}

:where(.article-page) .lead:last-child {
  margin-bottom: 0;
}

:where(.article-page) .article-hero--centered .lead {
  max-width: 680px;
  margin-inline: auto;
  text-align: left;
}

:where(.article-page) .hero-description {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

/* ---------- Оглавление ---------- */

:where(.article-page) .article-toc {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  padding: 22px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

:where(.article-page) .toc-title {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.15em;
}

:where(.article-page) .article-toc a {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  text-decoration: none;
}

:where(.article-page) .article-toc a:hover {
  color: var(--accent);
}

:where(.article-page) .article-toc a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* ---------- Секции и текст ---------- */

:where(.article-page) .article-section {
  padding: 34px 0 24px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

:where(.article-page) .article-section h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: var(--lh-heading);
}

:where(.article-page) .article-section p,
:where(.article-page) .article-content p,
:where(.article-page) .article-content li {
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  overflow-wrap: anywhere;
}

:where(.article-page) .article-section p,
:where(.article-page) .article-content p {
  margin: 0 0 16px;
}

:where(.article-page) .article-content ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

:where(.article-page) .article-content li {
  padding: 3px 0;
}

@media (max-width: 600px) {
  :where(.article-page) .article-hero {
    padding: 24px 0 30px;
  }

  :where(.article-page) .lead {
    font-size: var(--fs-md);
  }

  :where(.article-page) .article-section {
    padding-top: 28px;
  }

  :where(.article-page) .article-section p,
  :where(.article-page) .article-content p,
  :where(.article-page) .article-content li {
    font-size: var(--fs-md);
    line-height: var(--lh-body);
  }
}

/* BackButton */

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: color 0.2s ease;
}

.back-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.back-button:hover,
.back-button:focus-visible {
  color: var(--accent);
}

.back-button:hover .back-arrow,
.back-button:focus-visible .back-arrow {
  transform: translateX(-3px);
}

.back-button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

/* RichText */

.rich-text-link {
  color: var(--accent);
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-radius: 2px;
}

.rich-text-link:hover {
  color: var(--accent-strong);
}

.rich-text-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* PunctuationWrap */

.punctuation-wrap__chunk {
  white-space: nowrap;
}

/* SiteFooter */

.page-footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.footer-feedback {
  max-width: 520px;
  margin: 8px auto 0;
}

.footer-requisites {
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  overflow-wrap: anywhere;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 16px;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--muted);
  font-size: var(--fs-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal a:hover {
  color: var(--accent);
}

.footer-legal a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 2px;
}

