/* Silky Tea House — event 14.08.2026, Almaty
   Светлая бумажная эстетика, много воздуха, качественный русский набор.
   Акценты: винный (bordo) и глубокий чайно-зелёный. */

:root {
  --bg: #faf7f1;
  --paper: #ffffff;
  --ink: #201a17;
  --ink-soft: #4a3f39;
  --ink-mute: #7a6e66;
  --rule: #e6dccd;
  --rule-soft: #efe7d8;
  --wine: #7a1f2b;
  --wine-soft: #a94757;
  --tea: #2f5a3a;
  --tea-soft: #4c7a58;
  --accent: #b58a3a;

  --serif: "Charter","Iowan Old Style","Palatino","PT Serif","Georgia",serif;
  --sans: "Inter","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;

  --max: 760px;
  --gap: 1.4rem;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  font-feature-settings: "liga","kern","onum";
  hyphens: manual;
  overflow-wrap: break-word;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 22px 96px;
}

/* Header */

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
}

h1.title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}

.place {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.lede {
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.context {
  border-left: 3px solid var(--rule);
  padding: 6px 0 6px 16px;
  color: var(--ink-soft);
  margin: 22px 0 0;
  font-size: 0.98rem;
}

.context .note {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
}

/* Rules & sections */

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 44px 0;
}

h2.section {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}

h2.section .num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72em;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  margin-right: 10px;
  vertical-align: 0.05em;
}

/* Overview cards */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ov-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}

.ov-card:hover { border-color: var(--tea-soft); }
.ov-card--info { background: #f4efe3; border-style: dashed; }
.ov-card--info .num { color: var(--tea); }
.ov-card--static { cursor: default; pointer-events: none; }
.ov-card .num {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--tea);
  text-transform: uppercase;
  font-weight: 600;
}

.ov-card h3 {
  margin: 6px 0 6px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.22;
}

.ov-card p {
  margin: 0;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* TOC list */

.toc {
  columns: 2;
  column-gap: 34px;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.75;
}
.toc a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--rule);
}
.toc a:hover { border-bottom-color: var(--tea); color: var(--tea); }
.toc .toc-group {
  break-inside: avoid;
  margin-bottom: 14px;
  scroll-margin-top: 24px;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: 6px;
  transition: background-color .35s ease, box-shadow .35s ease;
}
.toc .toc-group:target {
  background: #f4efe3;
  box-shadow: inset 3px 0 0 var(--tea);
  animation: tocFlash 1.6s ease-out 1;
}
@keyframes tocFlash {
  0%   { background: #e8dfc7; }
  100% { background: #f4efe3; }
}
.toc .toc-group-title {
  font-weight: 600;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.toc ul { list-style: none; padding: 0; margin: 0; }

/* Steps (detailed cards) */

.step {
  position: relative;
  scroll-margin-top: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  margin: 18px 0;
}
.step-icon {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 22px;
  line-height: 1;
  user-select: none;
  filter: saturate(1.05);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.step-icon .abv {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  filter: none;
}
.step-icon--cold { color: #2f7fd1; }
.step-icon--hot  { color: #d94b1a; }
.step-icon--honey { color: #c98a1f; }
.step-icon--sugar { color: #6b6b6b; }
.step-icon--multi { font-size: 20px; letter-spacing: 2px; }
.step-icon--alco { color: #7a1e2b; }
.step .kicker,
.step h3 { padding-right: 140px; }
.step.step--wine { border-left-color: var(--wine); }
.step.step--tea  { border-left-color: var(--tea); }

.step .kicker {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 6px;
}
.step.step--wine .kicker { color: var(--wine); }
.step.step--tea  .kicker { color: var(--tea); }

.step h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.22;
  margin: 0 0 4px;
}
.step .sub {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--ink-soft);
  margin: 2px 0 14px;
  font-style: italic;
}
.step .field {
  margin: 6px 0;
  font-size: 1rem;
}
.step .field .k {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-right: 6px;
}
.step p { margin: 8px 0; }
.step .back {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px dotted var(--rule);
}
.step .back:hover { color: var(--tea); border-bottom-color: var(--tea); }

.step .back-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.step .back-nav .back { margin-top: 0; }
.step .back-nav .back--section { text-align: right; }
@media (max-width: 520px) {
  .step .back-nav { flex-direction: column; }
  .step .back-nav .back--section { text-align: left; }
}

.step .wine-block {
  margin-top: 16px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 12px;
}
.step .wine-block h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 6px;
}
.step .wine-block .title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 4px;
}

/* Photo placeholder */

.photo {
  margin: 14px 0 6px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px dashed var(--rule);
  background: linear-gradient(135deg, #f5eeda 0%, #eee2c5 100%);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo .ph-label {
  max-width: 80%;
  line-height: 1.4;
}
.photo .ph-label::before {
  content: "фото · ";
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* Real photo (with actual image) */
.photo.photo--real {
  display: block;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  aspect-ratio: auto;
  text-align: left;
}
.photo.photo--real img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  background: #1a1613;
  display: block;
}
.photo.photo--real .ph-label,
.photo.photo--real figcaption.ph-label {
  display: block;
  max-width: none;
  padding: 10px 14px 12px;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
}
.photo.photo--real .ph-label::before {
  content: "";
}

/* Details / expandable */

details.long {
  margin: 12px 0 2px;
  border-top: 1px dotted var(--rule);
  padding-top: 10px;
}
details.long summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  list-style: none;
}
details.long summary::-webkit-details-marker { display: none; }
details.long summary::after {
  content: " ↓";
  color: var(--tea);
}
details.long[open] summary::after { content: " ↑"; }
details.long .body { padding-top: 8px; }

/* Water table */

.water table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13.5px;
  margin-top: 12px;
}
.water th, .water td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}
.water th {
  background: #f6efdf;
  font-weight: 600;
  color: var(--ink-soft);
}
.water td:nth-child(2), .water td:nth-child(3) { text-align: left; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Footer */

.foot {
  margin-top: 56px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-mute);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  line-height: 1.55;
}

/* Gongfu teapot icon */

.step-icon--gongfu {
  position: absolute;
  top: 14px;
  right: 16px;
  left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tea);
  background: color-mix(in oklab, var(--tea) 8%, var(--paper));
  border: 1px solid color-mix(in oklab, var(--tea) 30%, var(--rule));
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  line-height: 1;
  font-family: var(--sans);
}
.step-icon--gongfu svg { display: block; }
.gongfu-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tea);
}
@media (max-width: 640px) {
  .step-icon--gongfu {
    position: static;
    display: inline-flex;
    margin: 0 0 8px;
  }
}

/* Local station TOC */

.station-toc {
  margin: 10px 0 26px;
  padding: 14px 18px 12px;
  background: color-mix(in oklab, var(--tea) 14%, var(--paper));
  border: 1px solid color-mix(in oklab, var(--tea) 30%, var(--rule));
  border-left: 3px solid var(--tea);
  border-radius: 6px;
  scroll-margin-top: 16px;
}
.station-toc-title {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tea);
  font-weight: 700;
  margin-bottom: 8px;
}
.station-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 24px;
}
.station-toc li {
  padding: 3px 0;
  line-height: 1.45;
  break-inside: avoid;
}
.station-toc a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted color-mix(in oklab, var(--tea) 40%, transparent);
}
.station-toc a:hover { color: var(--tea); }

/* Details / cut for wine cards */

details.more {
  margin: 10px 0 6px;
  border-top: 1px solid var(--rule);
  padding-top: 8px;
  font-family: var(--sans);
  font-size: 14.5px;
}
details.more > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--tea);
  list-style: none;
  padding: 2px 0;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before {
  content: "▸ ";
  display: inline-block;
  color: var(--tea);
  transition: transform 0.2s ease;
}
details.more[open] > summary::before { content: "▾ "; }
details.more[open] > summary { margin-bottom: 8px; }
.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.details-list li {
  line-height: 1.55;
  color: var(--ink);
}
.details-list li b {
  color: var(--ink-mute);
  font-weight: 600;
  margin-right: 6px;
}

/* Mobile */

@media (max-width: 640px) {
  .page { padding: 28px 16px 80px; }
  .overview-grid { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  .station-toc ul { columns: 1; }
  .step { padding: 18px 16px; }
  h1.title { font-size: 2rem; }
}

/* Print */

@media print {
  body { background: #fff; }
  .step, .ov-card { break-inside: avoid; }
  .back, details.long summary { display: none; }
  details.long[open] .body, details.long .body { display: block; }
}

/* === Telegram embeds === */
.tg-embed { margin: 18px 0; }
.tg-embed__link { margin: 0 0 6px; font-family: var(--sans); font-size: 14px; }
.tg-embed__link a { color: var(--tea); text-decoration: none; border-bottom: 1px dashed var(--rule); }
.tg-embed__link a:hover { border-bottom-style: solid; }
.tg-embed__frame { width: 100%; min-height: 220px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; display: block; }

/* Ряд из нескольких tg-embed рядом на широких экранах */
.tg-embed-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0;
  align-items: flex-start;
}
.tg-embed-row > .tg-embed {
  flex: 1 1 320px;
  min-width: 0;
  margin: 0;
}
@media (max-width: 640px) {
  .tg-embed-row { flex-direction: column; gap: 12px; }
  .tg-embed-row > .tg-embed { flex-basis: auto; }
}
