/* mdizzle.app — the MDizzle theme, as a website: ice blue on slate, with gel. */

:root {
  --bg: #2e3440;
  --surface: #3b4252;
  --text: #e5e9f0;
  --muted: #a3adc2;
  --ice: #88c1d0;
  --pink: #f5a8d0;
  --lime: #b5e48c;
  --lemon: #ffe58f;
  --line: rgba(136, 193, 208, 0.3);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  padding: 0 20px;
  color: var(--text);
  font: 17px/1.6 "Trebuchet MS", "Lucida Grande", Verdana, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #9be7ff;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pink);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 2px dotted var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-header nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--ice);
}

/* Hero */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 40px rgba(136, 193, 208, 0.25);
}

h1 {
  margin: 28px 0 8px;
  color: var(--ice);
  font-size: clamp(36px, 7vw, 54px);
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(136, 193, 208, 0.5);
}

.eyebrow {
  margin: 26px 0 0;
  color: var(--pink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(245, 168, 208, 0.4);
}

.hero h1 {
  margin-top: 8px;
  text-wrap: balance;
}

.headline-2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 700;
}

.tagline {
  margin: 0 auto;
  max-width: 34em;
  color: var(--muted);
  font-size: 19px;
}

/* Gel buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.gel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
  padding: 10px 26px;
  border: 1px solid #5e9fb1;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8f8fc 0%, #b4e0ea 46%, #7dbccd 54%, #a6d8e4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -4px 8px rgba(255, 255, 255, 0.35),
    0 6px 18px rgba(136, 193, 208, 0.3);
  color: #16303a;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.gel small {
  font-weight: 400;
  font-size: 13px;
  opacity: 0.8;
}

.gel:hover {
  color: #16303a;
  filter: brightness(1.06);
}

.gel.soon {
  border-color: var(--line);
  background: linear-gradient(180deg, #4c566a 0%, #3b4252 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--muted);
  text-shadow: none;
  pointer-events: none;
}

.price {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.secondary {
  margin-top: 6px;
  font-size: 15px;
}

/* Feature bubbles */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px 0 48px;
}

.bubble {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #384050 0%, #2a303b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.bubble h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.bubble p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.bubble:nth-child(4n + 1) h3 { color: var(--ice); }
.bubble:nth-child(4n + 2) h3 { color: var(--pink); }
.bubble:nth-child(4n + 3) h3 { color: var(--lime); }
.bubble:nth-child(4n + 4) h3 { color: var(--lemon); }

/* Manifesto */
.manifesto {
  margin: 8px 0 40px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--ice);
  border-radius: 18px;
  background: rgba(136, 193, 208, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.manifesto h2,
.faq h2 {
  margin: 0 0 10px;
  color: var(--ice);
  font-size: 26px;
  text-shadow: 0 0 12px rgba(136, 193, 208, 0.45);
}

.manifesto .quote {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 21px;
  font-style: italic;
  font-weight: 700;
}

.manifesto p {
  color: #cfd6e3;
}

/* FAQ */
.faq {
  padding-bottom: 48px;
}

.faq details {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #384050 0%, #2a303b 100%);
}

.faq summary {
  padding: 14px 18px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--ice);
}

.faq details[open] summary::before {
  content: "–";
}

.faq details p {
  margin: 0;
  padding: 0 18px 16px 39px;
  color: var(--muted);
}

/* Text pages (privacy, support, releases) */
.page {
  padding: 40px 0 56px;
}

.page h1 {
  margin-top: 0;
  font-size: clamp(32px, 6vw, 42px);
}

.page h2 {
  margin-top: 36px;
  padding-bottom: 6px;
  border-bottom: 2px dotted var(--line);
  color: var(--ice);
  font-size: 22px;
}

.page h2 .date {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.page .updated {
  color: var(--muted);
  font-size: 15px;
}

.page li {
  margin: 6px 0;
}

code {
  padding: 1px 8px;
  border: 1px solid rgba(136, 193, 208, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, #4c566a 0%, #3b4252 100%);
  color: var(--lemon);
  font-size: 0.88em;
}

/* Footer */
.site-footer {
  padding: 26px 0 40px;
  border-top: 2px dotted var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.rainbow {
  height: 6px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--ice) 20%, var(--pink) 50%, var(--ice) 80%, transparent);
  box-shadow: 0 0 12px rgba(136, 193, 208, 0.45);
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .site-header nav {
    gap: 12px;
  }

  .hero {
    padding-top: 40px;
  }
}
