/* maku brand page. Fonts are the two files the other public pages use, from /fonts. A changed file
   gets a new name, because /fonts/* is cached for a year. */
@font-face{font-family:'Comfortaa';src:url(/fonts/comfortaa-v1.woff2) format('woff2');font-weight:300 700;font-style:normal;font-display:swap}
@font-face{font-family:'DM Sans';src:url(/fonts/dmsans-v1.ttf) format('truetype');font-weight:100 1000;font-style:normal;font-display:swap}

/* Light theme. brand.js sets data-theme on the root when the toggle is used; with no script the
   page follows the reader's prefers-color-scheme. The page test checks every text colour set below
   against the background it sits on. */
:root{
  --bg:#f7f5ee;--card:#ffffff;--ink:#263e30;--muted:#647165;--green:#1E7533;--on-green:#ffffff;
  --sage:#9bb57e;--line:#c9d1c2;--warn:#a63a2b;--band:#f2f3ea;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#1C1C1E;--card:#2C2C2E;--ink:#F2F2F7;--muted:#a9b0ab;--green:#3DAA78;--on-green:#1C1C1E;
  --sage:#9bb57e;--line:#48484a;--warn:#f28b7b;--band:#26262a;
  color-scheme:dark;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#1C1C1E;--card:#2C2C2E;--ink:#F2F2F7;--muted:#a9b0ab;--green:#3DAA78;--on-green:#1C1C1E;
    --sage:#9bb57e;--line:#48484a;--warn:#f28b7b;--band:#26262a;
    color-scheme:dark;
  }
}

*{box-sizing:border-box}
html{scroll-padding-top:120px}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:clip}
img{max-width:100%;height:auto;display:block}
a{color:var(--green);text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--green);outline-offset:3px;border-radius:4px}
ul,ol{margin:0;padding:0}
li{list-style:none}
h1,h2,h3,h4,p{margin:0}
.wrap{width:min(100% - 40px,1080px);margin:0 auto}

/* Light and dark images: the wordmark files come in both, and the page shows the one that fits */
.only-dark{display:none}
:root[data-theme="dark"] .only-light{display:none}
:root[data-theme="dark"] .only-dark{display:block}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .only-light{display:none}
  :root:not([data-theme="light"]) .only-dark{display:block}
}

.skip{position:absolute;left:12px;top:-60px;background:var(--green);color:var(--on-green);padding:10px 14px;border-radius:8px;z-index:20}
.skip:focus{top:12px}

/* Sticky header: wordmark and toggle on one row, the section links under them */
.site-header{position:sticky;top:0;z-index:10;background:var(--bg);border-bottom:1px solid var(--line)}
.bar{min-height:40px;width:min(100% - 40px,1080px);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:10px}
.bar-brand img{width:96px;height:auto}
.theme-toggle{font:inherit;font-size:14px;font-weight:600;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:999px;padding:7px 14px;cursor:pointer}
.theme-toggle:hover{border-color:var(--green)}
.section-nav{width:min(100% - 40px,1080px);margin:0 auto;overflow-x:auto}
.section-nav ul{display:flex;gap:4px;white-space:nowrap;padding:6px 0 8px}
.section-nav a{display:block;padding:6px 12px;border-radius:999px;color:var(--ink);text-decoration:none;font-size:15px;font-weight:500}
.section-nav a:hover{background:var(--band)}
.section-nav a[aria-current="true"]{background:var(--green);color:var(--on-green)}

section{padding:72px 0;border-top:1px solid var(--line)}
section:first-of-type{border-top:0}
h2{font-size:clamp(30px,5vw,44px);line-height:1.15;letter-spacing:-.03em;color:var(--green);margin-bottom:16px}
h3{font-size:20px;line-height:1.3;letter-spacing:-.01em;margin:40px 0 10px}
h4{font-size:16px;line-height:1.35;margin:14px 0 8px}
.lead{font-size:clamp(18px,2.4vw,22px);line-height:1.55;max-width:44rem;margin-bottom:12px}
.note{color:var(--muted);margin-top:24px;max-width:44rem}
.role{color:var(--muted);font-size:15px;line-height:1.5}
p+p{margin-top:12px}

/* Hero */
.hero{padding:72px 0 80px}
.hero h1{width:min(100%,560px);margin-bottom:28px}
.hero h1 img{width:100%}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.button{display:inline-block;padding:12px 22px;border-radius:999px;background:var(--green);color:var(--on-green);font-weight:700;text-decoration:none;border:2px solid var(--green)}
.button:hover{text-decoration:underline}
.button.ghost{background:transparent;color:var(--green)}

/* Brand in a line */
.traits{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}
.traits li{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px 22px}
.traits h3{margin:0 0 6px;color:var(--green)}

/* Wordmark */
.pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:28px 0 0}
.panel{margin:0;border-radius:18px;padding:40px 28px 20px;border:1px solid var(--line)}
.panel img{width:min(100%,320px);margin:0 auto 24px}
.panel figcaption{font-size:15px;text-align:center}
.panel-light{background:#f7f5ee;color:#263e30}
.panel-dark{background:#1C1C1E;color:#F2F2F7;border-color:#48484a}
.clear-figure{margin:24px 0 0}
.clear{--w:min(34rem,78vw);--m:.0229;--u:.0424;position:relative;display:inline-block;padding:calc(var(--w)*var(--m));border:2px dashed var(--green);background:var(--band);border-radius:2px}
.clear img{width:var(--w);position:relative}
.clear:after{content:"";position:absolute;inset:calc(var(--w)*var(--u));border:1px solid var(--muted);pointer-events:none}
.unit{position:absolute;width:calc(var(--w)*var(--u));height:calc(var(--w)*var(--u));border-radius:50%;background:var(--sage)}
.unit-a{top:0;left:0}.unit-b{top:0;right:0}.unit-c{bottom:0;left:0}.unit-d{bottom:0;right:0}
.clear-figure figcaption{color:var(--muted);font-size:15px;margin-top:10px}
.donts{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:16px}
.donts p{font-size:15px;line-height:1.45;margin-top:10px}
.no{color:var(--warn);font-weight:700}
.tile{position:relative;height:112px;display:grid;place-items:center;overflow:hidden;background:#f7f5ee;border:1px solid var(--line);border-radius:14px}
.tile img{width:72%}
.tile:after{content:"\00d7";position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;background:#a63a2b;color:#ffffff;display:grid;place-items:center;font-size:18px;line-height:1}
.tile-recolor img{filter:hue-rotate(150deg) saturate(2.4)}
.tile-stretch img{width:50%;transform:scale(1.7,.5)}
.tile-period img{clip-path:inset(0 8% 0 0)}
.tile .fake{font-family:'DM Sans',sans-serif;font-weight:700;font-size:44px;letter-spacing:-.02em;color:#1E7533}
.tile .fake span{color:#9bb57e}
.tile-busy{background:repeating-linear-gradient(45deg,#e8c68d 0 10px,#3DAA78 10px 20px,#263E30 20px 30px,#f7f5ee 30px 40px)}

/* The monke */
.poses{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-top:28px;align-items:end}
.poses li{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px 10px 10px;text-align:center}
.poses img{width:100%;height:auto;aspect-ratio:1/1;object-fit:contain}
.poses img,.screens img{pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}
.poses span{display:block;font-size:15px;font-weight:600;margin-top:6px}

/* Color */
.swatches{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}
.swatches li{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px}
.swatches h3{margin:12px 0 4px;font-size:18px}
.swatches p{margin-top:6px}
.chip{height:84px;border-radius:12px;border:1px solid var(--line)}
.chip-green{background:#1E7533}.chip-green-dark{background:#3DAA78}.chip-sage{background:#9bb57e}
.chip-cream{background:#f7f5ee}.chip-ink{background:#263e30}.chip-ink2{background:#647165}
.hex{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:16px;font-weight:600;background:var(--band);border:1px solid var(--line);border-radius:8px;padding:3px 9px;color:var(--ink)}
.hex[role="button"]{cursor:copy}
.rgb{font-size:15px;color:var(--muted)}
.copied{min-height:1.6em;margin-top:12px;font-weight:600;color:var(--green)}
.pairs{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:16px}
.pair-tile{display:flex;flex-direction:column;gap:10px;padding:18px;border-radius:16px;background:#f7f5ee;border:1px solid var(--line);color:#263e30}
.pair-tile .sample{font-size:44px;line-height:1;font-weight:700;letter-spacing:-.03em}
.pair-tile .verdict{font-size:15px;line-height:1.45;color:#263e30}
.pair-tile .verdict strong{display:block;font-size:14px;letter-spacing:.06em;text-transform:uppercase}
.pt-green .sample{color:#1E7533}
.pt-ink .sample{color:#263e30}
.pt-ink2 .sample{color:#647165}
.pt-sage .sample{color:#9bb57e;font-size:96px;line-height:.55;height:44px}

/* Type */
.specimens{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:28px}
.specimen{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:24px}
.specimen h3{margin:0 0 4px}
.sample-comfortaa{font-family:'Comfortaa',sans-serif;font-weight:600;font-size:clamp(26px,4vw,38px);line-height:1.2;letter-spacing:-.07em;margin-top:18px;color:var(--green);overflow-wrap:anywhere}
.sample-dm{margin-top:14px}
.sample-dm-bold{font-weight:700;font-size:clamp(24px,3.4vw,32px);line-height:1.2;letter-spacing:-.02em}
.sample-dm-small{font-size:15px;font-weight:500;color:var(--muted)}

/* Voice */
.voice-list{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:28px}
.voice-list li{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px 22px}
.voice-list h3{margin:0 0 10px;font-size:18px}
.voice-list p{margin-top:8px}
.avoid{color:var(--muted)}
.tag{display:inline-block;min-width:3.4em;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-right:6px}
.tag.yes{color:var(--green)}.tag.no{color:var(--warn)}

/* In the apps */
.screens{display:flex;gap:16px;overflow-x:auto;padding:6px 2px 14px;scroll-snap-type:x proximity}
.screens li{flex:1 0 150px;scroll-snap-align:start;text-align:center}
.screens img{width:100%;height:auto;border-radius:14px;border:1px solid var(--line)}
.screens span{display:block;font-size:15px;font-weight:600;margin-top:8px}

/* Partner rules */
.rules{margin-top:20px;max-width:44rem;counter-reset:rule}
.rules li{counter-increment:rule;position:relative;padding:14px 0 14px 46px;border-bottom:1px solid var(--line)}
.rules li:before{content:counter(rule);position:absolute;left:0;top:14px;width:30px;height:30px;border-radius:50%;background:var(--green);color:var(--on-green);font-weight:700;display:grid;place-items:center;font-size:15px}

/* Downloads */
.downloads{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}
.dl{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px}
.dl h4{margin-top:14px}
.preview{height:130px;display:grid;place-items:center;border-radius:12px;border:1px solid var(--line);padding:16px}
.preview img{max-height:100%;width:auto;max-width:80%}
.preview-light{background:#f7f5ee}.preview-dark{background:#1C1C1E}.preview-photo{background:#1E7533}.preview-icon{background:var(--band)}
.preview-icon img{height:98px;width:98px;border-radius:22px}
.files li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid var(--line)}
.files a{font-weight:700}
.files span{color:var(--muted);font-size:15px}

.site-footer{border-top:1px solid var(--line);padding:28px 0 40px;font-size:15px;color:var(--muted)}
.site-footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}

@media (max-width:900px){
  .traits,.swatches{grid-template-columns:repeat(2,1fr)}
  .donts{grid-template-columns:repeat(3,1fr)}
  .poses{grid-template-columns:repeat(3,1fr)}
  .pairs{grid-template-columns:repeat(2,1fr)}
  .downloads{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  body{font-size:16px}
  section{padding:52px 0}
  .hero{padding:44px 0 56px}
  .traits,.pair,.specimens,.voice-list,.downloads{grid-template-columns:1fr}
  .swatches{grid-template-columns:1fr}
  .donts{grid-template-columns:repeat(2,1fr)}
  .poses{grid-template-columns:repeat(2,1fr)}
  .pairs{grid-template-columns:1fr}
  html{scroll-padding-top:110px}
}
@media (max-width:640px){.screens li{flex:0 0 42%}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
