/* PushCenter website. GPL-3.0-or-later.
   Palette from the app icon: signal blue field, indigo ink, coral kept
   for emergencies only. Type: Atkinson Hyperlegible Next (SIL OFL). */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/AtkinsonHyperlegibleNext-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/AtkinsonHyperlegibleNext-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/AtkinsonHyperlegibleNext-Italic-latin.woff2") format("woff2");
}

:root {
  --blue: #3d5af1;
  --blue-deep: #2f47d4;
  --ink: #161a3a;
  --ink-soft: #4a4f73;
  --paper: #ffffff;
  --mist: #eef1fb;
  --rule: #d9ddf0;
  --coral: #ff6b4a;
  --coral-ink: #b3361b;
  --link: #2f47d4;
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --measure: 38rem;
  --page: 74rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7e9fa;
    --ink-soft: #b4b8d8;
    --paper: #1a1d45;
    --mist: #22265a;
    --rule: #363b78;
    --link: #a9b6ff;
    --coral-ink: #ff9a82;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.07em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
}

.skip:focus {
  top: 1rem;
}

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--blue);
  color: #fff;
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

/* The icon's ripple rings, at page scale, centred behind the toasts. */
.rings {
  position: absolute;
  z-index: -1;
  width: min(68rem, 150vw);
  right: max(-26rem, -30vw);
  top: 50%;
  transform: translateY(-46%);
  fill: none;
  stroke: #fff;
  stroke-width: 18;
}

.rings circle:nth-child(1) { opacity: 0.16; }
.rings circle:nth-child(2) { opacity: 0.1; }
.rings circle:nth-child(3) { opacity: 0.06; }

.hero a {
  color: #fff;
}

.top {
  max-width: var(--page);
  margin-inline: auto;
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.top ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.top ul a {
  text-decoration: none;
}

.top ul a:hover {
  text-decoration: underline;
}

.hero-body {
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

h1 {
  font-size: clamp(2.9rem, 1.6rem + 5.2vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 10ch;
}

.lede {
  margin-top: 1.6rem;
  max-width: 31rem;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.hero .button {
  background: #fff;
  color: var(--ink-on-white, #161a3a);
  box-shadow: 0 10px 24px -12px rgba(10, 16, 80, 0.6);
}

.hero .button:hover {
  background: #eef1ff;
}

.quiet-link {
  font-weight: 700;
}

.fineprint {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Notifications, styled after GNOME 46 banners. */
.toasts {
  display: grid;
  gap: 0.9rem;
  max-width: 26rem;
  justify-self: end;
  width: 100%;
}

.toast {
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem 0.95rem 0.95rem;
  background: #fff;
  color: #161a3a;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(14, 20, 80, 0.22),
    0 18px 36px -18px rgba(14, 20, 80, 0.55);
  animation: arrive 0.55s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.toast:nth-child(2) { animation-delay: 0.9s; }
.toast:nth-child(3) { animation-delay: 1.9s; }

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(-22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.app-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: hsl(var(--hue) 62% 52%);
}

.toast-text {
  flex: 1;
  min-width: 0;
}

.toast-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #5a5f82;
}

.toast-title {
  margin-top: 0.1rem;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
}

.toast-body {
  margin-top: 0.15rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #3c4166;
}

.toast-actions {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.5rem;
}

.toast-actions span {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #eceefa;
  font-size: 0.85rem;
  font-weight: 700;
}

.toast-emergency {
  box-shadow:
    inset 4px 0 0 var(--coral),
    0 1px 2px rgba(14, 20, 80, 0.22),
    0 18px 36px -18px rgba(14, 20, 80, 0.55);
}

.toast-actions .ack {
  background: var(--coral);
  color: #fff;
}

/* ------------------------------------------------------------ sections */

main > section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-lede {
  margin-top: 0.9rem;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.shot figure {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
}

.shot img {
  display: block;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(22, 26, 58, 0.12),
    0 30px 60px -30px rgba(22, 26, 58, 0.55);
}

.shot figcaption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.features {
  background: var(--mist);
}

.feature-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.2rem) clamp(1.5rem, 4vw, 3.5rem);
}

.feature-grid h3 {
  padding-top: 0.9rem;
  border-top: 3px solid var(--blue);
}

.feature-grid .feature-emergency h3 {
  border-top-color: var(--coral);
}

.feature-grid p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.4em;
  border: 1px solid var(--rule);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.88em;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.facts dl {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  max-width: 52rem;
}

.facts dl > div {
  padding-block: 1.4rem;
  border-top: 1px solid var(--rule);
}

.facts dl > div:last-child {
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}

.facts dd {
  margin: 0.5rem 0 0;
  max-width: var(--measure);
  color: var(--ink-soft);
}

.downloads {
  background: var(--mist);
}

.dl-list {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}

.dl-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem 2.5rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.dl-row.recommended {
  box-shadow: inset 4px 0 0 var(--blue);
  padding-left: 1.2rem;
}

.dl-what p {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 0.2em;
  color: var(--ink-soft);
}

.dl-how {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
}

.button-solid {
  background: var(--blue);
  color: #fff;
}

.button-solid:hover {
  background: var(--blue-deep);
}

.button-outline {
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--rule);
}

.button-outline:hover {
  box-shadow: inset 0 0 0 2px var(--ink-soft);
}

.cmd {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule);
  overflow: hidden;
}

.cmd code {
  padding: 0.6rem 0.9rem;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", monospace;
  font-size: 0.92rem;
  overflow-x: auto;
  white-space: nowrap;
}

.copy {
  flex: none;
  border: 0;
  border-left: 1px solid var(--rule);
  padding: 0 1rem;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.copy:hover {
  background: var(--mist);
}

.note {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

/* ------------------------------------------------------------ footer */

.site-footer {
  padding-block: 3rem 4rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.site-footer p + p {
  margin-top: 0.8rem;
  max-width: 44rem;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.byline {
  margin-bottom: 1.2rem;
  color: var(--ink);
}

.brand-line img {
  border-radius: 7px;
}

/* ------------------------------------------------------------ small screens */

@media (max-width: 860px) {
  .hero-body {
    grid-template-columns: 1fr;
  }

  .toasts {
    justify-self: start;
  }

  .rings {
    top: auto;
    bottom: -18rem;
    transform: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dl-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .top ul li:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
}
