:root[data-palette="atelier"] {
  color-scheme: light;
  --fondant: #f7f1e8; --surface: #fffcf8; --ink: #2c241c; --ink-soft: #6b5e52;
  --mulberry: #3d2b1f; --mulberry-deep: #2c241c; --on-accent: #f7f1e8;
  --gold: #715b34; --gold-tint: #efe3cd; --blush: #eee0d2; --line: #e6d9c8;
  --pistachio: #465c3b; --pistachio-tint: #e7eadf; --shadow: 0 18px 40px -22px #3d2b1f66;
}

:root[data-palette="wino"] {
  color-scheme: light;
  --fondant: #f6f4f1; --surface: #fffefb; --ink: #1f1c1a; --ink-soft: #4a4541;
  --mulberry: #7a3040; --mulberry-deep: #6b2836; --on-accent: #f6f4f1;
  --gold: #4f604b; --gold-tint: #e9ebe5; --blush: #eeeae4; --line: #e4dfd8;
  --pistachio: #4f604b; --pistachio-tint: #e9ebe5; --shadow: 0 18px 40px -22px #1f1c1a50;
  --font-display: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

.theme-control { display: flex; align-items: center; gap: 6px; order: 3; white-space: nowrap; }
.theme-control label { font-size: .82rem; color: var(--ink-soft); }
.theme-control select { font: inherit; font-size: .84rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; min-height: 44px; max-width: 128px; padding-inline: 8px 4px; }
.nav-links { gap: clamp(8px, 1.5vw, 21px); }
.nav-links li { white-space: nowrap; }
.nav-links.open { gap: 0; }
.site-notice { background: var(--mulberry); color: var(--on-accent); text-align: center; padding-block: 9px; font-weight: 600; overflow-wrap: anywhere; }
#osiagniecia { border-block: 1px solid var(--line); }
.torcik-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 239px), 1fr)); gap: 18px; }
.torcik-news article { min-width: 0; overflow: hidden; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.torcik-news article > div { padding: 16px; display: grid; gap: 9px; overflow-wrap: anywhere; }
.torcik-news img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.torcik-news h3 { font-size: 1.45rem; }
.torcik-news h3 a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
html[data-preview="true"] .intro { display: none !important; }
html[data-preview="true"].intro-on, html[data-preview="true"].intro-on body { overflow: auto; }

.torcik-article { --ink: #2a1720; --fondant: #f6f0f1; --surface: #fffcfc; --mulberry: #7a1f45; --on-accent: white; }
html[data-palette="atelier"] .torcik-article,
html[data-palette="wino"] .torcik-article { --ink: inherit; --fondant: inherit; --surface: inherit; --mulberry: inherit; --on-accent: inherit; }
.torcik-article { margin: 0; font: 1.05rem/1.65 system-ui, sans-serif; background: var(--fondant); color: var(--ink); overflow-wrap: anywhere; }
.torcik-article header { display: flex; align-items: center; gap: 18px; padding: 10px max(16px, calc((100% - 820px) / 2)); background: var(--surface); }
.torcik-article img { display: block; }
.torcik-article main { max-width: 820px; margin: auto; padding: clamp(26px, 6vw, 72px) 16px; }
.torcik-article a { color: var(--mulberry); text-underline-offset: .2em; }
.torcik-article h1 { font: 500 clamp(2.1rem, 6vw, 4.5rem)/1.05 Georgia, serif; margin: 0 0 18px; }
.torcik-article .article-lead { font-size: 1.23rem; }
.article-cover { width: 100%; max-height: 530px; object-fit: contain; object-position: left; border-radius: 14px; margin-block: 25px; }
.article-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin-block: 24px; }
.article-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.torcik-article .article-order { display: inline-flex; border-radius: 999px; background: var(--mulberry); color: var(--on-accent); padding: 10px 16px; text-decoration: none; }

@media (max-width: 1120px) {
  .brand { margin-right: auto; }
  .menu-toggle { order: 4; }
}

@media (max-width: 630px) {
  .theme-control label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
}
