/* mate-wayland.org. Colours follow the Yaru palette (orange, aubergine, inkstone, porcelain). */
@font-face {
  font-family: "Noto Sans";
  src: url("/assets/fonts/noto-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Mono";
  src: url("/assets/fonts/noto-sans-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #E95420;
  --aubergine-dark: #2C001E;
  --aubergine-mid: #5E2750;
  --aubergine-light: #77216F;
  --bg: #FFFFFF;
  --band: #F7F7F7;
  --surface: #FFFFFF;
  --text: #181818;
  --muted: #5D5D5D;
  --rule: #D9D9D9;
  --head: #2C001E;
  --link: #C03F0C;
  --link-hover: #8F2D06;
  --focus: #0073E5;
  --wrap: 72rem;
  --narrow: 46rem;
  --pad: 1.25rem;
  --section: 3.5rem;
}
@media (min-width: 50em) {
  :root { --pad: 2rem; --section: 5rem; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181818;
    --band: #222222;
    --surface: #2B2B2B;
    --text: #F2F2F2;
    --muted: #B5B5B5;
    --rule: #3D3D3D;
    --head: #FFFFFF;
    --link: #FF8A5C;
    --link-hover: #FFB59A;
    --focus: #6FB3FF;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
@media (min-width: 50em) { body { font-size: 1.125rem; } }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--head); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 650; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, dl { margin: 0 0 1.1em; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { color: var(--link-hover); text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
code {
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: .92em;
  background: var(--band);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: .08em .35em;
}
.band code { background: var(--surface); }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.narrow { max-width: var(--narrow); }
.narrow-text { max-width: var(--narrow); }
.skip {
  position: absolute; left: .75rem; top: -4rem; z-index: 10;
  background: #fff; color: #181818; padding: .6rem 1rem; border-radius: 4px; font-weight: 600;
}
.skip:focus { top: .75rem; }

/* ---- header and hero ---- */
.top { background: var(--aubergine-dark); color: #fff; }
.top.has-hero {
  background:
    radial-gradient(60rem 30rem at 85% 110%, rgba(233, 84, 32, .30), transparent 70%),
    linear-gradient(160deg, #2C001E 0%, #3F0F36 45%, #5E2750 100%);
}
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; font-weight: 650; font-size: 1.1rem; text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.mark { flex: none; display: block; }
.site-header nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.4rem; margin: 0; padding: 0; }
.site-header nav a:not(.btn) { color: #fff; text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; font-size: 1rem; }
.site-header nav a:not(.btn):hover { border-bottom-color: rgba(255, 255, 255, .6); }
.site-header nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--orange); }
.top :focus-visible, .page-head :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.hero { padding-block: 2.5rem 4rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62em) {
  .hero { padding-block: 3.5rem 5.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; }
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-lead { font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.4; color: #fff; margin-bottom: .8em; }
.hero-meta { color: #E7D5E3; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 0; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1.1875rem; line-height: 1.2;
  padding: .7rem 1.25rem; border-radius: 6px; border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: #C7410F; border-color: #C7410F; color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-small { padding: .4rem .9rem; }

.shot { margin: 0; }
.diagram {
  display: block; width: 100%; height: auto;
  border-radius: .5rem; border: 2px solid rgba(255, 255, 255, .5);
  box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .35);
  font-family: "Noto Sans", system-ui, sans-serif;
}
.shot figcaption { font-size: .875rem; margin-top: .7rem; color: var(--muted); }
.hero .shot figcaption { color: #E7D5E3; }
main .diagram { border-color: var(--rule); box-shadow: 0 .4rem 1.6rem rgba(0, 0, 0, .18); }

/* ---- page head (inner pages) ---- */
.page-head {
  background: linear-gradient(160deg, #2C001E 0%, #4A1540 100%);
  color: #fff; padding-block: 2.5rem 3rem;
}
.page-head h1 { color: #fff; margin-bottom: .3em; }
.lead { max-width: 40rem; font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.45; color: #F1E6EF; margin: 0; }

/* ---- sections ---- */
.section { padding-block: var(--section); }
.band { background: var(--band); border-block: 1px solid var(--rule); }
.section > .wrap > :last-child, .section .narrow > :last-child { margin-bottom: 0; }
.section-lead, .big { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.5; }
.section-lead { margin-bottom: 2.2rem; }
.section h2 + h2, .section p + h2, .section ul + h2 { margin-top: 2.2rem; }

.cols-3 { display: grid; gap: 2.2rem; }
@media (min-width: 52em) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.feature .icon { display: block; margin-bottom: .9rem; }
.feature p { font-size: 1rem; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " \203A"; }
.more:hover { text-decoration: underline; }

.split { display: grid; gap: 1.5rem 3.5rem; }
@media (min-width: 56em) { .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.facts { margin: 0; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: .25rem 1.25rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 600; color: var(--head); }
.facts dd { margin: 0; }
@media (max-width: 30em) { .facts > div { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.ticks li::before {
  content: ""; position: absolute; left: .15rem; top: .42em; width: .95rem; height: .5rem;
  border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg);
}

.status {
  border-left: 4px solid var(--orange); background: var(--band); padding: .8rem 1rem; border-radius: 0 6px 6px 0;
  font-size: 1rem; margin-top: 1.8rem;
}
.band .status { background: var(--surface); }

/* ---- desktop page ---- */
.legend { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: .9rem 2.5rem; font-size: 1rem; }
@media (min-width: 52em) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legend li { counter-increment: n; position: relative; padding-left: 2.7rem; }
.legend li::before {
  content: counter(n); position: absolute; left: 0; top: .05rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: #181818; color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem;
  border: 2px solid var(--rule);
}
.row { display: grid; grid-template-columns: 4rem 1fr; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); align-items: start; }
@media (min-width: 40em) { .row { grid-template-columns: 6rem 1fr; gap: 2rem; } }
.row h3 { margin-bottom: .4em; }
.row-text > :last-child { margin-bottom: 0; }
.row-icon .icon { display: block; width: 100%; }

/* ---- under the hood ---- */
.group { display: grid; gap: 1.25rem 3rem; padding: 2.2rem 0; border-top: 1px solid var(--rule); }
.group:first-of-type { margin-top: 2.2rem; }
@media (min-width: 56em) { .group { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.group-head h2 { font-size: 1.45rem; margin-bottom: .45em; }
.group-head p { font-size: 1rem; margin-bottom: .6em; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; align-items: stretch; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.tile { display: flex; gap: .9rem; align-items: center; background: var(--band); border: 1px solid var(--rule); border-radius: 8px; padding: .8rem .95rem; }
.tile .icon { flex: none; }
.tile strong { display: block; line-height: 1.3; color: var(--head); font-weight: 600; font-size: 1rem; }
.tile span { display: block; font-size: .875rem; color: var(--muted); line-height: 1.4; margin-top: .15rem; }

/* ---- download ---- */
.notice { display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem; border: 1px solid var(--rule); border-left: 4px solid var(--orange); border-radius: 0 8px 8px 0; padding: 1.4rem 1.5rem; background: var(--band); }
.notice h2 { font-size: 1.35rem; margin-bottom: .4em; }
.notice p { margin: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.6rem 3.5rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.15rem; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.4rem; bottom: .2rem; width: 2px; background: var(--rule); }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; }

/* ---- about ---- */
.qa { padding: 1.3rem 0; border-top: 1px solid var(--rule); }
.qa h3 { margin-bottom: .4em; }
.qa p { margin: 0; }
.credits { padding-left: 1.2rem; }
.credits li { margin-bottom: .5rem; }

/* ---- footer ---- */
.site-footer { background: var(--aubergine-dark); color: #E7D5E3; padding-block: 3rem 2.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #FFB59A; }
.foot-grid { display: grid; gap: 2rem 3rem; }
@media (min-width: 48em) { .foot-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.foot-brand { display: flex; align-items: center; gap: .65rem; color: #fff; font-weight: 650; font-size: 1.1rem; }
.site-footer h2 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.legal { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .8125rem; line-height: 1.6; color: #D9C3D4; }
