@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,500;9..40,600;9..40,700&display=swap');

:root {
  color-scheme: light;
  --foam-purple-400: #8800FF;
  --foam-electric-purple: #8800FF;
  --foam-purple-700: #1A0033;
  --foam-white: #FFFFFF;
  --foam-black: #000000;
  --foam-gray-100: #FAFAFA;
  --foam-gray-200: #F5F5F5;
  --foam-gray-300: #CCCCCC;
  --foam-gray-700: #1A1A1A;
  --foam-mineral-100: #E8EEF0;
  --foam-mineral-200: #C8D6DA;
  --foam-slate: #26363B;
  --foam-font: 'DM Sans', Arial, sans-serif;
  --page-bg: #FFFFFF;
  --page-fg: #000000;
  --page-soft: #E8EEF0;
  --page-line: #DEDEDE;
  --footer-bg: #F5F5F5;
  --footer-fg: #1A0033;
  --footer-line: #DEDEDE;
  --footer-shadow: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #1A0033;
  --page-fg: #FFFFFF;
  --page-soft: #26363B;
  --page-line: #FFFFFF40;
  --footer-bg: #090111;
  --footer-fg: #FFFFFF;
  --footer-line: #FFFFFF33;
  --footer-shadow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page-bg); color: var(--page-fg); font: 500 17px/1.5 var(--foam-font); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
:root:not([data-theme="dark"]) a:focus-visible,
:root:not([data-theme="dark"]) button:focus-visible,
:root:not([data-theme="dark"]) input:focus-visible { outline-color: var(--foam-electric-purple); }
button, input { font: inherit; }
img { max-width: 100%; height: auto; }
h1,h2,h3,p { margin-top: 0; }
.wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.skip { position: absolute; left: 14px; top: -60px; z-index: 40; padding: 10px 14px; background: var(--page-bg); }
.skip:focus { top: 12px; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.site-header { position: sticky; z-index: 20; top: 0; background: var(--page-bg); border-bottom: 1px solid var(--page-line); }
.site-header .wrap, .site-footer .wrap { width: min(1376px, calc(100% - 64px)); }
.header-inner { position: relative; min-height: 69px; display: flex; align-items: center; gap: 20px; }
.header-logo { display: inline-flex; align-items: center; line-height: 0; }
.header-logo img { width: 82px; height: auto; }
.header-label { padding-left: 18px; border-left: 1px solid var(--page-line); font-size: 14px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.header-nav { display: flex; gap: 18px; align-items: center; margin-left: auto; font-size: 14px; font-weight: 500; letter-spacing: .01em; }
.header-nav a { text-decoration: none; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--page-fg); font-size: 14px; font-weight: 500; cursor: pointer; }
.theme-toggle { flex: none; min-height: 37px; padding: 6px 14px; border: 1px solid var(--page-fg); border-radius: 999px; background: transparent; color: var(--page-fg); font-size: 14px; font-weight: 500; cursor: pointer; }
.intro { max-width: 760px; padding: 79px 0 43px; }
.intro h1 { margin-bottom: 12px; font-size: clamp(38px, 5vw, 60px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
.intro p { max-width: 670px; margin: 0; font-size: 18px; }
.section { scroll-margin-top: 106px; padding: 42px 0 78px; border-top: 1px solid var(--page-line); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; margin-bottom: 25px; }
.section-title h2 { margin: 0; font-size: clamp(30px,3.4vw,42px); font-weight: 600; letter-spacing: -.03em; line-height: 1.18; }
.section-title p { max-width: 520px; margin: 0; font-size: 15px; }
.subtle-note { margin: 18px 0 0; font-size: 14px; }
.logo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.logo-tile { overflow: hidden; border: 1px solid var(--page-line); border-radius: 12px; }
.logo-display { height: 220px; display: grid; place-items: center; padding: 30px; }
.logo-display img { display: block; max-height: 150px; width: auto; }
.logo-display-light { background: white; }
.logo-display-dark { background: #1A0033; }
.logo-display-mark { background: #FFFFFF; }
.logo-display-mark img { height: 130px; }
.tile-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; border-top: 1px solid var(--page-line); font-size: 14px; }
.tile-caption a { font-weight: 600; }
.type-list { border-top: 1px solid var(--page-line); }
.type-item { min-height: 102px; display: grid; grid-template-columns: 218px minmax(0,1fr); align-items: center; gap: 20px; padding: 19px 0; border-bottom: 1px solid var(--page-line); }
.type-item > span:first-child { font-size: 13px; line-height: 1.5; }
.type-4xl { font-size: clamp(38px,5vw,68px); line-height: 1.11; letter-spacing: -.03em; }
.type-2xl { font-size: clamp(32px,4vw,44px); line-height: 1.2; letter-spacing: -.03em; }
.type-lg { font-size: 28px; line-height: 1.3; }
.type-body { font-size: 18px; font-weight: 500; }
.type-small { font-size: 14px; font-weight: 500; }
.palette-catalog { border-top: 1px solid var(--page-line); }
.color-family { padding: 25px 0 29px; border-bottom: 1px solid var(--page-line); }
.family-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 15px; }
.family-heading h3 { margin: 0; font-size: 20px; font-weight: 600; }
.family-heading span { font-size: 13px; }
.swatch-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 12px; }
.color-swatch { min-width: 0; font-size: 12px; }
.swatch-fill { height: 72px; margin-bottom: 8px; border: 1px solid var(--page-line); border-radius: 6px; }
.color-swatch strong, .color-swatch span { display: block; overflow-wrap: anywhere; line-height: 1.4; }
.color-swatch strong { font-weight: 600; }
.status-only { margin-top: 34px; padding: 26px 28px; border: 1px solid var(--page-line); border-radius: 16px; }
.status-only h3 { margin: 0 0 5px; font-size: 21px; font-weight: 500; }
.status-only > p { max-width: 730px; margin-bottom: 18px; font-size: 15px; }
.status-only .palette-catalog { border-top: 1px solid var(--page-line); }
.status-only .color-family:last-child { border-bottom: 0; padding-bottom: 0; }
.color-use-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; margin: 40px 0 15px; }
.color-use-heading h3 { margin: 0; font-size: 22px; font-weight: 600; }
.color-use-heading p { max-width: 690px; margin: 0; font-size: 15px; }
.color-use-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.color-use-example { min-height: 235px; padding: 24px; border-radius: 16px; }
.color-use-example span { display: block; margin-bottom: 43px; font-size: 13px; font-weight: 500; }
.color-use-example strong { display: block; max-width: 265px; font-size: 27px; font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.color-use-example p { margin: 11px 0 0; font-size: 14px; }
.color-use-purple { background: #5F00B2; color: #FFFFFF; }
.color-use-slate { background: #26363B; color: #FFFFFF; }
.color-use-mineral { border: 1px solid #A8BBC0; background: #C8D6DA; color: #1A1A1A; }
.mode-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.mode-example { min-height: 520px; padding: 38px; border: 1px solid var(--page-line); border-radius: 12px; }
.mode-light { background: #FFFFFF; color: #000000; }
.mode-dark { background: #1A0033; color: #FFFFFF; }
.mode-label { margin-bottom: 35px; font-size: 13px; font-weight: 600; }
.mode-example > img { display: block; height: 40px; width: auto; max-width: 140px; }
.mode-example h3 { max-width: 360px; margin: 27px 0 8px; font-size: clamp(29px,3vw,38px); font-weight: 500; line-height: 1.17; letter-spacing: -.015em; }
.mode-example p { max-width: 350px; margin-bottom: 25px; font-size: 16px; }
.button-pair { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.example-button, .pattern-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 13px; border: 1px solid currentColor; border-radius: 30px; font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.mode-light .example-button.primary { border-color: #1A0033; background: #1A0033; color: #FFFFFF; }
.mode-light .example-button.secondary { border-color: #1A0033; background: #FFFFFF; color: #1A0033; }
.mode-dark .example-button.primary { border-color: #FFFFFF; background: #FFFFFF; color: #1A0033; }
.mode-dark .example-button.secondary { border-color: #FFFFFF; background: transparent; color: #FFFFFF; }
.input-example { margin-top: 32px; }
.input-example label { display: block; margin: 0 0 8px 14px; font-size: 14px; font-weight: 500; }
.input-example input { width: 100%; max-width: 360px; height: 45px; padding: 0 16px; border: 1px solid #CCCCCC; border-radius: 40px; background: #FAFAFA; color: #000000; font-size: 16px; }
.input-example input::placeholder { color: #595959; opacity: 1; }
.scribble-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.scribble-card, .radius-card { min-width: 0; overflow: hidden; border: 1px solid var(--page-line); border-radius: 16px; }
.scribble-card { display: flex; flex-direction: column; }
.scribble-pair, .radius-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.scribble-stage { min-width: 0; height: 148px; display: grid; place-items: center; overflow: hidden; padding: 12px; }
.scribble-stage.light, .radius-stage.light { background: #FFFFFF; }
.scribble-stage.dark, .radius-stage.dark { background: #1A0033; }
.scribble-stage.light { color: #000000; }
.scribble-stage.dark { color: #FFFFFF; }
.scribble-stage > img { display: block; width: min(100%,210px); max-height: 112px; object-fit: contain; }
.scribble-type { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 110px; font-size: clamp(18px,2.2vw,25px); font-weight: 500; letter-spacing: -.035em; line-height: 1.15; white-space: nowrap; }
.scribble-type span { position: relative; z-index: 1; }
.scribble-type img { position: absolute; left: 50%; top: 50%; width: min(166px,100%); height: auto; transform: translate(-50%, -50%); pointer-events: none; }
.scribble-type.underlined img { width: min(185px,100%); transform: translate(-50%, 1px); }
.scribble-type.pointed img { width: min(190px,100%); transform: translate(-50%, -8%); }
.scribble-card h3 { margin: 17px 18px 4px; font-size: 19px; font-weight: 600; }
.scribble-card p { margin: 0 18px 13px; font-size: 14px; }
.asset-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: auto 18px 18px; padding-top: 5px; font-size: 13px; font-weight: 500; }
.scribble-heading { margin-top: 37px; }
.scribble-heading p { max-width: 560px; }
.radius-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.radius-stage { height: 120px; display: grid; place-items: center; padding: 17px; }
.radius-shape { width: min(100%,110px); height: 64px; border: 2px solid #1A0033; background: #FAFAFA; }
.radius-stage.dark .radius-shape { border-color: #FFFFFF; background: #370066; }
.radius-8 { border-radius: 8px; }
.radius-16 { border-radius: 16px; }
.radius-30 { height: 44px; border-radius: 30px; }
.radius-40 { height: 44px; border-radius: 40px; }
.radius-card h3 { margin: 15px 16px 2px; font-size: 18px; font-weight: 600; }
.radius-card p { margin: 0 16px 16px; font-size: 14px; }
.pattern-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 30px 0 13px; }
.pattern-heading h3 { margin: 0; font-size: 22px; font-weight: 600; }
.pattern-heading p { max-width: 740px; margin: 0; font-size: 14px; }
.pattern-stack { display: grid; gap: 12px; }
.pattern-card { overflow: hidden; border: 1px solid var(--page-line); border-radius: 12px; }
.pattern-caption { display: block; padding: 8px 18px; font-size: 13px; font-weight: 500; }
.pattern-header, .pattern-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 69px; padding: 12px 26px; }
.pattern-footer { min-height: 112px; padding-block: 28px; border-top: 1px solid; box-shadow: none; }
.pattern-header.light, .pattern-footer.light { background: #FFFFFF; color: #000000; }
.pattern-header.dark, .pattern-footer.dark { background: #1A0033; color: #FFFFFF; }
.pattern-footer.light { border-top-color: #DEDEDE; background: #F5F5F5; color: #1A0033; box-shadow: none; }
.pattern-footer.dark { border-top-color: #FFFFFF26; background: #090111; color: #FFFFFF; box-shadow: none; }
.pattern-footer.dark .pattern-footer-links, .pattern-footer.dark small { color: #FFFFFF80; }
.pattern-footer.dark img { opacity: .9; }
.pattern-header img, .pattern-footer img { display: block; width: auto; max-width: 82px; }
.pattern-header-right { display: flex; align-items: center; gap: 30px; }
.pattern-nav, .pattern-footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; font-size: 14px; font-weight: 500; letter-spacing: .01em; }
.pattern-cta { border-color: #1A0033; background: #1A0033; color: #FFFFFF; }
.pattern-header.dark .pattern-cta { border-color: #FFFFFF; background: #FFFFFF; color: #1A0033; }
.pattern-menu { display: none; font-size: 14px; font-weight: 500; }
.pattern-footer img { max-width: 62px; }
.pattern-footer small { font-size: 12px; white-space: nowrap; }
.rules-section { padding-bottom: 90px; }
.rules-section > p { max-width: 790px; font-size: 16px; }
.rule-callout { max-width: 920px; margin: 28px 0; padding: 28px 0; border-block: 1px solid var(--page-line); background: transparent; }
.rule-callout > span { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.rule-callout h3 { margin: 0 0 11px; font-size: clamp(23px,3vw,31px); font-weight: 500; letter-spacing: -.02em; }
.rule-callout p { max-width: 730px; margin: 0 0 15px; font-size: 15px; }
.rule-callout p:last-child { margin-bottom: 0; }
.rule-callout pre { overflow-x: auto; margin: 0 0 15px; padding: 11px 14px; border: 1px solid var(--page-line); border-radius: 8px; background: var(--page-bg); font-size: 13px; }
.rule-callout code { font-family: 'DM Mono', monospace; }
.file-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; font-size: 14px; font-weight: 600; }
.site-footer { position: relative; z-index: 1; padding: 32px 0 24px; border-top: 1px solid var(--footer-line); background: var(--footer-bg); color: var(--footer-fg); box-shadow: var(--footer-shadow); }
.site-footer-inner { min-height: 151px; display: grid; grid-template-columns: 2fr repeat(3,1fr); align-items: start; gap: 32px; font-size: 13px; }
.site-footer img { display: block; width: 62px; height: auto; }
.site-footer h2 { margin: 0 0 12px; color: color-mix(in srgb, currentColor 45%, transparent); font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.site-footer a { display: block; margin: 10px 0; font-size: 13px; font-weight: 500; text-decoration: none; }
.site-footer small { display: block; margin-top: 14px; color: color-mix(in srgb, currentColor 58%, transparent); font-size: 12px; font-weight: 500; line-height: 1.55; }
:root[data-theme="dark"] .site-footer a { color: #FFFFFF80; }
:root[data-theme="dark"] .site-footer .footer-logo { color: inherit; }
:root[data-theme="dark"] .site-footer img { opacity: .9; }
@media (max-width: 900px) {
  .color-use-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .header-nav { gap: 13px; }
  .header-nav a:nth-child(2) { display: none; }
  .swatch-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .mode-example { padding: 27px; }
  .radius-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pattern-footer { flex-wrap: wrap; }
  .pattern-footer small { width: 100%; }
}
@media (max-width: 680px) {
  .rule-callout { padding: 20px; }
  .color-use-heading { display: block; }
  .color-use-heading p { margin-top: 8px; }
  .color-use-grid { grid-template-columns: 1fr; }
  .color-use-example { min-height: 195px; }
  .color-use-example span { margin-bottom: 30px; }
  .wrap { width: min(100% - 34px,1120px); }
  .site-header .wrap, .site-footer .wrap { width: calc(100% - 50px); }
  .header-inner { min-height: 64px; gap: 13px; }
  .header-logo img { width: 76px; }
  .header-label { display: none; }
  .header-nav { display: none; }
  .header-nav.is-open { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px; border: 1px solid var(--page-line); background: var(--page-bg); }
  .header-nav.is-open a { display: block; padding: 10px 0; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .theme-toggle { padding: 6px 10px; font-size: 12px; }
  .intro { padding: 58px 0 37px; }
  .section { padding: 37px 0 60px; }
  .section-title { display: block; }
  .section-title p { margin-top: 10px; }
  .logo-grid, .mode-grid { grid-template-columns: 1fr; }
  .logo-display { height: 190px; }
  .type-item { grid-template-columns: 1fr; gap: 9px; }
  .swatch-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .status-only { padding: 21px 18px; }
  .mode-example { min-height: 0; padding: 26px; }
  .scribble-grid { grid-template-columns: 1fr; }
  .scribble-stage { height: 126px; padding: 8px; }
  .scribble-type { font-size: clamp(18px,5.6vw,24px); }
  .pattern-heading { display: block; }
  .pattern-heading p { margin-top: 7px; }
  .pattern-header, .pattern-footer { min-height: 64px; padding: 11px 18px; }
  .pattern-header img { max-width: 88px; }
  .pattern-nav, .pattern-cta { display: none; }
  .pattern-menu { display: inline; }
  .pattern-footer-links { gap: 12px; }
  .site-footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 385px) {
  .site-header .wrap, .site-footer .wrap { width: calc(100% - 34px); }
  .site-footer-inner { grid-template-columns: 1fr; }
  .swatch-fill { height: 62px; }
  .radius-grid { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
