/* Roundturn site. One small stylesheet, system fonts, no external requests (the CSP allows only this origin). */

:root {
  color-scheme: dark light;
  --bg: #0f1218;
  --panel: #171c26;
  --line: #2a3342;
  --text: #e8ebf0;
  --muted: #a3adbd;
  --accent: #5b9bff;
  --accent-text: #08111f;
  --warn: #f0b35a;
  --radius: 10px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfcfe;
    --panel: #ffffff;
    --line: #d9dfe8;
    --text: #151a23;
    --muted: #4d5a6d;
    --accent: #1f5fd1;
    --accent-text: #ffffff;
    --warn: #8a5a00;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

header.wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 20px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

nav a {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 12px;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

p {
  margin: 0 0 14px;
}

.hero {
  padding-block: 40px 28px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 44rem;
}

.join {
  margin-top: 24px;
  max-width: 34rem;
}

.join label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

button {
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* The honeypot: present for bots, invisible and unreachable for people. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fine {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

section.wrap {
  padding-block: 24px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.not li {
  margin-bottom: 8px;
}

.status {
  border-left: 4px solid var(--warn);
  background: var(--panel);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

article.wrap {
  padding-block: 20px 40px;
  max-width: 44rem;
}

article ul {
  padding-left: 1.2rem;
}

article li {
  margin-bottom: 8px;
}

.draft {
  color: var(--warn);
  font-size: 0.95rem;
}

footer.wrap {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-block: 24px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin-bottom: 8px;
}
