/* =========================================================
   WARRIOR MEN INTERNATIONAL
   Design system.

   Palette:   dark navy, stone, forest green, warm bronze
   Display:   Oswald, condensed, tight, used with restraint
   Body:      Inter, humanist, quiet, does the actual work
   Signature: the Pathway Spine, a vertical bronze rule with
              forged nodes marking the four stages
   ========================================================= */

/* ---------------------------------------------------------
   TOKENS
   --------------------------------------------------------- */
:root {
  /* Navy, from deepest to the surface a card sits on */
  --navy-900: #0D1116;
  --navy-850: #12161C;
  --navy-800: #171D25;
  --navy-700: #1B222B;
  --navy-600: #222A35;
  --navy-500: #2B3543;

  /* Lines */
  --line:       #262F3A;
  --line-soft:  #1F2731;
  --line-bright:#33404F;

  /* Stone, the reading colours */
  --stone-100: #F2F4F6;
  --stone-200: #D8DDE3;
  --stone-300: #AEB6C0;
  --stone-400: #8A929C;
  --stone-500: #6B7480;
  --stone-600: #4E5560;

  /* Bronze, the one warm thing on the page */
  --bronze:      #C8873F;
  --bronze-lit:  #E0A055;
  --bronze-deep: #96632B;
  --bronze-ash:  rgba(200, 135, 63, 0.12);

  /* Forest, for anything settled, complete, or true */
  --forest:      #2E5D46;
  --forest-lit:  #3E7A5C;
  --forest-ash:  rgba(46, 93, 70, 0.16);

  /* States */
  --danger:      #B4453C;
  --danger-ash:  rgba(180, 69, 60, 0.12);
  --warn:        #C08A2E;

  /* Type */
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Scale */
  --step--1: 0.8125rem;
  --step-0:  0.9375rem;
  --step-1:  1.0625rem;
  --step-2:  1.375rem;
  --step-3:  1.875rem;
  --step-4:  2.5rem;
  --step-5:  3.5rem;

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 999px;

  /* Depth. Kept shallow. This is not a glossy app. */
  --shadow-1: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-2: 0 4px 16px rgba(0,0,0,0.28);
  --shadow-3: 0 12px 40px rgba(0,0,0,0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 140ms;
  --mid:  240ms;
  --slow: 420ms;

  /* Layout */
  --shell:  1180px;
  --read:   680px;
  --rail:   248px;
  --header: 64px;
  --tabbar: 68px;
}


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

* { margin: 0; }

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

body {
  min-height: 100dvh;
  background: var(--navy-850);
  color: var(--stone-300);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }

input, button, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; padding: 0; }

a { color: var(--bronze); text-decoration: none; }
a:hover { color: var(--bronze-lit); }

ul, ol { padding: 0; list-style: none; }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: var(--s-6) 0;
}

::selection {
  background: var(--bronze);
  color: var(--navy-900);
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------------------------------------------------------
   TYPE
   --------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--stone-100);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--body); font-weight: 700; }

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  color: var(--stone-100);
}

/* The eyebrow. Small, bronze, spaced. Used to label a section. */
.eyebrow {
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}

.eyebrow--stone { color: var(--stone-500); }
.eyebrow--forest { color: var(--forest-lit); }

.lede {
  font-size: var(--step-1);
  line-height: 1.7;
  color: var(--stone-300);
}

.muted  { color: var(--stone-500); }
.dim    { color: var(--stone-600); }
.bright { color: var(--stone-100); }

.tiny {
  font-size: var(--step--1);
  line-height: 1.55;
}

.numeral {
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}


/* ---------------------------------------------------------
   SCRIPTURE
   Every quoted verse in the app uses this. Forest rule on
   the left, italic body, bronze reference beneath.
   --------------------------------------------------------- */
.scripture {
  border-left: 3px solid var(--forest);
  padding: var(--s-1) 0 var(--s-1) var(--s-5);
  margin: var(--s-6) 0;
}

.scripture__text {
  font-size: var(--step-1);
  line-height: 1.8;
  color: var(--stone-200);
  font-style: italic;
}

.scripture__ref {
  margin-top: var(--s-3);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}

.scripture--tight {
  margin: var(--s-4) 0;
  padding-left: var(--s-4);
}
.scripture--tight .scripture__text { font-size: var(--step-0); }


/* ---------------------------------------------------------
   LAYOUT
   --------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.reading {
  width: 100%;
  max-width: var(--read);
  margin-inline: auto;
}

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.stack-xl > * + * { margin-top: var(--s-7); }

.row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.row--top { align-items: flex-start; }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.spacer { flex: 1; }

.section { padding-block: var(--s-8); }


/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */
.card {
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}

.card--flush { padding: 0; overflow: hidden; }
.card--tight { padding: var(--s-4); }
.card--roomy { padding: var(--s-6); }

.card--raised {
  background: var(--navy-600);
  box-shadow: var(--shadow-2);
}

.card--link {
  display: block;
  color: inherit;
  transition: border-color var(--fast) var(--ease),
              background var(--fast) var(--ease),
              transform var(--fast) var(--ease);
}
.card--link:hover {
  border-color: var(--line-bright);
  background: var(--navy-600);
  transform: translateY(-1px);
  color: inherit;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.card__title {
  font-family: var(--body);
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--stone-100);
}


/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.75rem 1.375rem;
  border-radius: var(--r-md);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              color var(--fast) var(--ease),
              transform var(--fast) var(--ease);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--bronze);
  color: var(--navy-900);
}
.btn--primary:hover:not(:disabled) {
  background: var(--bronze-lit);
  color: var(--navy-900);
}

.btn--forest {
  background: var(--forest);
  color: var(--stone-100);
}
.btn--forest:hover:not(:disabled) { background: var(--forest-lit); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-bright);
  color: var(--stone-200);
}
.btn--ghost:hover:not(:disabled) {
  border-color: var(--bronze);
  color: var(--bronze);
}

.btn--quiet {
  background: transparent;
  color: var(--stone-400);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
}
.btn--quiet:hover:not(:disabled) { color: var(--stone-100); }

.btn--danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}
.btn--danger:hover:not(:disabled) {
  background: var(--danger);
  color: var(--stone-100);
}

.btn--block { width: 100%; }

.btn--sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
}

.btn--lg {
  padding: 0.9375rem 2rem;
  font-size: var(--step-0);
}


/* ---------------------------------------------------------
   FORMS
   --------------------------------------------------------- */
.field { margin-bottom: var(--s-5); }

.label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-400);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.8125rem 1rem;
  background: var(--navy-850);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--stone-100);
  font-size: var(--step-0);
  transition: border-color var(--fast) var(--ease),
              background var(--fast) var(--ease);
}

.input::placeholder,
.textarea::placeholder { color: var(--stone-600); }

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--bronze);
  background: var(--navy-800);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--danger); }

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

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7480' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.hint {
  margin-top: var(--s-2);
  font-size: var(--step--1);
  color: var(--stone-500);
}

.error-text {
  margin-top: var(--s-2);
  font-size: var(--step--1);
  color: var(--danger);
  font-weight: 600;
}

/* Checkbox that does not look like a default checkbox */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  cursor: pointer;
  user-select: none;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--line-bright);
  border-radius: var(--r-sm);
  background: var(--navy-850);
  display: grid;
  place-items: center;
  transition: all var(--fast) var(--ease);
}
.check__box::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--navy-900);
  border-bottom: 2px solid var(--navy-900);
  transform: rotate(-45deg) scale(0);
  transition: transform var(--fast) var(--ease);
}
.check input:checked + .check__box {
  background: var(--bronze);
  border-color: var(--bronze);
}
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}
.check__label {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--stone-400);
}


/* ---------------------------------------------------------
   ALERTS
   Errors do not apologise. They say what happened.
   --------------------------------------------------------- */
.alert {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid;
  font-size: var(--step--1);
  line-height: 1.6;
  margin-bottom: var(--s-5);
}

.alert--error {
  background: var(--danger-ash);
  border-color: rgba(180, 69, 60, 0.4);
  color: #E5A29B;
}

.alert--good {
  background: var(--forest-ash);
  border-color: rgba(46, 93, 70, 0.45);
  color: #8FC3A8;
}

.alert--note {
  background: var(--bronze-ash);
  border-color: rgba(200, 135, 63, 0.35);
  color: #DDB07A;
}

.alert strong { color: inherit; filter: brightness(1.25); }


/* ---------------------------------------------------------
   BADGE AND PILL
   --------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-sm);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge--bronze { background: var(--bronze-ash); color: var(--bronze); }
.badge--forest { background: var(--forest-ash); color: var(--forest-lit); }
.badge--stone  { background: var(--navy-500);   color: var(--stone-400); }
.badge--danger { background: var(--danger-ash); color: #D97C73; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--stone-400);
  transition: all var(--fast) var(--ease);
}
.pill:hover { border-color: var(--line-bright); color: var(--stone-200); }
.pill--on {
  background: var(--bronze-ash);
  border-color: var(--bronze);
  color: var(--bronze);
}


/* ---------------------------------------------------------
   AVATAR
   --------------------------------------------------------- */
.avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--navy-500);
  border: 1px solid var(--line-bright);
  color: var(--stone-300);
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar--sm { width: 32px; height: 32px; font-size: 0.6875rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.0625rem; }
.avatar--xl { width: 88px; height: 88px; font-size: 1.5rem; }


/* ---------------------------------------------------------
   THE PATHWAY SPINE
   The signature element. A vertical bronze rule with four
   forged nodes. It tells a man where he stands without a
   single word of explanation.
   --------------------------------------------------------- */
.spine {
  position: relative;
  padding-left: 44px;
}

/* The rail itself */
.spine::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line-bright);
  border-radius: 1px;
}

/* The lit portion, sized by --progress (0 to 1) */
.spine::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 8px;
  width: 2px;
  height: calc((100% - 16px) * var(--progress, 0));
  background: linear-gradient(180deg, var(--bronze-lit), var(--bronze-deep));
  border-radius: 1px;
  transition: height var(--slow) var(--ease);
}

.spine__stage {
  position: relative;
  padding-bottom: var(--s-6);
}
.spine__stage:last-child { padding-bottom: 0; }

/* The node. Struck, not drawn. */
.spine__node {
  position: absolute;
  left: -44px;
  top: 2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--navy-800);
  border: 1.5px solid var(--line-bright);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--stone-600);
  transform: rotate(45deg);
  z-index: 1;
  transition: all var(--mid) var(--ease);
}
.spine__node > * { transform: rotate(-45deg); }

/* Done */
.spine__stage[data-state="done"] .spine__node {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--navy-900);
}

/* Where he stands now */
.spine__stage[data-state="now"] .spine__node {
  background: var(--navy-800);
  border-color: var(--bronze);
  color: var(--bronze);
  box-shadow: 0 0 0 4px var(--bronze-ash);
}

/* Not yet */
.spine__stage[data-state="locked"] .spine__node {
  opacity: 0.5;
}

.spine__label {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--stone-100);
  letter-spacing: 0.01em;
}
.spine__stage[data-state="locked"] .spine__label { color: var(--stone-600); }

.spine__sub {
  margin-top: var(--s-1);
  font-size: var(--step--1);
  color: var(--stone-500);
  line-height: 1.6;
}


/* ---------------------------------------------------------
   PROGRESS
   --------------------------------------------------------- */
.bar {
  height: 4px;
  border-radius: 2px;
  background: var(--navy-500);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  border-radius: 2px;
  background: var(--bronze);
  transition: width var(--slow) var(--ease);
}
.bar__fill--forest { background: var(--forest-lit); }


/* ---------------------------------------------------------
   THREE DOT MENU
   Used on every post and comment.
   --------------------------------------------------------- */
.menu { position: relative; }

.menu__trigger {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  color: var(--stone-500);
  transition: all var(--fast) var(--ease);
}
.menu__trigger:hover {
  background: var(--navy-500);
  color: var(--stone-200);
}

.menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 184px;
  padding: var(--s-2);
  background: var(--navy-600);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  z-index: 60;
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  pointer-events: none;
  transition: all var(--fast) var(--ease);
}
.menu__panel[data-open="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.menu__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding: 0.5625rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--stone-300);
  text-align: left;
  transition: all var(--fast) var(--ease);
}
.menu__item:hover {
  background: var(--navy-500);
  color: var(--stone-100);
}
.menu__item--danger { color: #D97C73; }
.menu__item--danger:hover { background: var(--danger-ash); color: #E5A29B; }

.menu__rule {
  height: 1px;
  background: var(--line);
  margin: var(--s-2) 0;
}


/* ---------------------------------------------------------
   MODAL
   --------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--s-4);
  background: rgba(9, 12, 16, 0.78);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mid) var(--ease);
}
.modal[data-open="true"] { opacity: 1; pointer-events: auto; }

.modal__box {
  width: 100%;
  max-width: 440px;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--navy-700);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-3);
  transform: translateY(12px) scale(0.98);
  transition: transform var(--mid) var(--ease);
}
.modal[data-open="true"] .modal__box { transform: none; }

.modal__title {
  font-family: var(--display);
  font-size: var(--step-2);
  color: var(--stone-100);
  margin-bottom: var(--s-3);
}


/* ---------------------------------------------------------
   TOAST
   --------------------------------------------------------- */
.toast-rail {
  position: fixed;
  bottom: calc(var(--tabbar) + var(--s-4));
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  width: calc(100% - var(--s-8));
  max-width: 420px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--navy-600);
  border: 1px solid var(--line-bright);
  border-left: 3px solid var(--bronze);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  font-size: var(--step--1);
  color: var(--stone-200);
  animation: toast-in var(--mid) var(--ease);
}
.toast--good  { border-left-color: var(--forest-lit); }
.toast--error { border-left-color: var(--danger); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}


/* ---------------------------------------------------------
   EMPTY STATE
   An empty screen is an invitation to act.
   --------------------------------------------------------- */
.empty {
  padding: var(--s-8) var(--s-5);
  text-align: center;
}
.empty__mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--s-4);
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-bright);
  color: var(--stone-600);
  transform: rotate(45deg);
}
.empty__mark > * { transform: rotate(-45deg); }
.empty__title {
  font-family: var(--display);
  font-size: var(--step-2);
  color: var(--stone-200);
  margin-bottom: var(--s-2);
}
.empty__body {
  max-width: 34ch;
  margin-inline: auto;
  font-size: var(--step--1);
  color: var(--stone-500);
  line-height: 1.7;
}
.empty .btn { margin-top: var(--s-5); }


/* ---------------------------------------------------------
   SKELETON
   --------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg,
    var(--navy-600) 25%,
    var(--navy-500) 50%,
    var(--navy-600) 75%);
  background-size: 200% 100%;
  border-radius: var(--r-sm);
  animation: sweep 1.4s linear infinite;
}
@keyframes sweep {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}


/* ---------------------------------------------------------
   SPINNER
   --------------------------------------------------------- */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: currentColor;
  border-radius: var(--r-full);
  animation: spin 640ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ---------------------------------------------------------
   TEACHING PROSE
   The reading surface. This is where a man spends his time,
   so it gets the most care.
   --------------------------------------------------------- */
.prose {
  font-size: var(--step-1);
  line-height: 1.85;
  color: var(--stone-300);
}

.prose > * + * { margin-top: var(--s-5); }

.prose h2 {
  font-size: var(--step-2);
  margin-top: var(--s-7);
  color: var(--stone-100);
}

.prose h3 {
  font-family: var(--body);
  font-size: var(--step-1);
  font-weight: 700;
  margin-top: var(--s-6);
  color: var(--stone-100);
}

.prose strong { color: var(--stone-100); font-weight: 600; }

.prose em { color: var(--stone-200); }

.prose ul, .prose ol { padding-left: var(--s-5); }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 0.75em;
  width: 5px;
  height: 5px;
  background: var(--bronze);
  border-radius: 1px;
  transform: rotate(45deg);
}
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--bronze); font-weight: 700; }
.prose li + li { margin-top: var(--s-3); }

.prose blockquote {
  border-left: 3px solid var(--forest);
  padding-left: var(--s-5);
  font-style: italic;
  color: var(--stone-200);
}

.prose a { text-decoration: underline; text-underline-offset: 3px; }


/* ---------------------------------------------------------
   ACTION STEPS
   A checklist a man can actually tick.
   --------------------------------------------------------- */
.steps { counter-reset: step; }

.step {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 0; }

.step__num {
  counter-increment: step;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-bright);
  border-radius: var(--r-sm);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bronze);
  transform: rotate(45deg);
}
.step__num::before {
  content: counter(step, decimal-leading-zero);
  transform: rotate(-45deg);
}

.step__body {
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--stone-300);
  padding-top: 2px;
}


/* ---------------------------------------------------------
   UTILITIES
   --------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hide { display: none !important; }

.text-center { text-align: center; }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root {
    --step-3: 1.625rem;
    --step-4: 2rem;
    --step-5: 2.5rem;
  }

  .shell { padding-inline: var(--s-4); }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .section { padding-block: var(--s-6); }

  .card--roomy { padding: var(--s-5); }

  .prose { font-size: var(--step-0); }
}
