@scope (.atelier-home) {
/* =====================================================================
   The Sisters Cottage · Atelier base · v1.0.0
   Reset, page defaults, layout and type classes. Load order:
   tokens.css → base.css → components.css → page CSS (if any).
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font: var(--weight-regular) var(--text-base) / var(--leading-body) var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sc-on-dark :focus-visible, .sc-on-dark:focus-visible { box-shadow: var(--focus-ring-on-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout ---------- */
.sc-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sc-container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.sc-section { padding: var(--section-y) 0; }
.sc-section--alt { background: var(--surface-alt); }
.sc-section--flush-top { padding-top: 0; }
.sc-section--night { background: var(--night); color: var(--on-night); }

/* Horizontal scroll rail. Desktop: a normal grid. Phone: swipeable, snaps per item. */
.sc-rail { display: grid; grid-template-columns: repeat(var(--rail-cols, 3), 1fr); gap: var(--grid-gap-x); }
@media (max-width: 760px) {
  .sc-rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--rail-item, 78%);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); gap: var(--space-4);
  }
  .sc-rail::-webkit-scrollbar { display: none; }
  .sc-rail > * { scroll-snap-align: start; }
}

/* ---------- Type ---------- */
.sc-eyebrow {
  display: block;
  font: var(--weight-medium) var(--text-eyebrow) / 1.4 var(--sans);
  letter-spacing: 0; text-transform: uppercase;
  color: var(--gold-ink);
}
.sc-on-dark .sc-eyebrow, .sc-section--night .sc-eyebrow { color: var(--gold-light); }

.sc-display, .sc-h1, .sc-h2, .sc-h3, .sc-h4 { font-family: var(--serif); font-weight: var(--weight-regular); }
.sc-display { font-size: var(--text-display); line-height: 0.98; letter-spacing: 0; }
.sc-h1 { font-size: var(--text-h1); line-height: 1.02; letter-spacing: 0; }
.sc-h2 { font-size: var(--text-h2); line-height: 1.02; letter-spacing: 0; }
.sc-h3 { font-size: var(--text-h3); line-height: 1.05; }
.sc-h4 { font-size: var(--text-h4); line-height: 1.2; font-weight: var(--weight-medium); }

/* The signature move: one italic, oxblood phrase per heading. */
.sc-display em, .sc-h1 em, .sc-h2 em, .sc-h3 em { font-style: italic; color: var(--oxblood); }
.sc-on-dark :is(.sc-display, .sc-h1, .sc-h2, .sc-h3) em,
.sc-section--night :is(.sc-display, .sc-h1, .sc-h2, .sc-h3) em { color: var(--gold-light); }

.sc-lede { font-size: var(--text-lede); font-weight: var(--weight-light); color: var(--muted); max-width: 30em; }
.sc-muted { color: var(--muted); }
.sc-on-dark .sc-muted, .sc-section--night .sc-muted { color: var(--on-night-muted); }
.sc-small { font-size: var(--text-md); }

.sc-prose { max-width: 38em; }
.sc-prose > * + * { margin-top: var(--space-4); }
.sc-prose h2 { font: var(--weight-regular) var(--text-h3) / 1.1 var(--serif); margin-top: var(--space-12); }
.sc-prose h3 { font: var(--weight-medium) var(--text-h4) / 1.2 var(--serif); margin-top: var(--space-8); }
.sc-prose a { color: var(--oxblood); text-decoration: underline; text-underline-offset: 3px; }
.sc-prose ul { padding-left: 1.2em; }

.sc-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sc-skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-toast);
  background: var(--oxblood); color: var(--on-accent); padding: var(--space-3) var(--space-4);
}
.sc-skip-link:focus { top: var(--space-4); }

}
