:root {
  color-scheme: dark;
  --bg: #090d14;
  --panel: rgba(19, 25, 34, 0.94);
  --panel-strong: rgba(27, 35, 48, 0.96);
  --surface: rgba(10, 15, 23, 0.88);
  --border: rgba(154, 171, 196, 0.24);
  --text: #f0f5fb;
  --muted: #a9b7c9;
  --accent: #4b8df7;
  --accent-strong: #73a8ff;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(7, 10, 16, 0.96), rgba(7, 10, 16, 0.76)),
    url("assets/dungeonslice-site-bg.png") center / cover fixed,
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(9, 13, 20, 0.2), rgba(9, 13, 20, 0.92)),
    radial-gradient(circle at 72% 18%, rgba(75, 141, 247, 0.14), transparent 34%);
}

.hero,
main {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 28px 0 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(440px, 1.1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

p {
  margin-bottom: 1rem;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 1;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 1.8vw, 1.95rem);
  line-height: 1.18;
}

h3 {
  margin-bottom: 4px;
  font-size: 1.04rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  max-width: 58ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  padding: 12px 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  border-color: rgba(75, 141, 247, 0.9);
  background: var(--accent);
}

.button.secondary {
  background: rgba(29, 38, 52, 0.88);
}

.download-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-shot,
.section,
.inline-shot,
.shortcut-icon {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-shot {
  padding: 10px;
  box-shadow: none;
}

.image-open {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: zoom-in;
}

.image-open span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(154, 171, 196, 0.42);
  background: rgba(7, 10, 16, 0.86);
  padding: 7px 10px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.image-open:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.hero-shot img,
.inline-shot img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(154, 171, 196, 0.16);
}

main {
  padding-bottom: 56px;
}

.section {
  margin-top: 18px;
  padding: 26px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading p,
.feature-grid p,
.dungeonslice p,
.shortcut-copy p {
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.intro-grid article {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 24px;
  box-shadow: var(--shadow);
}

.usage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.usage-list p {
  color: var(--muted);
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: center;
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(154, 171, 196, 0.16);
}

.step:first-child {
  border-top: 0;
  padding-top: 0;
}

.step span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(75, 141, 247, 0.75);
  background: rgba(75, 141, 247, 0.18);
  color: var(--text);
  font-weight: 800;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.taskbar-shot {
  padding: 18px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(360px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.shortcut-copy ol {
  margin-bottom: 18px;
}

.shortcut-example {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.shortcut-icon {
  display: flex;
  width: 126px;
  min-height: 148px;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.shortcut-icon img {
  width: 92px;
  height: auto;
  max-width: none;
}

pre {
  overflow-x: auto;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 14px;
  color: #dbe8ff;
}

code {
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 0.94rem;
}

.properties-shot {
  padding: 10px;
}

.dungeonslice {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(12, 17, 25, 0.95), rgba(12, 17, 25, 0.74)),
    url("assets/dungeonslice-site-bg.png") center / cover;
}

.dungeonslice img {
  width: 120px;
  height: 120px;
}

.dungeonslice p {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  border: 1px solid rgba(154, 171, 196, 0.36);
  background: #090d14;
  padding: 48px 16px 16px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.75);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.lightbox img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  min-height: 32px;
  border: 1px solid var(--border);
  background: rgba(29, 38, 52, 0.94);
  padding: 6px 12px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .hero,
  main {
    width: min(100% - 24px, 760px);
  }

  .hero-inner,
  .intro-grid,
  .usage-list,
  .setup-layout,
  .shortcut-grid,
  .troubleshooting {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 28px;
  }

  .shortcut-example {
    grid-template-columns: 126px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section,
  .hero-inner,
  .intro-grid article {
    padding: 22px;
  }

  .shortcut-example {
    grid-template-columns: 1fr;
  }

  .image-open span {
    position: static;
    margin-top: 8px;
    display: inline-flex;
  }

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