/* Gnome theme layer: GNOME/Adwaita-inspired visual treatment. */
:root {
  --gnome-blue: #3584e4;
  --gnome-blue-dark: #1c71d8;
  --gnome-green: #33d17a;
  --gnome-bg: #f6f5f4;
  --gnome-surface: #ffffff;
  --gnome-text: #241f31;
  --gnome-muted: #5e5c64;
  --gnome-border: rgba(36, 31, 49, .14);
  --gnome-shadow: 0 8px 28px rgba(36, 31, 49, .10);
}

html[data-theme="light"], html:not([data-theme="dark"]) {
  background: var(--gnome-bg);
}

body {
  background: var(--gnome-bg);
  color: var(--gnome-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--gnome-blue-dark); }
a:hover { color: var(--gnome-blue); }

.header, header {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--gnome-border);
  box-shadow: 0 2px 12px rgba(36, 31, 49, .06);
  backdrop-filter: blur(16px);
}

.button, button, input[type="submit"], .button-wrapper button {
  border-radius: 999px;
  background: var(--gnome-blue);
  border-color: var(--gnome-blue);
  box-shadow: 0 3px 8px rgba(53, 132, 228, .22);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button:hover, button:hover, input[type="submit"]:hover {
  background: var(--gnome-blue-dark);
  box-shadow: 0 5px 14px rgba(53, 132, 228, .30);
  transform: translateY(-1px);
}

.card, .tile, .feature, .post, article {
  border: 1px solid var(--gnome-border);
  border-radius: 14px;
  background: var(--gnome-surface);
  box-shadow: var(--gnome-shadow);
}

input, textarea, select {
  border-radius: 10px;
  border-color: var(--gnome-border);
  background: var(--gnome-surface);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gnome-blue);
  box-shadow: 0 0 0 3px rgba(53, 132, 228, .22);
}

.hero, .modular-row.hero {
  background: linear-gradient(135deg, #e7f0ff 0%, #f6f5f4 58%, #e8f7ef 100%);
  border-bottom: 1px solid var(--gnome-border);
}

.footer, footer {
  background: #deddda;
  color: var(--gnome-muted);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --gnome-bg: #241f31;
    --gnome-surface: #302c3b;
    --gnome-text: #f6f5f4;
    --gnome-muted: #c0bfbc;
    --gnome-border: rgba(246, 245, 244, .14);
    --gnome-shadow: 0 8px 28px rgba(0, 0, 0, .25);
  }

  .header, header { background: rgba(48, 44, 59, .92); }
  .hero, .modular-row.hero { background: linear-gradient(135deg, #263b5a, #302c3b 62%, #234532); }
  .footer, footer { background: #1e1b26; }
}
