/* ==========================================================================
   system-pages.css - the 404 page and the five thank-you pages (2026-09-30).

   One quiet layout for six small pages: a centred column on the light glow
   ground, the crest's red for the one strong accent, Cormorant Garamond for the
   heading and Inter for everything else, exactly as site.css sets them. Colours
   come only from the crest tokens in site.css (--terracotta, --ink, --paper,
   --flame ...); this file defines no colour of its own.

   Deliberately plain: no cards, no pills, no rule lines as layout, no
   animation. The ground is light, so the flat-dark-section hairline rule does
   not apply; the soft two-stop gradient is there for depth, not as a fix.
   ========================================================================== */

.sys {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  /* The section fills the screen under the banner and nav (CLAUDE.md: ask for
     100svh MINUS both, or its last part sits below the fold by construction). */
  min-height: calc(100svh - var(--banner-h) - var(--nav-h));
  padding: clamp(56px, 9vw, 112px) 20px clamp(72px, 10vw, 128px);
  display: grid;
  justify-items: center;
  align-content: start;
}
.sys__inner { width: 100%; max-width: 700px; }

/* ---- the mark at the top --------------------------------------------------
   Thank-you pages: a tick in the crest red, ringed in a pale red halo.
   404 and the thanks index: the school's mark itself (light-ground version). */
.sys__badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--terracotta);
  display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(168, 50, 38, .10);
}
.sys__badge svg { width: 30px; height: 30px; stroke: var(--cream); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sys__mark { width: 76px; height: auto; display: block; }

/* ---- heading block ------------------------------------------------------- */
.sys__eyebrow {
  margin: 30px 0 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terracotta);
}
.sys__accent { width: 56px; height: 3px; border-radius: 2px; background: var(--flame); margin: 0 0 22px; }
.sys__title {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700;
  font-size: clamp(40px, 6.2vw, 66px); line-height: 1.02; letter-spacing: -.01em;
  color: var(--ink);
}
.sys__lede { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.7; color: var(--ink-soft); max-width: 60ch; }
.sys__lede + .sys__lede { margin-top: 14px; }
.sys__lede strong { color: var(--ink); font-weight: 600; }

/* the big 404 numeral: decorative (aria-hidden), the heading says it in words */
.sys__num {
  margin: 26px 0 0; display: block;
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700;
  font-size: clamp(96px, 17vw, 168px); line-height: .85; letter-spacing: -.02em;
  font-variant-numeric: lining-nums;
  background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- numbered steps (the application page) ------------------------------- */
.sys__h2 {
  margin: 46px 0 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft);
}
.sys__steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.sys__steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 52px 1fr; column-gap: 14px;
  margin: 0 0 26px;
}
.sys__steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700;
  font-size: 34px; line-height: 1; color: var(--terracotta);
  font-variant-numeric: lining-nums;   /* Cormorant's default old-style 0 and 1 read as "OI" */
}
.sys__steps h3 { margin: 4px 0 6px; font-size: 18px; font-weight: 600; color: var(--ink); }
.sys__steps p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.sys__docs { margin: 10px 0 0; padding-left: 1.1em; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.sys__docs li::marker { color: var(--terracotta); }

/* ---- the school's own words (the donation page's hadith) ----------------- */
.sys__quote {
  margin: 34px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600;
  font-size: clamp(22px, 2.4vw, 27px); line-height: 1.4; color: var(--ink);
}
.sys__quote p { margin: 0; }
.sys__quote p::before { content: "\201C"; color: var(--terracotta); font-style: normal; margin-right: 4px; }
.sys__quote p::after { content: "\201D"; color: var(--terracotta); font-style: normal; margin-left: 2px; }
.sys__cite { display: block; margin-top: 10px; font-family: Inter, sans-serif; font-style: normal; font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--ink-soft); }

/* ---- actions ------------------------------------------------------------- */
.sys__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.sys__link {
  font-weight: 600; color: var(--terracotta-deep);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.sys__link:hover { color: var(--terracotta); }
.sys__link:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; border-radius: 2px; }

/* ---- "useful while you wait" - a plain list of links, not cards ---------- */
.sys__more { margin-top: 52px; }
.sys__more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sys__more a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 10px 2px; text-decoration: none; color: var(--ink);   /* no divider lines: the client's no-rules-as-layout rule */
}
.sys__more a span { font-size: 14px; color: var(--ink-soft); }
.sys__more a::after { content: "\2192"; color: var(--terracotta); margin-left: auto; padding-left: 12px; }
.sys__more a:hover { color: var(--terracotta-deep); }
.sys__more a:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.sys__more strong { font-weight: 600; }

@media (max-width: 520px) {
  .sys__steps > li { grid-template-columns: 40px 1fr; column-gap: 10px; }
  .sys__steps > li::before { font-size: 28px; }
  /* The 16px gap became the space between a title and its own description,
     as wide as the space to the next title. Close it up vertically. */
  .sys__more a { flex-wrap: wrap; row-gap: 2px; }
  .sys__more a span { flex-basis: 100%; order: 2; }
}
