/* The Stormopedia's field-guide pages share the Dust Devil website's type and navigation. */
.stormo-page {
  --guide-night: #101216;
  --guide-paper: #211b19;
  --guide-rule: #8c634958;
  --guide-accent: #ffc487;
  background: var(--guide-night);
}
.stormo-page .topbar nav { flex-wrap: wrap; row-gap: 10px; }
.stormo-page .topbar nav a[aria-current=page] { color: var(--guide-accent); }
.stormo { padding-bottom: 20px; }
.stormo-forms { --guide-accent: #ffba7e; }
.stormo-foes { --guide-accent: #ffd77f; }
.stormo-places { --guide-accent: #b9e1a1; }
.stormo-disasters { --guide-accent: #e1c2ff; }

.stormo-hero {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(460px, 41vw, 610px);
  padding-block: 32px 76px;
}
.stormo-topic-hero { min-height: clamp(335px, 34vw, 490px); }
.stormo-scene { position: absolute; inset: 0 0 0 19%; z-index: -2; }
.stormo-scene img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 62% 52%; }
.stormo-hero::before, .stormo-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stormo-hero::before { background: linear-gradient(90deg, #101216 20%, #101216f5 30%, #10121690 52%, transparent 78%); }
.stormo-hero::after { background: linear-gradient(0deg, #101216, #10121690 13%, transparent 38%); }
.stormo-hero h1 { font-size: clamp(45px, 6.7vw, 96px); max-width: 11ch; line-height: .96; }
.stormo-lede { color: #f1ddd0; font-size: clamp(16px, 1.6vw, 20px); margin: 22px 0 25px; max-width: 39ch; }
.stormo-hero .eyebrow { color: var(--guide-accent); }
.stormo-hero .eyebrow span { margin-inline: .36em; }
.stormo .button { display: inline-flex; align-items: center; gap: .75em; }
#chapters, .stormo-index { scroll-margin-top: 24px; }
#chapters > h2 { margin: 0 0 22px; }

.stormo-topics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.stormo-topic {
  position: relative;
  display: grid;
  isolation: isolate;
  align-items: end;
  min-height: 290px;
  height: 100%;
  border: 1px solid var(--guide-rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--guide-paper);
}
.stormo-topic:hover { text-decoration: none; border-color: var(--guide-accent); }
.stormo-topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 48%; z-index: -2; }
.stormo-topic::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #12100f 8%, #12100fe8 29%, transparent 92%); z-index: -1; }
.stormo-topic-copy { padding: 80px clamp(18px, 3.2vw, 34px) 22px; }
.stormo-topic h3 { font-size: clamp(29px, 3.5vw, 46px); font-style: italic; margin: 4px 0; }
.stormo-topic p { color: #f1ddd0; font-size: 15px; max-width: 48ch; }
.stormo-count, .stormo-open { color: var(--guide-accent); font-size: 13px; font-weight: 750; }
.stormo-open { display: inline-block; margin-top: 10px; }
.stormo-topic:hover .stormo-open { text-decoration: underline; }

.stormo-stages {
  margin-top: 48px;
  padding: clamp(18px, 4vw, 42px);
  border: 1px solid var(--guide-rule);
  border-radius: 12px;
  background: radial-gradient(ellipse at top left, #553521 0, transparent 70%), var(--guide-paper);
}
.stormo-stages p { color: #e5cbba; margin-top: 12px; max-width: 62ch; }
.stormo-stages ol {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.stormo-stage {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  background: #100b0790;
  border-top: 3px solid #cb9763;
}
.stormo-stage.s5 { border-color: #ff8c34; }
.stormo-stage b { font-size: 22px; font-style: italic; color: var(--guide-accent); }
.stormo-stage span { font-weight: 700; font-size: 14px; }
.stormo-stage small { color: #e5cbba; font-size: 12px; }

.stormo-index {
  margin-bottom: 22px;
  padding: 12px clamp(16px, 3vw, 29px);
  background: var(--guide-paper);
  border: 1px solid var(--guide-rule);
  border-radius: 10px;
}
.stormo-index summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-weight: 800; color: var(--guide-accent); }
.stormo-index ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 188px), 1fr));
  gap: 1px 16px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.stormo-index a { display: block; min-height: 44px; border-bottom: 1px solid var(--guide-rule); padding: 10px 0; }

.stormo-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.stormo-entry {
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--guide-rule);
  border-radius: 9px;
  background: linear-gradient(140deg, #33241b70, transparent 56%), #191718;
  scroll-margin-top: 24px;
  overflow-wrap: anywhere;
}
.stormo-entry:target { border-color: var(--guide-accent); box-shadow: 0 0 0 2px #ff8c3455; }
.stormo-entry h2 { font-size: clamp(23px, 2.65vw, 34px); letter-spacing: -.03em; color: var(--guide-accent); }
.stormo-effect { font-weight: 700; font-size: 16px; margin-top: 8px; }
.stormo-joke, .stormo-headline { color: #e5cbba; font-size: 14px; margin-top: 8px; }
.stormo-headline { font-style: italic; }
.stormo-hint { color: #e5cbba; font-size: 14px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--guide-rule); }
.stormo-hint span { display: block; color: var(--guide-accent); font-size: 12px; font-weight: 750; margin-bottom: 3px; }
.stormo-cta { text-align: center; padding: 38px 0 24px; }

@media (max-width: 1000px) {
  .stormo-stages ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .stormo-hero, .stormo-topic-hero {
    --image-height: clamp(215px, 60vw, 350px);
    min-height: 0;
    padding-block: calc(var(--image-height) - 38px) 34px;
  }
  .stormo-scene { inset: 0 0 auto; height: var(--image-height); }
  .stormo-hero::before { height: var(--image-height); background: linear-gradient(0deg, #101216, #10121675 22%, transparent 50%); }
  .stormo-hero::after { display: none; }
  .stormo-lede { margin-block: 15px 20px; }
  .stormo-page .topbar nav { justify-content: flex-start; gap: 12px 16px; }
  .stormo-topics, .stormo-entries { grid-template-columns: 1fr; }
  .stormo-index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stormo-stages ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
