/*
Theme Name: Mumblark
Description: Mumblark's own theme: the voice chain game for friends on one phone, played on its home page.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: mumblark
*/

/* Night violet, pop yellow, record red, on warm paper. Every text pairing clears WCAG AA; yellow is never text on
   paper, only a button or a mark. */

body { -webkit-font-smoothing: antialiased; }
/* The header, the page and the footer touch: no block gap between the template's top-level parts. */
.wp-site-blocks > * + * { margin-block-start: 0; }
/* The parent's body weight is light, so "bolder" lands on a regular weight: bold is said outright. */
strong, b { font-weight: 700; }

.ml-shell { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); box-sizing: border-box; }
.ml-narrow { max-width: 46rem; }

/* The header: the mark and the name on the night. */
.ml-header { background: var(--wp--preset--color--stage); color: var(--wp--preset--color--on-stage); }
.ml-header .ml-shell { display: flex; align-items: center; justify-content: space-between; gap: .25rem 1rem; min-height: 64px; flex-wrap: wrap; padding-block: .5rem; }
.ml-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--wp--preset--color--on-stage); text-decoration: none; font-family: var(--wp--preset--font-family--heading); font-size: 1.4rem; font-weight: 800; letter-spacing: .01em; }
.ml-brand img { width: 36px; height: 36px; display: block; }
.ml-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.ml-nav a { color: var(--wp--preset--color--on-stage); text-decoration: none; padding: .55rem .7rem; border-radius: 8px; font-weight: 600; font-size: .98rem; }
.ml-nav a:hover, .ml-nav a:focus-visible { background: var(--wp--preset--color--stage-deep); text-decoration: underline; }

/* The home's first screen: what it is, beside the game's own setup card. */
.ml-hero { background: var(--wp--preset--color--stage); color: var(--wp--preset--color--on-stage); padding-block: clamp(1.75rem, 6vw, 4rem); }
.ml-hero-grid { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 900px) { .ml-hero-grid { grid-template-columns: 1.1fr 1fr; } }
.ml-hero h1 { color: var(--wp--preset--color--on-stage); font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.08; margin: 0 0 1rem; max-width: 16ch; }
.ml-lede { color: var(--wp--preset--color--on-stage-soft); font-size: 1.15rem; max-width: 34rem; margin: 0 0 1rem; }
.ml-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ml-facts li { border: 2px solid var(--wp--preset--color--on-stage-soft); border-radius: 999px; padding: .2rem .75rem; font-weight: 700; font-size: .95rem; }
.ml-hero .mb { margin: 0; }
.ml-hero .mb-setup { margin: 0; max-width: none; background: var(--wp--preset--color--stage-deep); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ml-hero .mb-nojs { color: var(--wp--preset--color--on-stage-soft); }

.ml-section { padding-block: clamp(2.25rem, 6vw, 4rem); }
.ml-section h2 { margin-top: 0; }
.ml-band { background: #FFFFFF; border-block: 1px solid var(--wp--preset--color--line); }
.ml-small { font-size: .95rem; color: var(--wp--preset--color--muted); margin: 1.25rem 0 0; }

.ml-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); counter-reset: ml; }
.ml-steps li { counter-increment: ml; background: #FFFFFF; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 1.1rem 1.1rem 1.2rem; }
.ml-steps li::before { content: counter(ml); display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--wp--preset--color--stage); color: var(--wp--preset--color--on-stage); font-weight: 800; margin-bottom: .6rem; }
.ml-steps strong, .ml-points strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; font-weight: 800; margin-bottom: .25rem; }
.ml-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.ml-points li { border-top: 4px solid var(--wp--preset--color--stage); padding-top: .75rem; }
.ml-narrow h3 { margin: 1.75rem 0 .35rem; }
.ml-narrow h3 + p { margin-top: 0; }
.ml-wait-band { padding-top: 0; }

/* A page or a post. */
.ml-main { padding-block: clamp(2rem, 6vw, 3.5rem); padding-inline: clamp(1rem, 4vw, 2rem); box-sizing: border-box; }
.ml-main .wp-block-post-title { margin-top: 0; }

/* The footer: every must-have page, on the deep night. */
.ml-footer { background: var(--wp--preset--color--stage-deep); color: var(--wp--preset--color--on-stage-soft); padding-block: 2.5rem; font-size: .95rem; }
.ml-footer a { color: var(--wp--preset--color--on-stage); }
.ml-footer .ml-brand { font-size: 1.15rem; }
.ml-footer .ml-brand img { width: 28px; height: 28px; }
.ml-footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: 1.25rem 0; }
.ml-footer-links a { display: inline-block; padding-block: .35rem; }
.ml-footer p { margin: .5rem 0 0; max-width: 46rem; }

:where(a:focus-visible) { outline: 3px solid var(--wp--preset--color--pop); outline-offset: 2px; }
.ml-skip { position: absolute; left: -9999px; }
.ml-skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--wp--preset--color--pop); color: var(--wp--preset--color--ink); padding: .5rem .75rem; border-radius: 6px; }
