/* BrontoPDF: pagina di presentazione. Colori della console (shared/theme.json). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --room: #1b1b1f;        /* the room: background of the console */
  --panel: #232329;
  --line: #34343c;
  --text: #ededf0;
  --muted: #a4a4ae;
  --blue: #2f6fdb;        /* accent of the console */
  --blue-hover: #3d7de8;
  --key: #2e2e36;
  --key-border: #44444f;
  --focus: #9dbeff;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI Variable Display", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--room);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--body);
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--focus); }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
@media (min-width: 40rem) {
  .wrap { width: min(100% - 4rem, 72rem); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ header */

.top { padding-block: 1.5rem 0.5rem; }

.brand {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font: 700 1.5rem/1 var(--display);
  letter-spacing: -0.01em;
}
.brand img { width: 2.75rem; height: 2.75rem; }

/* ------------------------------------------------------------ hero: title, subtitle, the three versions */

.hero { padding-block: 2.5rem 4.5rem; }
.hero h1 {
  margin: 0 0 1rem;
  max-width: 22ch;
  font: 800 clamp(2.3rem, 1.3rem + 4vw, 4rem)/1.02 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.subtitle { margin: 0 0 2.25rem; max-width: 44rem; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: #cfcfd6; }

/* The three versions: in a row, one under the other on narrow screens. */
.actions { display: grid; gap: 0.75rem; }
@media (min-width: 50rem) {
  .actions { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.action {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.action:hover { background: var(--panel); border-color: #55555f; }
.action:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.action-title { font: 650 1.22rem/1.2 var(--display); }
.action-detail { color: var(--muted); font-size: 0.92rem; }

/* The version for the visitor's computer. */
.action.is-primary { background: var(--blue); border-color: var(--blue); }
.action.is-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.action.is-primary .action-detail { color: rgb(255 255 255 / 0.85); }

/* Not published yet. */
.action[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.action[aria-disabled="true"]:hover { background: none; border-color: var(--line); }

.stay-local { margin: 1rem 0 0; color: var(--muted); font-size: 0.92rem; }

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

.desk, .keys, .first { padding-block: 4rem; border-top: 1px solid var(--line); }

.desk h2, .keys h2, .first h2 {
  margin: 0 0 0.5rem;
  font: 750 clamp(1.8rem, 1.2rem + 2vw, 2.5rem)/1.1 var(--display);
  letter-spacing: -0.02em;
}
.section-intro { margin: 0 0 2.25rem; max-width: 40rem; color: var(--muted); font-size: 1.1rem; }

.shot {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 40px 70px -40px rgb(0 0 0 / 0.9);
}

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.75rem 2.25rem;
  margin: 2.5rem 0 0;
}
.legend dt { margin-bottom: 0.35rem; font: 650 1.12rem/1.25 var(--display); }
.legend dd { margin: 0; color: var(--muted); }

.keylist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.1rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.keylist li { display: flex; align-items: center; gap: 1rem; }
.caps { display: inline-flex; flex: none; gap: 0.35rem; min-width: 5.8rem; }
kbd {
  min-width: 2.5em;
  padding: 0.5em 0.65em;
  border: 1px solid var(--key-border);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--key);
  color: var(--text);
  font: 700 0.95rem/1 var(--body);
  text-align: center;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 3rem;
  margin-top: 2rem;
}
.platforms h3 { margin: 0 0 0.5rem; font: 650 1.25rem/1.2 var(--display); }
.platforms p { margin: 0; max-width: 34rem; color: #cfcfd6; }

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

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.foot p { margin: 0 0 0.4rem; }
.foot .foot-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text);
  font: 700 1.15rem/1 var(--display);
}
.foot-brand img { width: 2rem; height: 2rem; }
.foot-text p:last-child { margin-bottom: 0; }
.foot a { color: inherit; }
.foot-small { font-size: 0.85rem; }

/* ------------------------------------------------------------ guides: windows/, mac/, browser/ */

.brand-link { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; }
.brand-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

.guide-head { padding-block: 2rem 3rem; }
.guide-head h1 {
  margin: 0 0 0.6rem;
  font: 800 clamp(2.1rem, 1.4rem + 3vw, 3.2rem)/1.05 var(--display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.guide-head .section-intro { margin-bottom: 1.75rem; }
.guide-get .action { max-width: 26rem; }
.download-version { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.download-note { margin: 1rem 0 0; max-width: 34rem; color: var(--muted); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  counter-increment: step;
  display: grid;
  gap: 1.25rem 3rem;
  padding-block: 2.75rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 56rem) {
  .step { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
}
.step h2 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.75rem;
  font: 700 1.45rem/1.2 var(--display);
  letter-spacing: -0.01em;
}
.step h2::before {
  content: counter(step);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font: 700 1.05rem/1 var(--display);
}
.step p { margin: 0 0 0.75rem; max-width: 34rem; color: #cfcfd6; }
.step .tip { color: var(--muted); font-size: 0.95rem; }
.step b { color: var(--text); }

.step-shots { display: grid; gap: 1rem; justify-items: start; margin: 0; }
.step-shots a { display: block; max-width: 100%; border-radius: 10px; cursor: zoom-in; }
.step-shots a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.step-shots img {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 30px 60px -35px rgb(0 0 0 / 0.9);
}
.shot-missing {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 2px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
}

.after { padding-block: 3.5rem 4rem; border-top: 1px solid var(--line); }
.after h2 {
  margin: 0 0 0.5rem;
  font: 750 clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem)/1.1 var(--display);
  letter-spacing: -0.02em;
}
.after .platforms { margin-top: 1.5rem; }
.after code { font-size: 0.92em; overflow-wrap: anywhere; }

.guide-link { display: inline-block; margin-top: 0.6rem; font-weight: 700; }

/* ------------------------------------------------------------ privacy/, licenza/: plain text pages */

.doc { max-width: 44rem; padding-block: 0 4rem; }
.doc > h2:first-child { margin-top: 0; }
.doc h2 { margin: 2.5rem 0 0.6rem; font: 700 1.4rem/1.2 var(--display); letter-spacing: -0.01em; }
.doc p, .doc li { color: #cfcfd6; }
.doc p { margin: 0 0 0.9rem; }
.doc ul { margin: 0 0 0.9rem; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.35rem; }
.doc code { font-size: 0.92em; overflow-wrap: anywhere; }
.doc .updated { margin-top: 2.5rem; color: var(--muted); font-size: 0.92rem; }
