/* ==========================================================================
   Pre-Production Handbook — page styles
   Built on the Susquehanna University Design System tokens
   (assets/susquehanna/styles.css). This file only adds page-specific
   layout/decoration and maps Bootstrap to the brand tokens.
   ========================================================================== */
:root {
  --bs-body-bg: var(--su-cream);
  --bs-body-color: var(--su-black);
  --bs-body-font-family: var(--font-body);
  --bs-border-color: var(--border-default);
  --bs-border-radius: var(--radius-sm);

  --bs-primary: var(--su-maroon);
  --bs-primary-rgb: 101, 28, 50;
  --bs-link-color: var(--text-link);
  --bs-link-hover-color: var(--text-link-hover);

  --bs-dark: var(--su-web-maroon);
  --bs-dark-rgb: 65, 28, 50;

  --bs-card-bg: var(--surface-card);
  --bs-card-border-color: var(--border-subtle);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .display-3, .display-5 {
  font-family: var(--font-heading);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5,
.text-light h1, .text-light h2, .text-light h3, .text-light h4, .text-light h5 {
  color: var(--su-white);
}

.text-light-emphasis {
  color: rgba(255, 255, 255, 0.85) !important;
}

.tool-callout p,
.path-cards p {
  color: rgba(255, 255, 255, 0.85);
}

.display-3 { letter-spacing: var(--tracking-display); }

.eyebrow, .mini-label {
  color: var(--su-web-orange);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
}

.mini-label {
  font-size: 0.75rem;
}

.text-maroon { color: var(--su-maroon) !important; }
.text-maroon-light { color: var(--su-maroon-300) !important; }

/* ==========================================================================
   Buttons — pill-shaped per the SU Button primitive
   ========================================================================== */
.btn {
  --bs-btn-border-radius: var(--radius-pill);
  --bs-btn-padding-y: 0.75rem;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-font-weight: 700;
  --bs-btn-font-family: var(--font-heading);
  --bs-btn-transition: filter var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}

.btn:hover, .btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(0.94);
}

.btn-maroon {
  --bs-btn-color: var(--su-white);
  --bs-btn-bg: var(--su-maroon);
  --bs-btn-border-color: var(--su-maroon);
  --bs-btn-border-width: 2px;
  --bs-btn-hover-color: var(--su-white);
  --bs-btn-hover-bg: var(--su-maroon);
  --bs-btn-hover-border-color: var(--su-maroon);
  --bs-btn-active-color: var(--su-white);
  --bs-btn-active-bg: var(--su-web-maroon);
  --bs-btn-active-border-color: var(--su-web-maroon);
  --bs-btn-focus-shadow-rgb: 101, 28, 50;
}

.btn-outline-maroon {
  --bs-btn-color: var(--su-maroon);
  --bs-btn-border-color: var(--su-maroon);
  --bs-btn-border-width: 2px;
  --bs-btn-hover-color: var(--su-maroon);
  --bs-btn-hover-bg: var(--su-maroon-tint);
  --bs-btn-hover-border-color: var(--su-maroon);
  --bs-btn-active-color: var(--su-maroon);
  --bs-btn-active-bg: var(--su-maroon-tint);
  --bs-btn-active-border-color: var(--su-maroon);
}

/* ==========================================================================
   Header / navbar
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand img { height: 26px; display: block; }

.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--border-default);
}

.brand-subtitle {
  color: var(--su-stadium-grey);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: var(--tracking-tight);
}

.navbar-nav .nav-link {
  color: var(--su-stadium-grey);
  font-family: var(--font-heading);
  font-weight: 700;
  position: relative;
}

.navbar-nav .nav-link::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--su-orange);
  transform: scaleX(0);
  transform-origin: 0;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
  color: var(--su-maroon);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus-visible::after,
.footer-links a:hover::after {
  transform: scaleX(1);
}

/* ==========================================================================
   Hero — storyboard showcase visual
   ========================================================================== */
.hero-copy {
  max-width: 50rem;
}

.hero-intro {
  max-width: 42rem;
}

.maroon-rule {
  width: 98px;
  height: 3px;
  background: var(--su-orange);
}

.storyboard-showcase {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--su-white);
  box-shadow: var(--shadow-md);
  padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem) 2rem;
  position: relative;
}

.storyboard-showcase-header {
  margin-bottom: 1rem;
}

.showcase-caption {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.panel-number {
  color: var(--su-maroon);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: var(--tracking-tight);
}

.frame {
  aspect-ratio: 16 / 9;
  border: 2px solid var(--su-black);
  padding: 5px;
  position: relative;
}

.frame::before, .frame::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 12px;
  height: 12px;
  border-color: var(--su-orange);
  border-style: solid;
}

.frame::before { left: -8px; border-width: 1px 0 0 1px; }
.frame::after { right: -8px; border-width: 1px 1px 0 0; }

.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.frame.frame-wide {
  aspect-ratio: 3 / 2;
  border-width: 1px;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.frame.frame-wide img { object-fit: contain; background: var(--su-grey-100); }

.registration { position: absolute; width: 28px; height: 28px; }
.registration::before, .registration::after { content: ""; position: absolute; background: var(--su-black); }
.registration::before { top: 14px; left: 0; width: 28px; height: 1px; }
.registration::after { top: 0; left: 14px; width: 1px; height: 28px; }
.registration.top-left { top: -14px; left: -14px; }
.registration.top-right { top: -14px; right: -14px; }
.registration.bottom-left { bottom: -14px; left: -14px; }
.registration.bottom-right { bottom: -14px; right: -14px; }

.character-sheet-sample,
.review-draft-image {
  display: block;
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Workflow rail
   ========================================================================== */
.workflow-rail-link {
  color: var(--su-black);
  text-decoration: none;
  border-right: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
  margin-left: -1px;
}

.workflow-rail-link .step-num {
  color: var(--su-maroon);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: var(--tracking-display);
}

.workflow-rail-link b {
  color: var(--su-orange);
  font-size: 1.5rem;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.workflow-rail-link:hover b { transform: translateX(5px); }

/* ==========================================================================
   Numbered sections — big Arial numerals, per the Stat primitive
   ========================================================================== */
.section-number {
  color: var(--su-maroon);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 4rem;
  letter-spacing: var(--tracking-display);
}

@media (min-width: 992px) {
  .section-heading.compact { margin-left: min(10vw, 180px); }
  .moment-layout, .character-grid, .tool-callout, .quick-steps,
  .prompt-body, .review-layout {
    margin-left: min(10vw, 180px);
  }
}

/* ==========================================================================
   Cards & content blocks — brand card spec: 8px radius, soft shadow, hairline
   ========================================================================== */
.card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.workflow-card {
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.workflow-card .step-num {
  color: var(--su-orange);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: var(--tracking-display);
}

.link-workflow {
  color: var(--su-orange);
}

.prompt-template {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--su-maroon);
}

.prompt-template pre {
  background: var(--su-white);
  color: var(--su-black);
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.65;
  padding: 1.5rem;
  margin: 0;
  white-space: pre-wrap;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-height: 32rem;
  overflow-y: auto;
}

.prompt-layers .step-num {
  color: var(--su-maroon);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: var(--tracking-display);
}

.checklist .form-check {
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

.checklist .form-check:first-of-type { border-top: 0; }

.checklist .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
}

.checklist .form-check-input:checked {
  background-color: var(--su-maroon);
  border-color: var(--su-maroon);
}

.checklist .form-check-input:focus {
  border-color: var(--su-maroon);
  box-shadow: 0 0 0 0.25rem rgba(101, 28, 50, 0.2);
}

.revision-loop {
  background: var(--su-maroon);
  color: var(--su-white);
}

.revision-loop .eyebrow { color: #f0bac7; }

.revision-loop .step-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
}

.revision-loop li {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.revision-loop li:first-child { border-top: 0; }

.path-cards article {
  background: var(--su-web-maroon);
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.path-cards span {
  color: var(--su-orange);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ==========================================================================
   Footer — maroon inverse, matching the SU site footer treatment
   ========================================================================== */
footer {
  background: var(--su-web-maroon);
  color: rgba(255, 255, 255, 0.8);
}

footer strong { color: var(--su-white); }
footer p { color: rgba(255, 255, 255, 0.65); font-size: 0.875rem; }

.footer-links a { color: rgba(255, 255, 255, 0.85); }
.footer-links a:hover { color: var(--su-orange); }

/* ==========================================================================
   Motion preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
