:root {
  --bg: #0d2b24;
  --bg-2: #123a31;
  --ink: #f4f1ea;
  --muted: #b9c7c1;
  --accent: #d7f25c;
  --line: rgba(244, 241, 234, 0.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: var(--accent); }
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(16px, 5vw, 64px);
  position: sticky; top: 0; background: rgba(13, 43, 36, 0.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); z-index: 10;
}
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: 0.08em; }
.brand span { color: var(--accent); margin-left: 2px; }
nav { display: flex; gap: 20px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
nav a:hover { color: var(--ink); }
nav .pill { color: var(--bg); background: var(--accent); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
section { padding: clamp(56px, 9vw, 112px) clamp(16px, 5vw, 64px); max-width: 1160px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
h1 { font-size: clamp(40px, 8vw, 88px); line-height: 1.02; margin: 0 0 24px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 20px; font-weight: 800; }
h3 { margin: 0 0 8px; font-size: 20px; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 720px; margin: 0 0 16px; }
.lead.th { font-size: 17px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; background: var(--accent); color: var(--bg); text-decoration: none;
  font-weight: 600; padding: 14px 24px; border-radius: 999px;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.big { font-size: clamp(18px, 3vw, 24px); padding: 16px 28px; overflow-wrap: anywhere; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.grid article { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.grid p { color: var(--muted); margin: 0; }
.community {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px;
  margin: 0 clamp(16px, 5vw, 64px);
}
@media (min-width: 1290px) { .community { margin: 0 auto; } }
.community > div { max-width: 640px; }
.community p { color: var(--muted); }
.contact { text-align: center; }
.contact p { color: var(--muted); }
.small { font-size: 14px; margin-top: 24px; }
footer { border-top: 1px solid var(--line); padding: 32px clamp(16px, 5vw, 64px); color: var(--muted); font-size: 14px; text-align: center; }
footer p { margin: 4px 0; }
@media (max-width: 560px) { nav > a:not(.pill) { display: none; } }

/* Stories */
.story {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
}
.story:hover { border-color: var(--accent); }
.story h3 { margin: 0; line-height: 1.3; }
.story p { color: var(--muted); margin: 0; flex: 1; }
.story span { color: var(--accent); font-weight: 600; font-size: 15px; }
.story-page { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) clamp(16px, 5vw, 64px); }
.story-page h1 { font-size: clamp(32px, 5.5vw, 56px); line-height: 1.1; }
.story-page > p { font-size: 18px; line-height: 1.75; }
.story-page .eyebrow a { color: var(--accent); text-decoration: none; }
.more { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.more h2 { font-size: 22px; }
.more ul { padding-left: 20px; }
.more li { margin: 8px 0; }

/* Language picker */
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; color: var(--muted); font-size: 15px; font-weight: 500;
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
}
.langs summary::-webkit-details-marker { display: none; }
.langs[open] summary, .langs summary:hover { color: var(--ink); }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 160px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.langs li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.langs li a:hover { background: rgba(244, 241, 234, 0.08); }
.langs li a[aria-current] { color: var(--accent); font-weight: 600; }

/* Contact form */
.form { max-width: 560px; margin: 32px auto 0; display: grid; gap: 16px; text-align: left; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.form input, .form textarea {
  font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form textarea { resize: vertical; min-height: 140px; }
.form button { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.form button:disabled { opacity: 0.6; cursor: default; }
.form .status { margin: 0; min-height: 1.6em; font-size: 15px; }
.form .status.ok { color: var(--accent); }
.form .status.bad { color: #ffb4a8; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
