/* openpresenter.org: the app's colors, the logo's blue-to-violet gradient
   and white. No fonts or anything else from other sites. */

:root {
  --blue: #3B6BFF;
  --violet: #8B5CF6;
  --gradient: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  --ink: #1C1A2E;
  --muted: #5B5874;
  --line: #E6E3F3;
  --tint: #F6F4FE;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28, 26, 46, 0.06), 0 8px 24px rgba(59, 52, 140, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* ----- Navbar ----- */

.navbar {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

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

.nav-link {
  color: var(--ink); text-decoration: none; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
}
.nav-link:hover { background: var(--tint); color: var(--violet); }
.nav-link.current { background: var(--gradient); color: var(--white); }

/* ----- Buttons ----- */

.button {
  display: inline-block;
  background: var(--gradient); color: var(--white);
  font-weight: 700; text-decoration: none;
  padding: 12px 26px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(91, 76, 246, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(91, 76, 246, 0.36); }
.button-light { background: var(--white); color: var(--violet); box-shadow: 0 8px 24px rgba(28, 26, 46, 0.18); }
.button-light:hover { color: var(--blue); }

.badge {
  display: inline-block; vertical-align: middle;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--violet); background: var(--tint); border: 1px solid var(--line);
  padding: 2px 10px; border-radius: 999px;
}

/* ----- Hero and page heads ----- */

.hero, .page-head, .cta { background: var(--gradient); color: var(--white); }
.hero a, .page-head a { color: var(--white); }

.hero-inner { text-align: center; padding: 88px 24px 96px; }
.hero-logo { filter: drop-shadow(0 12px 28px rgba(20, 10, 80, 0.35)); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 0.2em; }
.tagline { font-size: clamp(1.15rem, 2.6vw, 1.45rem); opacity: 0.95; margin: 0 auto 32px; max-width: 34ch; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; opacity: 0.85; font-size: 0.95rem; }

.page-head { padding: 56px 0 48px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.page-head p { margin: 0; opacity: 0.95; }
.page-head .badge { color: var(--white); background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.35); }

/* ----- Sections ----- */

.section { padding: 72px 0; }
.section-tint { background: var(--tint); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-top: 0.4em; }
.section-intro { color: var(--muted); max-width: 70ch; margin-bottom: 32px; }
.lead { font-size: 1.25rem; margin-top: 0; }
.status {
  border-left: 4px solid var(--violet); background: var(--tint);
  padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--muted);
}
.empty { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gradient); }
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.feature h3 {
  font-size: 1.2rem;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.feature ul { margin: 0; padding-left: 1.15em; color: var(--muted); }
.feature li { margin-bottom: 6px; }
.feature li::marker { color: var(--violet); }

.platforms { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.platforms th, .platforms td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.platforms th { background: var(--gradient); color: var(--white); font-weight: 700; }
.platforms tr:last-child td { border-bottom: 0; }

.cta { padding: 72px 0; text-align: center; }
.cta-inner p { opacity: 0.95; margin-bottom: 28px; }
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }

/* ----- Downloads ----- */

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.download-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.download-card h3 { font-size: 1.2rem; }
.requirement { color: var(--muted); flex: 1; margin-top: 0; }
.file-name { color: var(--muted); font-size: 0.85rem; margin: 12px 0 0; overflow-wrap: anywhere; }
.checksums { margin-top: 24px; color: var(--muted); }

.release-list { padding-left: 1.15em; }
.release-list li { margin-bottom: 6px; }

/* ----- Long text ----- */

.prose h2, .notes h2 { font-size: 1.4rem; margin-top: 1.6em; }
.notes h3, .notes h4 { margin-top: 1.4em; }
.prose li, .notes li { margin-bottom: 8px; }

/* ----- Footer ----- */

.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 32px; }
.footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.footer p { margin: 0 0 8px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--violet); }
.footer-brand .brand { margin-bottom: 12px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .hero-inner { padding: 64px 16px 72px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .platforms th, .platforms td { padding: 10px 12px; font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
