/* Night Symbols (nightsymbols.com), design v2: the Everyday Omens layout language
   (tiles, cards, accordions, side column) in the night palette.
   Mobile first (base = phones), enhanced at 700px and 1000px. Only nightsymbols.com
   uses this file (site.json ns.css); zemynastudio.com keeps style.css. */
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/ns-fonts/young-serif-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/ns-fonts/young-serif-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: light dark;
  --bg: #f6f3ea; --surface: #ffffff; --border: #ddd6c4;
  --text: #17203a; --muted: #4f5b74;
  --accent: #22406b; --button: #22406b; --on-button: #ffffff;
  --tile: #ece3c8; --tile-ink: #5b4a14;
  --night: #14264a; --night-text: #f1ead4; --night-muted: #b9c6e2;
  --chip-on: #17203a; --chip-on-text: #ffffff;
  --shadow: 0 1px 2px rgba(23, 32, 58, .05), 0 6px 18px rgba(23, 32, 58, .06);
  --display: "Young Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1c38; --surface: #14284b; --border: #29446f;
    --text: #ece6d2; --muted: #b9c6e2;
    --accent: #e9d9a6; --button: #e9d9a6; --on-button: #101c35;
    --tile: #2a3f68; --tile-ink: #f0e1a8;
    --night: #08142b; --night-text: #f1ead4; --night-muted: #aebbd9;
    --chip-on: #ece6d2; --chip-on-text: #0d1c38; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--display); letter-spacing: -.01em; line-height: 1.18; text-wrap: balance; }
h1 { font-size: 34px; margin: 6px 0 14px; }
h2 { font-size: 24px; margin: 40px 0 16px; }
h3 { font: 700 16px/1.4 var(--sans); }
p { margin: 0 0 14px; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 40; padding: 10px 14px; background: var(--surface); color: var(--text); border-radius: 10px; }
.skip:focus { left: 8px; }
.tile { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--tile); color: var(--tile-ink); }
.badge { display: inline-block; margin: 8px 0 0; padding: 3px 12px; border-radius: 99px; background: var(--tile); color: var(--tile-ink); font: 700 12px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
a.badge:hover { text-decoration: underline; }
.note { color: var(--muted); font-size: 15px; }

/* Header */
header.site { border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; color: var(--text); text-decoration: none; font: 23px/1 var(--display); white-space: nowrap; }
.brand .ic { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.6; }
.mainnav, nav.langs { display: none; }
.tools { display: flex; align-items: center; gap: 8px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 700 14px/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.iconbtn .ic { width: 21px; height: 21px; stroke-width: 2; }
.lang-pick { position: relative; }
.lang-pick summary { list-style: none; }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick[open] summary::before { content: ""; position: fixed; inset: 0; z-index: 20; cursor: default; background: rgba(5, 10, 25, .3); }
.lang-pick summary { position: relative; z-index: 21; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 22; width: 230px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 28px rgba(5, 10, 25, .3); }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 11px; color: var(--text); text-decoration: none; }
.lang-menu a small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.lang-menu a[aria-current="page"] { background: var(--tile); font-weight: 700; }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0; padding: 22px 0 6px; list-style: none; font-size: 15px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { display: inline-block; padding: 10px 0; color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li[aria-current] { padding: 10px 0; }

/* Text blocks, accordions (variants), items (guides) */
.lead { font-size: 18px; line-height: 1.6; margin-bottom: 14px; }
.aliases { margin: 0 0 20px; }
.variants h2 { margin-top: 32px; }
.acc { margin-bottom: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.acc summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc h3 { flex: 1; }
.acc summary .ic { width: 20px; height: 20px; color: var(--accent); stroke-width: 2; transition: transform .2s; }
.acc[open] summary .ic { transform: rotate(45deg); }
.acc p { margin: 0; padding: 0 16px 16px; color: var(--muted); }
.items { display: grid; gap: 12px; margin: 22px 0 0; }
.item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.item h3 { margin: 0 0 4px; }
.item p { margin: 0; color: var(--muted); }
.folk { margin: 22px 0; padding: 16px 18px 6px; background: var(--tile); border-radius: 16px; }
.folk strong { display: block; margin-bottom: 4px; font: 700 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--tile-ink); }
.related { margin: 0 0 14px; }
.related a { white-space: nowrap; }
.all-symbols { font-weight: 700; }
.sources { font-size: 15px; color: var(--muted); padding-left: 20px; }
.sources li { margin: 4px 0; }
.sources a { color: var(--muted); }
.ad-slot { margin: 24px 0; min-height: 120px; text-align: center; overflow: hidden; }

/* Search */
.search { position: relative; margin: 6px 0 4px; max-width: 560px; }
.search form { display: block; }
.search-label { display: block; margin: 0 0 8px; font-size: 15px; color: var(--muted); }
.search input { width: 100%; height: 54px; padding: 0 16px; font: inherit; font-size: 17px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.search[hidden] { display: block; visibility: hidden; }
.search-results { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.search-results .empty { color: var(--muted); }

/* Cards (related, topics, analyzer results) and pills */
.cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.card span { flex: 1; min-width: 0; }
.card b { display: block; font-size: 17px; line-height: 1.35; margin-bottom: 3px; }
.card small { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
.card .ic { width: 20px; height: 20px; color: var(--muted); stroke-width: 2; }
.card:hover { border-color: var(--accent); }
.cards > li > a:not(.card) { display: block; height: 100%; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.cards > li > a:not(.card) strong { display: block; margin-bottom: 3px; }
.cards > li > a:not(.card) span { color: var(--muted); font-size: 15px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border-radius: 22px; line-height: 1.3; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: 15px; }
.pill:hover { border-color: var(--accent); }
.more { margin: 18px 0 0; }
.more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.more .ic { width: 20px; height: 20px; stroke-width: 2; }
.more a:hover { text-decoration: underline; }

/* Symbol page layout */
.sign-main h1 { margin: 6px 0 14px; }
.sister { display: flex; align-items: flex-start; gap: 14px; margin: 28px 0 0; padding: 16px 18px; border-radius: var(--radius); border: 1.5px dashed var(--accent); }
.sister p { margin: 0; color: var(--muted); font-size: 15.5px; }
.sister a { font-weight: 700; }
.side-block { margin-top: 36px; }
.side-block h2 { margin-top: 0; font-size: 22px; }
.search-top { display: block; }
.search-side { display: none; }

/* Symbol of the day: a night band */
.day-symbol { margin: 32px 0 12px; padding: 22px 22px 18px; border-radius: var(--radius); background: var(--night); color: var(--night-text); }
.day-symbol .day-label { margin: 0 0 6px; color: var(--night-muted); font: 700 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.day-symbol .day-name { display: inline-block; font: 24px/1.25 var(--display); color: var(--night-text); text-decoration: none; }
.day-symbol .day-name:hover { text-decoration: underline; }
.day-symbol .day-text { margin: 6px 0 8px; color: var(--night-muted); font-size: 16px; }
.day-symbol .day-more { display: inline-block; padding: 4px 0; color: var(--night-text); font-weight: 700; }
.day-symbol .cta { margin-top: 10px; }

/* Buttons and CTA */
.cta { display: inline-flex; align-items: center; min-height: 48px; margin-top: 14px; padding: 0 24px; border-radius: 99px; background: var(--button); color: var(--on-button); text-decoration: none; font-weight: 700; }
.cta-box { display: flex; gap: 16px; align-items: flex-start; margin: 32px 0 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cta-box img { border-radius: 14px; flex: none; }
.cta-box p { margin: 0 0 6px; }
.cta-box .cta-title { font-weight: 700; }
.cta-box .note { margin: 0; }

/* Language start page */
.hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin: 12px 0 18px; }
.hero img { width: 104px; height: 104px; border-radius: 24px; flex: none; }
.hero h1 { margin: 0 0 6px; font-size: 36px; }
.hero p { margin: 0; color: var(--muted); }
.features { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.features strong { display: block; }
.features + p { margin-top: 26px; }
.app-card { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--text); }
.policy h2 { margin-top: 32px; font-size: 21px; }
.policy li { margin: 6px 0; }

/* Lists: A-Z, topics */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 6px; font-weight: 700; }
.letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.letters a:hover { border-color: var(--accent); }
.topics { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; }
.topics-all { font-weight: 700; }
.symbol-list { list-style: none; padding: 0; columns: 2 180px; column-gap: 24px; }
.symbol-list li { padding: 3px 0; break-inside: avoid; }
.symbol-list a { display: inline-block; padding: 6px 0; }
.topic-list { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.topic-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topic-list a { font-weight: 700; text-decoration: none; }
.topic-symbols { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.topic-symbols > li > a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.topic-symbols > li > a:hover { border-color: var(--accent); }
.topic-symbols .card-text { flex: 1; min-width: 0; }
.topic-symbols b { display: block; font-size: 17px; line-height: 1.35; margin-bottom: 3px; }
.topic-symbols small { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
.topic-symbols .ic { width: 20px; height: 20px; color: var(--muted); stroke-width: 2; }

/* Root page and language cards */
.lang-cards { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.lang-cards li { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.lang-cards li.mine { border-color: var(--accent); border-width: 2px; }
.lang-cards a { text-decoration: none; }
.lang-cards strong { display: block; }
.lang-cards span { display: block; color: var(--muted); font-size: 15px; }
.lang-cards .more { display: inline-block; margin-top: 6px; font-size: 15px; padding: 4px 0; }
.lang-cards span.badge { display: inline-block; margin: 0 0 0 8px; background: var(--accent); color: var(--bg); }

/* Dream analyzer */
.analyzer [hidden] { display: none !important; }
.analyzer textarea { width: 100%; min-height: 150px; padding: 14px 16px; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; resize: vertical; }
.analyzer textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.analyzer-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.analyzer button.cta { margin-top: 12px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.analyzer-clear { margin-top: 12px; padding: 8px 4px; font: inherit; color: var(--muted); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.analyzer-privacy { margin: 10px 0 20px; }
.analyzer-list { margin-top: 16px; }
.analyzer-examples { display: grid; gap: 8px; margin: 8px 0 28px; }
.analyzer-example { text-align: left; font: inherit; color: inherit; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; cursor: pointer; }
.analyzer-example:hover, .analyzer-example:focus-visible { border-color: var(--accent); }

/* Footer */
footer.site { margin-top: 64px; padding: 24px 0 36px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
footer.site a { color: var(--muted); display: inline-block; padding: 6px 0; }

@media (max-width: 399px) {
  .brand { font-size: 20px; gap: 8px; }
  .brand .ic { width: 26px; height: 26px; }
}
@media (min-width: 700px) {
  body { font-size: 18px; }
  .wrap { padding: 0 28px; }
  .bar { min-height: 80px; gap: 20px; }
  .brand { font-size: 25px; }
  .mainnav a { display: inline-flex; align-items: center; white-space: nowrap; min-height: 44px; padding: 0 12px; border-radius: 99px; color: var(--text); text-decoration: none; font-size: 16px; }
  .mainnav a:hover, .mainnav a[aria-current="page"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
  h1 { font-size: 46px; }
  h2 { font-size: 28px; margin-top: 56px; }
  .lead { font-size: 20px; }
  .hero h1 { font-size: 48px; }
  .cards.wide, .topic-symbols { grid-template-columns: 1fr 1fr; gap: 16px; }
  .topic-list { grid-template-columns: 1fr 1fr; }
  .items { grid-template-columns: 1fr; }
}
@media (min-width: 1000px) {
  .mainnav { display: flex; gap: 4px; }
  .sign { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 1fr); gap: 48px; align-items: start; }
  .sign-side { position: sticky; top: 24px; padding-top: 8px; }
  .sign-side .cards { gap: 10px; }
  .sign-side .card { padding: 14px; box-shadow: none; }
  .side-block:first-child { margin-top: 0; }
  .search-top { display: none; }
  .search-side { display: block; }
  .topic-symbols { grid-template-columns: repeat(3, 1fr); }
  .wide-cards { grid-template-columns: repeat(3, 1fr); }
}
