:root {
  --bg: #f3ebdd;
  --paper: rgba(255, 249, 241, 0.92);
  --ink: #1f2c31;
  --muted: #5f6b70;
  --line: rgba(31, 44, 49, 0.12);
  --warm: #dc6740;
  --warm-deep: #b64f2d;
  --cool: #1b7d88;
  --cool-deep: #0f5861;
  --gold: #e5b04c;
  --shadow: 0 18px 36px rgba(31, 44, 49, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(229, 176, 76, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(27, 125, 136, 0.1), transparent 28%),
    linear-gradient(180deg, #fff8ef 0%, var(--bg) 100%);
}

body.theme-home {
  background:
    radial-gradient(circle at 8% 0%, rgba(229, 176, 76, 0.26), transparent 28%),
    radial-gradient(circle at 100% 6%, rgba(27, 125, 136, 0.14), transparent 26%),
    linear-gradient(180deg, #fff8ef 0%, var(--bg) 100%);
}

body.theme-taylor {
  background:
    radial-gradient(circle at 8% 0%, rgba(27, 125, 136, 0.18), transparent 28%),
    radial-gradient(circle at 100% 4%, rgba(229, 176, 76, 0.16), transparent 26%),
    linear-gradient(180deg, #fbf9f3 0%, #ede7db 100%);
}

body.theme-bailey {
  background:
    radial-gradient(circle at 6% 0%, rgba(220, 103, 64, 0.16), transparent 28%),
    radial-gradient(circle at 100% 6%, rgba(229, 176, 76, 0.18), transparent 26%),
    linear-gradient(180deg, #fff7f1 0%, #f0e7dc 100%);
}

body.theme-sheila {
  background:
    radial-gradient(circle at 10% 0%, rgba(123, 153, 68, 0.14), transparent 28%),
    radial-gradient(circle at 100% 5%, rgba(27, 125, 136, 0.16), transparent 24%),
    linear-gradient(180deg, #fbfaf5 0%, #ece7de 100%);
}

a {
  color: var(--cool-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
}

.site-shell {
  width: min(var(--max-width), calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.topbar,
.hero,
.section-card,
.character-shell,
.footer-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 250, 243, 0.72);
  backdrop-filter: blur(10px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, var(--warm), var(--cool));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-text strong {
  display: block;
  font-size: 1rem;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a,
.button,
.button-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.nav a {
  color: var(--ink);
  background: rgba(31, 44, 49, 0.04);
  border: 1px solid rgba(31, 44, 49, 0.08);
}

.hero {
  margin-top: 16px;
  overflow: hidden;
  color: #fffaf3;
  background:
    radial-gradient(circle at 90% 14%, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(135deg, rgba(220, 103, 64, 0.96), rgba(182, 79, 45, 0.96));
  padding: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
  align-items: end;
}

.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.93;
  max-width: 780px;
}

.hero p {
  margin: 0;
  max-width: 760px;
  line-height: 1.68;
  color: rgba(255, 250, 243, 0.93);
}

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

.button {
  color: #fffaf3;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.button-alt {
  color: var(--cool-deep);
  background: rgba(255, 250, 243, 0.92);
  border: 1px solid rgba(255, 250, 243, 0.85);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 6px;
}

.stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.section-card,
.footer-card,
.character-shell {
  background: var(--paper);
}

.section-card,
.footer-card {
  padding: 22px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
}

.section-head p,
.section-card p,
.footer-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(27, 125, 136, 0.1);
  border: 1px solid rgba(27, 125, 136, 0.14);
  color: var(--cool-deep);
  font-weight: 700;
}

.feature-grid,
.triptych,
.character-grid,
.path-grid,
.quote-grid,
.rules-grid,
.rule-notes {
  display: grid;
  gap: 14px;
}

.feature-grid,
.triptych,
.character-grid {
  grid-template-columns: repeat(3, 1fr);
}

.path-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

.rules-grid {
  grid-template-columns: repeat(4, 1fr);
}

.rule-notes {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.feature,
.product-card,
.path-step,
.quote-card,
.rule-card,
.note-card,
.related-card,
.module,
.exercise-card,
.food-card,
.line-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 235, 221, 0.82));
  padding: 16px;
}

.feature strong,
.product-card strong,
.path-step strong,
.quote-card strong,
.rule-card strong,
.note-card strong,
.related-card strong,
.exercise-card strong,
.food-card strong,
.line-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.feature p,
.product-card p,
.path-step p,
.quote-card p,
.rule-card p,
.note-card p,
.related-card p,
.module p,
.exercise-card p,
.food-card p,
.line-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.character-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 235, 221, 0.82));
  padding: 18px;
  box-shadow: 0 14px 24px rgba(31, 44, 49, 0.06);
}

.rule-card {
  min-height: 170px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 238, 227, 0.86));
}

.rule-card.special {
  border-color: rgba(229, 176, 76, 0.34);
  background:
    radial-gradient(circle at top right, rgba(229, 176, 76, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(245, 235, 217, 0.9));
}

.rule-notes .note-card {
  background: linear-gradient(180deg, rgba(250, 248, 242, 0.98), rgba(240, 233, 221, 0.88));
}

.note-card.accent {
  border-color: rgba(27, 125, 136, 0.24);
  background:
    radial-gradient(circle at top left, rgba(27, 125, 136, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(247, 252, 251, 0.98), rgba(233, 242, 239, 0.9));
}

.deck-note {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(229, 176, 76, 0.22);
  background:
    radial-gradient(circle at top right, rgba(229, 176, 76, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(243, 234, 221, 0.86));
}

.deck-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.deck-note p {
  margin: 0;
}

.deck-note .link-row {
  margin-top: 12px;
}

.character-card.male,
.portrait-panel.male {
  border-top: 8px solid var(--cool);
}

.character-card.female,
.portrait-panel.female {
  border-top: 8px solid var(--warm);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.mini-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 44, 49, 0.06);
  color: var(--ink);
  font-size: 0.76rem;
}

.character-card h3,
.portrait-panel h2 {
  margin: 0 0 6px;
}

.character-card h3 {
  font-size: 1.7rem;
}

.portrait-panel h2 {
  font-size: 2rem;
}

.subline {
  color: var(--muted);
  margin-bottom: 14px;
}

.prototype-photo {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(31, 44, 49, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 232, 220, 0.86));
  box-shadow: 0 12px 22px rgba(31, 44, 49, 0.08);
  margin-bottom: 14px;
}

.prototype-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.prototype-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(31, 44, 49, 0.14));
  pointer-events: none;
}

.prototype-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid rgba(31, 44, 49, 0.1);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prototype-photo.card-shot img {
  aspect-ratio: 5 / 4;
}

.prototype-photo.profile-shot img {
  aspect-ratio: 4 / 5;
}

.silhouette {
  height: 148px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.silhouette-body {
  width: 92px;
  height: 138px;
  border-radius: 999px 999px 28px 28px;
  background: linear-gradient(180deg, rgba(31, 44, 49, 0.94), rgba(31, 44, 49, 0.72));
  position: relative;
}

.silhouette-body::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(31, 44, 49, 0.94);
}

.silhouette-highlight {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(229, 176, 76, 0.96);
  box-shadow: 0 0 16px rgba(229, 176, 76, 0.4);
}

.traps {
  top: 14px;
  width: 82px;
  height: 22px;
}

.bicep {
  top: 54px;
  width: 108px;
  height: 18px;
}

.lowerback {
  top: 80px;
  width: 66px;
  height: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(31, 44, 49, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
}

.link-row,
.action-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(27, 125, 136, 0.08);
  text-decoration: none;
  font-weight: 700;
}

.character-shell {
  overflow: hidden;
}

.character-header {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.portrait-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 235, 221, 0.82));
  box-shadow: 0 14px 24px rgba(31, 44, 49, 0.06);
}

.profile-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 3.3vw, 3.4rem);
  line-height: 0.96;
}

.profile-subline {
  color: var(--cool-deep);
  font-weight: 700;
  margin-bottom: 10px;
}

.profile-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}

.quote-banner {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: 4px solid var(--gold);
  background: rgba(229, 176, 76, 0.1);
}

.quote-banner strong {
  display: block;
  margin-bottom: 4px;
}

.quote-banner p {
  margin: 0;
  color: var(--ink);
  font-style: italic;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
}

.content-main,
.content-side {
  padding: 20px;
}

.content-side {
  border-left: 1px solid var(--line);
  background: rgba(255, 249, 241, 0.76);
}

.module + .module {
  margin-top: 16px;
}

.module h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.muscle-map-grid {
  grid-template-columns: repeat(3, 1fr);
}

.muscle-map-grid .related-card {
  background: linear-gradient(180deg, rgba(247, 251, 246, 0.96), rgba(236, 243, 232, 0.86));
  border-color: rgba(123, 153, 68, 0.16);
}

.silhouette.placeholder {
  height: auto;
  padding: 18px 14px 10px;
  border-radius: 22px;
  border: 1px dashed rgba(31, 44, 49, 0.14);
  background: rgba(255, 255, 255, 0.5);
}

.placeholder-note {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.list-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.food-card {
  border-color: rgba(123, 153, 68, 0.18);
  background: linear-gradient(180deg, rgba(248, 252, 240, 0.96), rgba(239, 247, 226, 0.86));
}

.food-card strong {
  color: #475926;
}

.line-card p {
  font-style: italic;
  color: var(--ink);
}

.footer-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

@media (max-width: 1100px) {
  .hero-grid,
  .feature-grid,
  .triptych,
  .character-grid,
  .path-grid,
  .quote-grid,
  .character-header,
  .content-grid,
  .muscle-map-grid {
    grid-template-columns: 1fr;
  }

  .content-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 18px), var(--max-width));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section-card,
  .character-shell,
  .footer-card {
    border-radius: var(--radius-lg);
  }

  .hero {
    padding: 22px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}
