:root {
  --bg: #fff7ed;
  --paper: #fffefa;
  --ink: #26201a;
  --muted: #7a6c5d;
  --line: #e8dcc6;
  --accent: #c85c3e;
  --accent-soft: #f8e1d6;
  --ok: #2e7a5d;
  --shadow: 0 8px 20px -14px rgba(0,0,0,0.3);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a140d;
    --paper: #231b13;
    --ink: #eee5d3;
    --muted: #a09179;
    --line: #3a2f23;
    --accent: #e87c5b;
    --accent-soft: #3a241c;
    --ok: #6ab896;
    --shadow: 0 8px 20px -12px rgba(0,0,0,0.7);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site, footer.site {
  max-width: 840px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer.site { color: var(--muted); border-top: 1px solid var(--line); margin-top: 72px; font-size: 14px; }

.brand { color: var(--ink); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--accent); text-decoration: none; }
header.site nav, footer.site nav { display: flex; gap: 20px; }
header.site nav a, footer.site nav a { color: var(--ink); font-weight: 500; }
footer.site nav a { color: var(--muted); }

.container { max-width: 840px; margin: 0 auto; padding: 16px 28px 48px; }

.back { display: inline-block; margin: 8px 0 16px; color: var(--muted); font-size: 14px; }
.kicker, .hero-kicker { color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; margin-bottom: 8px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; }
.tr-flag { width: 24px; height: 16px; border-radius: 2px; display: block; box-shadow: 0 1px 2px rgba(0,0,0,0.15); }

.hero { margin: 24px 0 40px; }
.hero h1 { font-size: clamp(34px, 4.8vw, 52px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.01em; }
.lede { font-size: 19px; color: var(--ink); max-width: 680px; margin: 0 0 14px; }
.muted { color: var(--muted); font-size: 14px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff7ed; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-big { padding: 16px 28px; font-size: 18px; }

.block { margin: 40px 0; }
.block h2 { font-size: 24px; margin: 0 0 14px; letter-spacing: -0.01em; }
.block-cta { background: var(--accent-soft); border-radius: 14px; padding: 28px; }
.block-cta h2 { margin-top: 0; }
.about { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.about-kicker { color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.about h2 { margin-top: 0; font-size: 26px; letter-spacing: -0.01em; }
.about p { font-size: 17px; margin: 0 0 12px; }
.about p:last-child { margin-bottom: 0; }
.reasons { padding-left: 20px; margin: 0 0 20px; }
.reasons li { margin-bottom: 10px; }

.chapters-preview {
  list-style: none; padding: 0; margin: 0 0 16px;
  counter-reset: chpv;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.chapters-preview li {
  counter-increment: chpv;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px 16px 46px; position: relative;
}
.chapters-preview li::before {
  content: counter(chpv, decimal-leading-zero);
  position: absolute; left: 16px; top: 16px;
  color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 600;
}
.chapters-preview li { padding: 0; }
.ch-card {
  display: block; width: 100%; text-align: left;
  background: var(--paper); border: none; border-radius: 12px;
  padding: 16px 18px 14px 46px; position: relative;
  font: inherit; color: var(--ink); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ch-card:hover { background: var(--accent-soft); }
.ch-card:hover .ch-more { color: var(--accent); }
.ch-title { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.ch-summary { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.ch-more { color: var(--muted); font-size: 13px; font-weight: 600; }

.ch-modal {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--paper); color: var(--ink);
  padding: 40px 48px; max-width: 760px; width: calc(100% - 32px);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.4);
  font-family: inherit;
  overflow: visible;
}
.ch-modal::backdrop { background: rgba(38, 32, 26, 0.55); }
.ch-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: none; cursor: pointer;
  font-size: 28px; color: var(--muted); line-height: 1; padding: 4px 10px;
}
.ch-modal-close:hover { color: var(--accent); }
.ch-modal-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.ch-modal-title { font-size: 26px; margin: 0 0 10px; letter-spacing: -0.01em; }
.ch-modal-summary { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.ch-modal-preview-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.ch-modal-preview { padding-left: 20px; margin: 0 0 24px; }
.ch-modal-preview li { margin-bottom: 6px; font-size: 15px; line-height: 1.5; }
.ch-modal-footer { padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.ch-modal-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ch-modal-pager { display: flex; justify-content: center; gap: 8px; }
.ch-modal-tracks { text-align: center; font-size: 13px; color: var(--muted); min-height: 20px; }
.teaser-cta-two { display: flex; gap: 10px; flex-wrap: wrap; }
.teaser-cta-two .btn { flex: 1; min-width: 0; text-align: center; }
.ch-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: var(--line); transition: background 0.15s, transform 0.15s;
}
.ch-dot:hover { background: var(--muted); }
.ch-dot.is-active { background: var(--accent); transform: scale(1.25); }

.ch-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--bg); border: 1px solid var(--line); border-radius: 50%;
  width: 44px; height: 44px; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.ch-nav:hover { border-color: var(--accent); color: var(--accent); }
.ch-nav-prev { left: -22px; }
.ch-nav-next { right: -22px; }

@media (max-width: 640px) {
  .ch-modal { padding: 24px 20px; }
  .ch-modal-cta .btn { flex: 1; text-align: center; }
  .ch-nav { width: 38px; height: 38px; font-size: 24px; }
  .ch-nav-prev { left: 8px; }
  .ch-nav-next { right: 8px; }
}
@media (max-width: 640px) {
  .chapters-preview { grid-template-columns: 1fr; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.q-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.q-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.q-list li a { display: block; padding: 16px 20px; color: var(--ink); }
.q-list li a:hover { text-decoration: none; border-color: var(--accent); background: var(--accent-soft); }
.q-list li:hover { border-color: var(--accent); }
.q-title { font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.q-short { color: var(--muted); font-size: 15px; }
.q-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.q-meta-bottom { margin: 24px 0 8px; }
.q-date, .q-date-small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.q-date-small { margin-top: 4px; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.link-more { font-weight: 600; }

.reviews { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 14px; }
.reviews li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.review-text { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.review-author { margin: 0; color: var(--muted); font-size: 14px; }

.ask-block { margin: 48px 0 24px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.ask-block h2 { margin: 0 0 8px; font-size: 22px; }
.ask-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ask-label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 6px; }
.ask-form textarea, .ask-form input {
  padding: 12px 16px; font-size: 16px; font-family: inherit;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  resize: vertical;
}
.ask-form textarea:focus, .ask-form input:focus { outline: none; border-color: var(--accent); }
.ask-form button { margin-top: 10px; }
.ask-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.ask-confirm { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--ink); padding: 14px 18px; border-radius: 10px; margin: 18px 0; }

@media (max-width: 640px) {
  .ask-block { padding: 20px; }
  .ask-form button { width: 100%; }
}

.page-head { margin: 24px 0 32px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -0.01em; }

.question h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 6px 0 14px; letter-spacing: -0.01em; }
.question .lede { font-size: 18px; color: var(--muted); margin-bottom: 24px; }
.answer p { font-size: 18px; line-height: 1.7; margin: 0 0 16px; }
.answer strong { color: var(--ink); }

.teaser-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }

.teaser-big {
  margin-top: 48px;
  padding: 32px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}
.teaser-h {
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}
.teaser-extra { font-size: 16px; margin: 0 0 14px; color: var(--ink); }
.teaser-about { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.teaser-about strong { color: var(--ink); }
.teaser-features { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.teaser-features li { position: relative; padding-left: 22px; font-size: 16px; }
.teaser-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.teaser-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.teaser-price { font-size: 32px; font-weight: 700; color: var(--ink); letter-spacing: -0.5px; }
.teaser-link { display: inline-block; margin-top: 14px; color: var(--muted); font-size: 14px; }

.gate { max-width: 440px; margin: 60px auto; text-align: center; }
.gate h1 { font-size: 28px; margin: 0 0 10px; }
.gate .lede { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
.gate-error { color: var(--accent); font-size: 14px; margin-bottom: 12px; }
.gate-form { display: flex; gap: 8px; margin-bottom: 20px; }
.gate-form input {
  flex: 1; padding: 12px 16px; font-size: 16px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; font-family: inherit;
}
.gate-form input:focus { outline: none; border-color: var(--accent); }

.toc { list-style: none; padding: 0; margin: 0; counter-reset: chapter; }
.toc-item { counter-increment: chapter; border-bottom: 1px solid var(--line); padding: 16px 0; }
.toc-item:last-child { border-bottom: none; }
.toc-item a, .toc-locked { display: block; padding-left: 44px; position: relative; color: var(--ink); }
.toc-item a::before, .toc-locked::before {
  content: counter(chapter, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px;
}
.toc-item a:hover { text-decoration: none; }
.toc-item a:hover .toc-title { color: var(--accent); }
.toc-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.toc-summary { color: var(--muted); font-size: 14px; }
.toc-locked { opacity: 0.55; cursor: not-allowed; }
.toc-badge { font-size: 11px; color: var(--muted); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

.chapter h1 { font-size: clamp(28px, 3.8vw, 40px); letter-spacing: -0.01em; margin: 6px 0 12px; }
.chapter-body p { font-size: 18px; line-height: 1.75; margin: 0 0 18px; }
.chapter-body h3 { font-size: 22px; margin: 32px 0 14px; letter-spacing: -0.01em; color: var(--ink); }
.chapter-body ul { padding-left: 22px; margin: 0 0 20px; }
.chapter-body li { font-size: 17px; line-height: 1.7; margin-bottom: 6px; }
.chapter-body em { font-style: italic; color: var(--muted); }
.md-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.md-table th { background: var(--accent-soft); font-weight: 600; color: var(--ink); }
.md-table tr:nth-child(even) td { background: var(--paper); }

.view-switcher { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin: 16px 0 24px; gap: 4px; }
.view-tab { padding: 8px 16px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.view-tab:hover { text-decoration: none; color: var(--ink); }
.view-tab.is-active { background: var(--accent); color: #fff7ed; }
.view-tab.is-active:hover { color: #fff7ed; }

.chapter-extra { margin-top: 32px; padding-top: 28px; border-top: 2px dashed var(--accent); }
.chapter-extra h3:first-child { margin-top: 0; }

.picks {
  margin-top: 48px; padding: 28px;
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: 16px;
}
.picks-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.picks-title { font-size: 22px; margin: 0 0 10px; letter-spacing: -0.01em; }
.picks-intro { font-size: 15px; color: var(--ink); margin: 0 0 20px; line-height: 1.5; }
.picks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.pick-tag { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.pick-title { font-weight: 600; font-size: 16px; color: var(--ink); }
.pick-area { font-size: 13px; color: var(--muted); }
.pick-note { font-size: 14px; color: var(--ink); line-height: 1.5; margin-top: 6px; opacity: 0.8; font-style: italic; }
@media (max-width: 640px) {
  .picks { padding: 20px; }
  .picks-grid { grid-template-columns: 1fr; }
}
.chapter-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.nav-prev, .nav-next { color: var(--muted); }

.tariffs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
.tariff {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; position: relative;
  display: flex; flex-direction: column;
}
.tariff-featured { border: 2px solid var(--accent); }
.tariff-kicker { color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.tariff-featured .tariff-kicker { color: var(--accent); }
.tariff-badge { position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff7ed; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.tariff-price { font-size: 40px; font-weight: 700; letter-spacing: -1px; margin-bottom: 10px; }
.tariff-lede { font-size: 15px; color: var(--ink); margin: 0 0 18px; }
.tariff-features { padding-left: 20px; margin: 0 0 22px; flex: 1; }
.tariff-features li { margin-bottom: 8px; font-size: 15px; line-height: 1.5; }
.tariff .btn { width: 100%; text-align: center; margin-bottom: 10px; }
.buy-switch { margin: 28px 0 10px; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; color: var(--ink); line-height: 1.6; }
.buy-switch strong { color: var(--ink); }

.track-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px; font-weight: 700;
  margin-left: 4px; vertical-align: middle;
}
.track-tourist { background: var(--accent-soft); color: var(--accent); }
.track-relocant { background: var(--accent); color: #fff7ed; }
.track-legend { margin-top: 8px; font-size: 13px; }
.hero-cta-note { margin-top: 12px; font-size: 14px; }

.buy-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}
.buy-price { font-size: 44px; font-weight: 700; letter-spacing: -1px; margin-bottom: 18px; }
.buy-features { padding-left: 20px; margin: 0 0 24px; }
.buy-features li { margin-bottom: 8px; }

.prose { max-width: 680px; margin: 40px auto; }
.prose h1 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.01em; }

/* Mobile */
@media (max-width: 640px) {
  html, body { font-size: 16px; }
  header.site, footer.site { padding: 14px 16px; gap: 12px; }
  header.site nav { gap: 14px; }
  footer.site { flex-direction: column; align-items: flex-start; gap: 10px; }
  .container { padding: 12px 16px 40px; }

  .hero { margin: 16px 0 28px; }
  .hero-cta .btn { width: 100%; text-align: center; }

  .block { margin: 28px 0; }
  .block-cta, .about, .teaser-big, .buy-card, .tariff { padding: 20px; border-radius: 12px; }
  .tariffs { grid-template-columns: 1fr; }
  .teaser-big { padding: 22px; margin-top: 32px; }
  .teaser-cta { gap: 12px; }
  .teaser-cta .btn { flex: 1; min-width: 0; text-align: center; }

  .q-list li a { padding: 14px 16px; }

  .gate { padding: 0 4px; margin: 40px auto; }
  .gate-form { flex-direction: column; }
  .gate-form input, .gate-form .btn { width: 100%; }

  .toc-item a, .toc-locked { padding-left: 38px; }
  .chapter-nav { flex-direction: column; gap: 10px; align-items: flex-start; }

  .buy-price { font-size: 36px; }
  .btn-big { padding: 14px 22px; font-size: 17px; width: 100%; text-align: center; }
}

