/* No Nut November — /nnn/
   ═══════════════════════════════════════════════════════════════════════

   On top of /site.css, for the November pages only. Same rules as the rest
   of the site: inside the CSP, no JavaScript, no style="" attributes, dark
   only, one column for a thumb.

   The colours are the app's: each mode's own (NNNStyle.swift), the medals'
   (Undefeated, Gold, Silver, Bronze), and ember for anything still open.
   ═══════════════════════════════════════════════════════════════════════ */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Every drawing is a stroke, as in the app. */
.mode svg, .tl svg, .post svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top .mark { color: inherit; }

.kicker {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
}

.top .hook { margin-top: 0.6rem; }

/* The way in on the web: the one filled button on the page. */
.start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 1.4rem;
  padding: 0 1.8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #F6B183, #E8875A);
  box-shadow: 0 8px 28px rgba(232, 135, 90, 0.35);
  font-size: 1.05rem;
  font-weight: 800;
  color: #1A0E07;
  text-decoration: none;
}

.start:hover { filter: brightness(1.06); }
.top .start + .status { margin-top: 1rem; }
.end .start { margin-top: 1.4rem; }
.end .start + .badge { display: block; width: max-content; margin-inline: auto; }

/* The one line that changes with the App Store. */
.status {
  max-width: 26em;
  margin: 1.3rem auto 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(232, 135, 90, 0.45);
  border-radius: 14px;
  background: rgba(232, 135, 90, 0.08);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
}

.status b { display: block; margin-top: 0.2rem; font-weight: 500; color: var(--emberHot); }


/* ═══ A BLOCK ═══════════════════════════════════════════════════════════ */

.blk { margin-top: 3.2rem; scroll-margin-top: 1rem; }

.blk h2, .qh {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.blk h2::after, .qh::after {
  content: "";
  display: block;
  width: 2.1rem;
  height: 2px;
  margin-top: 0.45rem;
  border-radius: 1px;
  background: var(--hot);
}

.lede { margin-top: 0.75rem; font-size: 1rem; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.note { margin-top: 0.9rem; font-size: 0.85rem; line-height: 1.5; color: var(--ink3); }


/* ═══ THE FIVE MODES ════════════════════════════════════════════════════
   Each in its own colour, the emblem on the left, the rules as chips. */

.modes, .rules, .steps { list-style: none; margin: 0; padding: 0; }

.modes { display: grid; gap: 0.7rem; margin-top: 1.2rem; }

.mode {
  --c: var(--ember);
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1.05rem 1rem 1.1rem;
  border-radius: 18px;
  background: var(--block);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 17%, transparent), var(--block) 62%);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
}

.mode.master  { --c: #E8875A; }
.mode.monk    { --c: #D9A54A; }
.mode.lover   { --c: #D27C8C; }
.mode.classic { --c: #9BA86A; }
.mode.free    { --c: #7FA2C9; }

.emblem { width: 3rem; height: 3rem; color: var(--c); stroke-width: 4.5; }

.diff {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c);
}

.mode h3 {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}

.mode .line { margin-top: 0.2rem; font-size: 0.95rem; color: var(--ink2); }

.rules { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }

.rules li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem 0.28rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--ink);
}

.rules svg { width: 0.95rem; height: 0.95rem; flex: none; color: var(--c); stroke-width: 1.8; }


/* ═══ HOW IT WORKS ══════════════════════════════════════════════════════
   One card a rule, the app's How it works page as a page. */

.steps { display: grid; gap: 0.7rem; margin-top: 1.2rem; }

.step {
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 18px;
  background: var(--block);
}

.step .n {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink2);
}

.step .say { margin-top: 0.35rem; font-size: 1.02rem; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.step .say b { font-weight: 700; }
.step .say b.yes { color: #D2B46E; }

/* The three days, as boxes: the day, its three to answer in, the lock. */
.tl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--ink2);
}

.box b {
  display: grid;
  place-items: center;
  width: 100%;
  height: 2.9rem;
  border-radius: 12px;
  background: #1D222A;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink2);
}

.box svg { width: 1.05rem; height: 1.05rem; stroke-width: 1.6; }

.box.on { color: var(--ember); font-weight: 600; }
.box.on b { background: transparent; box-shadow: inset 0 0 0 2px var(--ember); color: var(--ink); }

/* The four levels, lightest first, in their own colours. */
.levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.lv {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.2rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1A1408;
}

.lv b { font-size: 0.78rem; font-weight: 800; }

.lv.undefeated { background: #EEECE7; }
.lv.gold       { background: #D2B46E; }
.lv.silver     { background: #A3ACB7; }
.lv.bronze     { background: #B07F58; }


/* ═══ SIDE CHALLENGES, IN THEIR COLOURS ═════════════════════════════════ */

.side { font-weight: 600; white-space: nowrap; }
.side.shower     { color: #6EC1E4; }
.side.meditation { color: #A394E6; }
.side.strength   { color: #F0A04B; }
.side.edging     { color: #D46AB8; }
.side.rot        { color: #A8C94F; }


/* ═══ WHERE WE POST, LIT ════════════════════════════════════════════════ */

.post {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(232, 135, 90, 0.5);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 135, 90, 0.18), var(--block) 70%);
  box-shadow: 0 0 40px rgba(232, 135, 90, 0.16);
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.post svg { width: 1.4rem; height: 1.4rem; color: var(--emberHot); stroke-width: 1.4; }
.post span { font-size: 0.88rem; line-height: 1.4; color: var(--ink2); }
.post b { display: block; font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.post i { font-style: normal; font-size: 1.15rem; color: var(--ember); }
.post:hover { box-shadow: 0 0 56px rgba(232, 135, 90, 0.28); }


/* ═══ QUICK ANSWERS ═════════════════════════════════════════════════════
   The home page's stickers, under a heading of their own. */

.qa .qh { margin-bottom: 0.4rem; }
.qa { margin-top: 3.2rem; }
