/* ==========================================================================
   HOME - shared section scaffolding (V6 "Warm Glass Atelier"). Linked first on the homepage; every section has its own file beside this one.
   Cream page, generous rhythm (--section-y), a container, a serif section heading (Instrument Serif, weight 400, <em> = italic) and a quiet link on the right,
   rounded 24-32px cards (photographs 20px inside), cocoa pills. The hero is full-bleed; every section after it sits on the cream page, never on a dark block.
   Hidden "before" states exist only through the motion kit hooks (data-reveal-lines / data-reveal-mask) and carry their own CSS fail-safes: nothing here hides content.
   ========================================================================== */
.home { background: var(--cream); color: var(--ink); }
.home > section:not(.hx) { position: relative; }

.hs { padding-block: clamp(3rem, 1.5rem + 5.5vw, 6.75rem) 0; }
.hs--last { padding-block-end: clamp(3rem, 1.5rem + 5.5vw, 6.75rem); }
.hs__inner { inline-size: 100%; max-inline-size: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* section head: serif title (left) + link (right) */
.hs__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .9rem 2rem; margin-block-end: clamp(1.4rem, 1rem + 1.8vw, 2.5rem); }
.hs__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-h2); line-height: 1.02; letter-spacing: var(--tracking-display); color: var(--cocoa); text-wrap: balance; }
.hs__title em { font-style: italic; }
.hs__link { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font: 600 var(--fs-sm)/1.2 var(--font-sans); text-decoration: none; padding-block: .5rem; }
.hs__link .icon { inline-size: 1.05rem; block-size: 1.05rem; }

/* the small honest chip on AI-generated photographs */
.ai-chip {
  position: absolute; z-index: 3; inset-block-end: .7rem; inset-inline-end: .7rem; padding: .28rem .65rem; border-radius: 999px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  color: var(--ink); font: 600 .62rem/1.1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .ai-chip { background: var(--paper); } }

/* photographs: never a hard edge of the wrong colour while they load */
.hs picture, .hs img { display: block; }
.hs-ph { background: var(--sand); }

/* focus: the same cocoa ring everywhere on this page */
.home a:focus-visible, .home button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .home * { scroll-behavior: auto; } }

/* dots under a phone / tablet snap carousel (categories, journal): built by js/lib/snap-carousel.js; hidden from 64em, where those sections use their desktop layouts */
.snap-dots { display: none; }
@media (max-width: 63.99em) {
  .snap-dots { display: flex; justify-content: center; align-items: center; gap: .1rem; margin-block-start: .2rem; }
  .snap-dot { position: relative; inline-size: 1.9rem; block-size: 2.4rem; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .snap-dot::before { content: ""; inline-size: .5rem; block-size: .5rem; border-radius: 999px; background: var(--line-strong); transition: inline-size .35s var(--ease-soft), background-color .35s var(--ease-soft); }
  .snap-dot[aria-current="true"]::before { inline-size: 1.5rem; background: var(--cocoa); }
  .snap-dot:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 999px; }
}
@media (prefers-reduced-motion: reduce) { .snap-dot::before { transition: none; } }
html.reduced-motion .snap-dot::before { transition: none; }
