/* Our Own Order - shared styles */
:root {
  --ink: #0b0e13;
  --ink-2: #11151c;
  --ink-3: #181d26;
  --line: #262d39;
  --line-2: #343c4b;
  --text: #f3ede2;
  --muted: #a9a394;
  --faint: #7a7568;
  --gold-1: #ffd98a;
  --gold-2: #f5a623;
  --gold-3: #e0661a;
  --gold: linear-gradient(135deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3));
  --ok: #7fd6a4;
  --bad: #ff8f7a;
  --radius: 14px;
  --wrap: 1120px;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--gold-1); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin: 0 0 14px; }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.gold { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 14, 19, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--ink-3); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 1px solid transparent; font: 600 1rem var(--body); cursor: pointer; text-decoration: none; transition: transform .12s ease, filter .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #1a1205; }
.btn-gold:hover { filter: brightness(1.08); color: #1a1205; }
.nav a.btn-gold, .nav a.btn-gold:hover { color: #1a1205; background: var(--gold); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--ink-3); color: var(--text); }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.08rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 620px; background: radial-gradient(closest-side, rgba(245, 166, 35, .2), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
.hero-art { justify-self: center; width: min(100%, 420px); aspect-ratio: 1; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(224, 102, 26, .22), 0 0 0 1px var(--line); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

.counter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.counter div { background: var(--ink-2); padding: 20px 18px; }
.counter b { display: block; font: 600 clamp(1.7rem, 4vw, 2.4rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.counter span { color: var(--muted); font-size: .88rem; }

/* manifesto */
.manifesto { counter-reset: line; list-style: none; padding: 0; margin: 36px 0 0; }
.manifesto li { counter-increment: line; position: relative; padding: 22px 0 22px 64px; border-top: 1px solid var(--line); font: 500 clamp(1.15rem, 2.4vw, 1.5rem)/1.35 var(--display); }
.manifesto li::before { content: counter(line, decimal-leading-zero); position: absolute; left: 0; top: 26px; font: 600 .82rem var(--body); letter-spacing: .1em; color: var(--gold-2); }
.manifesto li small { display: block; font: 400 1rem/1.55 var(--body); color: var(--muted); margin-top: 8px; }

/* cards */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--gold-2); transform: translateY(-2px); color: inherit; }
.card .more { color: var(--gold-1); font-weight: 600; font-size: .95rem; }
.ring-mark { width: 44px; height: 44px; border-radius: 50%; border: 5px solid; border-color: var(--gold-2); margin-bottom: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.section-head p { margin: 10px 0 0; }

.recent { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.recent li, .chip { background: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.note { border: 1px solid var(--line-2); border-left: 3px solid var(--gold-2); background: var(--ink-2); border-radius: 10px; padding: 16px 18px; color: var(--muted); font-size: .95rem; }
.note b { color: var(--text); }

/* forms */
.form { display: grid; gap: 20px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; color: var(--faint); font-size: .86rem; margin-top: 6px; }
.field .error { display: block; color: var(--bad); font-size: .9rem; margin-top: 6px; }
input[type=text], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--ink-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 10px; font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(245, 166, 35, .18); }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--bad); }
.check { display: flex; gap: 12px; align-items: flex-start; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold-2); flex: none; }
.form-msg { border-radius: 10px; padding: 12px 14px; font-size: .95rem; }
.form-msg.bad { background: rgba(255, 143, 122, .1); border: 1px solid rgba(255, 143, 122, .4); color: var(--bad); }
.form-msg.ok { background: rgba(127, 214, 164, .1); border: 1px solid rgba(127, 214, 164, .4); color: var(--ok); }
.auth { padding-top: 56px; padding-bottom: 80px; }
.auth h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.auth .lede { margin-bottom: 30px; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: rgba(245, 166, 35, .12); color: var(--gold-1); border: 1px solid rgba(245, 166, 35, .25); }
button.tag { cursor: pointer; font-family: inherit; }
button.tag:hover, button.tag[aria-pressed=true] { background: var(--gold-2); color: #1a1205; }
.status { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.status.next { color: var(--gold-1); border-color: rgba(245, 166, 35, .5); }
.status.live { color: var(--ok); border-color: rgba(127, 214, 164, .5); }

/* members */
.toolbar { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin-bottom: 16px; }
.member { display: flex; flex-direction: column; gap: 12px; }
.member-top { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #1a1205; display: grid; place-items: center; font: 700 1.1rem var(--display); flex: none; }
.member-name { font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.member-meta { color: var(--faint); font-size: .85rem; }
.member dl { margin: 0; display: grid; gap: 8px; font-size: .93rem; }
.member dt { color: var(--faint); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.member dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 150px 1fr 40px; gap: 12px; align-items: center; font-size: .93rem; }
.bar i { display: block; height: 8px; border-radius: 99px; background: var(--gold); min-width: 4px; }
.bar span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 8px; }

/* roadmap */
.project { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: start; }
.vote { display: grid; place-items: center; gap: 2px; min-height: 76px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-3); color: var(--text); cursor: pointer; font: inherit; padding: 8px; }
.vote b { font: 600 1.5rem/1 var(--display); font-variant-numeric: tabular-nums; }
.vote span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vote:hover { border-color: var(--gold-2); }
.vote[aria-pressed=true] { background: var(--gold); border-color: transparent; color: #1a1205; }
.vote[aria-pressed=true] span { color: #1a1205; }
.project-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }

/* library */
.guide-meta { color: var(--faint); font-size: .85rem; margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.article { padding-top: 48px; padding-bottom: 80px; }
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 14px 0 16px; }
.article h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.article p, .article li { font-size: 1.08rem; color: #ddd6c8; }
.article ul { padding-left: 22px; margin: 0 0 1em; }
.article li { margin-bottom: 10px; }
.article li::marker { color: var(--gold-2); }
.back { display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--faint); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer p { margin: 0; max-width: 62ch; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.page-head { padding-top: 56px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 14px; }
.page-body { padding-top: 32px; padding-bottom: 80px; }
.stack { display: grid; gap: 16px; }
.skeleton { color: var(--faint); padding: 30px 0; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; width: min(70%, 300px); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 52px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 12px 16px 18px; gap: 4px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav .btn { margin: 8px 0 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .manifesto li { padding-left: 44px; }
  .bar { grid-template-columns: 110px 1fr 34px; }
  .project { grid-template-columns: 64px 1fr; gap: 14px; }
  .counter div { padding: 16px 12px; }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* small utilities (inline styles are blocked by the site's security policy) */
.mt-36 { margin-top: 36px; }
.mt-64 { margin-top: 64px; }
.mb-22 { margin-bottom: 22px; }
.mb-26 { margin-bottom: 26px; }
.m-0 { margin: 0; }
.mid { max-width: 860px; }

/* membership steps */
.steps { margin-top: 24px; margin-bottom: 44px; }
.steps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.steps-title { font-size: 1.5rem; }
.step-list { list-style: none; margin: 0; padding: 0; }
.step-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.step-list li:first-child { border-top: 0; }
.step-dot { width: 24px; height: 24px; border-radius: 50%; border: 4px solid var(--line-2); margin-top: 1px; }
.step-list li.done .step-dot { border-color: var(--gold-2); background: var(--gold-2); box-shadow: inset 0 0 0 4px var(--ink-2); }
.step-list li.wait { opacity: .55; }
.step-body b { display: block; margin-bottom: 2px; }
.step-actions { margin-top: 12px; }
.step-actions:empty, .step-actions:not(:has(button:not([hidden]))) { display: none; }
.steps .form-msg { margin-top: 6px; }
.profile-title { font-size: 1.7rem; margin-bottom: 10px; }
.status.ok { color: var(--ok); border-color: rgba(127, 214, 164, .5); }

/* ranking */
.rank { margin-left: auto; text-align: right; flex: none; }
.rank b { display: block; font: 600 1.25rem/1 var(--display); }
.rank span { color: var(--faint); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.rings { display: inline-flex; gap: 0; vertical-align: -2px; margin-right: 6px; }
.rings i { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--gold-2); margin-left: -4px; }
.rings i:first-child { margin-left: 0; }
.holding { color: var(--gold-1); font-size: .88rem; font-variant-numeric: tabular-nums; }

/* Telegram sign-in */
.tg-box { display: grid; gap: 16px; justify-items: start; }
.tg-box #tg-button { min-height: 44px; }
.or { display: flex; align-items: center; gap: 14px; width: 100%; margin: 0; color: var(--faint); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.linklike { background: none; border: 0; padding: 0; color: var(--gold-1); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: #fff; }
