/* House foundation shared by the homepage, collection indexes and the pages about the owner.
   It extends the idea frame outward: one textured backdrop, one bounded frame, one cover per page
   settling into one reading surface, one breadcrumb, one action family. Pages own their subject
   colour through the --cover-* and --accent tokens; they do not redeclare the system. */

:root {
  --h-ink: #17203a;
  --h-muted: #55607a;
  --h-paper: #fdfdfc;
  --h-pearl: #f3f5f9;
  --h-line: #d3d9e4;
  --h-rule: #b8c1d3;
  --h-link: #1f4f8f;
  --h-link-hover: #163b6d;
  --h-night: #0f1d3d;
  --h-cobalt: #1b3478;
  --h-glow: rgba(120, 160, 255, .34);
  --h-warm: rgba(255, 207, 102, .18);
  --h-action-top: #75aaca;
  --h-action-bottom: #346c96;
  --h-action-edge: #527d9e;
  --h-gold-top: #ffedba;
  --h-gold-bottom: #ffcf66;
  --h-gold-edge: #c79a2c;
  --h-gold-ink: #4f3a00;
  --h-brick-top: #d98a80;
  --h-brick-bottom: #9e3a31;
  --h-brick-edge: #7e2b24;
  --h-focus: #dca457;
  --h-serif: "Iowan Old Style", Baskerville, "Palatino Linotype", Georgia, serif;
  --h-sans: Tahoma, Verdana, "Segoe UI", sans-serif;
}

body.house {
  margin: 0;
  display: flow-root;
  min-height: 100vh;
  color: var(--h-ink);
  font: 16px/1.55 var(--h-sans);
  background-color: #9aa8bc;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #dce2ed, #9aa8bc);
}

.house a { color: var(--h-link); text-underline-offset: .2em; }
.house a:hover { color: var(--h-link-hover); }
.house :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--h-focus); outline-offset: 3px; }

/* The frame: the same outline and cast shadow as every idea page. */
.house-frame {
  --cover-a: var(--h-cobalt);
  --cover-b: var(--h-night);
  --cover-glow: var(--h-glow);
  --cover-warm: var(--h-warm);
  --accent: var(--h-link);
  --surface: var(--h-pearl);
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  overflow: hidden;
  background: var(--h-paper);
  border: 1px solid #36455f;
  outline: 1px solid rgba(255, 255, 255, .5);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .35),
    inset 0 -2px rgba(12, 20, 34, .42),
    0 22px 60px rgba(22, 31, 52, .38);
}

/* The one cover. */
.house-cover {
  position: relative;
  color: #fff;
  padding: 76px clamp(22px, 5vw, 64px) 52px;
  background:
    radial-gradient(120% 90% at 85% 8%, var(--cover-glow), transparent 60%),
    radial-gradient(90% 70% at 8% 100%, var(--cover-warm), transparent 60%),
    linear-gradient(180deg, var(--cover-a) 0%, var(--cover-b) 100%);
}
.house-cover--image { background: var(--cover-b); overflow: hidden; }
.house-cover--image > .house-cover-art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62;
  mask-image: linear-gradient(90deg, transparent 0, #000 45%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%);
}
.house-cover > :is(h1, p, div, aside) { position: relative; }
.house-cover h1 {
  margin: 0;
  max-width: 18ch;
  font: 600 clamp(44px, 7.4vw, 96px)/.94 var(--h-serif);
  letter-spacing: -.012em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(5, 10, 30, .35);
}
.house-cover .house-deck {
  max-width: 46ch;
  margin: 18px 0 0;
  font: 19px/1.45 var(--h-serif);
  color: #e8edf9;
}
.house-cover .house-byline { margin: 14px 0 0; font: 13px/1.4 var(--h-sans); color: #c9d4ec; }

/* Compact breadcrumb anchored over the cover's upper-left corner, on every page. */
.house .hierarchy-nav.hierarchy-nav {
  position: absolute;
  z-index: 8;
  top: 22px;
  left: clamp(18px, 3vw, 28px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: calc(100% - 56px);
  margin: 0;
  padding: 9px 12px;
  color: #eaf3fa;
  background: linear-gradient(135deg, rgba(24, 44, 66, .87), rgba(36, 59, 82, .72));
  border: 1px solid rgba(220, 230, 239, .33);
  border-radius: 5px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .21), 0 4px 14px rgba(12, 23, 43, .15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: 12px/1.5 var(--h-sans);
}
.house .hierarchy-nav.hierarchy-nav :is(a, span) { color: #eaf3fa; }
.house .hierarchy-nav.hierarchy-nav a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .72);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.house .hierarchy-nav.hierarchy-nav a:is(:hover, :focus-visible) { color: #fff1c8; text-decoration-color: currentColor; }
.house .hierarchy-nav .hierarchy-separator { color: rgba(255, 255, 255, .5); }

/* A return to the exact homepage section, for collection indexes. */
.house-return {
  position: absolute;
  z-index: 8;
  top: 22px;
  right: clamp(18px, 3vw, 28px);
  margin: 0;
}
.house-return a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 7px 12px;
  color: #eaf3fa; text-decoration: none; font: 12px/1.3 var(--h-sans);
  border: 1px solid rgba(220, 230, 239, .33); border-radius: 5px;
  background: linear-gradient(135deg, rgba(24, 44, 66, .7), rgba(36, 59, 82, .5));
}
.house-return a:hover { color: #fff1c8; }

/* The reading surface the cover settles into. */
.house-body {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  padding: 40px clamp(22px, 5vw, 64px) 56px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 82%, var(--accent)) 0, var(--surface) 140px, var(--h-paper) 100%);
  box-shadow: inset 0 14px 26px -18px rgba(15, 29, 61, .55);
}
.house-section { min-width: 0; scroll-margin-top: 24px; }
.house-section > h2 {
  margin: 0 0 6px;
  font: 600 clamp(27px, 3vw, 34px)/1.15 var(--h-serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.house-section > .house-lede { margin: 0 0 18px; max-width: 62ch; color: var(--h-muted); font: 17px/1.5 var(--h-serif); }
.house-section > .house-more { margin: 16px 0 0; font: 600 15px/1.4 var(--h-serif); }

/* Reading prose. */
.house-prose { max-width: 68ch; font: 18px/1.62 var(--h-serif); }
.house-prose :is(p, li) { text-wrap: pretty; }
.house-prose h2 { font: 600 clamp(25px, 2.6vw, 31px)/1.2 var(--h-serif); letter-spacing: -.02em; margin: 1.6em 0 .4em; }
.house-prose h3 { font: 600 21px/1.25 var(--h-serif); margin: 1.4em 0 .3em; }

/* One action family everywhere, with gold for the single primary action. */
.house-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.house-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 9px 16px;
  color: #fff; text-decoration: none; font: 700 13px/1.3 var(--h-sans);
  background: linear-gradient(var(--h-action-top), var(--h-action-bottom));
  border: 1px solid var(--h-action-edge); border-radius: 5px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .46), 0 2px 4px rgba(16, 43, 61, .19);
}
.house .house-btn { color: #fff; }
.house-btn:hover { background: linear-gradient(#8abbd7, #427da5); color: #fff; }
.house-btn:active { box-shadow: inset 0 2px 4px rgba(24, 54, 75, .38); transform: translateY(1px); }
.house .house-btn--gold { color: var(--h-gold-ink); background: linear-gradient(var(--h-gold-top), var(--h-gold-bottom)); border-color: var(--h-gold-edge); }
.house .house-btn--gold:hover { color: var(--h-gold-ink); background: linear-gradient(#fff4d1, #ffd77e); }
.house .house-btn--brick { color: #fff; background: linear-gradient(var(--h-brick-top), var(--h-brick-bottom)); border-color: var(--h-brick-edge); }
.house .house-btn--brick:hover { background: linear-gradient(#e29b91, #ad463c); }
.house-btn--wide { flex-basis: 100%; justify-content: center; }

/* The profile plate: a distinct object because it is a contact card.
   A lit name band, then crisp rows whose dividers fade at both ends. */
.house-plate {
  --plate-rule: linear-gradient(90deg, transparent, rgba(120, 136, 164, .55) 12%, rgba(120, 136, 164, .55) 88%, transparent);
  display: grid; gap: 0; align-content: start; overflow: hidden;
  color: var(--h-ink); border-radius: 4px;
  background: linear-gradient(#fbfcfd, #eef1f6);
  box-shadow: inset 0 1px #fff, 0 0 0 1px rgba(255, 255, 255, .35), 0 10px 26px rgba(0, 0, 0, .35);
}
.house-plate-head {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px 16px 12px; color: inherit; text-decoration: none;
  background: linear-gradient(180deg, #e3ebf8, rgba(227, 235, 248, 0) 100%);
  border-bottom: 1px solid transparent; border-image: var(--plate-rule) 1;
}
.house .house-plate-head { color: var(--h-ink); }
.house-plate-head img { width: 72px; height: 72px; object-fit: cover; border-radius: 3px; background: radial-gradient(circle at 50% 35%, #ffe6f1, #c9d6ee); box-shadow: 0 0 0 1px rgba(23, 32, 58, .14), 0 2px 5px rgba(23, 32, 58, .18); }
.house-plate-head h2 { margin: 0; font: 600 23px/1.05 var(--h-serif); text-wrap: balance; }
.house-plate-head:hover h2 { color: var(--h-link); }
.house-plate-rows { margin: 0; padding: 4px 16px 6px; }
.house-plate-rows div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid transparent; border-image: var(--plate-rule) 1; }
.house-plate-rows div:last-child { border-bottom: 0; }
.house-plate-rows dt { color: var(--h-muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; padding-top: 2px; }
.house-plate-rows dd { margin: 0; font-size: 13.5px; line-height: 1.35; }
.house-plate-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 6px 16px; list-style: none; font-size: 12.5px;
  background: linear-gradient(90deg, rgba(214, 223, 238, 0), rgba(214, 223, 238, .55) 20%, rgba(214, 223, 238, .55) 80%, rgba(214, 223, 238, 0));
}
.house-plate-links li { display: grid; padding: 5px 0; min-width: 0; }
.house-plate-links span { color: var(--h-muted); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; }
.house-plate-links a { overflow-wrap: anywhere; text-decoration: none; }
.house-plate-links a:hover { text-decoration: underline; }
.house-plate-more { display: grid; margin: 0; padding: 4px 0 6px; }
.house-plate-more a {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 16px;
  font: 600 15px/1.3 var(--h-serif); text-decoration: none;
  border-top: 1px solid transparent; border-image: var(--plate-rule) 1;
}
.house-plate-more a:first-child { border-top: 0; }
.house-plate-more a::after { content: "›"; color: var(--h-muted); font: 18px/1 var(--h-sans); }
.house-plate-more a:hover { background: linear-gradient(90deg, rgba(31, 79, 143, 0), rgba(31, 79, 143, .08) 25%, rgba(31, 79, 143, .08) 75%, rgba(31, 79, 143, 0)); }

/* A quiet closing line: the visitor counter and the comment link the owner asked for. */
.house-visitors { margin: 0; padding: 18px clamp(22px, 5vw, 64px) 22px; color: var(--h-muted); font: 15px/1.5 var(--h-serif); border-top: 1px solid var(--h-line); background: var(--h-paper); }

@media (max-width: 760px) {
  .house-frame { width: calc(100% - 24px); margin: 12px auto; }
  .house-cover { padding: 70px 20px 36px; }
  .house-body { padding: 30px 20px 40px; }
  .house .hierarchy-nav.hierarchy-nav { top: 16px; left: 16px; max-width: calc(100% - 32px); font-size: 11px; }
  .house-return { position: static; margin: 0 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .house *, .house *::before, .house *::after { transition: none !important; animation: none !important; }
}

/* Homepage cover: the premise, the faith button in its corner, and the contact plate. */
.house-home-cover { padding-top: 64px; }
.house-faith-button {
  position: absolute; top: 20px; right: clamp(18px, 3vw, 28px);
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
  color: var(--h-gold-ink); text-decoration: none; font: 700 17px/1 "Times New Roman", serif;
  background: linear-gradient(var(--h-gold-top), var(--h-gold-bottom));
  border: 1px solid var(--h-gold-edge); border-radius: 5px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 3px 10px rgba(0, 0, 0, .28);
}
.house .house-faith-button { color: var(--h-gold-ink); }
.house-faith { max-width: 72ch; margin: 0 110px 0 0; font: italic 14.5px/1.55 var(--h-serif); color: #dfe6f7; }
.house-home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: end; margin-top: 30px; }
.house-home-cover h1 { font-size: clamp(52px, 8.4vw, 110px); font-variant: normal; letter-spacing: .005em; }
@media (max-width: 860px) {
  .house-home-grid { grid-template-columns: 1fr; }
  .house-faith { margin-right: 0; padding-top: 34px; }
}

/* Section bodies, after GUI.Forms list views: a white panel with a title bar and an
   item-count chip, then compact rows, a thumbnail grid, or a panel of command plates. */
:root { --h-select: #dbe6ff; --h-select-line: #436fbd; --h-well-edge: #94acc8; }
.house-view { background: #fff; border: 1px solid #b8c7da; box-shadow: 0 1px 0 #fff, 0 6px 14px rgba(22, 31, 52, .12); }
.house-view-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; background: linear-gradient(#f8fbff, #e3ebf6); border-bottom: 1px solid #b8c7da; }
.house-view-bar h2 { margin: 0; font: 600 21px/1.2 var(--h-serif); color: #153765; letter-spacing: -.01em; }
.house-chip { flex: none; padding: 2px 9px; font: 12px/1.4 var(--h-sans); color: #485b70; background: #fff; border: 1px solid #ccd6e3; border-radius: 3px; }
.house-view-note { margin: 0; padding: 10px 14px; color: var(--h-muted); font: 15px/1.5 var(--h-serif); border-bottom: 1px solid #e6ebf2; }
.house-view-foot { margin: 0; padding: 9px 14px; font: 600 14.5px/1.4 var(--h-serif); background: linear-gradient(#f9fbfe, #f1f5fa); border-top: 1px solid #e1e7f0; }

.house-view-scroll { overflow-x: auto; }
.house-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.house-table :is(th, td) { padding: 7px 14px; text-align: left; vertical-align: top; font-weight: 400; border-bottom: 1px solid #edf1f6; }
.house-table th { width: 1%; white-space: nowrap; }
.house-table th a { font: 600 15.5px/1.3 var(--h-serif); text-decoration: none; }
.house-table th a:hover { text-decoration: underline; }
.house-table td { color: #2e3a52; }
.house-table tr:hover > * { background: var(--h-select); }
.house-table tr:last-child > * { border-bottom: 0; }
.house-table small.house-question { display: block; margin-top: 4px; color: var(--h-muted); font-size: 12.5px; }
.house-thumb { display: inline-block; width: 48px; height: 32px; margin-right: 12px; vertical-align: middle; object-fit: cover; border: 1px solid var(--h-well-edge); box-shadow: 0 1px 2px rgba(22, 31, 52, .2); }
.house-thumb--blank { background: linear-gradient(#fbfcfe, #e7edf6); }
@media (max-width: 640px) { .house-table th { white-space: normal; } .house-table tr { display: grid; } .house-table td { padding-top: 0; } }

.house-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 4px; padding: 12px; }
.house-icon { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 8px 6px; text-align: center; text-decoration: none; border: 1px solid transparent; border-radius: 3px; }
.house .house-icon { color: var(--h-ink); }
.house-icon:hover { background: var(--h-select); border-color: var(--h-select-line); }
.house-icon-art { display: grid; place-items: center; width: 92px; height: 64px; overflow: hidden; background: #f3f6fb; border: 1px solid var(--h-well-edge); box-shadow: 0 2px 4px rgba(22, 31, 52, .18); }
.house-icon-art img { width: 100%; height: 100%; object-fit: cover; }
.house-icon-art--letter { font: 600 28px var(--h-serif); color: #8aa0c2; background: linear-gradient(#fbfcfe, #e7edf6); }
.house-icon-name { font: 12.5px/1.25 var(--h-sans); }

/* Things to play with: each entry previewed in a recessed white frame, its name and one
   line beneath an etched rule that fades at both ends. */
.house-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px 16px; padding: 16px 14px 18px; }
.house-preview { display: grid; align-content: start; gap: 3px; text-decoration: none; }
.house .house-preview { color: var(--h-ink); }
.house-preview-art { display: block; margin-bottom: 8px; padding: 6px; background: linear-gradient(#f8fbff, #fff); border: 1px solid var(--h-well-edge); box-shadow: inset 0 2px 3px rgba(29, 45, 75, .1); }
.house-preview-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.house-preview :is(strong, h2) { margin: 0; padding-top: 8px; font: 600 17px/1.2 var(--h-serif); letter-spacing: normal; color: var(--h-ink); border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, rgba(120, 136, 164, .55) 12%, rgba(120, 136, 164, .55) 88%, transparent) 1; }
.house-preview small { font-size: 12.5px; line-height: 1.45; color: var(--h-muted); }
.house-preview:hover .house-preview-art { border-color: var(--h-select-line); box-shadow: inset 0 2px 3px rgba(29, 45, 75, .1), 0 0 0 2px var(--h-select); }
.house-preview:hover :is(strong, h2) { color: var(--h-link); }

/* Public use works: an expanding list. One entry is open, showing its picture and a
   paragraph; opening another pushes the rest aside with a short, smooth transition. */
.house-works { margin: 0; padding: 0; list-style: none; }
.house-work { border-bottom: 1px solid #edf1f6; }
.house-work:last-child { border-bottom: 0; }
.house-work-head { display: grid; grid-template-columns: minmax(180px, 30%) minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 9px 14px; text-decoration: none; }
.house-work-head strong { font: 600 16px/1.3 var(--h-serif); color: var(--h-link); }
.house-work-head span { font-size: 13.5px; color: #2e3a52; }
.house-work-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.house-work-inner { overflow: hidden; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; padding: 0 14px; }
.house-work-inner img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; padding: 5px; background: linear-gradient(#f8fbff, #fff); border: 1px solid var(--h-well-edge); box-shadow: inset 0 2px 3px rgba(29, 45, 75, .1); }
.house-work-inner p { margin: 0; max-width: 62ch; font: 16.5px/1.55 var(--h-serif); color: var(--h-ink); }
.house-work.is-open, .house-works:not(.is-scripted) .house-work:is(:hover, :focus-within) { background: linear-gradient(90deg, rgba(219, 230, 255, .55), rgba(219, 230, 255, .15)); }
.house-work.is-open .house-work-body, .house-works:not(.is-scripted) .house-work:is(:hover, :focus-within) .house-work-body { grid-template-rows: 1fr; }
.house-work.is-open .house-work-inner, .house-works:not(.is-scripted) .house-work:is(:hover, :focus-within) .house-work-inner { padding-bottom: 14px; }
.house-work-inner { transition: padding .32s ease; }
@media (max-width: 640px) {
  .house-work-head { grid-template-columns: 1fr; gap: 2px; }
  .house-work-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .house-work-body, .house-work-inner { transition: none; } }
