/* ===== Theme Tokens ===== */
:root {
  --bg: #0b0d10;
  --bg-elev: #12161a;
  --text: #e7ecf2;
  --muted: #a5b0bc;
  --border: #1f2630;

  /* Greens */
  --green: #23c55e;          /* primary */
  --green-strong: #16a34a;   /* hover/active */
  --green-ghost: rgba(35, 197, 94, 0.15);

  /* Accents */
  --accent: #70b7ff;

  /* Layout */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(0,0,0,0.25);
  --maxw: 840px;
  --gap: 14px;
  --pad: 18px;
  --pad-lg: 24px;

  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --fs: 16px;
  --lh: 1.5;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --bg-elev: #ffffff;
    --text: #0f1720;
    --muted: #5b6775;
    --border: #e5e9ef;
    --shadow: 0 8px 20px rgba(10, 32, 66, 0.08);
    --green-ghost: rgba(5, 125, 60, 0.08);
  }
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs);
  line-height: var(--lh);
  color: var(--text);
  background: radial-gradient(1000px 600px at 60% -10%, rgba(52,101,255,0.10), transparent 60%),
              radial-gradient(900px 700px at -10% 20%, rgba(35,197,94,0.10), transparent 60%),
              var(--bg);
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: var(--maxw);
  padding: var(--pad);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 64px;
  height: 64px;
  /* border-radius: 8px; */
  display: block;
  object-fit: contain;
  background: var(--green-ghost);
}


.site-title {
  font-size: 1.75rem;   /* larger headline */
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0;
}

.site-subtitle {
  font-size: 0.8rem;    /* smaller than before */
  font-weight: 400;
  color: var(--muted);
  margin: 3px 0 0 0;
}




/* ===== Layout ===== */
.container {
  max-width: var(--maxw);
  margin: 40px auto;
  padding: 0 var(--pad);
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--pad-lg);
}

/* ===== Form ===== */
.form { display: grid; gap: var(--gap); }
.label { font-weight: 600; }
.input {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  outline: none;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(112, 183, 255, 0.25);
}

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

/* ===== Buttons ===== */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: transform 0.02s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--green), var(--green-strong));
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 14px rgba(22,163,74,0.25);
}
.btn-primary:hover { filter: brightness(1.02); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--green-ghost);
  border-color: var(--green-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
}

/* ===== QR Output ===== */
.qr-wrap {
  display: grid;
  justify-items: center;
  margin-top: 18px;
}
.qr-box {
  width: 256px;
  height: 256px;
  display: grid;
  place-items: center;
  background: repeating-conic-gradient(from 45deg, transparent 0 25%, rgba(127,127,127,0.06) 0 50%) 0 0/28px 28px,
              linear-gradient(transparent, transparent);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ===== Post actions & hints ===== */
.post-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.hint {
  margin: 8px 0 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
kbd {
  font-family: var(--mono);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-bottom-color: rgba(0,0,0,0.25);
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 36px;
  padding: 18px var(--pad);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}
.muted { color: var(--muted); }

/* ===== Small screens ===== */
@media (max-width: 520px) {
  .qr-box { width: 220px; height: 220px; }
}



.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
