/* ============================================================================
   Home page — editorial catalogue
   Added October 2026. Scoped to .hp-* so the inner pages keep their own styles.
   ============================================================================ */

:root {
  --ink: #1a1a2e;
  --paper: #faf9f7;
  --tone: #f0efe9;
  --body: #2b2b33;
  --quiet: #5c5c68;
  --clay: #8b5e3c;
  --max: 1200px;
}

.hp-wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.hp-section { padding: clamp(72px, 9vw, 132px) 0; }

/* --- Hero --- */
.hp-hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 6vw, 84px) 0 clamp(26px, 3vw, 40px);
}
.hp-hero__copy { max-width: 1120px; }
.hp-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.55rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(18px, 2.2vw, 28px);
  max-width: 24ch;
  text-wrap: balance;
}
.hp-lede {
  font-size: clamp(1.03rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: rgba(250, 249, 247, 0.82);
  max-width: 54ch;
  margin: 0 0 clamp(26px, 3vw, 36px);
}
.hp-search { max-width: 560px; }
.hp-search__label {
  display: block;
  font-size: 0.875rem;
  color: rgba(250, 249, 247, 0.66);
  margin-bottom: 8px;
}
.hp-search__row { display: flex; gap: 8px; }
.hp-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
}
.hp-search input::placeholder { color: #8a8a95; }
.hp-search .btn { padding: 13px 22px; border-radius: 4px; font-size: 1rem; background: var(--clay); }
.hp-search .btn:hover { background: #a2704a; }
.hp-search__results {
  margin-top: 8px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  max-height: 340px;
  overflow-y: auto;
}
.hp-search__results a { display: block; padding: 12px 16px; color: var(--ink); text-decoration: none; }
.hp-search__results a:hover, .hp-search__results a:focus-visible { background: var(--tone); }
.hp-search__results .hp-sr-title { display: block; font-weight: 600; font-size: 1rem; }
.hp-search__results .hp-sr-meta { display: block; font-size: 0.875rem; color: var(--quiet); margin-top: 2px; }
.hp-search__results .hp-sr-empty { padding: 14px 16px; font-size: 0.875rem; color: var(--quiet); }

.hp-hero__foot {
  margin: clamp(24px, 3vw, 34px) 0 0;
  font-size: 1rem;
  color: rgba(250, 249, 247, 0.7);
}
.hp-hero__foot a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hp-hero__foot a:hover { color: #f2bc7a; }
.hp-hero__foot span { margin: 0 10px; }

.hp-hero__figure { margin: clamp(34px, 4.5vw, 62px) 0 0; }
.hp-hero__figure img {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 400px);
  object-fit: cover;
  object-position: 50% 26%;
}
.hp-hero__figure figcaption {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(250, 249, 247, 0.62);
}

/* archival detail inside a section heading column */
.hp-detail { margin: clamp(26px, 3vw, 38px) 0 0; }
.hp-detail img { display: block; width: 100%; }
.hp-detail figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--quiet);
}

/* --- Shared section heading --- */
.hp-section__head h2,
.hp-entries__head h2,
.hp-courses h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.2vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 22ch;
}
.hp-section__head p,
.hp-entries__head > p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  max-width: 46ch;
  margin: 0;
}

/* --- Pathways --- */
.hp-pathways__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hp-list { display: grid; }
.hp-row {
  display: grid;
  gap: 6px;
  padding: 24px clamp(14px, 1.6vw, 22px);
  margin: 0 calc(clamp(14px, 1.6vw, 22px) * -1);
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.hp-row:hover, .hp-row:focus-visible { background: var(--tone); transform: translateX(4px); }
.hp-row__name { font-family: var(--font-serif); font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.2; }
.hp-row__desc { font-size: 1.0625rem; line-height: 1.6; color: var(--body); max-width: 62ch; }
.hp-row__meta { font-size: 0.875rem; color: var(--clay); }

/* --- Four ways in --- */
.hp-entries-band { background: var(--tone); }
.hp-entries {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hp-entries__head { position: sticky; top: 96px; }
.hp-entries__figure { margin: clamp(24px, 3vw, 36px) 0 0; }
.hp-entries__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  filter: contrast(1.04);
}
.hp-entries__figure figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--quiet); }
.hp-entries__list { display: grid; }
.hp-entry {
  display: block;
  padding: clamp(20px, 2.4vw, 30px) 0;
  color: inherit;
  text-decoration: none;
}
.hp-entry:first-child { padding-top: 0; }
.hp-entry__domain { font-size: 0.875rem; color: var(--clay); }
.hp-entry__title {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.25;
  margin: 6px 0 5px;
  max-width: 34ch;
}
.hp-entry__by { display: block; font-size: 0.875rem; color: var(--quiet); }
.hp-entry__sum { display: block; font-size: 1.0625rem; line-height: 1.62; color: var(--body); margin-top: 12px; max-width: 62ch; }
.hp-entry__go {
  display: inline-block;
  margin-top: 14px;
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.hp-entry:hover .hp-entry__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hp-entry:hover .hp-entry__go { color: var(--color-primary-light); }

/* --- Six domains (ink band) --- */
.hp-domains { background: var(--ink); color: var(--paper); padding-bottom: clamp(72px, 9vw, 132px); }
.hp-band { margin-bottom: clamp(44px, 5vw, 72px); overflow: hidden; }
.hp-band img {
  display: block;
  width: 100%;
  height: clamp(180px, 26vw, 340px);
  object-fit: cover;
  object-position: 50% 50%;
}
.hp-domains__head { margin-bottom: clamp(36px, 4vw, 56px); }
.hp-domains__head p { color: rgba(250, 249, 247, 0.72); }
.hp-domain-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 3.4vw, 54px) clamp(32px, 5vw, 88px);
}
.hp-domain__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: var(--paper); text-decoration: none; }
.hp-domain__name { font-family: var(--font-serif); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; }
.hp-domain__head:hover .hp-domain__name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.hp-domain__count { font-size: 0.875rem; color: rgba(250, 249, 247, 0.55); }
.hp-domain__desc { font-size: 1rem; line-height: 1.6; color: rgba(250, 249, 247, 0.78); margin: 8px 0 12px; max-width: 44ch; }
.hp-domain__titles { list-style: none; margin: 0; padding: 0; }
.hp-domain__titles li { margin-bottom: 4px; }
.hp-domain__titles a {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(250, 249, 247, 0.64);
  text-decoration: none;
}
.hp-domain__titles a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* --- Quotation --- */
.hp-quote blockquote { max-width: 54ch; margin: 0 auto; text-align: center; }
.hp-quote blockquote p {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.32rem, 2.1vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hp-quote blockquote footer { font-size: 0.875rem; color: var(--quiet); }
.hp-quote blockquote cite { font-style: italic; }
.hp-quote__note { max-width: 58ch; margin: clamp(24px, 3vw, 34px) auto 0; text-align: center; font-size: 1.0625rem; line-height: 1.7; color: var(--body); }

/* --- Programmed Learning --- */
.hp-courses { background: var(--tone); }
.hp-courses__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.hp-courses__grid p { font-size: 1.0625rem; line-height: 1.68; color: var(--body); max-width: 58ch; margin: 0 0 16px; }
.hp-courses__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px !important; }
.hp-courses__actions .btn { padding: 13px 22px; border-radius: 4px; font-size: 1rem; }

/* --- Motion --- */
.hp-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.3, 1); }
.hp-reveal.is-in { opacity: 1; transform: none; }
.hp-hero__figure img { animation: hp-settle 1.2s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
@keyframes hp-settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }

/* --- Responsive --- */
@media (max-width: 960px) {
  .hp-hero__grid,
  .hp-pathways__grid,
  .hp-entries,
  .hp-courses__grid { grid-template-columns: minmax(0, 1fr); }
  .hp-hero__figure { max-width: 100%; margin-top: clamp(28px, 5vw, 40px); }
  .hp-hero__figure img { aspect-ratio: 4 / 3.2; object-position: 50% 22%; }
  .hp-entries__head { position: static; }
  .hp-entries__figure { max-width: 320px; }
  .hp-entries__figure img { aspect-ratio: 4 / 5; }
  .hp-domain-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .hp-hero h1 { font-size: clamp(2.1rem, 8.4vw, 2.6rem); }
  .hp-search__row { flex-direction: column; }
  .hp-search .btn { width: 100%; }
  .hp-hero__foot { display: flex; flex-direction: column; gap: 6px; }
  .hp-hero__foot span { display: none; }
  .hp-band img { height: 180px; }
  .hp-row { padding: 20px 0; margin: 0; }
  .hp-row:hover, .hp-row:focus-visible { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-reveal { opacity: 1; transform: none; transition: none; }
  .hp-hero__figure img { animation: none; }
  .hp-row:hover, .hp-row:focus-visible { transform: none; }
  html { scroll-behavior: auto; }
}
