/* Magnolia's calm studio direction, with an opt-in editorial comparison.
   Design process informed by unslop, Damir Sokolovsky, CC BY 4.0:
   https://github.com/heydamir/unslop */
:root {
  --studio-gutter: max(24px, calc((100vw - 1200px) / 2));
}
html { scroll-behavior: smooth; }
h1, h2, h3 { text-wrap: balance; }
button, a, input, select, textarea {
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid hsl(var(--primary-press));
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 110;
  padding: 12px 20px;
  background: hsl(var(--surface-raised));
  color: hsl(var(--foreground));
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.design-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--studio-gutter);
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--surface-muted));
  font: 500 12px/1.5 var(--font-ui);
}
.design-preview > div { display: flex; gap: 4px; }
.design-preview a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}
.design-preview a[aria-current] {
  background: hsl(var(--surface-raised));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.site-header {
  min-height: 88px;
  gap: 24px;
  padding: 20px var(--studio-gutter);
  background: hsl(var(--background));
}
.site-brand { font-size: 28px; white-space: nowrap; }
.site-header-actions .secondary {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.site-links a, .site-links button { font-weight: 500; }
.site-hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: stretch;
  min-height: 600px;
  background: hsl(var(--cream-warm));
}
.hero-media-placeholder {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: 600px;
  background: url("./media/hero-studio-poster.webp") center / cover no-repeat;
}
.hero-media-placeholder::before, .hero-media-placeholder::after { content: none; }
.hero-media-element { object-position: 58% center; }
.hero-video-control {
  top: auto;
  right: 24px;
  bottom: 24px;
  padding: 0 16px;
  border-radius: 8px;
  background: hsl(25 16% 20% / 0.9);
  backdrop-filter: none;
  font-weight: 500;
}
.hero-copy {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding: 64px 48px 96px var(--studio-gutter);
  animation: none;
}
.script-label, .hero-copy .script-label {
  font: 500 13px/1.5 var(--font-ui);
  color: hsl(var(--muted-foreground));
  letter-spacing: 0;
}
.hero-copy h1 {
  max-width: 13ch;
  margin: 24px 0 0;
  color: hsl(var(--foreground));
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-shadow: none;
}
.hero-copy p:not(.script-label) {
  max-width: 38ch;
  margin-top: 24px;
  color: hsl(var(--muted-foreground));
  font-size: 16px;
  line-height: 1.7;
}
.site-cta-row { gap: 16px; margin-top: 32px; }
.site-light-button, .site-ghost-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  backdrop-filter: none;
}
.site-light-button { background: hsl(var(--primary-press)); color: hsl(var(--primary-foreground)); }
.site-light-button:hover { background: hsl(var(--foreground)); }
.site-ghost-button { background: transparent; border-color: transparent; color: hsl(var(--foreground)); }
.site-ghost-button:hover { background: hsl(var(--surface-muted)); }
.scroll-cue {
  left: var(--studio-gutter);
  bottom: 28px;
  flex-direction: row;
  gap: 12px;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  transform: none;
}
.scroll-cue span:last-child, .live-sync span { animation: none; }
.site-section-inner { width: min(100%, 1248px); padding: 80px 24px; }
.site-section h2, .about-grid h2 { margin-top: 12px; font-size: clamp(36px, 3.4vw, 48px); font-weight: 500; line-height: 1.1; }
.offerings-grid { gap: 32px; margin-top: 40px; }
.offering-card { padding: 0; border: 0; border-radius: 0; gap: 12px; background: transparent; }
.offering-media-slot, .offering-card.today .offering-media-slot, .offering-card.spark .offering-media-slot {
  margin: 0 0 8px;
  padding: 0;
  border-radius: 8px;
  background: hsl(var(--surface-muted));
}
.offering-card h3 { margin: 0; font-size: 28px; font-weight: 500; }
.offering-card p { max-width: 38ch; font-size: 15px; }
.approach-section { width: min(100%, 960px); padding: 80px 32px; }
.approach-section blockquote { font-size: clamp(28px, 3.3vw, 44px); font-weight: 500; line-height: 1.25; }
.about-grid { gap: 64px; }
.portrait-placeholder { border-radius: 8px; border: 0; background: hsl(var(--surface-muted)); }
.cert-badge { padding: 0; background: transparent; border: 0; font-weight: 500; line-height: 1.6; }
.closing-cta { width: min(100%, 1248px); padding: 32px 24px 80px; }
.closing-cta > div { padding: 64px 32px; background: hsl(var(--surface-muted)); border-radius: 8px; }
.closing-cta h2 { color: hsl(var(--foreground)); font-size: 44px; font-weight: 500; }
.closing-cta .script-label, .closing-cta p { color: hsl(var(--muted-foreground)); }
/* Shared workspace: quieter surfaces, a clearer type hierarchy, fewer accents. */
.today-shell { gap: 24px; }
.today-hero { padding: 32px; border: 1px solid hsl(var(--border-soft)); background: hsl(var(--surface-raised)); }
.today-hero-greeting { font: 500 13px/1.5 var(--font-ui); color: hsl(var(--muted-foreground)); }
.today-hero-date { color: hsl(var(--foreground)); font-size: 36px; margin-top: 8px; font-weight: 500; }
.today-hero-summary { color: hsl(var(--muted-foreground)); max-width: 64ch; margin-top: 12px; }
.today-stat-row { gap: 16px; }
.stat-value { font-variant-numeric: tabular-nums; }
.quick-actions-grid { grid-template-columns: 1fr; gap: 8px; }
.quick-actions-grid .quick-action { min-height: 44px; }
.nav-item.active { background: hsl(var(--surface-muted)); }
.nav-count { background: hsl(var(--surface-muted)); color: hsl(var(--foreground)); }
/* Alternative 02: a photographic, editorial first screen and stronger rules. */
html[data-design="editorial"] .site-brand { font-size: 34px; }
html[data-design="editorial"] .site-hero { display: block; min-height: 640px; background: hsl(25 16% 16%); }
html[data-design="editorial"] .hero-media-placeholder { position: absolute; inset: 0; min-height: 100%; }
html[data-design="editorial"] .hero-media-element { object-position: center 45%; }
html[data-design="editorial"] .hero-media-placeholder::after { content: ""; background: linear-gradient(90deg, rgb(20 18 15 / 0.86), rgb(20 18 15 / 0.18)); animation: none; }
html[data-design="editorial"] .hero-copy { min-height: 640px; padding: 64px var(--studio-gutter) 96px; }
html[data-design="editorial"] .hero-copy h1 { max-width: 14ch; font-size: clamp(64px, 7.5vw, 104px); color: #faf7f1; line-height: 0.98; }
html[data-design="editorial"] .hero-copy .script-label, html[data-design="editorial"] .hero-copy p:not(.script-label), html[data-design="editorial"] .scroll-cue { color: #eee7dc; }
html[data-design="editorial"] .hero-copy p:not(.script-label) { max-width: 44ch; }
html[data-design="editorial"] .hero-copy .site-light-button { background: #f5efe5; color: #312b24; }
html[data-design="editorial"] .hero-copy .site-ghost-button { color: #faf7f1; }
html[data-design="editorial"] .hero-copy .site-ghost-button:hover { background: rgb(255 255 255 / 0.12); }
html[data-design="editorial"] .offering-card { border-top: 1px solid hsl(var(--foreground)); padding-top: 16px; }
html[data-design="editorial"] .offering-media-slot, html[data-design="editorial"] .portrait-placeholder { border-radius: 0; }
html[data-design="editorial"] .site-section h2 { font-size: clamp(40px, 4.5vw, 60px); }
@media (max-width: 900px) {
  .site-header { gap: 16px; }
  .site-links { display: none; }
  .hero-copy { padding-right: 24px; }
  .hero-copy h1 { font-size: 52px; }
}
@media (max-width: 759px) {
  :root { --studio-gutter: 24px; }
  .design-preview { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 16px; }
  .design-preview a { padding: 8px; }
  .site-header { min-height: 80px; align-items: center; flex-wrap: wrap; padding: 16px 24px; gap: 12px; }
  .site-brand, html[data-design="editorial"] .site-brand { font-size: 26px; }
  .site-header-actions { justify-content: flex-start; gap: 8px; }
  .site-header-actions .button { min-height: 44px; font-size: 12px; }
  .site-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { grid-column: 1; grid-row: 1; padding: 48px 24px; }
  .hero-copy h1 { max-width: 14ch; font-size: 48px; }
  .hero-copy p:not(.script-label) { font-size: 15px; }
  .hero-media-placeholder { grid-column: 1; grid-row: 2; min-height: 360px; }
  .scroll-cue { display: none; }
  .site-section-inner { padding: 56px 24px; }
  .offerings-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .offering-card p { max-width: none; }
  .approach-section { padding: 56px 24px; }
  .closing-cta { padding: 0 24px 56px; }
  .closing-cta > div { padding: 40px 24px; }
  .closing-cta h2 { font-size: 36px; }
  .today-hero { padding: 24px; }
  html[data-design="editorial"] .site-hero, html[data-design="editorial"] .hero-copy { min-height: 640px; }
  html[data-design="editorial"] .hero-copy { padding: 48px 24px 96px; }
  html[data-design="editorial"] .hero-copy h1 { font-size: clamp(48px, 12vw, 64px); max-width: 12ch; }
  html[data-design="editorial"] .hero-media-placeholder::after { background: rgb(20 18 15 / 0.68); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
