:root { --bg: #FBFAF7; --ink: #17171A; --mut: #6B6B73; --line: #E7E4DC; --soft: #F4F1EA; --acc: #E4572E; --r: 16px; --sh: 0 1px 2px rgba(23, 23, 26, .05), 0 12px 32px rgba(23, 23, 26, .07); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 17px/1.6 "Golos Text", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; margin: 0; letter-spacing: -.01em; line-height: 1.05; }
h2 { font-size: clamp(34px, 4.4vw, 48px); }
h3 { font-size: 26px; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.mut { color: var(--mut); }
.sub { margin: 8px 0 28px; }

.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 30px "Instrument Serif", serif; }
.nav nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--mut); }
.nav nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #34343b; }
.btn.ghost { border-color: #D3CFC4; color: var(--ink); background: transparent; }
.btn.ghost:hover { background: var(--soft); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { padding: 8px 16px; }

.hero { padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(40px, 6vw, 64px); }
.hero h1 { font-size: clamp(52px, 8.6vw, 104px); max-width: 11em; }
.hero h1 em { color: var(--acc); }
.lede { max-width: 580px; margin: 24px 0 32px; font-size: 20px; color: var(--mut); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.totals { margin: 28px 0 0; color: var(--mut); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.totals::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2E9E5B; box-shadow: 0 0 0 4px rgba(46, 158, 91, .18); }

.write { padding-bottom: clamp(56px, 8vw, 96px); scroll-margin-top: 80px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.paper { padding: clamp(24px, 4vw, 44px); }
.cardHead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cardHead h2 { font-size: 32px; }
.cardHead p { margin: 4px 0 0; font-size: 15px; }
.badge { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.badge.open { background: #E8F5EC; color: #1F7A45; }
.badge.done { display: none; background: var(--soft); color: var(--mut); }
.tied .badge.open { display: none; } .tied .badge.done { display: inline-block; }
.prog { height: 4px; border-radius: 4px; background: var(--soft); margin: 20px 0 26px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s; }
.strand { font: 400 clamp(28px, 3.6vw, 38px)/1.55 "Instrument Serif", Georgia, serif; min-height: 130px; }
.empty { margin: 0; color: #9A9AA2; font-style: italic; }
.w { display: inline; margin-right: .3em; padding: 0 .12em; border-radius: 3px; background: linear-gradient(transparent 64%, color-mix(in srgb, var(--c, #E4572E) 28%, transparent) 64%); }
.w.knit { animation: rise .5s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.compose { display: flex; gap: 10px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.compose input { flex: 1; min-width: 0; border: 1px solid #D3CFC4; border-radius: 12px; padding: 13px 16px; background: #fff; font-size: 18px; }
.compose input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }
.compose input:disabled { background: var(--soft); }
.tie { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 15px; cursor: pointer; }
.tie input { width: 18px; height: 18px; accent-color: var(--ink); }
.afterTied { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.msg { min-height: 1.6em; margin: 16px 0 0; font-size: 15px; font-weight: 500; }
.msg.bad { color: #B3261E; }

.band { background: var(--soft); border-block: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0; scroll-margin-top: 68px; }
.band h2 { margin-bottom: 32px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps .card { padding: 28px; box-shadow: none; }
.num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.steps p { margin: 10px 0 0; color: var(--mut); font-size: 16px; }

.shelfWrap { padding-block: clamp(56px, 8vw, 96px); scroll-margin-top: 68px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.none { margin: 0; }
.fold { text-align: left; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c, #D3CFC4); border-radius: 14px; padding: 20px; cursor: pointer; color: var(--mut); font-size: 14px; transition: box-shadow .2s, transform .2s; }
.fold:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.fold b { display: block; font: 400 25px/1.25 "Instrument Serif", serif; color: var(--ink); margin-bottom: 12px; }
.fold.open { border-style: dashed; border-top-style: solid; }

details { border-bottom: 1px solid #DAD5C8; padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--mut); }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; color: var(--mut); }

.foot { padding: 48px 0 56px; font-size: 15px; }
.footGrid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; }
.foot p { margin: 6px 0; overflow-wrap: anywhere; color: var(--mut); }
.foot a { color: var(--ink); }
.built { margin-top: 14px !important; }
.addr { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .nav nav { display: none; } .nav .wrap { justify-content: space-between; }
  .compose { flex-direction: column; } .footGrid { grid-template-columns: 1fr; }
  .cardHead { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

h1, h2 { text-wrap: balance; }
