/* Of Heart and Hand — homepage (rebuilt November 2026).
   Each component has one source of truth. The Spotify embed is deliberately
   full-sized: do not add container queries or compact iframe overrides. */
.home-page {
  --home-gap:14px;
  /* Consistent type sizes for collection previews and actions. */
  --home-feature-title-size:clamp(23px,2.55vw,29px);
  --home-copy-size:15px;
  --home-gallery-caption-size:var(--home-copy-size);
  --home-action-size:13px;
}
.home-page .home-header-shell > header.home-intro {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:clamp(15px,2.5vh,28px) 8px 14px; margin:0 auto;
  border:0; text-align:center;
}
.home-page .home-emblem { display:block; position:static; width:90px; height:40px; margin:0 auto 5px; }
.home-page .home-header-shell > header.home-intro h1 {
  width:100%; max-width:none; margin:0 auto 7px;
  font:normal clamp(35px,5.7vw,56px)/1.12 var(--font-reading);
  letter-spacing:-.04em; text-align:center; text-wrap:balance;
}
.home-page .home-header-shell > header.home-intro p {
  max-width:60ch; margin:0 auto; color:var(--muted);
  font:italic clamp(14px,1.5vw,16px)/1.52 var(--font-reading); text-align:center;
}
.home-collection-nav {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap:6px 8px; margin:3px auto clamp(18px,3vh,26px); padding:0;
  font:600 clamp(11px,1.25vw,13px)/1.3 var(--font-ui);
}
.home-collection-nav a {
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 12px; border:1px solid var(--line); border-radius:999px;
  background:var(--surface); color:var(--accent-dark); text-decoration:none;
  transition:transform 200ms ease,background-color 200ms ease,border-color 200ms ease;
}
.home-collection-nav a:hover { color:var(--ink); border-color:#b9cbbc; background:#f2f7f0; transform:translateY(-1px); }
.home-collection-nav a:focus-visible { outline:2px solid var(--accent-dark); outline-offset:3px; }
.home-page #main-content { padding:0; }
.home-featured { margin:0; padding:0; border:0; }
.home-page :is(.feature-reflection,.feature-visual,.feature-study,.feature-soundtracks) {
  min-width:0; border:1px solid var(--line); border-radius:13px;
  background:var(--surface); box-shadow:0 2px 9px rgba(39,56,46,.016);
}
.home-page .feature-section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:29px; margin:0 0 14px; }
.home-page .feature-reflection > .feature-section-head { max-width:760px; margin:0 auto 9px; }
.home-page .feature-kicker {
  display:inline-flex; align-items:center; gap:9px;
  color:var(--accent-dark); font:700 11px/1.35 var(--font-ui);
  letter-spacing:.115em; text-transform:uppercase;
}
.home-page .feature-mark { display:block; width:21px; height:21px; flex:0 0 auto; color:var(--accent-dark); stroke-width:1.65; }
.home-page .feature-section-note { color:var(--muted); font:italic 13px/1.4 var(--font-reading); }
.home-page .feature-link {
  display:inline-flex; align-items:center; gap:8px; color:var(--accent-dark);
  font:600 var(--home-action-size)/1.5 var(--font-ui); text-decoration:none;
}
.home-page .feature-link:hover { text-decoration:underline; text-underline-offset:4px; }
.home-page .feature-link span { transition:transform 200ms ease; }
.home-page .feature-link:hover span { transform:translate(2px,-2px); }

/* About remains available in the site footer, without a second link in the hero. */
.home-page .site-footer-about a:hover { text-decoration:underline; text-underline-offset:4px; }
/* Featured writing: one prominent sample, with optional full text. */
.home-page .feature-reflection {
  position:relative; overflow:hidden;
  padding:clamp(19px,2.6vw,27px) clamp(20px,3vw,30px) 16px;
}
.home-page .feature-reflection::before {
  content:''; position:absolute; inset:0 auto 0 0; width:3px;
  background:linear-gradient(to bottom,#81a18b,#dce8db 65%,transparent); pointer-events:none;
}
.home-page .feature-reflection[data-expandable]:not(.is-reading) { cursor:pointer; }
.home-page .feature-reflection-body { display:block; max-width:760px; margin:0 auto; }
.home-page .feature-reflection h2 {
  margin:0; font:normal clamp(28px,3.6vw,38px)/1.16 var(--font-reading);
  letter-spacing:-.035em; text-wrap:balance;
}
.home-page .feature-reflection .feature-subtitle { margin:5px 0 0; color:var(--muted); font:italic clamp(15px,1.5vw,17px)/1.5 var(--font-reading); }
.home-page .feature-reflection-text { min-width:0; }
.home-page .feature-reflection-text blockquote {
  margin:12px 0 7px; padding:0 0 0 17px; max-width:68ch;
  border-left:2px solid #c1d3c4; font:normal clamp(16px,1.7vw,17px)/1.60 var(--font-reading);
}
/* Previews are shortened at complete thoughts in JavaScript, not clipped mid-line. */
.home-page .feature-reflection:not(.is-reading) blockquote { max-height:none; overflow:visible; }
.home-page .feature-reflection.is-reading blockquote { display:none; }
.home-page .feature-reflection-text blockquote p { margin:0 0 9px; }
.home-page .feature-reflection-text blockquote p:last-child { margin-bottom:0; }
.home-page .feature-reflection-more { width:100%; max-width:none; margin:5px 0 0; }
.home-page .feature-reflection-more[hidden] { display:none; }
.home-page .feature-reflection-more summary {
  display:flex; align-items:center; justify-content:space-between;
  gap:11px; width:fit-content; min-height:42px;
  margin-left:auto; padding:6px 7px 6px 14px;
  border:1px solid #cad8cc; border-radius:999px;
  background:var(--accent-light); color:var(--accent-dark);
  cursor:pointer; list-style:none;
  font:600 var(--home-action-size)/1.45 var(--font-ui);
  transition:background-color 180ms ease, border-color 180ms ease;
}
.home-page .feature-reflection-more summary::-webkit-details-marker { display:none; }
.home-page .feature-reflection-more summary:hover {
  text-decoration:none; background:#e2eee1; border-color:#adc5b2;
}
.home-page .feature-reflection-more summary:focus-visible { outline:2px solid var(--accent-dark); outline-offset:3px; border-radius:999px; }
.home-page .feature-reflection-more summary .feature-read-icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:27px; height:27px; margin-left:0;
  border-radius:50%; background:var(--surface);
  transition:transform 200ms ease;
}
.home-page .feature-reflection-more summary .feature-read-icon svg { display:block; }
.home-page .feature-reflection-more[open] summary .feature-read-icon { transform:rotate(180deg); }
.home-page .feature-reflection-reading { padding:12px 0 2px; color:var(--ink); font:clamp(16px,1.75vw,18px)/1.8 var(--font-reading); }
.home-page .feature-reflection-reading p { margin:0 0 17px; }
.home-page .feature-reflection-reading p:last-child { margin-bottom:0; }
.home-page .feature-reflection-next { display:flex; flex-wrap:wrap; align-items:center; column-gap:24px; row-gap:8px; margin:23px 0 5px; padding:18px 0 4px; border-top:1px solid var(--line); }
.home-page .feature-reflection-next[hidden] { display:none; }
.home-page .feature-reflection-next .feature-link { display:inline-flex; align-items:center; min-height:36px; }
.home-page .feature-reflection-next .muted-link { color:var(--muted); }
/* A single continuous reading column groups the title, preview and
   action, regardless of which of the 23 reflections is featured. */
.home-page .feature-reflection.is-reading .feature-reflection-text { padding-top:3px; }

/* Image-led samples: all curatorial entries have a chance to appear.
   On the homepage, the randomly selected Fragment fills the 4:3 desktop preview,
   cropped evenly around its vertical and horizontal centre. */
.home-page .feature-visual-grid,.home-page .feature-lower-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--home-gap); margin-top:var(--home-gap); align-items:stretch; }
.home-page .feature-visual { overflow:hidden; }
.home-page .feature-visual-card { display:block; height:100%; color:inherit; text-decoration:none; }
.home-page .feature-visual-card:hover { color:inherit; }
.home-page .feature-visual-card:focus-visible { outline:3px solid var(--accent-dark); outline-offset:-4px; }
.home-page .feature-image-link {
  position:relative; display:block; width:100%;
  aspect-ratio:4/3; overflow:hidden; background:linear-gradient(130deg,#edf0e9,#f4f2ed);
}
.home-page .feature-image-link > img {
  position:absolute; inset:0; z-index:1; display:block; width:100%; height:100%;
  object-fit:cover; object-position:50% 50%;
  transition:transform 260ms cubic-bezier(.2,.7,.2,1);
}
.home-page .feature-visual-card:hover .feature-image-link > img { transform:scale(1.012); }
/* Match the Fragment preview: centre each randomly chosen Glimpse within
   the same desktop crop, including portrait and square photographs. */
.home-page .feature-glimpses-image > img { object-fit:cover; object-position:50% 50%; }
.home-page .feature-fragment-image { background:#ecefe9; isolation:isolate; }
.home-page .feature-fragment-image::before {
  content:''; position:absolute; inset:-18px; z-index:0;
  background-image:var(--fragment-preview-image,none); background-position:center;
  background-size:cover; filter:blur(17px); opacity:.3; pointer-events:none;
}
.home-page .feature-fragment-image > img { object-fit:cover; object-position:50% 50%; }
/* Image previews use the same eyebrow -> sample -> invitation rhythm as Study.
   Whole cards remain links; copy stays lightweight so the image leads. */
.home-page .feature-visual-head { padding:16px 20px 0; margin:0 0 13px; min-height:26px; }
.home-page .feature-visual-head .feature-kicker { margin:0; font:700 11px/1.35 var(--font-ui); letter-spacing:.115em; }
/* The entire visual card links to its collection. A small directional glyph
   is enough; repeating an "Explore more" action adds unnecessary noise. */
.home-page .feature-visual-copy {
  display:flex; flex-direction:row; align-items:center;
  justify-content:space-between; gap:14px;
  min-height:70px; padding:15px 20px 18px;
}
.home-page .feature-visual-copy p {
  min-width:0; flex:1 1 auto; margin:0; color:var(--muted);
  font:var(--home-gallery-caption-size)/1.6 var(--font-reading);
}
.home-page .feature-visual-arrow {
  flex:0 0 auto; color:var(--accent-dark);
  font:600 19px/1 var(--font-ui);
  transition:transform 200ms ease;
}
.home-page .feature-visual-card:hover .feature-visual-arrow,
.home-page .feature-visual-card:focus-visible .feature-visual-arrow {
  transform:translate(2px,-2px);
}
/* Glimpses and Fragments use one matching caption size. Text wraps naturally
   when a narrower card cannot fit the full description. */

/* Lower row: reading and music remain distinct but share the same spacing. */
.home-page .feature-study,.home-page .feature-soundtracks { display:flex; flex-direction:column; align-items:stretch; padding:clamp(20px,2.8vw,28px); }
.home-page a.feature-study { color:var(--ink); text-decoration:none; }
.home-page a.feature-study:hover { border-color:#b9cbbc; box-shadow:0 8px 20px rgba(39,56,46,.05); }
.home-page a.feature-study:hover .feature-visual-arrow,
.home-page a.feature-study:focus-visible .feature-visual-arrow { transform:translate(2px,-2px); }
.home-page .feature-study-question {
  margin:1px 0 16px; color:var(--ink); font:normal var(--home-feature-title-size)/1.26 var(--font-reading);
  letter-spacing:-.025em; text-wrap:balance; text-transform:none;
}
.home-page a.feature-study:focus-visible { outline:3px solid var(--accent-dark); outline-offset:3px; }
.home-page .feature-scripture { margin:3px 0 13px; padding:0; border:0; color:var(--ink); font:normal clamp(17px,1.75vw,21px)/1.59 var(--font-reading); }
.home-page .feature-scripture strong { color:var(--accent-dark); font-weight:700; }
/* Keep citations visually secondary and closer to their quotation. */
.home-page .feature-citation { margin:4px 0 11px; color:var(--muted); font:11.5px/1.4 var(--font-ui); }
/* Echo Glimpses / Fragments: one description and a small corner arrow.
   The entire Study card remains a single accessible link. */
.home-page .feature-study-copy {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin-top:auto; padding-top:10px;
}
.home-page .feature-study-copy p {
  flex:1 1 auto; min-width:0; margin:0; color:var(--muted);
  font:var(--home-copy-size)/1.6 var(--font-reading);
}
.home-page .feature-soundtracks .feature-section-head { margin-bottom:12px; }
/* Homepage playlist title uses normal case and the same quiet serif voice
   as the other featured content; Spotify supplies the playlist artwork. */
.home-page .soundtrack-present { margin:2px 0 7px; }
.home-page .feature-soundtracks h3 {
  margin:0; color:var(--ink); text-transform:none;
  font:normal var(--home-feature-title-size)/1.26 var(--font-reading);
  letter-spacing:-.025em; text-wrap:balance;
}
.home-page #feature-soundtracks-description { margin:7px 0 12px; color:var(--muted); font:var(--home-copy-size)/1.6 var(--font-reading); }
/* ONE Spotify rule. Both the iframe HTML height and CSS height are 352px.
   Spotify can render its full playlist; no 152px iframe inside a 352px shell. */
.home-page .soundtrack-player { width:100%; min-width:0; height:352px; margin:10px 0 14px; overflow:hidden; border-radius:11px; }
.home-page .soundtrack-player > iframe { display:block; width:100%; height:352px; border:0; border-radius:11px; background:#eff2ec; }
.home-page .soundtrack-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin-top:auto; }
.home-page .soundtrack-another { padding:6px 0; border:0; background:none; color:var(--accent-dark); font:600 var(--home-action-size)/1.4 var(--font-ui); cursor:pointer; }
.home-page .soundtrack-another:hover { text-decoration:underline; text-underline-offset:4px; }
.home-page .soundtrack-another[hidden] { display:none; }
/* The homepage ends in a quiet, centred signature. */
.home-page .site-footer-about { margin:4px 0 0; font:12px/1.6 var(--font-ui); }
.home-page .site-footer-about a { color:var(--muted); text-decoration:none; }
.home-page .site-copyright {
  margin-top:clamp(28px,3.4vw,38px);
  padding:18px 0 clamp(15px,2.2vw,25px);
  text-align:center;
}
@media(max-width:650px) {
  .home-page { --home-gap:10px; }
  .home-page .home-header-shell > header.home-intro { padding:15px 3px 12px; }
  .home-page .home-header-shell > header.home-intro .home-emblem { width:77px; height:36px; }
  .home-page .home-header-shell > header.home-intro h1 { font-size:clamp(34px,9vw,43px); }
  .home-page .home-header-shell > header.home-intro p { font-size:14px; max-width:39ch; }
  /* Mobile: five quiet text links on one line, including before the header
     shrinks. No pill borders, forced second row or horizontal scrolling. */
  .home-collection-nav {
    width:100%; flex-wrap:nowrap; justify-content:space-between;
    gap:clamp(2px,1vw,8px); margin-bottom:18px; padding:0 2px;
    overflow:visible;
  }
  .home-collection-nav::after { display:none; content:none; }
  .home-collection-nav a,
  .home-collection-nav a:nth-child(-n+3),
  .home-collection-nav a:nth-child(n+4) {
    order:0; flex:0 1 auto; min-width:0;
    white-space:nowrap; min-height:40px; padding:10px 1px 8px;
    border:0; border-bottom:2px solid transparent; border-radius:0;
    background:transparent;
    font-size:clamp(11px,3.15vw,13px);
    line-height:1.2; letter-spacing:-.012em;
  }
  .home-collection-nav a:hover {
    background:transparent; border-bottom-color:#b9cbbc; transform:none;
  }
  .home-page .feature-visual-grid,.home-page .feature-lower-grid { grid-template-columns:minmax(0,1fr); }
  .home-page .feature-reflection { padding:20px 20px 15px; }
  .home-page .feature-section-head { margin-bottom:12px; }
  .home-page .feature-section-note { font-size:12px; }
  .home-page .feature-reflection h2 { font-size:clamp(28px,7.2vw,35px); }
  .home-page .feature-reflection-text blockquote { margin-top:12px; line-height:1.66; }
  .home-page .feature-reflection:not(.is-reading) blockquote { max-height:none; }
  .home-page .feature-image-link { aspect-ratio:16/10; }
  .home-page .feature-visual-head { padding:15px 18px 0; }
  .home-page .feature-visual-copy { padding:14px 18px 18px; }
  .home-page .feature-study,.home-page .feature-soundtracks { padding:20px; }
}
@media(max-width:370px) {
  .home-page .feature-section-note { max-width:104px; text-align:right; }
}
@media(max-height:650px) and (min-width:651px) {
  .home-page .home-header-shell > header.home-intro { padding-top:10px; padding-bottom:13px; }
  .home-page .home-emblem { width:70px; height:32px; }
  .home-page .home-header-shell > header.home-intro h1 { font-size:clamp(35px,4vw,43px); }
}
@media(prefers-reduced-motion:reduce) {
  .home-page .feature-reflection-more summary,
  .home-page .feature-reflection-more summary .feature-read-icon { transition:none; }
  .home-collection-nav a,.home-page .feature-link span,.home-page .feature-image-link img,.home-page .feature-visual-arrow { transition:none; }
  .home-collection-nav a:hover,.home-page .feature-link:hover span,.home-page .feature-visual-card:hover img,.home-page .feature-visual-card:hover .feature-visual-arrow { transform:none; }
}
@media print { .home-page :is(.feature-reflection,.feature-visual,.feature-study,.feature-soundtracks) { break-inside:avoid; } }

@media(max-width:650px) { .home-page .feature-mark { width:18px; height:18px; } }
