/* Shared site foundation: service-led / monochrome gallery; page compositions stay local. */
:root { --ink: #172959; --accent: #112eef; --accent-ink: #ffffff; --paper: #f6f8fb; --tint: #d9e0ff; --line: rgba(15, 23, 42, .18); --content: 1180px; --radius: 0px; --heading-font: Arial, Helvetica, sans-serif; --body-font: Arial, Helvetica, sans-serif; --section-y: clamp(4.5rem, 10vw, 9rem); }
@supports (color: color-mix(in srgb, black, white)) { :root { --line: color-mix(in srgb, var(--ink) 18%, transparent); } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body-font); font-size: 16px; line-height: 1.65; }
h1, h2, h3, .site-brand { font-family: var(--heading-font); }
h1, h2, h3 { margin-block: 0 .7em; line-height: 1.08; text-wrap: balance; }
h1 { max-width: 18ch; font-size: clamp(2.65rem, 6vw, 6.25rem); letter-spacing: -.045em; }
h2 { max-width: 28ch; font-size: clamp(1.8rem, 3.2vw, 3.35rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
p, li { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
/* Family signatures are deliberately restrained: page-local CSS still owns
   layout, while these details make the selected visual concept unavoidable. */
body[data-design-family="editorial-journal"] main { counter-reset: chapter; }
body[data-design-family="editorial-journal"] main > section > h2:first-child::before { counter-increment: chapter; content: "0" counter(chapter) " / "; color: var(--accent); font: 700 .72em var(--body-font); letter-spacing: .12em; }
body[data-design-family="modernist-grid"] main > section { border-top: 1px solid var(--line); }
body[data-design-family="modernist-grid"] h1, body[data-design-family="modernist-grid"] h2 { letter-spacing: -.045em; }
body[data-design-family="quiet-luxury"] main > section { padding-block: clamp(3.75rem, 7vw, 7rem); }
body[data-design-family="quiet-luxury"] h1, body[data-design-family="quiet-luxury"] h2 { font-weight: 500; }
body[data-design-family="organic-studio"] main img { border-radius: max(1.5rem, var(--radius)); }
body[data-design-family="technical-atlas"] main > section:nth-child(3n + 2) { background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 3rem; }
body[data-design-family="technical-atlas"] h2 { text-transform: uppercase; letter-spacing: .08em; }
body[data-design-family="neo-brutalist-poster"] main img, body[data-design-family="neo-brutalist-poster"] main form { border: 2px solid var(--ink); box-shadow: .45rem .45rem 0 var(--accent); border-radius: 0; }
body[data-design-family="archival-ledger"] main > section { border-bottom: 1px dashed var(--line); }
body[data-design-family="archival-ledger"] main h2 { font-variant-numeric: tabular-nums; }
body[data-design-family="photographic-cinema"] main img { width: 100%; border-radius: 0; }
/* A site-family signature must never repaint a page-owned surface. Earlier
   versions alternated dark sections here; that overrode page-local light
   cards/headings and produced unreadable multi-page output. Cinema is now
   expressed through image treatment, while each page owns its surfaces. */
body[data-design-family="photographic-cinema"] main > section:nth-child(odd) img { filter: saturate(.92) contrast(1.04); }
body[data-design-family="playful-modular"] main > section:nth-child(3n+2) { background: var(--tint); }
body[data-design-family="playful-modular"] main h2 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .12em; }
body[data-design-family="contemporary-craft"] main img { padding: .45rem; border: 1px solid var(--line); background: var(--paper); }
body[data-design-family="monochrome-gallery"] main > section { border-block: 1px solid var(--line); }
body[data-design-family="monochrome-gallery"] main h2 { font-weight: 400; letter-spacing: .025em; }
body[data-design-family="vibrant-community"] main > section:nth-child(even) { background: var(--tint); }
body[data-design-family="vibrant-community"] main h2::after { content: ""; display: block; width: 3rem; height: .35rem; margin-top: .6rem; background: var(--accent); }
header, footer { padding-inline: max(1.25rem, calc((100vw - var(--content)) / 2)); }
.site-shell-header, header { min-height: 4.75rem; display: flex; justify-content: space-between; gap: 1.25rem; align-items: center; padding-block: .9rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.site-brand { max-width: 22rem; color: var(--ink); font-size: .94rem; font-weight: 760; letter-spacing: -.015em; text-decoration: none; }
.site-shell-header nav, header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem 1rem; align-items: center; }
.site-shell-header nav a, header nav a { color: var(--ink); font-size: .88rem; text-decoration: none; }
.site-shell-header nav a[aria-current="page"], header nav a[aria-current="page"] { color: var(--accent); font-weight: 750; }
[data-shell-part="brand-block"] { display: grid; gap: .12rem; min-width: 0; }
[data-shell-part="header-inner"], [data-shell-part="header-panel"] { width: 100%; display: flex; justify-content: space-between; gap: 1.25rem; align-items: center; }
[data-shell-part="brand-frame"], [data-shell-part="brand-cell"] { min-width: 0; }
[data-shell-part="nav-frame"], [data-shell-part="nav-cell"], [data-shell-part="nav-rail"] { display: flex; align-items: center; gap: 1rem; min-width: 0; }
[data-shell-part="nav-index"], [data-shell-part="rail-label"] { flex: none; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
[data-shell-part="brand-mark"] { color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
[data-shell-part="footer-brand"] { font-weight: 780; letter-spacing: -.015em; }
/* Six site-level shell recipes. They inherit this site's tokens, so the shell
   changes composition without looking imported from another design system. */
[data-shell-recipe="editorial-rule"] { border-block-color: var(--line); }
header[data-shell-recipe="editorial-rule"] { border-top: .22rem solid var(--accent); }
header[data-shell-recipe="editorial-rule"] nav a { border-bottom: 1px solid transparent; padding-block: .3rem; }
header[data-shell-recipe="editorial-rule"] nav a:hover { border-color: var(--accent); }
header[data-shell-recipe="contrast-band"] { background: var(--ink); color: var(--paper); border: 0; }
header[data-shell-recipe="contrast-band"] .site-brand, header[data-shell-recipe="contrast-band"] nav a { color: var(--paper); }
header[data-shell-recipe="contrast-band"] nav a { padding: .48rem .7rem; border: 1px solid var(--line); border-color: color-mix(in srgb, var(--paper) 24%, transparent); }
footer[data-shell-recipe="contrast-band"] { border-top: .35rem solid var(--accent); }
header[data-shell-recipe="contrast-band"] [data-shell-part="header-inner"] { max-width: var(--content); margin-inline: auto; }
header[data-shell-recipe="contrast-band"] [data-shell-part="navigation-band"] { padding-left: 1.25rem; border-left: 1px solid color-mix(in srgb, var(--paper) 24%, transparent); }
header[data-shell-recipe="framed-inset"], footer[data-shell-recipe="framed-inset"] { margin-inline: max(.75rem, calc((100vw - 1280px) / 2)); padding-inline: clamp(1rem, 3vw, 2.4rem); border: 1px solid var(--line); }
header[data-shell-recipe="framed-inset"] { margin-top: .75rem; border-radius: .65rem; }
footer[data-shell-recipe="framed-inset"] { margin-bottom: .75rem; border-radius: .65rem; }
header[data-shell-recipe="framed-inset"] [data-shell-part="nav-frame"] { padding-left: 1.25rem; border-left: 1px solid var(--line); }
header[data-shell-recipe="studio-ledger"] { min-height: 6rem; align-items: stretch; border-block: 1px solid var(--line); }
header[data-shell-recipe="studio-ledger"] [data-shell-part="brand-block"] { align-content: center; padding-right: 2rem; border-right: 1px solid var(--line); }
header[data-shell-recipe="studio-ledger"] [data-shell-part="nav-cell"] { flex: 1; justify-content: flex-end; }
header[data-shell-recipe="studio-ledger"] nav { align-content: center; }
footer[data-shell-recipe="studio-ledger"] { border-top: 1px solid var(--accent); }
footer[data-shell-recipe="studio-ledger"] [data-shell-part="footer-identity"] { padding-right: 2rem; }
footer[data-shell-recipe="studio-ledger"] nav { align-self: stretch; align-content: center; padding-left: 2rem; border-left: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); }
header[data-shell-recipe="soft-panel"] { margin: .8rem max(.8rem, calc((100vw - 1240px) / 2)) 0; padding-inline: 1.5rem; border: 0; border-radius: 999px; background: var(--paper); background: color-mix(in srgb, var(--accent) 9%, var(--paper)); }
header[data-shell-recipe="soft-panel"] [data-shell-part="header-panel"] { width: 100%; }
header[data-shell-recipe="soft-panel"] nav a { padding: .42rem .7rem; border-radius: 999px; }
header[data-shell-recipe="soft-panel"] nav a:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
footer[data-shell-recipe="soft-panel"] { background: var(--ink); background: color-mix(in srgb, var(--ink) 94%, var(--accent)); }
header[data-shell-recipe="minimal-rail"] { min-height: 5.5rem; border: 0; }
header[data-shell-recipe="minimal-rail"] .site-brand { font-size: 1.08rem; }
header[data-shell-recipe="minimal-rail"] nav { gap: 1.35rem; }
header[data-shell-recipe="minimal-rail"] [data-shell-part="nav-rail"] { margin-left: auto; padding-left: 1.25rem; border-left: 1px solid var(--line); }
header[data-shell-recipe="minimal-rail"] nav a { font-size: .78rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
footer[data-shell-recipe="minimal-rail"] { background: transparent; color: var(--ink); border-top: 1px solid var(--line); }
main { overflow: clip; }
/* Page CSS may use narrow inner reading columns, never a narrow site-wide <main>. */
html body main[data-page-role] { width: 100%; max-width: none !important; margin-inline: 0 !important; padding-inline: 0 !important; }
section { padding: var(--section-y) max(1.25rem, calc((100vw - var(--content)) / 2)); }
main > section { position: relative; isolation: isolate; min-width: 0; }
/* `data-composition` is descriptive, not a second layout engine. Page-local CSS
   owns its geometry. Applying a grid here as well puts a page's inner layout
   wrapper into the first outer grid track, collapsing otherwise valid pages. */
/* ── form control contract (site generator) ── */
main form {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem;
  width: min(100%, 42rem); margin-block: 1.5rem 0;
}
main form > label {
  display: block; margin: .25rem 0 -.35rem; color: var(--ink);
  font-size: .92rem; font-weight: 700; line-height: 1.45;
}
main form :where(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  display: block; width: 100%; min-inline-size: 0; min-block-size: 2.75rem;
  margin: 0; padding: .8rem .9rem; border: 1px solid var(--line);
  border-radius: .65rem; border-radius: min(var(--radius), .65rem);
  background: #fff; color: var(--ink); font: inherit; line-height: 1.4;
}
main form textarea {
  min-block-size: 9rem; resize: vertical;
  border-radius: .75rem; border-radius: min(var(--radius), .75rem);
}
main form :where(input[type="checkbox"], input[type="radio"]) {
  display: inline-block !important; flex: 0 0 1.125rem;
  inline-size: 1.125rem !important; width: 1.125rem !important;
  min-inline-size: 1.125rem; block-size: 1.125rem; min-block-size: 1.125rem;
  margin: .1rem 0 0 !important; padding: 0 !important;
  accent-color: var(--accent); cursor: pointer;
}
main form :where(label):has(> input[type="checkbox"], > input[type="radio"]) {
  display: flex; align-items: flex-start; gap: .65rem; min-width: 0;
  margin: 0; padding: .75rem .875rem; border: 1px solid var(--line);
  border-radius: .55rem; background: var(--tint); cursor: pointer;
  color: var(--ink); font-size: .92rem; font-weight: 600; line-height: 1.4;
}
@supports (color: color-mix(in srgb, black, white)) {
  main form :where(label):has(> input[type="checkbox"], > input[type="radio"]) {
    background: color-mix(in srgb, var(--paper) 72%, var(--tint));
  }
}
main form :where(div, fieldset):has(> label > input[type="checkbox"], > label > input[type="radio"]) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .625rem; width: 100%; margin: .25rem 0; padding: 0; border: 0;
}
main form fieldset { min-width: 0; }
main form legend { margin-bottom: .75rem; font-weight: 700; }
main form :where(input:not([type="checkbox"]):not([type="radio"]), textarea, select):focus {
  outline: 3px solid rgba(15, 23, 42, .14); outline-offset: 2px; border-color: var(--accent);
}
@supports (color: color-mix(in srgb, black, white)) {
  main form :where(input:not([type="checkbox"]):not([type="radio"]), textarea, select):focus {
    outline-color: color-mix(in srgb, var(--accent) 28%, transparent);
  }
}
main form :where(button, [type="submit"]) {
  justify-self: start; inline-size: auto !important; width: auto !important;
  min-height: 2.75rem; margin-top: .25rem; padding: .7rem 1.15rem;
  border: 0; border-radius: min(var(--radius), 999px);
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 750; cursor: pointer;
}
main form :where(button, [type="submit"]):hover { filter: brightness(.94); }
@media (max-width: 680px) {
  main form { width: 100%; }
  main form :where(div, fieldset):has(> label > input[type="checkbox"], > label > input[type="radio"]) {
    grid-template-columns: 1fr;
  }
}

/* footer layout contract v2 (site generator) */
.site-shell-footer, footer[data-shell-recipe] {
  display: block !important;
  margin-top: 3rem;
  padding-block: 0;
  background: var(--ink);
  color: var(--paper);
}
footer[data-shell-recipe] > [data-shell-part="footer-main"] {
  width: 100%;
  display: grid !important;
  grid-template-columns: minmax(14rem, .9fr) minmax(0, 1.1fr) !important;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  padding-block: 2.5rem 1.75rem;
}
footer[data-shell-recipe] [data-shell-part="footer-identity"],
footer[data-shell-recipe] [data-shell-part="footer-links"] {
  grid-area: auto !important;
  min-width: 0;
}
footer[data-shell-recipe] [data-shell-part="footer-identity"] {
  display: grid;
  grid-column: 1 !important;
  gap: .35rem;
  justify-items: start;
}
footer[data-shell-recipe] [data-shell-part="footer-links"] {
  display: flex;
  grid-column: 2 !important;
  justify-content: flex-end;
}
footer[data-shell-recipe] [data-shell-part="footer-links"] > nav {
  grid-area: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
}
footer[data-shell-recipe] > [data-shell-part="footer-bottom"] {
  display: block !important;
  width: 100%;
  padding-block: .9rem 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 20%, transparent);
}
footer[data-shell-recipe] [data-shell-part="copyright"] {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  font-size: .78rem;
  line-height: 1.45;
  opacity: .68;
}
footer[data-shell-recipe="minimal-rail"] > [data-shell-part="footer-bottom"] {
  border-top-color: var(--line);
}
@media (max-width: 680px) {
  footer[data-shell-recipe] > [data-shell-part="footer-main"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    align-items: start;
  }
  footer[data-shell-recipe] [data-shell-part="footer-links"] { justify-content: flex-start; }
  footer[data-shell-recipe] [data-shell-part="footer-identity"],
  footer[data-shell-recipe] [data-shell-part="footer-links"] { grid-column: 1 !important; }
}

.site-shell-footer p, footer p { margin: 0; }
.site-shell-footer .site-footer-email { opacity: .78; font-size: .9rem; }
.site-shell-footer nav, footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1rem; min-width: 0; }
.site-shell-footer a, footer a { color: inherit; font-size: .88rem; text-underline-offset: .18em; }
@media (max-width: 680px) { .site-shell-header, header, [data-shell-part="header-inner"], [data-shell-part="header-panel"] { flex-direction: column; align-items: flex-start; } [data-shell-part="nav-frame"], [data-shell-part="nav-cell"], [data-shell-part="nav-rail"] { width: 100%; padding-left: 0 !important; border-left: 0 !important; } .site-shell-header nav, header nav, .site-shell-footer nav, footer nav { justify-content: flex-start; } footer[data-shell-recipe="studio-ledger"] nav { padding-left: 0; padding-top: 1.25rem; border-left: 0; border-top: 1px solid var(--line); } header, footer, section { padding-inline: 1.25rem; } }
