/* olgashmatova.com — design system from the 2026-07-17 blog design handoff.
   One accent color (olive), warm paper palette, Spectral + JetBrains Mono. */

:root {
  --bg-page: #e7e4da;
  --bg-surface: #f0eee6;
  --bg-surface-alt: #eeece4;
  --ink: #1a1a18;
  --ink-secondary: #3a3a36;
  --ink-muted: #6b6a63;
  --ink-faint: #8a887f;
  --rule: #d9d7cf;
  --accent: #6f723a;
  --accent-hover: #585a2c;
  --accent-light: #a9ac6e;
  --dark-bg: #211f1b;
  --dark-rule: #38352e;
  --dark-rule-2: #4a463d;
  --dark-ink: #e7e4da;
  --dark-ink-muted: #b8b5ab;
  --serif: 'Spectral', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-underline-offset: 2px; transition: color 150ms ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, p { text-wrap: pretty; }

/* Masthead */
.masthead {
  text-align: center;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--rule);
  padding: 40px 40px 26px;
}
body.inner .masthead { padding: 34px 40px 22px; }

.site-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
}
body.inner .site-name { font-size: 32px; }
.site-name:hover { color: var(--ink); }

.tagline {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 12px;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
}
.site-nav a {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--ink-muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.nav-active { color: var(--accent); }

/* Main content */
main { flex: 1; }

/* Home hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 38px;
  padding: 44px 40px 8px;
  align-items: start;
}
.hero h1 {
  font-weight: 600;
  font-size: 30px;
  line-height: 1.22;
  margin-bottom: 18px;
}
.hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}
.hero p { font-size: 18px; line-height: 1.6; margin-bottom: 14px; }
.hero img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.course {
  margin: 26px 40px 0;
  padding: 26px 0 34px;
  border-top: 1px solid var(--rule);
}
.course h2 { font-weight: 600; font-size: 24px; margin-bottom: 12px; }
.course p { font-size: 18px; line-height: 1.6; max-width: 640px; margin-bottom: 14px; }
.cta {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 10px 18px;
  display: inline-block;
  margin-top: 6px;
}

.also {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  padding: 22px 40px 40px;
  border-top: 1px solid var(--rule);
  margin: 26px 0 0;
}

/* Article / long-read (book pages, about) */
.article-head { padding: 52px 20px 34px; max-width: 720px; margin: 0 auto; }
.kicker {
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.article-head h1 {
  font-weight: 600; font-size: 46px; line-height: 1.15;
  letter-spacing: -.01em; margin-bottom: 22px;
}
.standfirst { font-size: 22px; line-height: 1.5; color: var(--ink-secondary); margin-bottom: 26px; }
.byline {
  display: flex; gap: 16px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--rule);
}

.prose { max-width: 640px; margin: 0 auto; padding: 0 20px 56px; }
.prose p { font-size: 20px; line-height: 1.62; margin-bottom: 26px; }
.prose h2 { font-weight: 600; font-size: 30px; line-height: 1.25; margin: 40px 0 18px; }
.prose h3 { font-weight: 600; font-size: 24px; line-height: 1.3; margin: 32px 0 14px; }
.prose ul, .prose ol { font-size: 20px; line-height: 1.62; margin: 0 0 26px 24px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 34px 0; padding: 4px 0 4px 26px;
  border-left: 3px solid var(--accent);
  font-style: italic; font-weight: 500; font-size: 24px; line-height: 1.45;
  color: var(--ink-secondary);
}
.prose img { max-width: 100%; height: auto; border: 1px solid var(--rule); }
.prose figure { margin: 0 0 26px; }
.prose figcaption { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-top: 8px; }
.course-grid { display: grid; grid-template-columns: 1fr 260px; gap: 34px; align-items: center; }
.course-grid img { width: 100%; height: auto; border: 1px solid var(--rule); }
@media (max-width: 700px) { .course-grid { grid-template-columns: 1fr; gap: 20px; } }
.availability {
  font-family: var(--mono); font-size: 12px; line-height: 1.6;
  color: var(--ink-muted);
  border: 1px solid var(--rule); padding: 12px 16px; margin-bottom: 26px;
}

.hero-image { max-width: 720px; margin: 0 auto 44px; padding: 0 20px; }
.hero-image img { width: 100%; height: auto; border: 1px solid var(--rule); }
.hero-image figcaption { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); padding-top: 10px; }

/* Gallery section on article pages */
.gallery-block { border-top: 1px solid var(--rule); margin-top: 26px; }
.gallery-heading {
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  padding: 26px 40px 0; margin: 0;
}

/* Books grid */
.books-intro { max-width: 640px; margin: 0 auto; padding: 0 20px 10px; }
.books-intro p { font-size: 19px; line-height: 1.6; margin-bottom: 22px; }
.books-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 34px 26px; padding: 20px 40px 48px;
}
.book-card { display: block; text-decoration: none; color: var(--ink); }
.book-card img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule); background: var(--bg-surface-alt);
}
.book-card h2 {
  font-weight: 600; font-size: 19px; line-height: 1.3;
  margin: 12px 0 5px; transition: color 150ms ease;
}
.book-card:hover h2 { color: var(--accent); }
.book-card .meta {
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
  color: var(--ink-muted);
}
@media (max-width: 700px) {
  .books-grid { grid-template-columns: 1fr; padding: 16px 20px 40px; }
}

/* Gallery (masonry) */
.gallery-tabs {
  display: flex; gap: 28px; padding: 22px 40px 6px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-muted);
}
.gallery-tabs a { color: inherit; text-decoration: none; }
.gallery-tabs .tab-active { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 8px; }

.gallery {
  padding: 24px 40px 40px;
  column-count: 3; column-gap: 18px;
}
.gallery figure { break-inside: avoid; margin-bottom: 18px; }
.gallery img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule);
  background: var(--bg-surface-alt);
  cursor: pointer;
  transition: opacity 200ms ease;
}
.gallery img:hover { opacity: .88; }
.gallery figcaption {
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
  color: var(--ink-faint); margin-top: 7px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(33,31,27,.96);
  display: none;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  display: grid; grid-template-columns: 1fr 300px;
  min-height: 420px; max-width: 900px; max-height: 90vh; width: 92%;
  background: var(--dark-bg); border: 1px solid var(--dark-bg);
}
.lightbox-image {
  display: flex; align-items: center; justify-content: center; padding: 34px;
}
.lightbox-image img {
  max-width: 100%; max-height: 78vh;
  border: 1px solid var(--dark-rule-2);
}
.lightbox-panel {
  padding: 40px 34px; border-left: 1px solid var(--dark-rule);
  display: flex; flex-direction: column; gap: 14px;
  color: var(--dark-ink);
}
.lightbox-panel .category {
  font-family: var(--mono); font-weight: 500; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light);
}
.lightbox-panel .title { font-weight: 600; font-size: 28px; line-height: 1.2; }
.lightbox-panel .desc { font-size: 15px; line-height: 1.6; color: var(--dark-ink-muted); }
.lightbox-panel .hint {
  margin-top: auto;
  font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-faint);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 22px 40px 34px;
  text-align: center;
}
.site-footer p {
  font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--ink-muted);
}
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1000px) {
  .gallery { column-count: 2; }
  .hero { grid-template-columns: 1fr 280px; }
}
@media (max-width: 700px) {
  .masthead { padding: 30px 20px 18px; }
  .site-name { font-size: 32px; }
  .site-nav { gap: 18px; flex-wrap: wrap; }
  .site-nav a { padding: 8px 0; }
  .hero { grid-template-columns: 1fr; padding: 30px 20px 8px; gap: 24px; }
  .hero h1 { font-size: 26px; }
  .course, .also { margin-left: 20px; margin-right: 20px; padding-left: 0; padding-right: 0; }
  .also { padding: 22px 20px 34px; margin: 26px 0 0; }
  .article-head { padding: 36px 20px 26px; }
  .article-head h1 { font-size: 33px; }
  .standfirst { font-size: 19px; }
  .prose p, .prose ul, .prose ol { font-size: 17.5px; line-height: 1.6; }
  .gallery { column-count: 1; padding: 20px 20px 34px; }
  .lightbox-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .lightbox-panel { border-left: none; border-top: 1px solid var(--dark-rule); padding: 24px 20px; }
}

/* ---- draw.olgashmatova.com: doors, practice sheets, subscription (2026-09-23) ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.doors {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  margin: 26px 40px 0; padding: 26px 0 34px; border-top: 1px solid var(--rule);
}
.door { display: block; text-decoration: none; color: var(--ink); }
.door h2 { font-weight: 600; font-size: 22px; margin-bottom: 8px; transition: color 150ms ease; }
.door:hover h2 { color: var(--accent); }
.door p { font-size: 16px; line-height: 1.55; color: var(--ink-secondary); }

.sheet-sets { max-width: 640px; margin: 0 auto; padding: 0 20px 20px; }
.sheet-set {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--rule); background: var(--bg-surface-alt);
  padding: 22px 24px; margin-bottom: 18px;
}
.sheet-set h2 { font-weight: 600; font-size: 22px; line-height: 1.3; margin-bottom: 8px; transition: color 150ms ease; }
.sheet-set:hover h2 { color: var(--accent); }
.sheet-set p { font-size: 17px; line-height: 1.55; color: var(--ink-secondary); margin-bottom: 10px; }
.sheet-set .more { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }

.sheets { max-width: 640px; margin: 0 auto; padding: 0 20px 10px; }
.sheet { border-top: 1px solid var(--rule); padding: 22px 0; display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; }
.sheet h3 { font-weight: 600; font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
.sheet p { font-size: 18px; line-height: 1.6; color: var(--ink-secondary); margin-bottom: 14px; }
.download {
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em; text-decoration: none;
  display: inline-block; padding: 10px 18px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--bg-surface);
  transition: background 150ms ease;
}
.download:hover { background: var(--accent-hover); color: var(--bg-surface); }
/* free sheets: preview + one button per set size (2026-10-04) */
.sheet-preview { display: block; width: 150px; height: auto; border: 1px solid var(--rule); background: #fff; }
.sheet-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-sizes .download { padding: 10px 12px; }
.sheet .sheet-note { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--ink-muted); margin-bottom: 0; }
.download-all { border-top: 1px solid var(--rule); padding: 22px 0 8px; }
.print-note { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--ink-muted); padding: 14px 0 26px; }
.prose .print-note { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--ink-muted); }

.sheet-list { max-width: 640px; margin: 0 auto; padding: 0 20px 26px 44px; font-size: 18px; line-height: 1.6; }
.sheet-list li { margin-bottom: 10px; }

.subscribe {
  margin: 26px 40px 0; padding: 30px 0 40px; border-top: 1px solid var(--rule);
  max-width: 640px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px;
}
.subscribe h2 { font-weight: 600; font-size: 24px; line-height: 1.3; margin-bottom: 8px; }
.subscribe-optional { font-family: var(--mono); font-size: 12.5px; color: var(--ink-muted); margin-bottom: 18px; }
.subscribe-form { display: flex; gap: 10px; max-width: 460px; }
.subscribe-form input {
  flex: 1; font-family: var(--serif); font-size: 17px; padding: 10px 14px;
  border: 1px solid var(--rule); background: var(--bg-surface); color: var(--ink);
}
.subscribe-form input:focus { outline: 2px solid var(--accent-light); outline-offset: 1px; }
.subscribe-form button {
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em; cursor: pointer;
  padding: 10px 18px; border: 1px solid var(--accent); background: var(--accent); color: var(--bg-surface);
}
.subscribe-form button:hover { background: var(--accent-hover); }
.subscribe-pending { font-size: 17px; color: var(--ink-secondary); }
.subscribe-note { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-top: 12px; }
.subscribe-note a { color: inherit; }
.subscribe-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }  /* honeypot: people never see it, bots fill it */

@media (max-width: 700px) {
  .doors { grid-template-columns: 1fr; margin: 20px 20px 0; gap: 20px; }
  .subscribe-form { flex-direction: column; }
  .sheet-list { padding-left: 40px; font-size: 17px; }
  .sheet { grid-template-columns: 1fr; gap: 16px; }
  .sheet-preview { width: 160px; }
}

/* ---- draw: Russian book page, buy block, legal (2026-09-30) ---- */
.book-hero {
  display: grid; grid-template-columns: 300px 1fr; gap: 38px;
  padding: 44px 40px 8px; align-items: start;
}
.book-hero-text .kicker { margin-bottom: 14px; }
.book-hero-text h1 { font-weight: 600; font-size: 32px; line-height: 1.2; margin-bottom: 14px; }
.book-hero-text .standfirst { font-size: 19px; margin-bottom: 12px; }
.trust { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--ink-muted); margin-bottom: 22px; }
.cover-placeholder {
  aspect-ratio: 2 / 3; border: 1px solid var(--rule); background: var(--bg-surface-alt);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 24px; gap: 12px;
}
.cover-placeholder span { font-weight: 600; font-size: 22px; line-height: 1.25; }
.cover-placeholder small { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.buy { border: 1px solid var(--rule); padding: 20px 22px; background: var(--bg-surface-alt); }
.price { font-weight: 600; font-size: 26px; margin-bottom: 12px; }
.buy-btn {
  font-family: var(--mono); font-size: 14px; letter-spacing: .02em; cursor: pointer;
  padding: 14px 22px; width: 100%; border: 1px solid var(--accent); background: var(--accent); color: var(--bg-surface);
}
.buy-btn:hover { background: var(--accent-hover); }
a.buy-btn { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.buy-when { font-family: var(--mono); font-size: 12px; text-align: center; color: var(--ink-muted); margin-top: 8px; }
.buy-when-on { color: var(--accent-hover); font-weight: 600; }
.buy-closed {
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em; text-align: center;
  padding: 14px 22px; border: 1px solid var(--rule); color: var(--ink-muted);
}
.buy-test { font-family: var(--mono); font-size: 11px; color: var(--accent-hover); margin-top: 8px; }
.buy-note { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-muted); margin-top: 12px; }
.book-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 10px 40px 30px; }
.book-images img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); background: var(--bg-surface-alt); }
.book-images-2 { grid-template-columns: repeat(2, 1fr); }
.book-images figcaption { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 7px; }
.author-photo { max-width: 260px; }
.legal-ru p { font-size: 17px; line-height: 1.6; color: var(--ink-secondary); }
/* ---- draw: languages, Russian home, book pages (2026-10-02) ---- */
.site-nav { flex-wrap: wrap; row-gap: 10px; }
.lang-switch { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); padding-left: 24px; border-left: 1px solid var(--rule); }
.lang-switch a { color: var(--ink-muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch [aria-current] { color: var(--accent); }
.doors.doors-4 { grid-template-columns: repeat(2, 1fr); }
.book-cover { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.book-hero + .prose { padding-top: 30px; }
.book-item .book-draw { font-family: var(--mono); font-size: 12.5px; margin-top: 8px; }
.book-item .book-draw a { color: var(--accent); text-decoration: none; }
.book-item .book-draw a:hover { text-decoration: underline; }
.price-note { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--ink-muted); margin: -4px 0 14px; }
@media (max-width: 700px) { .doors.doors-4 { grid-template-columns: 1fr; } .book-cover { max-width: 220px; margin: 0 auto; } .lang-switch { border-left: 0; padding-left: 0; } }
.prose .translation-note { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--ink-secondary); padding: 12px 16px; border: 1px solid var(--rule); }
@media (max-width: 700px) {
  .book-hero { grid-template-columns: 1fr; padding: 24px 20px 8px; gap: 22px; }
  .cover-placeholder { max-width: 220px; margin: 0 auto; }
  .book-hero-text h1 { font-size: 26px; }
  .book-images { grid-template-columns: 1fr; padding: 10px 20px 24px; }
}
