/* Shykanov Creation — shared styles
   Dark by default, light when the OS prefers light. */

:root {
  --bg: #14171f;
  --bg-alt: #1c2030;
  --card: #1f2433;
  --text: #e7e9f0;
  --text-muted: #aab0c4;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --border: #2c3346;
  --radius: 10px;
  --max-width: 1000px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fb;
    --bg-alt: #ffffff;
    --card: #ffffff;
    --text: #1c2030;
    --text-muted: #565d75;
    --accent: #0369a1;
    --accent-strong: #0284c7;
    --border: #dde1ec;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent-strong);
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / nav */

.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

.brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Main content */

main {
  padding: 2.5rem 0 3rem;
}

.hero {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2.25rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 65ch;
}

section {
  margin-bottom: 2.75rem;
}

section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

section > p {
  color: var(--text-muted);
}

h1, h2, h3 {
  line-height: 1.25;
}

/* Cards */

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  color: var(--accent);
  border: 1px solid var(--border);
}

/* Definition-style info list (used on Contact page) */

.info-list {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 0.6rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.info-list dt {
  font-weight: 600;
  color: var(--text-muted);
}

.info-list dd {
  margin: 0;
}

@media (max-width: 560px) {
  .info-list {
    grid-template-columns: 1fr;
  }

  .info-list dt {
    margin-top: 0.75rem;
  }

  .info-list dt:first-child {
    margin-top: 0;
  }
}

/* Lists */

ul.plain {
  padding-left: 1.25rem;
}

ul.plain li {
  margin-bottom: 0.4rem;
}

code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.9em;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .container {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Responsive tweaks */

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .site-nav {
    gap: 0.4rem 1rem;
  }
}
