:root {
  --ink: #14233c;
  --muted: #5f6b79;
  --paper: #f8f5ef;
  --white: #fffdfa;
  --line: #dcd6cb;
  --accent: #e95d39;
  --accent-dark: #ba3d20;
  --blue: #243d63;
  --blue-deep: #172b49;
  --green: #24745b;
  --risk: #9c4a31;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 3%, rgba(233, 93, 57, .11), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: "Noto Sans Armenian", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 780; letter-spacing: -.02em; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--ink); color: var(--white); font-size: 13px; letter-spacing: .04em;
  box-shadow: 0 6px 18px rgba(20,35,60,.16);
}
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 650; }
.nav > a:not(.button):hover, .footer a:hover { color: var(--accent); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  border: 1px solid var(--accent); border-radius: 999px; padding: 10px 22px;
  background: var(--accent); color: white; font-weight: 750; line-height: 1.2;
  box-shadow: 0 8px 24px rgba(233,93,57,.17); transition: .18s ease;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.button-small { min-height: 40px; padding: 8px 17px; font-size: 13px; }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.button-secondary:hover { color: white; }
.button-danger { background: transparent; color: #9a321e; border-color: #d8aaa0; box-shadow: none; }

.hero { padding: 86px 0 66px; max-width: 980px; }
.eyebrow { color: var(--accent-dark); font-size: 12px; font-weight: 820; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 {
  max-width: 900px; margin: 17px 0 24px; font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.06; letter-spacing: -.055em; font-weight: 790;
}
.hero-copy { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
.text-link { color: var(--blue); font-weight: 750; border-bottom: 1px solid transparent; }
.text-link:hover { border-color: currentColor; }
.hero-note {
  display: flex; gap: 11px; align-items: flex-start; max-width: 720px; margin-top: 58px;
  padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.pulse { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(36,116,91,.11); }

.examples-section { padding: 72px 0 96px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-heading h2, .contribute h2, .page-hero h1 { margin: 7px 0 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.18; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 14px; }
.example-list { display: grid; gap: 20px; }
.risk-definition {
  margin: -4px 0 24px; padding: 18px 20px; border: 1px solid #d6d0c4; border-radius: 14px;
  background: rgba(255,253,250,.65); color: var(--muted); font-size: 13px; line-height: 1.65;
}
.risk-definition strong { display: block; margin-bottom: 3px; color: var(--ink); }
.example-card {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); background: rgba(255,253,250,.88);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 12px 40px rgba(20,35,60,.045);
}
.example-number { padding: 30px 22px; color: var(--accent); font: 700 18px/1 Georgia, serif; border-right: 1px solid var(--line); }
.example-content { padding: 30px 34px 34px; }
.example-content h3 { margin: 0 0 14px; max-width: 850px; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.35; letter-spacing: -.025em; }
.example-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.example-meta span { display: inline-flex; align-items: center; gap: 6px; }
.example-body { max-width: 880px; color: #344158; font-size: 16px; }
.example-body p { margin: 0 0 16px; }
.example-body p:last-child { margin-bottom: 0; }
.example-body strong { color: var(--ink); font-weight: 800; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.tag { border: 1px solid #d9d3c7; border-radius: 999px; padding: 4px 10px; color: #586271; background: #faf8f3; font-size: 12px; }
.risk { color: var(--risk); }

.contribute {
  display: flex; align-items: center; justify-content: space-between; gap: 36px; margin-bottom: 72px;
  padding: 45px 52px; border-radius: 28px; color: white; background:
    linear-gradient(120deg, var(--blue-deep), var(--blue)); box-shadow: 0 24px 60px rgba(23,43,73,.18);
}
.contribute h2 { margin: 5px 0 10px; }
.contribute p { max-width: 720px; margin: 0; color: #dce5f0; }
.eyebrow-light { color: #f3a791; }
.button-light { flex: 0 0 auto; background: white; border-color: white; color: var(--blue-deep); box-shadow: none; }
.button-light:hover { background: #fff1eb; border-color: #fff1eb; color: var(--blue-deep); }
.footer { min-height: 92px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.footer > div { display: flex; gap: 22px; }
.language::before { content: "●"; color: var(--green); margin-right: 7px; font-size: 8px; vertical-align: 2px; }

.inner-header { border-bottom: 1px solid var(--line); }
.page-main { min-height: calc(100vh - 181px); }
.page-hero { padding: 64px 0 32px; }
.page-hero p { max-width: 690px; margin: 17px 0 0; color: var(--muted); font-size: 17px; }
.form-card, .admin-card {
  max-width: 820px; margin: 18px auto 80px; padding: 38px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); box-shadow: 0 16px 50px rgba(20,35,60,.055);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 13px; font-weight: 760; color: var(--ink); }
.field-hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid #cfc8bc; border-radius: 12px; padding: 12px 14px;
  background: white; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 230px; resize: vertical; line-height: 1.65; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233,93,57,.12); }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.form-status { color: var(--muted); font-size: 14px; }
.form-status.success { color: var(--green); font-weight: 650; }
.form-status.error { color: #a33222; }
.privacy-note { margin: 4px 0 24px; padding: 14px 16px; border-radius: 12px; background: #f3efe7; color: var(--muted); font-size: 13px; }

.admin-shell { padding-bottom: 80px; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 55px 0 28px; }
.admin-heading h1 { margin: 4px 0 0; letter-spacing: -.04em; }
.admin-heading p { margin: 0; color: var(--muted); }
.admin-list { display: grid; gap: 18px; }
.admin-card { max-width: none; margin: 0; padding: 28px; }
.admin-card-head { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.status-badge { display: inline-flex; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.status-submitted { color: #8d4b00; background: #fff0d5; }
.status-published { color: #176046; background: #dff3e9; }
.status-draft { color: #576274; background: #e9edf2; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.empty-state { padding: 50px; text-align: center; border: 1px dashed #c8c0b4; border-radius: var(--radius); color: var(--muted); }
.denied { max-width: 620px; margin: 100px auto; text-align: center; }

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1120px); }
  .site-header { min-height: 74px; }
  .nav > a:not(.button) { display: none; }
  .brand > span:last-child { font-size: 14px; }
  .hero { padding: 58px 0 42px; }
  .hero h1 { font-size: clamp(39px, 12vw, 58px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-note { margin-top: 42px; }
  .examples-section { padding: 52px 0 70px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .example-card { grid-template-columns: 1fr; }
  .example-number { padding: 18px 22px 0; border-right: 0; }
  .example-content { padding: 18px 22px 26px; }
  .contribute { align-items: flex-start; flex-direction: column; padding: 34px 26px; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding: 24px 0; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .form-card, .admin-card { padding: 24px 20px; }
  .page-hero { padding-top: 44px; }
  .admin-heading, .admin-card-head { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
