.house-profile {
  --house-accent: #e5c389;
  --house-glow: #b28b4a1c;
  --house-line: #354151;
  --house-muted: #bfc9d6;
  --house-panel: #141d28;
}
.house-profile-wolf { --house-accent: #d3e2f1; --house-glow: #90adce2a; }
.house-profile-lion { --house-glow: #a33d443b; }
.house-profile-dragon { --house-accent: #ffc2ba; --house-glow: #ad39443b; }
.house-profile-stag { --house-accent: #f2cd83; --house-glow: #b28b4a2b; }
.house-profile-kraken { --house-accent: #ebcf95; --house-glow: #9785762d; }
.house-profile-rose { --house-accent: #bedfbb; --house-glow: #40765b3b; }

.house-hero {
  padding-block: clamp(24px, 4vw, 56px) clamp(28px, 4vw, 52px);
  background: radial-gradient(ellipse at 80% 22%, var(--house-glow), transparent 52%);
}
.house-hero .breadcrumbs { margin-bottom: clamp(20px, 4vw, 42px); }
.house-introduction {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(155px, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 70px);
}
.house-heading { min-width: 0; }
.house-heading .page-title { margin: 0 0 14px; overflow-wrap: anywhere; }
.house-motto { color: var(--house-accent); font-weight: 600; margin: 0 0 8px; }
.house-heading .page-intro { max-width: 66ch; margin-bottom: 0; }
.house-standard { justify-self: center; }
.house-standard .world-badge { width: clamp(100px, 13vw, 170px); border-radius: 22px; }
.house-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 30px;
  border-top: 1px solid var(--house-line);
  padding-top: 20px;
  margin: clamp(24px, 4vw, 44px) 0 0;
}
.house-facts dt { color: var(--house-muted); font-size: .85rem; }
.house-facts dd { margin: 2px 0 0; font-weight: 600; }
.house-facts a { text-decoration: underline; text-underline-offset: .24em; color: var(--house-accent); }
.house-section-nav { border-bottom: 1px solid var(--house-line); }
.house-section-nav nav { display: flex; flex-wrap: wrap; gap: 2px 24px; padding-block: 6px; }
.house-section-nav a { color: var(--house-accent); padding-block: 8px; }
.house-section-nav a:hover { text-decoration: underline; }
.house-section { scroll-margin-top: 84px; padding-block: clamp(36px, 5vw, 68px); }
.house-section h2 { margin: 0 0 clamp(16px, 3vw, 28px); }
.house-family, .house-episodes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.house-family-card, .house-episode {
  padding: clamp(14px, 2.1vw, 24px);
  border: 1px solid var(--house-line);
  border-radius: 14px;
  background: var(--house-panel);
  overflow-wrap: anywhere;
}
.house-family-card h3, .house-episode h3 { margin: 5px 0 8px; font-size: clamp(1.18rem, 2.2vw, 1.52rem); }
.house-family-card p { margin: 0 0 12px; color: var(--house-muted); font-size: .96rem; }
.house-family-card p:last-child { margin-bottom: 0; }
.house-label { color: var(--house-accent); font-size: .8rem; font-weight: 600; }
.house-family-card .world-inline-links a { font-size: .85rem; }
.house-reading { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 70px); }
.house-reading header p { color: var(--house-muted); max-width: 25ch; margin: 0; }
.house-chapters { max-width: 74ch; min-width: 0; }
.house-chapters h3 { color: inherit; font-size: clamp(1.22rem, 2.4vw, 1.65rem); margin: 1.5em 0 .5em; }
.house-chapters h3:first-child { margin-top: 0; }
.house-chapters p { color: var(--house-muted); margin: 0 0 .9em; line-height: 1.73; }
.house-episode { display: flex; flex-direction: column; gap: 4px; height: 100%; }
.house-episode strong { color: #f4efe5; font-size: .94rem; }
.house-episode-summary { color: var(--house-muted); font-size: .92rem; line-height: 1.55; }
.house-episode:hover, .house-episode:focus-visible { border-color: var(--house-accent); }
.house-directory-link { display: inline-block; margin-top: 18px; }
@media (max-width: 890px) {
  .house-family, .house-episodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .house-introduction { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: start; }
  .house-heading { display: contents; }
  .house-heading .house-motto { grid-column: 1; grid-row: 1; align-self: end; }
  .house-heading .page-title { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .house-heading .page-intro { grid-column: 1 / -1; grid-row: 3; }
  .house-standard { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .house-standard .world-badge { width: clamp(52px, 15vw, 72px); border-radius: 12px; }
  .house-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .house-facts > div:last-child { grid-column: 1 / -1; }
  .house-section-nav nav { column-gap: 16px; }
  .house-section-nav a { font-size: .88rem; }
  .house-family, .house-episodes, .house-reading { grid-template-columns: minmax(0, 1fr); }
  .house-reading header p { max-width: none; }
}
