/* One public-site shell. This stylesheet loads last on every public/account page. */
:root {
  --site-content-width: 1296px;
  --site-gutter: clamp(20px, 4vw, 64px);
  --site-edge: max(var(--site-gutter), calc((100% - var(--site-content-width)) / 2));
  --site-page-space: 64px;
  --site-section-space: 64px;
  --site-reading-width: 72ch;
}
body.site-shell { min-height: 100svh; display: flex; flex-direction: column; }
body.site-shell > .site-header {
  width: 100%; max-width: none; margin: 0; padding: 0 var(--site-edge);
  height: 80px; min-height: 80px; gap: 24px; flex-shrink: 0;
  border-bottom: 1px solid var(--line); background: var(--paper);
}
body.site-shell > .site-header .brand { font-size: 1.1rem; gap: 12px; min-height: 44px; }
body.site-shell > .site-header .brand-symbol { font-size: 2.5rem; }
body.site-shell > .site-header > nav { gap: 24px; }
body.site-shell > .site-header > nav > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
body.site-shell > .site-header .header-account { width: 180px; flex: 0 0 180px; gap: 16px; }
body.site-shell > .site-header .header-account > * { font: inherit; font-size: .85rem; min-height: 44px; align-items: center; }
body.site-shell > .site-header #open-workspace { display: inline-flex; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 650; }
body.site-shell > .site-header .text-button { padding: 8px 0; border: 0; color: var(--ink); background: transparent; text-decoration: underline; text-underline-offset: 4px; }
body.site-shell > main { flex: 1 0 auto; }
body.site-shell > main.reading,
body.site-shell > main.account-page,
body.site-shell > main.contact-page {
  width: calc(100% - 2 * var(--site-gutter)); max-width: var(--site-content-width);
  margin: 0 auto; padding: var(--site-page-space) 0;
}
body.site-shell .prose { max-width: var(--site-reading-width); }
body.site-shell > main.contact-page > *, body.site-shell > main.account-page > * { max-width: var(--site-reading-width); }
body.site-shell main.contact-page h1, body.site-shell main.account-page h1 { margin: 0 0 32px; font-size: clamp(2.5rem,4.5vw,4.5rem); line-height: 1.12; }
body.site-shell .reading > h1 { margin-top: 32px; }
body.site-shell .reading-intro { margin-bottom: 48px; }
body.site-shell .directory-heading { margin: 0 0 48px; }
body.site-shell .application-hero { padding: 0 0 var(--site-section-space); }
body.site-shell .application-hero-copy .reading-intro { margin-bottom: 24px; }
body.site-shell .visual-brief, body.site-shell .visual-notes { margin-bottom: 32px; }
body.site-shell .application-workflow { margin-block: 0 32px; }
body.site-shell > main:not(.reading):not(.account-page):not(.contact-page) { max-width: none; width: 100%; margin: 0; }
body.site-shell .hero.story-hero { padding: var(--site-page-space) var(--site-edge) 32px; }
body.site-shell .home-section { margin-inline: 0; padding: var(--site-section-space) var(--site-edge); }
body.site-shell > .site-footer {
  width: 100%; max-width: none; margin: 0; padding: 48px var(--site-edge) 32px;
  background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); flex-shrink: 0;
}
body.site-shell .footer-main { display: flex; justify-content: space-between; gap: 48px; padding: 0; }
body.site-shell .site-footer .brand { font-size: 1.1rem; gap: 12px; }
body.site-shell .site-footer .brand-symbol { font-size: 2.5rem; }
body.site-shell .site-footer nav { display: grid; grid-template-columns: repeat(3,minmax(100px,1fr)); gap: 48px; margin: 0; width: auto; }
body.site-shell .site-footer nav > div { gap: 8px; }
body.site-shell .site-footer nav h2 { margin: 0 0 4px; font-size: .75rem; line-height: 1.5; }
body.site-shell .site-footer nav a, body.site-shell .site-footer .cookie-preferences-link { font-size: .8125rem; line-height: 1.6; }
body.site-shell .site-footer .footer-meta { margin-top: 16px; font-size: .75rem; }
@media(max-width:860px) {
 body.site-shell > .site-header { height: auto; min-height: 80px; padding-block: 12px; gap: 8px 16px; flex-wrap: wrap; }
 body.site-shell > .site-header > nav { margin-left: auto; }
 body.site-shell > .site-header > nav > a { display: none; }
 body.site-shell > .site-header .header-account { width: auto; flex-basis: auto; }
 body.site-shell .mobile-menu { display: block; width: 100%; border-top: 1px solid var(--line); }
 body.site-shell .mobile-menu summary { min-height: 44px; padding-block: 10px; font-size: .85rem; cursor: pointer; }
 body.site-shell > .site-header .mobile-menu nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; padding-bottom: 8px; }
 body.site-shell > .site-header .mobile-menu nav > a { display: flex; align-items: center; min-height: 44px; font-size: .85rem; }
 body.site-shell .footer-main { flex-direction: column; gap: 32px; }
 body.site-shell .site-footer nav { width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
}
@media(max-width:600px) {
 :root { --site-page-space: 32px; --site-section-space: 48px; }
 body.site-shell > .site-header .brand { font-size: 1rem; gap: 8px; }
 body.site-shell > .site-header .brand-symbol { font-size: 2rem; }
 body.site-shell > .site-header .header-account { gap: 12px; }
 body.site-shell > .site-header #open-workspace { padding-inline: 12px; }
 body.site-shell .directory-heading, body.site-shell .reading-intro { margin-bottom: 32px; }
 body.site-shell > .site-footer { padding-block: 32px; }
 body.site-shell .site-footer nav { gap: 16px; }
}
body.site-shell .story-hero .product-figure { margin-inline: 0; width: 100%; }
body.site-shell .story-hero .product-figure img { width: 100%; max-width: 100%; }
