/* Brand layer for the six product sites. Layout and app-specific UI live in the sites. */
@font-face {
  font-family: "PX7 Fraunces";
  src: url("/px7-theme-fonts/px7-fraunces.woff?v=d82602837c") format("woff");
  font-style: normal;
  font-weight: 450 650;
  font-display: swap;
}

@font-face {
  font-family: "PX7 Inter";
  src: url("/px7-theme-fonts/px7-inter.woff?v=878934f03d") format("woff");
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
}

html[data-px7-suite] {
  --px7-display: "PX7 Fraunces", Georgia, serif;
  --px7-text: "PX7 Inter", system-ui, sans-serif;
  --px7-tint: #f4c66c;
}

html[data-px7-suite="audio"] { --px7-tint: #becb83; }
html[data-px7-suite="video"] { --px7-tint: #d0dee1; }
html[data-px7-suite="pdf"] { --px7-tint: #e8a077; }
html[data-px7-suite="markdown"] { --px7-tint: #d0dee1; }
html[data-px7-suite="utilities"] { --px7-tint: #c9c397; }

html[data-px7-suite]:not([data-px7-suite-style]) {
  color-scheme: light;
  --bg: #fff3df;
  --bg2: #f5e7d0;
  --bg-deep: var(--bg2);
  --ink: #233a4b;
  --muted: #43514f;
  --line: #dfc9aa;
  --card: #fffaf0;
  --card-solid: var(--card);
  --panel: var(--card);
  --accent: #425733;
  --accent-dark: var(--accent);
  --accent-soft: #e8ecd9;
  --px7-on-accent: #fffaf0;
  --px7-hero: color-mix(in srgb, var(--px7-tint) 28%, var(--bg));
  --px7-hub: #f7e8d0;
  --shadow: 0 2px 6px #49301509, 0 14px 28px #49301508;
  --shadow-lift: 0 4px 12px #49301514, 0 20px 34px #49301510;
}

@media (prefers-color-scheme: dark) {
  html[data-px7-suite]:not([data-px7-suite-style]) {
    color-scheme: dark;
    --bg: #17262c;
    --bg2: #142127;
    --ink: #fff3df;
    --muted: #d2d7cd;
    --line: #526059;
    --card: #213238;
    --accent: #e9c47d;
    --accent-soft: #39483a;
    --px7-on-accent: #24311f;
    --px7-hero: color-mix(in srgb, var(--px7-tint) 12%, var(--bg));
    --px7-hub: #293a3e;
    --shadow: 0 3px 8px #08121538, 0 14px 28px #08121528;
    --shadow-lift: 0 6px 14px #08121556, 0 18px 34px #08121548;
  }
}

/* Video's demonstrations and interface artwork already share a dark stage. */
html[data-px7-suite="video"]:not([data-px7-suite-style]) {
  color-scheme: dark;
  --bg: #14232c;
  --bg2: #101c24;
  --ink: #fff3df;
  --muted: #cbd5d0;
  --line: #485c66;
  --card: #1e313d;
  --accent: #f4c66c;
  --blue: var(--accent);
  --accent-soft: #3a4342;
  --px7-on-accent: #283126;
  --px7-hero: #263d4b;
  --px7-hub: #2a414b;
  --shadow: 0 4px 14px #080f1460;
  --shadow-lift: 0 10px 24px #080f1480;
}

html[data-px7-suite]:not([data-px7-suite-style]) body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--px7-text);
}

html[data-px7-suite]:not([data-px7-suite-style]) :is(h1, h2, h3, .product .name) {
  font-family: var(--px7-display);
  font-weight: 550;
  letter-spacing: -.025em;
}

html[data-px7-suite] :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

html[data-px7-suite]:not([data-px7-suite-style]) :is(.site-header, .suite-header) {
  margin-block: clamp(18px, 3.2vw, 40px) 0;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 66px);
  border: 1px solid var(--line);
  border-radius: 22px 46px 22px 22px;
  background: var(--px7-hero);
}

html[data-px7-suite]:not([data-px7-suite-style]) :is(.site-header, .suite-header) h1 {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

html[data-px7-suite]:not([data-px7-suite-style]) .product-header {
  padding-block-start: clamp(26px, 5vw, 58px);
}

html[data-px7-suite]:not([data-px7-suite-style]) .product-header h1 {
  font-size: clamp(35px, 5.5vw, 64px);
  line-height: 1.06;
  overflow-wrap: anywhere;
}

html[data-px7-suite]:not([data-px7-suite-style]) :is(.site-header, .product-header) :is(.eyebrow, .kicker) {
  color: var(--accent);
  font-weight: 650;
}

html[data-px7-suite]:not([data-px7-suite-style]) :is(.product-grid .product, .video-product) {
  border-color: var(--line);
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

html[data-px7-suite]:not([data-px7-suite-style]) .product-grid .product :is(.what, .verb) { color: var(--muted); }

html[data-px7-suite]:not([data-px7-suite-style]) :is(.product .tag, .video-product .product-status) {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent);
}

html[data-px7-suite]:not([data-px7-suite-style]) .mac-hub-callout {
  border-color: var(--line);
  background: var(--px7-hub);
  color: var(--ink);
}

html[data-px7-suite]:not([data-px7-suite-style]) .mac-hub-callout p { color: var(--muted); }

html[data-px7-suite]:not([data-px7-suite-style]) :is(.mac-hub-link, .actions .button, .download-button) {
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--px7-on-accent);
}

html[data-px7-suite]:not([data-px7-suite-style]) :is(.actions, .product-page .release)
  .button:is(.secondary, .quiet) {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}

html[data-px7-suite]:not([data-px7-suite-style]) :is(.actions .button, .mac-hub-link, .download-button):hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

html[data-px7-suite]:not([data-px7-suite-style]) .note:not(:empty) {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

html[data-px7-suite]:not([data-px7-suite-style]) :is(.product-proof, .product-interface) img {
  border-radius: 14px;
}

html[data-px7-suite="video"] :is(.suite-page, .product-page) {
  background: radial-gradient(ellipse at 70% 8%, #294251 0%, transparent 36rem), var(--bg);
  color: var(--ink);
}

html[data-px7-suite="video"] .product-page .hero h1 {
  max-width: 13ch;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.01;
  overflow-wrap: anywhere;
}

html[data-px7-suite="video"] :is(.suite-eyebrow, .video-product .verb) { color: var(--accent); }

html[data-px7-suite="video"] :is(.fine, .format-card span, .format-card small, .suite-links a, .family a) {
  color: var(--muted);
}

html[data-px7-suite="video"] :is(.suite-links, .family) a[aria-current="page"] { color: var(--ink); }

html[data-px7-suite="video"] .product-page :is(.format-card, .feature-grid article) {
  border-color: var(--line);
  background: var(--card);
  min-width: 0;
}

html[data-px7-suite]:not([data-px7-suite-style]) :is(.legal, .specs, .rule, .guide, .wrap :where(p, li)) {
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  html[data-px7-suite="video"] .product-page .hero-art {
    display: grid;
    justify-self: start;
  }

  html[data-px7-suite="video"] .product-page .hero-art img {
    width: clamp(110px, 30vw, 155px);
    filter: drop-shadow(0 10px 18px #0005);
  }

  html[data-px7-suite="video"] .product-page .hero-art .glow { display: none; }

  html[data-px7-suite="video"] .product-page .format-card {
    padding: clamp(18px, 5vw, 36px);
  }

  html[data-px7-suite="video"] .product-page .format-card strong {
    font-size: clamp(32px, 9vw, 64px);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 620px) {
  html[data-px7-suite]:not([data-px7-suite-style]) :is(.site-header, .suite-header) {
    border-radius: 18px 30px 18px 18px;
  }

  html[data-px7-suite]:not([data-px7-suite-style]) :is(.site-header .lede, .suite-header > p:last-child) {
    font-size: clamp(16px, 4.5vw, 19px);
  }

  html[data-px7-suite]:not([data-px7-suite-style]) .site-promise {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
