/* zvonova.com — «Полевой журнал». Токены, типографика ParaType, компоненты. */

:root {
  --paper:      #EDE6D6;
  --paper-2:    #F7F2E7;
  --ink:        #232A20;
  --ink-soft:   #55594C;
  --moss:       #4B6350;
  --moss-deep:  #38473B;
  --ochre:      #A66A2C;
  --ochre-soft: #C99657;
  --rose:       #9C5B4A;
  --hairline:   #C9BEA0;
  --ink-deep:   #171C15;
  --paper-lite: #FBF7EE;

  --serif: "PT Serif", Georgia, serif;
  --sans:  "PT Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "PT Mono", "SF Mono", Consolas, monospace;

  --maxw: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(35,42,32,0.05) 1px, transparent 0);
  background-size: 22px 22px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, .lead, .who { overflow-wrap: break-word; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; position: relative; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); margin: 0 0 .45em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
em, i.sig { font-style: italic; }

.lead { font-size: 1.12rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-size: .95rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--moss-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow .mark { width: 14px; height: 18px; color: var(--moss); flex: none; }

.entry-no {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--rose);
}

/* --- Sprig mark (signature motif) --- */
.sprig { color: var(--moss); }
.sprig-watermark {
  position: absolute;
  color: var(--moss);
  opacity: .09;
  pointer-events: none;
  z-index: 0;
}
.divider-sprig {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 0 auto 8px; color: var(--moss); opacity: .6;
}
.divider-sprig::before, .divider-sprig::after {
  content: ""; height: 1px; width: 64px; background: var(--hairline);
}

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(237, 230, 214, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { font-family: var(--serif); font-style: italic; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.brand span { font-style: normal; color: var(--moss-deep); font-weight: 700; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .04em;
  text-decoration: none; color: var(--ink-soft); text-transform: uppercase;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.nav a:hover { color: var(--ink); border-color: var(--ochre); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 700; font-size: .98rem;
  text-decoration: none; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn-seal {
  background: var(--ochre); color: var(--paper-lite);
  padding: 13px 26px; border-radius: var(--radius);
  border: 1px solid var(--ochre);
  box-shadow: 0 2px 0 var(--moss-deep, transparent), 0 6px 18px rgba(80,50,10,.18);
}
.btn-seal:hover { background: #8f5a24; }
.btn-seal:active { transform: translateY(1px); }
.btn-line {
  background: none; color: var(--ink); padding: 6px 2px;
  border: none; border-bottom: 1.5px solid var(--moss);
  border-radius: 0; font-weight: 700;
}
.btn-line:hover { border-color: var(--ochre); color: var(--ochre); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

/* --- Bands --- */
.band { background: var(--paper-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.band-accent { background: var(--paper-2); }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { display: inline-flex; }

/* --- Hero --- */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { margin-bottom: 1.3em; }
.hero-sig { font-family: var(--serif); font-style: italic; color: var(--moss-deep); margin: 1.2em 0 1.4em; font-size: 1.05rem; }
.hero-sig svg { vertical-align: -6px; margin-left: 8px; width: 40px; height: 20px; color: var(--rose); }

.hero-photo-wrap { display: flex; flex-direction: column; align-items: center; transform: rotate(1.4deg); }
.hero-photo {
  width: 100%; aspect-ratio: 4/5;
  background: var(--paper-lite);
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 28px rgba(35,42,32,.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); text-align: center; padding: 24px; position: relative;
}
.hero-photo::before {
  content: ""; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%; background: var(--rose);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.photo-caption { font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); margin-top: 12px; letter-spacing: .03em; }
.photo-ph { font-size: .92rem; opacity: .85; }

/* --- Doors (envelopes) --- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 1; }
.door {
  background: var(--paper-lite); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 30px 26px 26px;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 14px rgba(35,42,32,.06);
  transition: transform .16s ease, box-shadow .16s ease;
}
.door:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(35,42,32,.12); }
.seal {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ochre); color: var(--paper-lite);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex: none;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.18);
}
.seal svg { width: 24px; height: 24px; }
.door h3 { border-bottom: 1px dashed var(--hairline); padding-bottom: 14px; margin-bottom: 12px; }
.door p { flex: 1; }
.door .btn { align-self: flex-start; margin-top: 10px; }

/* --- Ledger spread (О Наталье) --- */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0; position: relative; }
.ledger-col { padding: 0 40px; }
.ledger-col:first-child { border-right: 1px solid var(--hairline); padding-left: 0; }
.ledger-col:last-child { padding-right: 0; }
.ledger p:first-child { font-size: 1.08rem; }
.signature-block { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.signature-name { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink); }
.signature-block svg { width: 46px; height: 24px; color: var(--rose); }

/* --- Store (specimen label) --- */
.store-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: start; position: relative; z-index: 1; }
.label-card {
  background: var(--paper-lite); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 30px; box-shadow: 0 4px 14px rgba(35,42,32,.06);
}
.field-rows { list-style: none; padding: 0; margin: 0 0 20px; }
.field-rows li {
  display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dotted var(--hairline);
  font-size: .98rem;
}
.field-rows li:last-child { border-bottom: none; }
.field-rows .field-label {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--moss-deep); flex: none; width: 108px; padding-top: 3px;
}
.store-map {
  aspect-ratio: 4/3; background: var(--paper-2); border: 1px solid var(--hairline);
  transform: rotate(-1.2deg);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  text-align: center; padding: 20px; box-shadow: 0 10px 24px rgba(35,42,32,.12); position: relative;
}
.store-map::before {
  content: ""; position: absolute; top: -8px; left: 26px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--rose); box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* --- Journal entries (reviews) --- */
.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.entry {
  background: var(--paper-lite); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 4px 14px rgba(35,42,32,.06);
  display: flex; flex-direction: column; gap: 10px;
}
.entry-head { display: flex; justify-content: space-between; align-items: baseline; }
.entry .who { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.entry .tag {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--moss-deep); border: 1px solid var(--moss); border-radius: 999px; padding: 3px 10px 3px 8px;
}
.entry .tag .mark { width: 9px; height: 12px; }
.entry .story { color: var(--ink-soft); font-size: .98rem; }
.entry .meta {
  font-family: var(--mono); font-size: .78rem; color: var(--ink-soft);
  border-top: 1px solid var(--hairline); padding-top: 10px; margin-top: auto;
}

/* --- Filter tabs (otzyvy) --- */
.filters { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 34px; border-bottom: 1px solid var(--hairline); padding-bottom: 4px; }
.filter {
  background: none; border: none; cursor: pointer; font-family: var(--mono);
  font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft);
  padding: 8px 2px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.filter:hover { color: var(--ink); }
.filter.active { color: var(--ink); border-color: var(--ochre); }

/* --- Cards / prose --- */
.card {
  background: var(--paper-lite); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 32px; box-shadow: 0 4px 14px rgba(35,42,32,.06);
}
.prose p:last-child { margin-bottom: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { position: relative; padding-left: 40px; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  font-family: var(--mono); font-size: .85rem; color: var(--ochre);
  width: 26px; height: 26px; border: 1.5px solid var(--ochre); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.note {
  background: var(--paper-2); border: 1px dashed var(--hairline); border-radius: var(--radius);
  padding: 14px 18px; font-size: .93rem; color: var(--ink-soft);
}
.bridge { text-align: center; }
.bridge .btn-row { justify-content: center; }

/* --- Footer (colophon) --- */
.site-footer { background: var(--ink-deep); color: #C9C2AE; padding: 44px 0 36px; font-size: .95rem; }
.site-footer .container { display: grid; gap: 10px; }
.site-footer b { color: var(--paper-lite); font-family: var(--serif); }
.site-footer a { color: var(--ochre-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer a:hover { border-color: var(--ochre-soft); }
.site-footer .disclaimer { font-size: .84rem; color: #8B8570; margin-top: 10px; max-width: 720px; }
.footer-mark { color: var(--moss); opacity: .55; margin-bottom: 16px; width: 20px; height: 26px; }

/* --- Motion --- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.hero-anim > * { animation: rise .7s ease both; }
.hero-anim > *:nth-child(2) { animation-delay: .08s; }
.hero-anim > *:nth-child(3) { animation-delay: .16s; }
.hero-anim > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-anim > * { animation: none; }
  .door, .entry { transition: none; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; max-width: 340px; margin: 0 auto 8px; }
  .doors { grid-template-columns: 1fr; }
  .entries { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .ledger-col:first-child { border-right: none; border-bottom: 1px solid var(--hairline); padding-bottom: 28px; margin-bottom: 24px; }
  .ledger-col { padding: 0; }
  .store-grid { grid-template-columns: 1fr; }
  .store-map { order: -1; max-width: 320px; margin: 0 auto; }
  .nav { display: none; }
  section { padding: 52px 0; }
  .sprig-watermark { display: none; }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .entries { grid-template-columns: repeat(2, 1fr); }
}
