/* Of Heart and Hand / design-language refinement · 9 November 2026
   Shared, final stylesheet. Keep original palette and all writing untouched.
   Distinctive collection designs, one consistent editorial rhythm. */
:root {
  --polish-border: #dce4da;
  --polish-shadow: 0 10px 28px rgba(39, 56, 46, .055);
  --polish-fast: 200ms cubic-bezier(.2,.7,.2,1);
  --polish-surface: #f7f8f3;
}

/* Link and focus states are legible without permanent visual noise. */
a { text-decoration-thickness: .055em; text-underline-offset: .21em; }
a:focus-visible, button:focus-visible, summary:focus-visible,
select:focus-visible, .photo-link:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

/* Quiet nav, consistently aligned on every interior page. */
#site-header .site-nav { padding-block: 13px; gap: 11px 22px; }
#site-header .site-name { letter-spacing: -.025em; }
#site-header .site-links { gap: clamp(11px,2vw,22px); }
#site-header .site-links a { padding-bottom: 4px; transition: color var(--polish-fast),border-color var(--polish-fast); }

/* Collection identity: one line icon with the eyebrow at its RIGHT, not below. */
body > header.collection-header:has(.collection-identity) {
  padding-top: clamp(22px, 3.2vh, 34px);
  padding-bottom: clamp(16px, 3vh, 27px);
}
body > header.collection-header .collection-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(13px, 2.1vh, 20px);
}
body > header.collection-header .collection-identity .collection-mark {
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0;
  border: 1px solid rgba(85, 118, 105, .09);
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent-dark);
}
body > header.collection-header .collection-identity .collection-mark svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.65;
}
body > header.collection-header .collection-identity .header-eyebrow {
  margin: 0;
  max-width: 65ch;
  min-width: 0;
  color: var(--accent-dark);
  font: 700 11px/1.45 var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
}
body > header.collection-header h1 { margin-bottom: clamp(10px,1.7vh,17px); }
body > header.collection-header .collection-description { max-width: 65ch; }
body > header.collection-header .reflection-welcome p { line-height: 1.55; }

/* More content visible on small laptops, without compressing reading lines. */
@media (max-height: 760px) and (min-width: 651px) {
  body > header.collection-header:has(.collection-identity) { padding-top: 15px; padding-bottom: 15px; }
  body > header.collection-header .collection-identity { margin-bottom: 11px; }
  body > header.collection-header .collection-identity .collection-mark { width: 40px; height: 40px; flex-basis: 40px; }
  body > header.collection-header .collection-identity .collection-mark svg { width: 28px; height: 28px; }
  body > header.collection-header h1 { font-size: clamp(33px,4vw,45px); }
}

/* The same card edge, subtle shadow and interactive feedback throughout. */
.reflection-card,
.home-page :is(.feature-reflection,.feature-visual,.feature-study,.feature-soundtracks) {
  border-color: var(--polish-border);
  border-radius: 13px;
  box-shadow: 0 2px 9px rgba(39, 56, 46, .016);
}
.reflection-card { transition: border-color var(--polish-fast),box-shadow var(--polish-fast); }
@media (hover:hover) and (pointer:fine) {
  .reflection-card:hover { border-color: #c1d0c1; box-shadow:var(--polish-shadow); }
}
.reflection-card[open] { border-color: #b9cbbb; box-shadow:var(--polish-shadow); }
.reflection-card > summary { transition:background var(--polish-fast); }
.reflection-thumbnail { border-radius: 8px; }
.reflection-title { text-wrap: balance; }
.reflection-preview { color: #607269; line-height: 1.58; }

/* Long reflection pages should read like quiet editorial essays. */
.journal > main > .journal-entry { padding-top: clamp(23px,4vh,37px); }
.journal > main > .journal-entry > header { margin-bottom: clamp(24px,4vh,38px); }
.journal > main > .journal-entry > header .header-sprig { width: 100px; height: auto; margin-bottom: 13px; }
.journal > main > .journal-entry > header .header-eyebrow { margin-bottom: 16px; letter-spacing:.15em; }
.journal > main > .journal-entry > header h1 { line-height:1.13; letter-spacing:-.035em; }
.journal > main > .journal-entry .reflection-poem p { max-width: 69ch; }
.journal-footer { padding-top: 16px; border-top: 1px solid var(--line); }

/* Reflections archive: compact opening, sections with rhythm. */
.journal .archive-year { padding-top:clamp(18px,3.4vh,29px); }
.archive-heading { padding-bottom: 7px; }
#reflection-sort { border-color:var(--polish-border); }

/* Photography/Fragment viewer remains fully functional and unobscured. */
.collection-page .collection-main { margin-top:clamp(20px,3vh,30px); }
.collection-gallery .photo-link { transition: filter var(--polish-fast); }
.collection-credits { max-width: 730px; }
.collection-credits summary { padding:6px 0; }
.site-copyright { margin-top:clamp(38px,5vh,55px); }

/* Study is the densest section; make its navigation easy to scan. */
.study-page .reading-guide { margin-top:24px; }
.study-page #contents { margin-top:26px; margin-bottom:40px; }
.study-page #contents a { text-underline-offset:3px; }
.study-page article { scroll-margin-top: 26px; }
.study-page .mirror-details summary,
.study-page .study-possibility-details summary { transition:background-color var(--polish-fast); }

/* Unified mobile spacing without wasting the first screen. */
@media (max-width:650px) {
  body > header.collection-header:has(.collection-identity) { padding-top:17px; padding-bottom:18px; }
  body > header.collection-header .collection-identity { gap:11px; margin-bottom:14px; }
  body > header.collection-header .collection-identity .collection-mark { width:36px; height:36px; flex-basis:36px; border-radius:11px; }
  body > header.collection-header .collection-identity .collection-mark svg { width:25px; height:25px; }
  body > header.collection-header .collection-identity .header-eyebrow { font-size:10px; letter-spacing:.12em; }
  #site-header .site-nav { padding-block:12px; }
  .journal > main > .journal-entry > header .header-sprig { width:87px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}
@media print {
  .reflection-card, .home-page :is(.feature-reflection,.feature-visual,.feature-study,.feature-soundtracks) { box-shadow:none; }
}
