/* Pattern & Fit shared interface. Both themes use the same masthead and reversed mark. */
:root {
  --pf-mast: #4c154a;
  --pf-ivory: #fef8f1;
  --pf-canvas: light-dark(#fef8f1, #20231f);
  --pf-surface: light-dark(#fffaf6, #2d292b);
  --pf-ink: light-dark(#141414, #fef8f1);
  --pf-secondary: light-dark(#5e5157, #d0c6ca);
  --pf-action: light-dark(#733369, #e2b6d7);
  --pf-on-action: light-dark(#fef8f1, #32162e);
  --pf-outline: light-dark(#8e817f, #9b8895);
  --pf-focus: light-dark(#8d3884, #f6a98d);
  --pf-serif: Georgia, "Times New Roman", serif;
  --pf-ui: system-ui, -apple-system, "Segoe UI", sans-serif;
  --pf-gutter: clamp(12px, 2.5vw, 40px);
  --pf-radius: .625rem;
}
html body :is(.mast-band, header.mast, .site-header.shell, .masthead.library-masthead) {
  background: var(--pf-mast); color: var(--pf-ivory); border-bottom: 0;
}
html body :is(.mast-band > .mast, .mast > .mast-in, .site-header.shell, .masthead.library-masthead) {
  box-sizing: border-box; width: 100%; max-width: none; margin-inline: 0;
  padding: 8px var(--pf-gutter); min-height: 64px; height: auto;
}
html body header :is(.brand,.wordmark), html body header .brand :is(span,strong) {
  color: var(--pf-ivory); gap: 9px; font: 700 clamp(1.12rem,2.6vw,1.55rem)/1 var(--pf-serif);
  letter-spacing: -.045em; text-decoration: none;
}
html body header :is(.brand,.wordmark) img {
  width: 26px; height: 39px; border-radius: 0; object-fit: contain; flex: none;
}
html body :is(.mast-band,header.mast) :is(nav a,.directory-link,.private) { color: var(--pf-ivory); }
html body :is(.mast-band,header.mast) nav a:hover { color: #f0cde7; text-decoration: underline; }
html body :is(.mast-band, header.mast, .site-header.shell, .masthead.library-masthead) :focus-visible {
  outline: 2px solid #f6a98d; outline-offset: 3px;
}
html body .masthead.library-masthead {
  --ink: #fef8f1; --stroke: #966590; --hover: #682764; --muted: #e4bedb;
  --surface: #3b1538; --studio-accent: #f4ddeb; --studio-tint: #62265c;
}
html body .masthead.library-masthead :is(.header-popover,.studio-nav-dropdown) {
  --ink: var(--pf-ink); --surface: var(--pf-surface); --muted: var(--pf-secondary);
  --stroke: var(--pf-outline); --hover: light-dark(#f1e3ee,#45283f);
  --studio-accent: light-dark(#673060,#f4ddeb); --studio-tint: var(--hover);
  color: var(--ink); background: var(--surface);
}
html body :is(.hero h1,.collection-intro h1,.pattern-library .collection-intro h1) {
  font: 400 clamp(2.5rem,5.4vw,5rem)/1.02 var(--pf-serif); letter-spacing: -.055em;
}
html body :is(.sectionhead h2,.section-head h2,.card-copy h3,.project-card h3,.creator-grid h2,.creator-spotlight h2) {
  font-family: var(--pf-ui); font-weight: 620; letter-spacing: -.035em;
}
html body :is(.solid,.outline,.light,.hero-actions .cta,.fields button,.library-primary) {
  border-radius: var(--pf-radius); font-family: var(--pf-ui); font-weight: 650;
}
html body :is(.solid,.hero-actions .cta,.fields button) { background: var(--pf-action); color: var(--pf-on-action); }
html body :is(.solid,.hero-actions .cta,.fields button):hover { background: light-dark(#572351,#f0cde7); }
html body :is(.mast .solid,.site-header .header-link,.mast .outline) {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:42px; box-sizing:border-box; padding:8px 16px; font:650 .875rem/1.3 var(--pf-ui);
  border:1px solid #bd90b4; border-radius:999px; text-decoration:none;
}
html body :is(.mast .solid,.site-header .header-link) { background:#733369; color:#fef8f1; }
html body :is(.mast .solid,.site-header .header-link):hover { background:#84427a; color:#fff; }
html body :is(.mast .outline,.site-header .support-link) { background:#fffaf6; color:#342532; }
html body :is(.mast .outline,.site-header .support-link):hover { background:#f2e5ec; color:#342532; }
html body :is(.project-card,.plan,.photo-crop,.hero-photo,.creator-spotlight img,.hero-pair,.film-card) { border-radius:var(--pf-radius); }
@media(max-width:560px) {
  html body .site-header:has(.landing-nav) { padding-block:10px; row-gap:7px; }
}

html body footer:is(.footer,.site-footer),html body footer:has(> .limit) {
  background:var(--pf-surface); color:var(--pf-secondary); border-top:1px solid var(--pf-outline);
  font-family:var(--pf-ui); font-size:.875rem;
}
html body :is(footer.footer,footer.site-footer,footer:has(> .limit)) nav a { color:var(--pf-ink); text-underline-offset:.2em; }
html body :is(footer.footer,footer.site-footer,footer:has(> .limit)) nav a:hover { color:var(--pf-action); }
html body :is(.footer.wrap,.site-footer.shell) { width:100%; max-width:none; padding-inline:var(--pf-gutter); }
