/* Dark theme main.css
   Replace the existing main CSS file with this to make the site permanently dark.
*/

/* Typography and global layout */
:root{
  --bg: #0b0d0f;
  --surface: #0f1113;
  --muted: #9aa6b2;
  --text: #e6eef6;
  --heading: #ffffff;
  --link: #58a6ff;
  --code-bg: #111417;
  --cta-border: #3a5561;
  --cta-grad-a: #4b6a73;
  --cta-grad-b: #22343a;
  --danger: #ff6b6b;
}

html,body{
  height:100%;
  margin:0;
  padding:0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  line-height: 1.4;
  font-size: 1.2em;
  max-width: 800px;
  margin: 20px auto;
  padding: 0 10px;
  color: var(--text);
  background: linear-gradient(180deg,var(--bg), #070708 120%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Headings */
h1 {
  font-size: 2.2em;
  margin-top: 0;
  color: var(--heading);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  margin-bottom: 12px;
  margin-top: 24px;
  font-weight: 600;
}

/* Links */
a {
  text-decoration: none;
  color: var(--link);
}

a:hover {
  text-decoration: underline;
  opacity: 0.95;
}

/* Media */
img, video {
  max-width: 100%;
  height: auto;
  display:block;
  border-radius:6px;
}

/* Inline code */
code {
  background: var(--code-bg);
  color: var(--text);
  padding: 3px 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Liberation Mono", monospace;
  font-size: 0.95em;
  border: 1px solid rgba(255,255,255,0.03);
}

/* Menu */
#menu {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  margin: 0 0 12px 0;
  align-items: center;
}

#menu li {
  display: inline-block;
  padding-right: 0.5em;
}

#domain {
  margin-left: auto;
}

#domain a {
  color: var(--muted);
  font-size: 0.95em;
}

/* Banner */
.banner {
  width: 100%;
  margin: 8px 0 18px 0;
  border-radius:8px;
  overflow:hidden;
  box-shadow: 0 6px 18px rgba(2,6,8,0.6);
}

/* Experimental notices */
.experimental {
  margin: 3em 0;
  padding: 1em;
  border: 2px dashed var(--danger);
  color: var(--danger);
  font-weight: bold;
  background: linear-gradient(180deg, rgba(255,107,107,0.04), rgba(255,107,107,0.01));
  border-radius:6px;
}

/* CTA button */
.cta-button, .cta-button:visited {
  border: 1.5px solid var(--cta-border);
  border-radius: 5px;
  padding: 10px;
  display: inline-block;
  margin: 10px 0;
  background: linear-gradient(120deg, var(--cta-grad-a), var(--cta-grad-b));
  color: white !important;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(2,6,8,0.6), inset 0 -2px 6px rgba(0,0,0,0.2);
}

/* Ensure hover remains visible on dark */
.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(2,6,8,0.7), inset 0 -2px 8px rgba(0,0,0,0.25);
}

/* Utility text colors */
.muted { color: var(--muted); }
.small { font-size:0.95em; color:var(--muted); }

/* Card / section surfaces */
.header, .card, section, footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  border: 1px solid rgba(255,255,255,0.03);
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(2,6,8,0.55);
}

/* Forms and inputs (if present on the landing page) */
input, textarea, select, button {
  background: #0b0d0f;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 8px 10px;
  border-radius:6px;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(88,166,255,0.9);
  box-shadow: 0 0 0 4px rgba(88,166,255,0.06);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

th, td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  text-align: left;
}

/* Responsiveness */
@media (max-width:600px){
  body { margin: 12px; padding: 0 8px; font-size:1.05em; }
  h1 { font-size:1.7em; }
  .header, .card { padding:10px; }
}

/* Accessibility and contrast helpers */
:focus {
  outline: 3px solid rgba(88,166,255,0.14);
  outline-offset: 2px;
}

/* Small tweak for places where the repo used very light gray text by default */
.light-ghost {
  color: rgba(255,255,255,0.65);
}

/* End of file */

