:root {
  color-scheme: dark;
  --offmat-bg: #050505;
  --offmat-surface: #0e0e0e;
  --offmat-surface-elevated: #161616;
  --offmat-red: #e63946;
  --offmat-red-light: #ff5966;
  --offmat-red-deep: #be2734;
  --offmat-text: #f5f5f7;
  --offmat-body: #d2d2d7;
  --offmat-muted: #99999f;
  --offmat-border: rgba(255, 255, 255, 0.1);
  --offmat-green: #58b785;
  --offmat-max: 1160px;
  --offmat-reading: 760px;
  --offmat-radius: 22px;
  --offmat-font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  min-width: 320px;
  background: var(--offmat-bg);
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--offmat-bg);
  color: var(--offmat-body);
  font-family: var(--offmat-font);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
.data-table-wrap:focus-visible {
  outline: 3px solid var(--offmat-red-light);
  outline-offset: 4px;
}

::selection {
  background: rgba(230, 57, 70, 0.35);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 15px;
  border-radius: 10px;
  background: #fff;
  color: #050505;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.seo-site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  background: #050505;
}

.seo-site-background picture,
.seo-site-background img {
  width: 100%;
  height: 100%;
}

.seo-site-background img {
  object-fit: cover;
  object-position: center top;
  opacity: 0.44;
  filter: saturate(0.78) contrast(1.04);
}

.seo-site-background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.44) 0%, rgba(5, 5, 5, 0.86) 48%, #050505 100%),
    radial-gradient(circle at 74% 16%, rgba(230, 57, 70, 0.13), transparent 31rem);
}

.seo-site-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.18;
  background: repeating-linear-gradient(112deg, transparent 0 96px, rgba(230, 57, 70, 0.11) 97px 98px, transparent 99px 190px);
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
}

.site-layer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(5, 5, 5, 0.83);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.header-inner,
.page-shell,
.site-footer-inner {
  width: min(calc(100% - 48px), var(--offmat-max));
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--offmat-text);
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-link img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  color: var(--offmat-muted);
  font-size: 0.85rem;
  font-weight: 760;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.055);
  color: var(--offmat-text);
}

.header-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(230, 57, 70, 0.55);
  border-radius: 13px;
  background: rgba(230, 57, 70, 0.12);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 820;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.header-cta:hover {
  border-color: var(--offmat-red-light);
  background: rgba(230, 57, 70, 0.2);
  transform: translateY(-1px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  color: var(--offmat-muted);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.breadcrumbs a {
  color: var(--offmat-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--offmat-text);
}

.breadcrumb-separator {
  color: #55555a;
}

.hero {
  padding: clamp(76px, 11vw, 150px) 0 clamp(62px, 8vw, 108px);
}

.hero--hub {
  padding-bottom: clamp(52px, 7vw, 86px);
}

.hero-copy {
  max-width: 970px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--offmat-red-light);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--offmat-text);
  font-weight: 880;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.94;
}

.hero--hub h1 {
  max-width: 900px;
}

.accent {
  color: var(--offmat-red-light);
  text-shadow: 0 0 54px rgba(230, 57, 70, 0.24);
}

.hero-lede {
  max-width: 760px;
  margin: 30px 0 0;
  color: #d9d9de;
  font-size: clamp(1.08rem, 2.1vw, 1.36rem);
  line-height: 1.58;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.ai-disclaimer {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--offmat-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button-primary {
  border: 1px solid #d63441;
  background: #cf303d;
  box-shadow: 0 14px 36px -20px rgba(230, 57, 70, 0.85);
  color: #fff;
}

.button-primary:hover {
  background: #de3946;
  box-shadow: 0 18px 46px -20px rgba(230, 57, 70, 0.9);
  transform: translateY(-2px);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 15, 15, 0.72);
  color: var(--offmat-text);
}

.button-secondary:hover {
  border-color: rgba(230, 57, 70, 0.62);
  background: rgba(230, 57, 70, 0.08);
  transform: translateY(-2px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 27px 0 0;
  color: var(--offmat-muted);
  font-size: 0.83rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--offmat-red);
  content: "";
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  gap: clamp(48px, 8vw, 92px);
  align-items: start;
  padding-bottom: clamp(82px, 11vw, 142px);
}

.article-content {
  min-width: 0;
  max-width: var(--offmat-reading);
}

.hub-content {
  padding-bottom: clamp(82px, 11vw, 142px);
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content h2 {
  margin: 68px 0 20px;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.02;
  scroll-margin-top: 100px;
}

.article-content h3 {
  margin: 34px 0 14px;
  font-size: clamp(1.3rem, 2.7vw, 1.74rem);
  line-height: 1.14;
  scroll-margin-top: 100px;
}

.article-content h4 {
  margin: 27px 0 10px;
  font-size: 1.06rem;
  line-height: 1.2;
  letter-spacing: -0.022em;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin-top: 0;
  margin-bottom: 23px;
}

.article-content strong {
  color: #f2f2f4;
}

.article-content a:not(.button-primary):not(.button-secondary):not(.resource-card) {
  color: #ff7882;
  text-decoration-color: rgba(255, 120, 130, 0.5);
  text-underline-offset: 3px;
}

.article-content li + li {
  margin-top: 9px;
}

.article-content ul,
.article-content ol {
  padding-left: 1.35rem;
}

.article-content li::marker {
  color: var(--offmat-red-light);
  font-weight: 800;
}

.article-intro {
  margin-bottom: 40px;
  padding: 25px 27px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-left: 3px solid var(--offmat-red);
  border-radius: 4px var(--offmat-radius) var(--offmat-radius) 4px;
  background: rgba(16, 16, 16, 0.78);
  color: #e0e0e4;
  font-size: 1.04rem;
}

.article-intro p:last-child {
  margin-bottom: 0;
}

.toc {
  position: sticky;
  top: 98px;
  padding: 20px;
  border: 1px solid var(--offmat-border);
  border-radius: 18px;
  background: rgba(14, 14, 14, 0.78);
  box-shadow: 0 24px 60px -42px #000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toc-title {
  margin: 0 0 12px;
  color: #efeff1;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 3px;
}

.toc a {
  display: block;
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--offmat-muted);
  font-size: 0.78rem;
  font-weight: 680;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--offmat-text);
}

.callout,
.template-card,
.example-card,
.warning-card {
  margin: 31px 0;
  padding: clamp(21px, 4vw, 30px);
  border-radius: var(--offmat-radius);
}

.callout {
  border: 1px solid rgba(230, 57, 70, 0.38);
  background:
    linear-gradient(135deg, rgba(230, 57, 70, 0.12), transparent 66%),
    rgba(15, 15, 15, 0.88);
}

.template-card,
.example-card {
  border: 1px solid var(--offmat-border);
  background: rgba(18, 18, 18, 0.86);
  box-shadow: 0 24px 70px -50px #000;
}

.warning-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.callout h3,
.template-card h3,
.example-card h3,
.warning-card h3 {
  margin-top: 0;
}

.callout > :last-child,
.template-card > :last-child,
.example-card > :last-child,
.warning-card > :last-child {
  margin-bottom: 0;
}

.mini-label {
  display: block;
  margin-bottom: 8px;
  color: var(--offmat-red-light);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.principle-grid,
.step-grid,
.guide-grid,
.related-grid {
  display: grid;
  gap: 15px;
  margin: 31px 0;
}

.principle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 clamp(86px, 11vw, 140px);
}

.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.principle-card,
.step-card,
.guide-card,
.resource-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--offmat-border);
  border-radius: var(--offmat-radius);
  background: rgba(15, 15, 15, 0.82);
}

.principle-card,
.step-card {
  padding: 24px;
}

.principle-card::before,
.step-card::before,
.guide-card::before,
.resource-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 74px;
  height: 2px;
  background: var(--offmat-red);
  content: "";
}

.principle-card h3,
.step-card h3 {
  margin: 0 0 11px;
  font-size: 1.15rem;
}

.principle-card p,
.step-card p {
  margin: 0;
  color: var(--offmat-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.step-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(230, 57, 70, 0.48);
  border-radius: 9px;
  background: rgba(230, 57, 70, 0.11);
  color: var(--offmat-red-light);
  font-size: 0.76rem;
  font-weight: 900;
}

.data-table-wrap {
  max-width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid var(--offmat-border);
  border-radius: 18px;
  background: rgba(14, 14, 14, 0.86);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.5;
}

.data-table th,
.data-table td {
  padding: 15px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--offmat-text);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td {
  color: #bcbcc2;
}

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

.prompt-block {
  margin: 27px 0;
  padding: 22px 24px;
  border: 1px solid rgba(230, 57, 70, 0.35);
  border-radius: 17px;
  background: #101010;
  color: #e7e7e9;
  font-size: 0.93rem;
  line-height: 1.62;
}

.prompt-block strong {
  display: block;
  margin-bottom: 7px;
  color: var(--offmat-red-light);
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compact-checklist {
  padding-left: 0 !important;
  list-style: none;
}

.compact-checklist li {
  position: relative;
  padding-left: 30px;
}

.compact-checklist li::before {
  position: absolute;
  top: 0.24em;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(230, 57, 70, 0.6);
  border-radius: 5px;
  background: rgba(230, 57, 70, 0.08);
  content: "";
}

.note-line {
  margin: 26px 0;
  padding: 15px 0 15px 20px;
  border-left: 2px solid rgba(230, 57, 70, 0.62);
  color: #adadb3;
  font-size: 0.9rem;
}

/* Page-specific training tools keep the guides visual without adding decoration. */
.session-sheet dl,
.session-sheet dd {
  margin: 0;
}

.session-sheet-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.session-sheet-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.session-label {
  color: var(--offmat-red-light);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-map {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) auto minmax(0, 1.2fr);
  gap: 18px;
  align-items: center;
  margin: 31px 0;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(230, 57, 70, 0.32);
  border-radius: var(--offmat-radius);
  background:
    linear-gradient(135deg, rgba(230, 57, 70, 0.09), transparent 48%),
    rgba(13, 13, 13, 0.9);
}

.route-branches {
  display: grid;
  gap: 10px;
}

.route-node {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px 17px 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(20, 20, 20, 0.88);
}

.route-node::before {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--offmat-red-light);
  box-shadow: 0 0 18px rgba(230, 57, 70, 0.8);
  content: "";
}

.route-node span,
.timestamp {
  color: var(--offmat-red-light);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-node strong {
  color: var(--offmat-text);
  font-size: 0.96rem;
}

.route-node small {
  color: var(--offmat-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.route-node--recovery {
  border-color: rgba(88, 183, 133, 0.26);
}

.route-node--recovery::before {
  background: var(--offmat-green);
}

.route-arrow {
  color: var(--offmat-red-light);
  font-size: 1.45rem;
  font-weight: 800;
}

.anchor-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 27px 0;
}

.anchor-strip span {
  padding: 12px 8px;
  border: 1px solid var(--offmat-border);
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.82);
  color: #d7d7db;
  font-size: 0.74rem;
  font-weight: 760;
  text-align: center;
}

.film-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 31px 0;
}

.film-frame {
  position: relative;
  min-height: 170px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--offmat-border);
  border-radius: 17px;
  background:
    linear-gradient(90deg, rgba(230, 57, 70, 0.08), transparent 36%),
    rgba(15, 15, 15, 0.9);
}

.film-frame::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  box-shadow: 0 -18px 0 -1px rgba(15, 15, 15, 1), 0 -18px 0 0 rgba(255, 255, 255, 0.18);
  content: "";
}

.film-frame strong {
  display: block;
  margin: 14px 0 8px;
  color: var(--offmat-text);
  font-size: 1.05rem;
}

.film-frame p {
  margin: 0;
  color: var(--offmat-muted);
  font-size: 0.87rem;
  line-height: 1.52;
}

.review-log {
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--offmat-border);
  border-radius: 18px;
  background: rgba(14, 14, 14, 0.88);
}

.review-log-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.review-log-row:last-child {
  border-bottom: 0;
}

.review-log-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--offmat-text);
  font-size: 0.86rem;
}

.review-log-row p {
  margin: 0;
  color: var(--offmat-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.coach-quote {
  margin: 44px 0;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(230, 57, 70, 0.28);
  border-radius: var(--offmat-radius);
  background: rgba(14, 14, 14, 0.88);
}

.coach-quote p {
  margin: 0 0 14px;
  color: var(--offmat-text);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 760;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.coach-quote cite,
.coach-quote cite a,
.coach-quote footer,
.coach-quote footer a {
  color: var(--offmat-muted);
  font-size: 0.76rem;
  font-style: normal;
  text-decoration-color: rgba(255, 255, 255, 0.28);
}

.improvement-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin: 30px 0;
}

.improvement-node {
  position: relative;
  min-width: 0;
  padding: 21px 18px;
  border: 1px solid var(--offmat-border);
  border-radius: 17px;
  background: rgba(15, 15, 15, 0.88);
}

.improvement-node::before {
  position: absolute;
  top: 0;
  left: 18px;
  width: 42px;
  height: 2px;
  background: var(--offmat-red);
  content: "";
}

.improvement-node h3 {
  margin: 13px 0 8px;
  font-size: 1.02rem;
}

.improvement-node p {
  margin: 0;
  color: var(--offmat-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.section-divider {
  width: 100%;
  height: 1px;
  margin: 76px 0;
  border: 0;
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.48), rgba(255, 255, 255, 0.07) 38%, transparent);
}

.article-cta {
  margin: 68px 0 0;
  padding: clamp(28px, 5vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(230, 57, 70, 0.42);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% -20%, rgba(230, 57, 70, 0.22), transparent 18rem),
    #101010;
}

.article-cta h2 {
  max-width: 590px;
  margin: 0 0 16px;
}

.article-cta p {
  max-width: 590px;
  color: #bcbcc2;
}

.hub-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
  margin: 0 0 clamp(58px, 8vw, 98px);
  padding-top: 10px;
}

.hub-intro h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  line-height: 1.02;
}

.hub-intro p {
  margin: 0;
  color: #c3c3c8;
  font-size: 1.02rem;
}

.guide-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: clamp(25px, 4vw, 36px);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.guide-grid .guide-card:first-child {
  grid-column: 1 / -1;
  min-height: 250px;
  background:
    radial-gradient(circle at 92% 8%, rgba(230, 57, 70, 0.18), transparent 20rem),
    rgba(15, 15, 15, 0.88);
}

.guide-grid .guide-card:first-child h2,
.guide-grid .guide-card:first-child p {
  max-width: 700px;
}

.guide-card:hover {
  border-color: rgba(230, 57, 70, 0.5);
  background: rgba(20, 20, 20, 0.92);
  box-shadow: 0 28px 68px -44px rgba(230, 57, 70, 0.45);
  transform: translateY(-4px);
}

.guide-card .card-kicker {
  margin: 0 0 34px;
  color: var(--offmat-red-light);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.guide-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3.5vw, 2.45rem);
  line-height: 1.04;
}

.guide-card p {
  margin: 0;
  color: var(--offmat-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.guide-card .card-link {
  margin-top: auto;
  padding-top: 30px;
  color: var(--offmat-text);
  font-size: 0.84rem;
  font-weight: 830;
}

.guide-card .card-link::after {
  margin-left: 8px;
  color: var(--offmat-red-light);
  content: "\2192";
}

.related-reading {
  margin-top: 68px;
}

.related-reading > h2 {
  margin-bottom: 25px;
}

.resource-card {
  display: block;
  min-height: 170px;
  padding: 24px;
  text-decoration: none !important;
  transition: transform 160ms ease, border-color 160ms ease;
}

.resource-card:hover {
  border-color: rgba(230, 57, 70, 0.45);
  transform: translateY(-3px);
}

.resource-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--offmat-text);
  font-size: 1.08rem;
  line-height: 1.18;
}

.resource-card span {
  color: var(--offmat-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(5, 5, 5, 0.8);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 128px;
}

.footer-brand {
  margin: 0;
  color: var(--offmat-muted);
  font-size: 0.83rem;
}

.footer-brand strong {
  color: var(--offmat-text);
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.footer-links a {
  color: var(--offmat-muted);
  font-size: 0.79rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--offmat-text);
}

@media (max-width: 900px) {
  .primary-nav a:not([aria-current="page"]) {
    display: none;
  }

  .content-layout {
    display: block;
  }

  .toc {
    display: none;
  }

  .article-content {
    max-width: none;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .page-shell,
  .site-footer-inner {
    width: min(calc(100% - 32px), var(--offmat-max));
  }

  .header-inner {
    min-height: 66px;
    gap: 10px;
  }

  .brand-link span {
    display: none;
  }

  .brand-link img {
    width: 34px;
    height: 34px;
  }

  .primary-nav {
    margin-left: auto;
  }

  .primary-nav a {
    padding-inline: 11px;
  }

  .header-cta {
    padding-inline: 13px;
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 66px;
  }

  h1 {
    font-size: clamp(2.8rem, 15.5vw, 4.7rem);
    line-height: 0.96;
  }

  .hero-lede {
    margin-top: 24px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .article-meta {
    display: grid;
    gap: 7px;
  }

  .article-content h2 {
    margin-top: 54px;
  }

  .principle-grid,
  .step-grid,
  .guide-grid,
  .related-grid,
  .hub-intro {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 230px;
  }

  .guide-grid .guide-card:first-child {
    grid-column: auto;
    min-height: 240px;
  }

  .route-map {
    grid-template-columns: 1fr;
  }

  .route-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .anchor-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anchor-strip span:last-child {
    grid-column: 1 / -1;
  }

  .review-log-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .review-log-row > :last-child {
    grid-column: 2;
  }

  .session-sheet-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .improvement-rail,
  .film-timeline {
    grid-template-columns: 1fr;
  }

  .improvement-node {
    padding: 18px;
  }

  .improvement-node:has(.step-number) {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 3px 12px;
    align-items: start;
  }

  .improvement-node:has(.step-number) .step-number {
    grid-row: 1 / 3;
    margin: 0;
  }

  .improvement-node:has(.step-number) h3,
  .improvement-node:has(.step-number) p {
    grid-column: 2;
  }

  .improvement-node:has(.step-number) h3 {
    margin: 0 0 3px;
  }

  .film-frame {
    min-height: 0;
  }

  .article-intro,
  .callout,
  .template-card,
  .example-card,
  .warning-card,
  .article-cta {
    padding: 21px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 30px 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 370px) {
  .primary-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .seo-site-background,
  .site-header,
  .site-footer,
  .hero-actions,
  .toc,
  .article-cta {
    display: none !important;
  }

  body {
    background: #fff;
    color: #151515;
  }

  h1,
  h2,
  h3,
  h4,
  .article-content strong {
    color: #050505;
  }

  .hero {
    padding: 32px 0;
  }

  .content-layout {
    display: block;
    padding-bottom: 0;
  }

  .article-intro,
  .callout,
  .template-card,
  .example-card,
  .warning-card,
  .principle-card,
  .step-card {
    break-inside: avoid;
    border-color: #bbb;
    background: #fff;
    color: #222;
    box-shadow: none;
  }
}
