/*##############################################################################
# Script:        styles-sections.css (stylesheet, part of styles.css, loaded by frontend/index.html)
# Version:       1.01
# Created by:    Matthew Boucher
# Start date:    2026-09-10
# Location:      <project root>/frontend/css/styles-sections.css   (main script: <project root>/aiacolyte.py; subscripts: <project root>/subscripts/aiacolyte/)
# Description:   The page sections of the AI Acolyte home page, the last of its three stylesheets
#                (after styles.css and styles-hero.css): section heads and dividers, the Spellbook
#                cards, the Ritual chalkboard and steps, the starry quote band and pillars, the
#                crystal-ball Oracle, the parchment contact scroll (first and last name side by side,
#                then email and phone, stacked on narrow forms), the one-column layout for narrow
#                screens and the footer. Uses the tokens and keyframes of styles.css. Works with the
#                main script, which serves it as /static/css/styles-sections.css.
# Reads:         the tokens and keyframes of styles.css; the #chalk SVG filter in frontend/index.html
# Writes:        nothing
# Sensitive:     none needed
# Arguments:     none (a stylesheet cannot take flags); aiacolyte.py --checkup confirms it is in place
# Changelog (last 15):
#   1.01  2026-09-10  First version: the section and footer part of styles.css 1.09, unchanged, moved here when styles.css was split (rule 9).
##############################################################################*/

/* ==========================================================================
   Section heads
   ========================================================================== */

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vw, 80px);
  text-align: center;
}

.section-head > p:last-child {
  margin-top: 22px;
  font-size: 1.28rem;
  color: var(--text-dim);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--gold);
}

.divider::before,
.divider::after {
  content: "";
  width: 84px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.divider::after {
  transform: scaleX(-1);
}

/* ==========================================================================
   Spellbook (services)
   ========================================================================== */

.spellbook {
  background: radial-gradient(60% 40% at 50% 0%, rgba(43, 39, 102, 0.25), transparent 70%), var(--ink-1);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px 30px 30px;
  background: linear-gradient(180deg, rgba(43, 39, 102, 0.22), transparent 55%), linear-gradient(180deg, #1b1612, #120f0c);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.card,
.js .card[data-reveal] {
  transition:
    opacity 1s var(--ease) calc(var(--i, 0) * 110ms),
    translate 1s var(--ease) calc(var(--i, 0) * 110ms),
    transform 0.5s var(--ease),
    border-color 0.5s,
    box-shadow 0.5s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(227, 176, 75, 0.09);
  border-radius: 6px;
  pointer-events: none;
}

/* candlelight that follows the cursor */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(246, 216, 139, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(246, 216, 139, 0.5);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(227, 176, 75, 0.12);
}

.card:hover::after {
  opacity: 1;
}

.card__sigil {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  background: radial-gradient(circle, rgba(227, 176, 75, 0.16), transparent 70%);
  border: 1px solid rgba(246, 216, 139, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(227, 176, 75, 0.05);
}

.card__sigil svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(227, 176, 75, 0.6));
  transition: transform 0.6s var(--ease);
}

.card:hover .card__sigil svg {
  transform: rotate(-8deg) scale(1.08);
}

.card h3 {
  font-size: 1.4rem;
  color: var(--parchment);
}

.card__plain {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--arcane);
}

.card__plain + p {
  margin-top: 16px;
  color: var(--text-dim);
}

.card__list {
  display: grid;
  gap: 6px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid rgba(227, 176, 75, 0.14);
}

.card__list li {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  font-size: 1.08rem;
}

.card__list li::before {
  content: "✦";
  font-size: 0.7em;
  color: var(--gold);
}

/* ==========================================================================
   Ritual (process) with the chalkboard
   ========================================================================== */

.ritual {
  background:
    radial-gradient(50% 60% at 25% 50%, rgba(227, 176, 75, 0.08), transparent 70%),
    linear-gradient(180deg, var(--ink-1), #0d0b09 50%, var(--ink-1));
}

.ritual__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}

.chalkboard {
  position: relative;
  padding: clamp(14px, 2vw, 22px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 10%, transparent 90%, rgba(0, 0, 0, 0.3)),
    repeating-linear-gradient(90deg, #4a3421 0 7px, #553c27 7px 11px, #3f2c1c 11px 19px, #4d3622 19px 26px);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 220, 160, 0.18), 0 40px 80px rgba(0, 0, 0, 0.6);
  rotate: -1.2deg;
}

.chalkboard__surface {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(360px, 42vw, 520px);
  padding: 8% 11%;
  overflow: hidden;
  background:
    radial-gradient(40% 30% at 28% 22%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(45% 35% at 72% 78%, rgba(255, 255, 255, 0.05), transparent 70%),
    radial-gradient(30% 25% at 80% 30%, rgba(255, 255, 255, 0.035), transparent 70%),
    radial-gradient(120% 100% at 50% 50%, #232826 0%, #191d1b 60%, #111413 100%);
  border-radius: 3px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.75), inset 0 0 0 2px rgba(0, 0, 0, 0.4);
}

.chalk {
  display: block;
  width: fit-content;
  font-family: var(--font-chalk);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(238, 234, 222, 0.9);
  filter: url(#chalk);
}

.chalk--dots {
  letter-spacing: 0.3em;
  color: rgba(238, 234, 222, 0.7);
}

.chalk--magic {
  margin-top: 0.1em;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.2vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  filter: url(#chalk) drop-shadow(0 0 14px rgba(227, 176, 75, 0.5));
}

/* chalk writes itself, word by word */
.js .chalkboard .chalk {
  clip-path: inset(-30% 110% -30% -10%);
  transition: clip-path 0.9s var(--ease) calc(var(--i) * 360ms + 400ms);
}

.js .chalkboard.is-visible .chalk {
  clip-path: inset(-30% -10% -30% -10%);
}

.twinkle {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 6px var(--gold));
  animation: twinkle 3.2s ease-in-out infinite;
  animation-delay: var(--d);
}

.twinkle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-bright);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

.chalkboard__ledge {
  position: absolute;
  right: 4%;
  bottom: -12px;
  left: 4%;
  height: 16px;
  background: linear-gradient(180deg, #6b4d31, #3a2918);
  border-radius: 3px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.chalkboard__ledge b {
  position: absolute;
  bottom: 12px;
  height: 7px;
  background: linear-gradient(180deg, #f4f0e6, #cfc8b8);
  border-radius: 3px;
}

.chalkboard__ledge b:first-child {
  left: 14%;
  width: 46px;
}

.chalkboard__ledge b:last-child {
  left: 24%;
  width: 26px;
  rotate: -6deg;
}

.steps {
  position: relative;
  display: grid;
  gap: 30px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 25px;
  width: 1px;
  background: repeating-linear-gradient(180deg, rgba(227, 176, 75, 0.55) 0 4px, transparent 4px 10px);
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: start;
  gap: 22px;
}

.steps__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: radial-gradient(circle, #2a2310, var(--ink-1) 70%);
  border: 1px solid rgba(246, 216, 139, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(227, 176, 75, 0.2);
}

.steps h3 {
  margin-top: 4px;
  font-size: 1.3rem;
  color: var(--parchment);
}

.steps p {
  margin-top: 6px;
  color: var(--text-dim);
}

/* ==========================================================================
   Wisdom (why)
   ========================================================================== */

.wisdom {
  text-align: center;
  background: linear-gradient(180deg, var(--ink-1), var(--indigo-deep) 30%, var(--indigo-deep) 70%, var(--ink-1));
}

.wisdom::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 30px 40px, rgba(246, 216, 139, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 170px 120px, rgba(255, 244, 214, 0.8), transparent),
    radial-gradient(1px 1px at 90px 210px, rgba(140, 200, 255, 0.8), transparent),
    radial-gradient(1px 1px at 240px 60px, rgba(246, 216, 139, 0.6), transparent);
  background-size: 300px 260px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.wisdom .wrap {
  position: relative;
}

.quote {
  max-width: 900px;
  margin: 0 auto;
}

.quote blockquote {
  margin: 0;
}

.quote p {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--parchment);
}

.quote figcaption {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.quote figcaption::before {
  content: "— ";
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(56px, 8vw, 96px);
}

.pillar__glyph {
  display: block;
  font-size: 1.6rem;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(227, 176, 75, 0.7);
}

.pillar h3 {
  margin-top: 12px;
  font-size: 1.2rem;
  color: var(--parchment);
}

.pillar p {
  max-width: 32ch;
  margin: 10px auto 0;
  color: var(--text-dim);
}

/* ==========================================================================
   Oracle
   ========================================================================== */

.oracle {
  background: radial-gradient(45% 55% at 25% 50%, rgba(91, 84, 201, 0.16), transparent 70%), var(--ink-1);
}

.oracle__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}

.orb-wrap {
  display: grid;
  justify-items: center;
}

.orb {
  position: relative;
  z-index: 2;
  width: min(360px, 76vw);
  aspect-ratio: 1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 55%, #2d2870 0%, #1a1745 45%, #0b0a1e 100%);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(246, 216, 139, 0.2),
    inset 0 0 50px rgba(0, 0, 0, 0.6),
    inset 0 0 90px rgba(140, 200, 255, 0.16),
    inset 0 -30px 70px rgba(227, 176, 75, 0.18),
    0 0 70px rgba(91, 84, 201, 0.35),
    0 0 160px rgba(227, 176, 75, 0.12);
  transition: box-shadow 0.8s;
}

.orb__swirl {
  position: absolute;
  inset: -25%;
  background: conic-gradient(from 0deg, rgba(246, 216, 139, 0) 0%, rgba(246, 216, 139, 0.24) 10%, rgba(140, 200, 255, 0) 28%, rgba(140, 200, 255, 0.22) 45%, rgba(246, 216, 139, 0) 62%, rgba(246, 216, 139, 0.2) 78%, rgba(246, 216, 139, 0) 92%);
  filter: blur(22px);
  mix-blend-mode: screen;
  animation: spin 16s linear infinite;
}

.orb__net {
  position: absolute;
  inset: 22%;
  width: 56%;
  height: 56%;
  fill: var(--arcane);
  stroke: rgba(140, 200, 255, 0.5);
  stroke-width: 0.6;
  opacity: 0.35;
  transition: opacity 0.6s;
}

.orb__shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(20% 13% at 33% 21%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 70%),
    radial-gradient(closest-side, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, 0.4) 100%);
}

.orb__text {
  position: absolute;
  inset: 20%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(227, 176, 75, 0.8), 0 0 2px #000;
  background: radial-gradient(closest-side, rgba(11, 10, 30, 0.6), rgba(11, 10, 30, 0));
  transition: opacity 0.5s;
}

.orb.is-divining {
  box-shadow:
    inset 0 0 90px rgba(140, 200, 255, 0.45),
    inset 0 -30px 90px rgba(227, 176, 75, 0.4),
    0 0 110px rgba(140, 200, 255, 0.45),
    0 0 200px rgba(227, 176, 75, 0.3);
}

.orb.is-divining .orb__swirl {
  animation-duration: 1.4s;
}

.orb.is-divining .orb__net {
  opacity: 0.9;
}

.orb.is-divining .orb__text {
  opacity: 0.45;
}

.orb__stand {
  position: relative;
  z-index: 1;
  width: 58%;
  max-width: 220px;
  height: 64px;
  margin-top: -26px;
  background: linear-gradient(90deg, #2a1d0e, #7a5a2c 35%, #a37a3c 50%, #6a4d24 65%, #2a1d0e);
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
}

.oracle__panel header > p:last-child {
  margin-top: 18px;
  font-size: 1.25rem;
  color: var(--text-dim);
}

.oracle__form {
  margin-top: 30px;
}

.oracle__form textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  padding: 16px 18px;
  font: inherit;
  color: var(--text);
  resize: vertical;
  background: rgba(22, 20, 58, 0.35);
  border: 1px solid rgba(140, 200, 255, 0.25);
  border-radius: 8px;
  box-shadow: inset 0 0 30px rgba(10, 8, 30, 0.6);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.oracle__form textarea::placeholder {
  font-style: italic;
  color: var(--text-faint);
}

.oracle__form textarea:focus {
  outline: none;
  border-color: var(--arcane);
  box-shadow: inset 0 0 30px rgba(10, 8, 30, 0.6), 0 0 0 3px rgba(140, 200, 255, 0.18), 0 0 30px rgba(140, 200, 255, 0.15);
}

.oracle__actions {
  margin-top: 16px;
}

.oracle__examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 1rem;
  color: var(--text-faint);
}

.oracle__examples > span {
  margin-right: 4px;
  font-style: italic;
}

.chip {
  padding: 0.45em 0.95em;
  font: italic 500 1rem/1.2 var(--font-body);
  color: var(--text-dim);
  background: rgba(227, 176, 75, 0.06);
  border: 1px solid rgba(227, 176, 75, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}

.chip:hover {
  color: var(--gold-bright);
  background: rgba(227, 176, 75, 0.12);
  border-color: rgba(246, 216, 139, 0.6);
}

.oracle__answer {
  margin-top: 28px;
  padding: 24px 26px;
  background: linear-gradient(135deg, rgba(43, 39, 102, 0.35), rgba(227, 176, 75, 0.06));
  border: 1px solid rgba(246, 216, 139, 0.35);
  border-radius: 10px;
  animation: rise 0.8s var(--ease);
}

.oracle__verdict {
  font-style: italic;
  color: var(--text-dim);
}

.oracle__verdict strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(227, 176, 75, 0.4);
}

.oracle__plain {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--arcane);
}

#oracle-reading {
  margin-top: 14px;
}

.oracle__answer .btn {
  margin-top: 20px;
}

/* ==========================================================================
   Summon (contact)
   ========================================================================== */

.summon {
  background: radial-gradient(50% 60% at 80% 40%, rgba(227, 176, 75, 0.08), transparent 70%), var(--ink-1);
}

.summon__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}

.summon__intro > p:not(.eyebrow) {
  margin-top: 20px;
  font-size: 1.25rem;
  color: var(--text-dim);
}

.summon__promises {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.summon__promises li {
  display: flex;
  align-items: baseline;
  gap: 0.8em;
}

.summon__promises li::before {
  content: "✦";
  font-size: 0.8em;
  color: var(--gold);
}

.scroll {
  position: relative;
  container-type: inline-size; /* the field rows stack when the form itself is narrow */
  margin-block: 14px;
  padding: clamp(30px, 4.5vw, 52px) clamp(22px, 4.5vw, 52px);
  color: var(--parchment-ink);
  background:
    radial-gradient(60% 40% at 20% 10%, rgba(255, 255, 255, 0.4), transparent 70%),
    radial-gradient(50% 50% at 90% 95%, rgba(140, 95, 40, 0.28), transparent 70%),
    radial-gradient(40% 30% at 5% 80%, rgba(140, 95, 40, 0.18), transparent 70%),
    linear-gradient(180deg, #f0e4c7, #e3d1a9);
  border-radius: 3px;
  box-shadow: inset 0 0 70px rgba(120, 80, 30, 0.35), 0 40px 90px rgba(0, 0, 0, 0.6);
}

.scroll::before,
.scroll::after {
  content: "";
  position: absolute;
  right: -12px;
  left: -12px;
  height: 24px;
  background: linear-gradient(180deg, #d9b97c 0%, #9b733a 45%, #5e4220 100%);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.scroll::before {
  top: -14px;
}

.scroll::after {
  bottom: -14px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6a4e2c;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.45em 0.15em;
  font: inherit;
  font-size: 1.2rem;
  color: var(--parchment-ink);
  background-color: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(43, 32, 22, 0.35);
  border-radius: 0;
  transition: border-color 0.3s, background-color 0.3s;
}

.field textarea {
  min-height: 120px;
  line-height: 1.5;
  resize: vertical;
}

.field textarea::placeholder {
  font-style: italic;
  color: rgba(43, 32, 22, 0.45);
}

.field select {
  padding-right: 1.8em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236a4e2c' stroke-width='1.6'/%3E%3C/svg%3E") right 0.2em center / 14px no-repeat;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.3);
  border-bottom-color: #9a6a24;
}

.field [aria-invalid="true"] {
  border-bottom-color: #9b2c1c;
}

.field__error {
  margin-top: 4px;
  font-size: 0.98rem;
  font-style: italic;
  color: #9b2c1c;
}

.field--trap {
  position: absolute;
  left: -9999px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(18px, 4cqw, 32px);
}

.field__optional {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(106, 78, 44, 0.8);
}

@container (max-width: 460px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.scroll__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.seal {
  display: grid;
  flex: none;
  place-items: center;
  width: 64px;
  height: 64px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255, 210, 190, 0.55);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
  background: radial-gradient(circle at 38% 35%, #c2412f, #8c2217 55%, #5e140d);
  border-radius: 47% 53% 50% 48%;
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.12), inset 0 -3px 6px rgba(0, 0, 0, 0.35), 0 3px 6px rgba(0, 0, 0, 0.35);
  rotate: 12deg;
}

.form-status {
  min-height: 1.5em;
  margin-top: 16px;
  font-size: 1.1rem;
  font-style: italic;
}

.form-status[data-state="success"] { color: #2f5d2a; }
.form-status[data-state="error"] { color: #9b2c1c; }
.form-status[data-state="pending"] { color: #6a4e2c; }

/* Stack the two-column sections on narrow screens. Kept after the base
   grid rules so it wins the cascade. */
@media (max-width: 900px) {
  .ritual__grid,
  .oracle__grid,
  .summon__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 48px var(--gutter) 40px;
  background: var(--ink-0);
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 1.05rem;
  color: var(--text-faint);
}

.footer__inner a {
  text-decoration: none;
  transition: color 0.3s;
}

.footer__inner a:hover {
  color: var(--gold-bright);
}

.brand--footer {
  font-size: 1rem;
}

/*##############################################################################
# End of styles-sections.css  v1.01
##############################################################################*/
