/* ==========================================================================
   Dr. Sandy Nielsen — site styles
   Accent palette: ISU Red (final choice).
   ========================================================================== */

:root {
  /* Structural tokens shared by every theme */
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #5b6472;
  --border: #e6e8ec;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-hover: 0 4px 10px rgba(16, 24, 40, 0.10), 0 12px 28px rgba(16, 24, 40, 0.14);
  --maxw: 480px;

  --accent: #c8102e;
  --accent-strong: #a60d26;
  --accent-contrast: #ffffff;
  --accent-soft: #fdecef;
  --ring: rgba(200, 16, 46, 0.35);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 48px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ----- Profile header ----- */
.profile {
  text-align: center;
}

.profile__photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card);
  box-shadow: var(--shadow);
  margin: 0 auto 16px;
  display: block;
}

.profile__name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.profile__title {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.profile__bio {
  color: var(--text);
  font-size: 0.98rem;
  margin: 0 auto;
  max-width: 40ch;
}

/* ----- Button stack ----- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
}

.link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.link:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

.link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), var(--shadow);
  border-color: var(--accent);
}

.link__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.link__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.link__label {
  line-height: 1.25;
}

.link__sub {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Secondary (lighter weight) links */
.link--secondary {
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}

.link--secondary:hover {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* ----- QM Connect group (TEMP) — one card: survey on top, handout docked below ----- */
.qm-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease;
}

.qm-card:hover {
  box-shadow: var(--shadow-hover);
}

/* Survey sits flush inside the card (loses its own radius/shadow) */
.qm-card .featured {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Handout docked as a footer row, visually part of the same card */
.qm-card__handout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-top: 2px solid var(--accent-strong);
  transition: background 0.15s ease;
}

.qm-card__handout:hover {
  background: var(--accent-soft);
}

.qm-card__handout:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--ring);
}

/* Featured survey card (TEMP — QM Connect 2026) */
.featured {
  display: block;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid var(--accent-strong);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.featured:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.featured:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

.featured:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), var(--shadow-hover);
}

.featured__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 10px;
}

.featured__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.featured__meta {
  font-size: 0.85rem;
  opacity: 0.92;
  margin: 0 0 14px;
}

.featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.featured__cta svg {
  width: 18px;
  height: 18px;
}

/* ----- Section headings (papers / about) ----- */
.section {
  margin-top: 28px;
}

.section__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 12px;
}

/* Paper list item */
.paper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.paper:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.paper:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), var(--shadow);
  border-color: var(--accent);
}

.paper__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 2px;
}

.paper__body {
  min-width: 0;
}

.paper__title {
  font-weight: 600;
  line-height: 1.3;
}

.paper__desc {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 3px;
}

/* ----- Prose (about page) ----- */
.prose {
  margin-top: 20px;
  color: var(--text);
}

.prose p {
  margin: 0 0 14px;
}

.prose h2 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--accent);
  text-decoration-color: var(--ring);
}

/* ----- Back link ----- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.back:hover {
  color: var(--accent);
}

.back svg {
  width: 16px;
  height: 16px;
}

/* ----- Footer ----- */
.footer {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
