/* Forever Raid site. Night navy, teal, bronze and cream, from the v7 mockup and the campfire icon. */

/* Fonts are served from this site (assets/fonts, SIL OFL 1.1, see LICENSES.txt). Latin subset.
   Headings: Bricolage Grotesque, one variable file for weights 600 to 700 (96pt optical size).
   Body and UI: Hanken Grotesk, one variable file for weights 400 to 700. Both draw a flagged 1 and an oval 0. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bricolage's 0 is nearly as round as its O, so heading digits come from Hanken Grotesk
   (already downloaded for the body, so no extra file). Only 0-9 use this face. size-adjust
   matches Hanken's digit height (697) to Bricolage's cap height (660). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  size-adjust: 94.7%;
  unicode-range: U+0030-0039;
}

/* Fallbacks tuned to the web fonts' width and line metrics, so the swap barely moves text.
   Numbers come from the font files compared with Arial (English letter frequency). */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  font-weight: 600 700;
  size-adjust: 92.4%;
  ascent-override: 100.7%;
  descent-override: 29.2%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Hanken Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 101.7%;
  ascent-override: 98.3%;
  descent-override: 29.8%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;

  --bg: #0d1726;
  --panel: #14233a;
  --panel-2: #1a2c47;
  --line: #2a3b55;
  --tile: #1b3456;

  --cream: #f3eee2;
  --ink-2: #b9b4a6;
  --bronze: #a17d57;
  --bronze-lt: #d9b88a;
  --frame: #cbb696;
  --teal: #0f6064;
  --teal-hi: #13777c;
  --glow: #5fd7c9;
  --ember: #e07a2a;
  --ember-ink: #f2a65a;
  --gold: #ffd100;

  --dc-bg: #313338;
  --dc-card: #2b2d31;
  --dc-text: #dbdee1;
  --dc-muted: #b5bac1;
  --dc-green: #248046;
  --dc-red: #da373c;
  --dc-grey: #4e5058;

  /* Class colors (RAID_CLASS_COLORS), used only inside the small class emoji */
  --c-druid: #ff7c0a;
  --c-hunter: #aad372;
  --c-mage: #3fc7eb;
  --c-paladin: #f48cba;
  --c-priest: #ffffff;
  --c-rogue: #fff468;
  --c-shaman: #0070dd;
  --c-warlock: #8788ee;
  --c-warrior: #c69b6d;

  --display: "Bricolage Grotesque", "Bricolage Fallback", "Segoe UI", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Hanken Fallback", "Segoe UI", system-ui, sans-serif;
  /* Heading steps: each at least 1.25x the next at 390px and at 1280px */
  --h1: clamp(2.45rem, 1.6rem + 2.7vw, 3.4rem);
  --h2: clamp(1.8rem, 1.5rem + 1vw, 2.25rem);
  --h3: 1.4375rem;
  --h4: 1.15rem;
  --h1-page: clamp(2.1rem, 1.6rem + 1.9vw, 2.75rem);
  --h2-page: 1.625rem;
  --h3-page: 1.25rem;
  --dfont: "gg sans", "Noto Sans", "Segoe UI", system-ui, sans-serif;

  /* Corner ornaments from the v7 mockup (thin bronze, no baroque scrolls) */
  --cTL: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23CBB696' stroke-width='1.3'%3E%3Cpath d='M1.5 29V11Q1.5 1.5 11 1.5H29'/%3E%3Cpath d='M6 29V14Q6 6 14 6H29' opacity='.5'/%3E%3Cpath d='M11 13.5a2.5 2.5 0 1 1 2.5-2.5'/%3E%3C/svg%3E");
  --cTR: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23CBB696' stroke-width='1.3'%3E%3Cg transform='translate(30 0) scale(-1 1)'%3E%3Cpath d='M1.5 29V11Q1.5 1.5 11 1.5H29'/%3E%3Cpath d='M6 29V14Q6 6 14 6H29' opacity='.5'/%3E%3Cpath d='M11 13.5a2.5 2.5 0 1 1 2.5-2.5'/%3E%3C/g%3E%3C/svg%3E");
  --cBL: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23CBB696' stroke-width='1.3'%3E%3Cg transform='translate(0 30) scale(1 -1)'%3E%3Cpath d='M1.5 29V11Q1.5 1.5 11 1.5H29'/%3E%3Cpath d='M6 29V14Q6 6 14 6H29' opacity='.5'/%3E%3Cpath d='M11 13.5a2.5 2.5 0 1 1 2.5-2.5'/%3E%3C/g%3E%3C/svg%3E");
  --cBR: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23CBB696' stroke-width='1.3'%3E%3Cg transform='translate(30 30) scale(-1 -1)'%3E%3Cpath d='M1.5 29V11Q1.5 1.5 11 1.5H29'/%3E%3Cpath d='M6 29V14Q6 6 14 6H29' opacity='.5'/%3E%3Cpath d='M11 13.5a2.5 2.5 0 1 1 2.5-2.5'/%3E%3C/g%3E%3C/svg%3E");

  --wrap: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-size-adjust: from-font;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--bronze-lt);
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h2 {
  font-size: var(--h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--h3);
  font-weight: 600;
}

h4 {
  font-weight: 700;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

code {
  color: var(--cream);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
}

/* Every full-width band carries the same side gutter, so content lines up on one edge */
.site-head,
.site-foot,
.legal,
.docs,
.page-plain,
.hero,
.section,
.forever {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 48rem) {
  .site-head,
  .site-foot,
  .legal,
  .docs,
  .page-plain,
  .hero,
  .section,
  .forever {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cream);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

.skip:hover {
  color: var(--bg);
}

/* Header */

.site-head {
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-block-size: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.25rem;
}

.brand img {
  border-radius: 8px;
  image-rendering: pixelated;
}

/* Main nav: one list. Phones open it as a native popover from the Menu button (no script);
   wide screens show the same list inline. Modern Web Guidance "navbar", with a CSS breakpoint
   because the site runs no script for layout. */
.menu-button {
  anchor-name: --menu-button;
  min-block-size: 2.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--bronze);
  border-radius: 6px;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-button:hover {
  background: var(--panel-2);
}

.site-menu {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  /* Popover placement under the Menu button; the first line is the fallback without anchor positioning */
  position: fixed;
  inset: auto;
  inset-block-start: 6.5rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  margin-block-start: 0.5rem;
  inline-size: min(80dvw, 18rem);
  max-block-size: calc(100dvh - 8rem);
  overflow: auto;
  background: var(--panel);
  color: var(--cream);
  /* The popover's UA border is replaced by a ring, so the wide inline list has no box at all */
  border: 0;
  box-shadow: 0 0 0 1px var(--bronze), 0 8px 24px rgb(0 0 0 / 0.4);
  border-radius: 8px;
}

.site-menu a {
  display: block;
  padding: 0.6rem 0.8rem;
  color: var(--cream);
  text-decoration: none;
  border-radius: 4px;
}

.site-menu a:hover {
  background: var(--panel-2);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--bronze-lt);
  text-decoration-thickness: 2px;
}

@media (min-width: 60rem) {
  .menu-button {
    display: none;
  }

  .site-menu {
    position: static;
    display: flex;
    gap: 1.5rem;
    inline-size: auto;
    max-block-size: none;
    overflow: visible;
    margin: 0;
    /* Matches the pull-back below, so the links line up with the page edge */
    padding: 0.5rem;
    margin-inline-end: -0.5rem;
    box-shadow: none;
    background: transparent;
  }

  .site-menu a {
    display: inline;
    padding: 0;
    color: var(--ink-2);
  }

  .site-menu a:hover,
  .site-menu a[aria-current="page"] {
    background: transparent;
    color: var(--cream);
  }
}

/* Site-wide notice: one calm line, not sticky, not dismissible (no script, no cookies) */
.site-notice {
  background: #101c2e;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 1rem;
  text-align: center;
  padding: 0.45rem 1.25rem;
}

.site-notice p {
  margin: 0;
}

.site-notice strong {
  color: var(--ember-ink);
}

/* Hero: a flat surface. A bronze hairline closes it off, the Forever site motif. */

.hero {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgb(161 125 87 / 0.5);
}

@media (min-width: 48rem) {
  .hero {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }
}

/* Phone order follows the DOM: copy, raid post, raid sizes, so the post's top shows on the first screen.
   Desktop: copy and raid sizes sit centered beside the post, which spans every row. */
.hero .wrap {
  display: grid;
  gap: 2rem;
}

@media (min-width: 60rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      ".     post"
      "copy  post"
      "strip post"
      ".     post";
    column-gap: 4rem;
    row-gap: 0;
  }

  .hero-copy {
    grid-area: copy;
  }

  .hero .frame {
    grid-area: post;
  }

  .hero .raid-strip {
    grid-area: strip;
  }
}

.hero h1 {
  font-size: var(--h1);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-bottom: 0.4em;
}

/* Lead-in under the hero headline: between body and H1 in size, bronze, sentence case */
.hero-sub {
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  font-weight: 500;
  line-height: 1.4;
  max-width: 30ch;
  color: var(--bronze-lt);
  margin-bottom: 0.9rem;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  max-width: 40ch;
  color: var(--cream);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-block-size: 3rem;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: var(--cream);
  border: 1px solid var(--glow);
}

.btn-primary:hover {
  background: var(--teal-hi);
  color: var(--cream);
}

/* Not live yet: shown, labeled, and inert */
.btn-soon {
  cursor: not-allowed;
  background: transparent;
  color: var(--ink-2);
  border: 1px dashed rgb(217 184 138 / 0.6);
  flex-wrap: wrap;
}

.btn-soon small {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ember-ink);
}

.cta-note a {
  white-space: nowrap;
}

.cta-note {
  margin: 0.9rem 0 0;
  color: var(--ink-2);
  font-size: 1rem;
}

.raid-strip {
  padding-top: 1.25rem;
  border-top: 1px solid rgb(161 125 87 / 0.45);
}

@media (min-width: 60rem) {
  .raid-strip {
    margin-top: 2rem;
  }
}

.raid-strip p {
  margin: 0 0 0.6rem;
  color: var(--ink-2);
  font-size: 1rem;
}

.raid-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.raid-strip li {
  font-variant-numeric: tabular-nums lining-nums;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  border: 1px solid rgb(161 125 87 / 0.6);
  border-radius: 4px;
  padding: 0.25rem 0.7rem;
  background: rgb(8 6 4 / 0.25);
}

.raid-strip b {
  font-weight: 700;
  color: var(--bronze-lt);
  margin-left: 0.3rem;
}

/* Framed product pictures (thin bronze line) */

figure {
  margin: 0;
}

.frame {
  padding: 0.75rem;
  border: 1px solid rgb(161 125 87 / 0.6);
  border-radius: 12px;
  background: var(--panel);
}

.frame figcaption {
  font-size: 0.95rem;
  color: var(--ink-2);
  padding: 0.75rem 0.25rem 0.1rem;
}

/* Discord mock */

.dc {
  background: var(--dc-bg);
  color: var(--dc-text);
  font-family: var(--dfont);
  font-size: 0.9375rem;
  line-height: 1.4;
  border-radius: 8px;
  padding: 0.9rem 0.9rem 1rem;
  text-align: start;
}

.dc-chan {
  font-weight: 700;
  color: var(--dc-muted);
  font-size: 0.875rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #3f4147;
}

.dc-msg {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0 0.75rem;
}

.dc-av {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  image-rendering: pixelated;
}

.dc-name {
  font-weight: 700;
  color: #f2f3f5;
}

.dc-app {
  display: inline-block;
  background: #5865f2;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 3px;
  padding: 0 0.3rem;
  margin-inline: 0.3rem;
  vertical-align: 0.1em;
}

.dc-time {
  color: var(--dc-muted);
  font-size: 0.75rem;
}

.dc-line {
  margin: 0.15rem 0 0.5rem;
}

.dc-cmd {
  color: var(--dc-muted);
  font-size: 0.875rem;
  margin: 0 0 0.4rem;
}

.dc-cmd b {
  color: #c9cdfb;
  font-weight: 400;
}

/* Components V2 container: Discord draws the accent color as a left stripe on a gray box */
.dc-ctr {
  --acc: #2aa7b0;
  background: var(--dc-card);
  border: 1px solid #3f4147;
  /* impeccable-disable-next-line side-tab -- this mock copies Discord's own left accent stripe */
  border-inline-start: 4px solid var(--acc);
  border-radius: 6px;
  padding: 0.75rem 0.9rem 0.85rem;
}

.dc-ctr.bronze {
  --acc: var(--bronze);
}

.dc-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #f2f3f5;
  margin: 0 0 0.2rem;
}

/* Discord timestamp: a gray chip that renders in each reader's own time zone */
.ts {
  background: rgb(255 255 255 / 0.08);
  border-radius: 3px;
  padding: 0 0.25rem;
  color: var(--dc-text);
}

.mention {
  background: rgb(88 101 242 / 0.3);
  color: #c9cdfb;
  border-radius: 3px;
  padding: 0 0.2rem;
}

.dc-sub {
  color: var(--dc-muted);
  font-size: 0.875rem;
  margin: 0 0 0.6rem;
}

.dc-need {
  font-weight: 700;
  color: #f2f3f5;
  margin: 0 0 0.4rem;
}

.dc-hint {
  color: var(--dc-muted);
  font-size: 0.8125rem;
  margin: 0.4rem 0 0;
}

.dc-dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 0.75rem;
  margin: 0 0 0.75rem;
}

.dc-dl dt {
  color: var(--dc-muted);
}

.dc-dl dd {
  margin: 0;
}

.dc-dl small {
  display: block;
  color: var(--dc-muted);
  font-size: 0.8125rem;
}

.meters {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.meters li {
  display: grid;
  grid-template-columns: 4.25rem 2.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums lining-nums;
}

/* At most 10 cells, like the bot; fixed width so they never squash into slivers */
.cells {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.cells i {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  background: #3ba55c;
}

.cells i.off {
  background: var(--dc-grey);
}

.dc-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.dc-btn {
  display: inline-block;
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  background: var(--dc-grey);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.dc-btn.go {
  background: var(--dc-green);
}

.dc-btn.red {
  background: var(--dc-red);
}

/* Role sections: names with a class emoji, the role button to the right */
.dc-sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2rem 0.6rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid #3f4147;
  font-size: 0.875rem;
}

.dc-sec p {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.6;
}

.dc-sec b {
  color: #f2f3f5;
}

.nm {
  white-space: nowrap;
  margin-right: 0.45rem;
}

/* App emoji, drawn in the Forever style: a bronze-rimmed gem in the class color */
.ce {
  display: inline-grid;
  width: 1.05em;
  height: 1.22em;
  vertical-align: -0.24em;
  margin-right: 0.3em;
  background: linear-gradient(#e6c48f, #7a5a2c);
  clip-path: polygon(50% 0, 100% 19%, 100% 60%, 50% 100%, 0 60%, 0 19%);
}

.ce::after {
  content: "";
  margin: 2px;
  clip-path: inherit;
  background: linear-gradient(165deg, var(--c), color-mix(in oklab, var(--c) 52%, #000));
}

.dr { --c: var(--c-druid); }
.hu { --c: var(--c-hunter); }
.ma { --c: var(--c-mage); }
.pa { --c: var(--c-paladin); }
.pr { --c: var(--c-priest); }
.ro { --c: var(--c-rogue); }
.sh { --c: var(--c-shaman); }
.wl { --c: var(--c-warlock); }
.wa { --c: var(--c-warrior); }

.dc-eph {
  color: var(--dc-muted);
  font-size: 0.75rem;
  margin: 0.5rem 0 0;
}

/* Phones: tighter Discord frames so meters and names fit */
@media (max-width: 30rem) {
  .frame {
    padding: 0.4rem;
  }

  .dc {
    padding: 0.75rem 0.6rem 0.8rem;
  }

  .dc-msg {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0 0.5rem;
  }

  .dc-av {
    width: 2rem;
    height: 2rem;
  }

  .dc-ctr {
    padding: 0.65rem 0.7rem 0.75rem;
  }

  .meters li {
    grid-template-columns: 3.9rem 2.4rem minmax(0, 1fr);
  }

  .cells i {
    width: 0.625rem;
    height: 0.625rem;
  }
}

/* Sections */

.section {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

@media (min-width: 48rem) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-alt {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--ink-2);
}

/* How it works: numbered rows that alternate at desktop */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.step {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 56rem) {
  .step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: center;
  }

  .step:nth-child(even) .step-text {
    order: 2;
  }
}

.step-num {
  font-variant-numeric: tabular-nums lining-nums;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--bronze);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--bronze-lt);
  margin-bottom: 0.9rem;
}

.step-text p {
  color: var(--ink-2);
  max-width: 40ch;
}

.step-aside {
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  background: rgb(8 6 4 / 0.25);
  outline: 1px solid rgb(203 182 150 / 0.35);
  border-radius: 4px;
}

.zones {
  max-width: 26rem;
  margin-top: 1.25rem;
}

.zones-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.zones ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.zones li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-size: 1rem;
  font-variant-numeric: tabular-nums lining-nums;
}

.zones li span:last-child {
  color: var(--bronze-lt);
}

/* Made for Forever: an ornate band with the campfire */

.forever {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

#features {
  padding-top: 1.5rem;
}

/* Plain panel for Made for Forever; the corner frame is kept once, on the closing section */
.band,
.ornate {
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #101c2e;
}

.ornate {
  background:
    var(--cTL) top 8px left 8px / 28px 28px no-repeat,
    var(--cTR) top 8px right 8px / 28px 28px no-repeat,
    var(--cBL) bottom 8px left 8px / 28px 28px no-repeat,
    var(--cBR) bottom 8px right 8px / 28px 28px no-repeat,
    #101c2e;
  outline: 1px solid rgb(203 182 150 / 0.45);
  outline-offset: -14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

@media (min-width: 48rem) {
  .band,
  .ornate {
    padding: 3rem 3.25rem;
  }
}

/* Phones: one frame line instead of two, so the text keeps its width */
@media (max-width: 30rem) {
  .ornate {
    border: 0;
    outline-offset: 0;
    padding: 2rem 1.25rem;
  }
}

.forever-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.forever-head img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 14px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px var(--bronze), 0 0 0 4px #101c2e, 0 0 0 5px rgb(161 125 87 / 0.45);
}

@media (min-width: 48rem) {
  .forever-head img {
    width: 7rem;
    height: 7rem;
  }
}

.forever-head div {
  flex: 1 1 18rem;
}

.forever-head h2 {
  margin-bottom: 0.25em;
}

.forever-head p {
  color: var(--ink-2);
  margin: 0;
}

.facts {
  display: grid;
  margin: 0;
  border-top: 1px solid rgb(161 125 87 / 0.45);
}

.facts > div {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgb(161 125 87 / 0.3);
}

@media (min-width: 48rem) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }

  .facts > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

.facts dt {
  font-variant-numeric: tabular-nums lining-nums;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--bronze-lt);
  margin-bottom: 0.3rem;
}

.facts dd {
  margin: 0;
  color: var(--ink-2);
}

/* Features. Live sits in an in-game window frame from the v7 mockup. */

.gw {
  background: linear-gradient(180deg, #2b2424, #251f1f);
  border: 3px solid #574121;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px rgb(255 209 0 / 0.12);
}

.gw-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(#2e1c0c, #231509);
  border-bottom: 1px solid #000;
  color: var(--gold);
  font-size: var(--h3);
  padding: 0.6rem 1rem;
  margin: 0;
}

.live-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
  display: grid;
}

@media (min-width: 48rem) {
  .live-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
    padding: 0.75rem 2rem 1.25rem;
  }
}

.live-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgb(161 125 87 / 0.28);
}

.live-list li:last-child {
  border-bottom: 0;
}

@media (min-width: 48rem) {
  .live-list li:nth-last-child(2) {
    border-bottom: 0;
  }
}

.live-list h4 {
  font-size: var(--h4);
  color: #f6e7c8;
  margin: 0 0 0.25rem;
}

.live-list p {
  margin: 0;
  color: #d8cfbf;
}

.tag {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 999px;
  padding: 0 0.6rem;
  white-space: nowrap;
}

.tag-live {
  color: var(--glow);
  border: 1px solid rgb(95 215 201 / 0.55);
}

.tag-coming {
  color: var(--ember-ink);
  border: 1px solid rgb(242 166 90 / 0.55);
}

.coming {
  margin-top: 2.5rem;
}

.coming h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--h3);
}

.coming ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 40rem) {
  .coming ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .coming ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.coming li {
  border: 1px dashed rgb(242 166 90 / 0.4);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  color: var(--ink-2);
  font-size: 1rem;
}

.coming li b {
  display: block;
  color: var(--cream);
  font-size: 1.05rem;
}

/* Setup: steps beside the /raidsettings card */

.setup {
  display: grid;
  gap: 2.5rem;
}

/* The setup steps already say what the settings card shows, so phones skip the card */
@media (max-width: 47.99rem) {
  .setup-card {
    display: none;
  }
}

@media (min-width: 60rem) {
  .setup {
    grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
    gap: 4rem;
    align-items: center;
  }
}

.setup .section-head {
  margin-bottom: 2rem;
}

.setup-list {
  counter-reset: s;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.setup-list li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.9rem;
}

.setup-list li::before {
  font-variant-numeric: tabular-nums lining-nums;
  content: counter(s);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--bronze);
  color: var(--bronze-lt);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}

.setup-list b {
  display: block;
  font-size: 1.1rem;
}

.setup-list span {
  color: var(--ink-2);
}

/* Have your AI agent set it up: sits under the setup steps, on the same band */

.agent-setup {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.agent-setup > p {
  max-width: 60ch;
  color: var(--ink-2);
}

.agent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0.75rem;
}

.agent-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-agent {
  min-inline-size: 8rem;
  background: var(--panel);
  color: var(--cream);
  border: 1px solid var(--bronze);
}

.btn-agent:hover {
  background: var(--tile);
  color: var(--cream);
  border-color: var(--bronze-lt);
}

.agent-soon {
  margin: 0;
  padding: 0.35rem 0.8rem;
  border: 1px dashed rgb(217 184 138 / 0.6);
  border-radius: 6px;
  color: var(--ember-ink);
  font-size: 1rem;
  font-weight: 700;
}

.agent-setup > .agent-note {
  font-size: 1rem;
}

.agent-prompt {
  margin-top: 1.5rem;
  max-width: 48rem;
}

.agent-prompt label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.agent-prompt textarea {
  display: block;
  inline-size: 100%;
  min-block-size: 12rem;
  field-sizing: content;
  resize: vertical;
  padding: 0.9rem 1rem;
  background: var(--panel-2);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.9rem;
}

.btn-copy {
  background: var(--teal);
  color: var(--cream);
  border: 1px solid var(--glow);
}

.btn-copy:hover {
  background: var(--teal-hi);
}

.btn-copy[hidden] {
  display: none;
}

.btn-copy[data-failed] {
  border-color: var(--ember);
}

.copy-tip {
  color: var(--glow);
  font-weight: 700;
}

.btn-copy[data-failed] + .copy-tip {
  color: var(--ember-ink);
}

.agent-md {
  margin-top: 1.5rem;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Pricing: heading above the two panels, like every other section */

.plans {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 48rem) {
  .plans {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.plan {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.plan-free {
  border-color: rgb(161 125 87 / 0.7);
}

.plan h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.plan .price {
  color: var(--bronze-lt);
}

.plan p {
  color: var(--ink-2);
  margin: 0;
}

/* FAQ: every answer open, two columns at desktop */

.faq {
  margin-top: 2rem;
  columns: 2 24rem;
  column-gap: 3rem;
}

.qa {
  break-inside: avoid;
  padding: 1.1rem 0 0.4rem;
  border-top: 1px solid var(--line);
  margin-bottom: 1rem;
}

.qa h3 {
  font-size: var(--h3);
  color: var(--cream);
}

.qa p,
.qa li {
  color: var(--ink-2);
}

.qa strong {
  color: var(--cream);
}

.perms {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: grid;
  gap: 0.25rem;
}

/* Each reason sits on its own line under the permission name */
.perms li strong {
  display: block;
}

/* Early access */

.early-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
}

.early-wrap img {
  width: 6rem;
  height: 6rem;
  border-radius: 16px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px var(--bronze), 0 0 0 4px var(--bg), 0 0 0 5px rgb(161 125 87 / 0.45);
}

.early-wrap > div {
  flex: 1 1 20rem;
}

.early-wrap p {
  color: var(--ink-2);
}

.early-note {
  margin: 0;
  color: var(--cream);
  font-weight: 700;
}

/* Placeholders that must be filled before launch: loud on purpose */

.todo-slot {
  margin: 0;
  border: 2px dashed var(--ember);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--ember-ink);
  font-weight: 700;
  background: rgb(224 122 42 / 0.08);
}

.todo {
  background: rgb(224 122 42 / 0.15);
  border: 1px dashed var(--ember);
  border-radius: 3px;
  padding: 0 0.3rem;
  color: var(--ember-ink);
  font-weight: 700;
}

.todo::after {
  content: " (fill before launch)";
  font-weight: 400;
  font-size: 0.875rem;
}

/* Footer */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  color: var(--ink-2);
  font-size: 1rem;
}

.site-foot nav ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.site-foot nav a {
  display: inline-block;
  padding-block: 0.3rem;
  min-block-size: 2rem;
}

.site-foot p {
  max-width: 60ch;
  margin: 0 0 0.75rem;
}

/* Legal pages */

.legal {
  padding-block: 3rem 4rem;
}

.legal article {
  max-width: 42rem;
}

.legal h1 {
  font-size: var(--h1-page);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.legal h2 {
  font-size: var(--h2-page);
  margin-top: 2.2rem;
}

.legal ul,
.legal ol {
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

.draft-note {
  display: inline-block;
  border: 1px solid rgb(161 125 87 / 0.6);
  border-radius: 6px;
  background: rgb(161 125 87 / 0.08);
  padding: 0.3rem 0.8rem;
  margin: 0 0 2rem;
  color: var(--ink-2);
  font-size: 1rem;
}

.draft-note strong {
  color: var(--ember-ink);
}

.updated {
  color: var(--ink-2);
}

.back-link {
  margin: 0 0 1.25rem;
}

/* "What is Forever Raid?": a short definition answer engines can quote */

.define {
  padding-top: 2.5rem;
  padding-bottom: 0;
}

@media (min-width: 48rem) {
  .define {
    padding-top: 3.5rem;
  }
}

.define .wrap {
  display: grid;
  gap: 0.5rem 4rem;
}

@media (min-width: 60rem) {
  .define .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.define h2 {
  font-size: var(--h3);
}

.define p {
  color: var(--ink-2);
  max-width: 60ch;
}

.define p strong {
  color: var(--cream);
}

/* Docs: article first in the source, sidebar on the left at desktop, below the article on phones */

.docs {
  padding-block: 2rem 4rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

@media (min-width: 60rem) {
  .docs-grid {
    grid-template-columns: 15rem minmax(0, 1fr);
    grid-template-areas: "nav doc";
    column-gap: 4rem;
    align-items: start;
  }

  .doc {
    grid-area: doc;
  }

  .docs-nav {
    grid-area: nav;
    position: sticky;
    top: 1.5rem;
  }
}

.doc {
  max-width: 46rem;
}

.doc h1 {
  font-size: var(--h1-page);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.doc h2 {
  font-size: var(--h2-page);
  margin-top: 2.2rem;
}

.doc h3 {
  font-size: var(--h3-page);
  margin-top: 1.6rem;
}

.doc ul,
.doc ol {
  padding-left: 1.3rem;
}

.doc li + li {
  margin-top: 0.35rem;
}

.doc code {
  overflow-wrap: anywhere;
}

.docs-nav {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

@media (min-width: 60rem) {
  .docs-nav {
    border-top: 0;
    border-inline-end: 1px solid var(--line);
    padding-top: 0.5rem;
  }
}

.docs-nav-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--bronze-lt);
  margin-bottom: 0.5rem;
}

.docs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.docs-nav a {
  display: block;
  padding: 0.35rem 0.75rem 0.35rem 0;
  color: var(--ink-2);
  text-decoration: none;
}

.docs-nav a:hover {
  color: var(--cream);
}

.docs-nav a[aria-current="page"] {
  color: var(--cream);
  font-weight: 700;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 1rem;
}

.breadcrumb li + li::before {
  content: "/" / "";
  color: var(--ink-2);
  margin-inline-end: 0.5rem;
}

.breadcrumb a[aria-current="page"] {
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
}

.table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  inline-size: 100%;
  font-size: 1rem;
  font-variant-numeric: tabular-nums lining-nums;
}

.table-wrap code {
  overflow-wrap: normal;
  white-space: nowrap;
}

.table-wrap th,
.table-wrap td {
  text-align: start;
  vertical-align: top;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.table-wrap th {
  background: var(--panel);
  color: var(--bronze-lt);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.doc-pn {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.doc-pn a {
  display: grid;
  min-block-size: 2.75rem;
}

.doc-pn span {
  color: var(--ink-2);
  font-size: 1rem;
}

.doc-pn .pn-next {
  margin-inline-start: auto;
  text-align: end;
}

/* Suggestions and 404 */

.page-plain {
  padding-block: 3rem 4rem;
}

.page-plain .wrap > * {
  max-width: 42rem;
}

.page-plain h1 {
  font-size: var(--h1-page);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-plain h2 {
  font-size: var(--h2-page);
  margin-top: 2.2rem;
}

.page-plain ul {
  padding-left: 1.3rem;
}

.page-plain li + li {
  margin-top: 0.35rem;
}

.mail-cta {
  margin-top: 1.5rem;
}

.page-plain .lead-plain {
  font-size: 1.25rem;
}

/* Motion: only small hover feedback. No looping animation. */

.btn,
a {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

@media (forced-colors: active) {
  .dc-ctr,
  .frame,
  .plan,
  .tag,
  .gw,
  .btn-agent,
  .agent-soon,
  .todo,
  .todo-slot,
  .site-menu,
  .menu-button,
  .table-wrap table {
    border: 1px solid CanvasText;
  }

  .cells i,
  .ce {
    background: CanvasText;
  }

  .cells i.off {
    background: GrayText;
  }
}
