/* Public pages of Orbytuner: layout shared by both looks. Fonts are the ones of the app (public/fonts). */
@font-face {
  font-family: 'Archivo Black';
  src: url(/fonts/ArchivoBlack-400.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url(/fonts/Archivo-400.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url(/fonts/Archivo-700.woff2) format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  --accent: #f8b55a;
  --on-accent: #1c1c1c;
  --display: 'Archivo Black', 'Arial Black', Arial, sans-serif;
  --text-font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text-font);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
}
.brand {
  display: inline-flex;
  /* the logo is never squeezed: it keeps its proportions, the other items of the bar give room */
  flex: none;
}
.logo {
  height: 24px;
  width: auto;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (min-width: 480px) {
  .top-nav {
    gap: 18px;
  }
}
/* narrow phones (360 px): the logo, the language, the sign-in and the theme switch hold on one line */
@media (max-width: 419px) {
  .top {
    gap: 8px;
  }
  .top .logo {
    height: 22px;
  }
  .top-nav {
    gap: 4px;
  }
  .top-nav .lang,
  .top-nav .quiet {
    font-size: 14px;
    padding-inline: 2px;
  }
}
.lang {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: color 0.2s;
}
.lang:hover {
  color: var(--ink);
}
/* light / dark switch: one small round button (44 px to touch), the icon says which theme is on. Shown by the script only. */
.theme-switch {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 -14px 0 -4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s;
}
.js .theme-switch {
  display: inline-flex;
}
.theme-switch:hover {
  color: var(--ink);
}
.theme-switch .ic-moon,
:root[data-theme='dark'] .theme-switch .ic-sun {
  display: none;
}
:root[data-theme='dark'] .theme-switch .ic-moon {
  display: block;
}
.theme-switch:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: -4px;
}
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 clamp(16px, 4vw, 22px);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.btn.big {
  min-height: 56px;
  padding: 0 34px;
  font-size: 18px;
}
.quiet {
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--accent);
  padding: 10px 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: text-decoration-color 0.2s;
}
.quiet:hover {
  text-decoration-color: var(--ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.textlink {
  color: var(--link);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-in {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  display: grid;
  gap: 40px;
}
.hero-text {
  position: relative;
  z-index: 1;
}
.kicker {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 8.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
h1 span {
  display: block;
}
h1 em {
  font-style: normal;
  color: var(--accent-big, var(--accent));
}
.hero-head {
  position: relative;
  z-index: 1;
}
.lead {
  max-width: 34em;
  margin: 28px 0 32px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--muted);
}
.note {
  max-width: 30em;
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.hero-phone {
  align-self: end;
  justify-self: center;
  margin: 0;
  width: min(78vw, 340px);
}
.hero-phone picture,
.hero-phone img {
  border-radius: 36px 36px 0 0;
}
.phone {
  margin: 0;
}
.phone img {
  width: 100%;
  border-radius: 34px;
  border: 8px solid var(--frame);
  background: var(--frame);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
}
.hero-phone img {
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  max-height: 440px;
  object-fit: cover;
  object-position: top;
}
@media (min-width: 900px) {
  .hero .lead,
  .hero .note {
    max-width: 25em;
  }
  .hero-in {
    grid-template-columns: 1.45fr 0.75fr;
    align-items: end;
    padding-top: 56px;
  }
  .hero-head {
    grid-column: 1 / -1;
  }
  .hero-text {
    align-self: start;
    padding-top: 12px;
  }
  /* two long lines across the whole width, the phone and the sentence below */
  h1 {
    font-size: clamp(40px, 4.7vw, 68px);
    line-height: 0.96;
  }
  html[lang='en'] h1 {
    font-size: clamp(36px, 3.7vw, 54px);
  }
  .hero-phone {
    width: 100%;
    max-width: 360px;
    justify-self: end;
  }
  .hero-phone img {
    max-height: 620px;
  }
}

/* sections */
.section-title {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 140px) var(--gutter) 0;
  font-family: var(--text-font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
}
.tab {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100svh;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  display: grid;
  gap: 40px;
  align-content: center;
  align-items: center;
}
.tag {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
}
.tag::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.tab h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.tab .body {
  margin: 0;
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}
.fine {
  margin: 28px 0 0;
  max-width: 34em;
  font-size: 14px;
  color: var(--muted);
}
.facts {
  margin: 32px 0 0;
  display: grid;
  gap: 18px;
}
.facts div {
  border-top: 2px solid var(--line);
  padding-top: 12px;
}
.facts dt {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 40px);
  white-space: nowrap;
  line-height: 1;
  color: var(--ink);
}
.facts dd {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--muted);
}
@media (min-width: 700px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
.phones {
  display: flex;
  justify-content: center;
  gap: 4%;
}
.phones .phone {
  width: min(74vw, 320px);
}
.phones-2 .phone {
  width: 47%;
  max-width: 300px;
}
.phones-2 .p1 {
  margin-top: 12%;
}
@media (min-width: 900px) {
  .tab {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  .tab.flip .tab-text {
    order: 2;
  }
  .phones {
    justify-content: flex-end;
  }
  .tab.flip .phones {
    justify-content: flex-start;
  }
  .phones .phone {
    width: 100%;
    max-width: 340px;
  }
  .phones-2 .phone {
    width: 47%;
    max-width: 280px;
  }
}

/* who */
.who {
  background: var(--accent);
  color: var(--on-accent);
  margin-top: clamp(40px, 8vw, 100px);
  padding-bottom: clamp(56px, 9vw, 120px);
}
.who .section-title {
  color: var(--on-accent);
  padding-top: clamp(56px, 9vw, 110px);
}
.who ul {
  list-style: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
}
.who li {
  display: grid;
  gap: 4px 40px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 2px solid var(--on-accent);
}
.who .word {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(34px, 10.4vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.who .what {
  font-size: clamp(16px, 1.8vw, 20px);
  max-width: 26em;
}
@media (min-width: 900px) {
  .who li {
    grid-template-columns: 1.4fr 1fr;
    padding: 28px 0;
  }
}

/* trust */
.trust {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 9vw, 120px);
}
.trust .section-title {
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  max-width: none;
}
.trust-list {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  gap: 20px;
}
.trust-list li {
  font-family: var(--display);
  font-size: clamp(22px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 24em;
  border-top: 2px solid var(--line);
  padding-top: 16px;
}
.trust p {
  margin: 0;
}

/* closing and footer */
.closing {
  text-align: center;
  padding: clamp(56px, 10vw, 140px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  border-top: 2px solid var(--line);
}
/* the buttons of the last block sit on the same central axis as its title (side by side, then one under the other) */
.closing .actions {
  justify-content: center;
}
.closing-title {
  margin: 0 0 32px;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(34px, 9vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.foot {
  border-top: 2px solid var(--line);
}
.foot-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--gutter) 56px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 20px;
}
.foot .logo {
  height: 34px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
}
.foot nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-underline-offset: 4px;
}
.foot p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 40em;
}

/* reading pages (network administrators) */
.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px var(--gutter) 96px;
}
.doc-title {
  overflow-wrap: break-word;
  font-size: clamp(26px, 6.4vw, 56px);
  line-height: 0.95;
  margin: 10px 0 0;
}
.doc .lead {
  margin-top: 24px;
}
.doc h2 {
  margin: 56px 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.05;
}
.doc p,
.doc li {
  max-width: 46em;
}
.doc ul {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.doc code,
pre {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 15px;
}
.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--line);
  border-radius: 16px;
  margin: 18px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 16px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
thead th {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}
tbody th {
  font-weight: 400;
  overflow-wrap: anywhere;
}
.sheet {
  margin: 18px 0;
  background: var(--panel);
  border-radius: 20px;
  padding: 20px;
}
.sheet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sheet-bar h3 {
  margin: 0;
  font-size: 18px;
}
.copy {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 700 15px var(--text-font);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.copy:hover {
  background: var(--ink);
  color: var(--bg);
}
pre {
  margin: 14px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.small {
  font-size: 15px;
  color: var(--muted);
}

/* motion: only transform and opacity, and none when the person asks for calm */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-head > *,
  .hero-text > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-text > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .hero-text > :nth-child(3) {
    animation-delay: 0.14s;
  }
  .hero-text > :nth-child(4) {
    animation-delay: 0.22s;
  }
  .hero-phone {
    animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .copy,
  .lang,
  .theme-switch,
  .quiet {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* balanced line breaks for the big titles (no lonely word on the last line) */
.closing-title,
.doc-title {
  text-wrap: balance;
}
.tab h2 {
  text-wrap: pretty;
}

/* Direction A, "Pochette": the cream paper of the app, black type, the orange as a block of ink. Light by default; the theme on the page (data-theme, set by site.js from the kept choice, else the device, else light) picks the colours. */
:root {
  --bg: #fff8ec;
  --ink: #1c1c1c;
  --muted: #5f5340;
  --line: #eadbb8;
  --panel: #f8eedb;
  --link: #8a4f08;
  --frame: #1c1c1c;
  /* the orange of a big word: deeper on the cream paper so that it keeps 3:1 (the plain accent only reaches 1.8:1 there) */
  --accent-big: #c46a0a;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #121214;
  --ink: #f6f3ee;
  --muted: #a9a9b1;
  --line: #34343a;
  --panel: #1c1c1f;
  --link: #f8b55a;
  --frame: #34343a;
  --accent-big: #f8b55a;
  color-scheme: dark;
}
/* the two files of the logo and of each capture: the one of the theme on the page is shown */
.on-dark {
  display: none;
}
:root[data-theme='dark'] .on-light {
  display: none;
}
:root[data-theme='dark'] .on-dark {
  display: inline;
}
.hero::before {
  content: '';
  position: absolute;
  width: min(120vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  right: -22vw;
  bottom: -34vw;
  opacity: 0.95;
}
@media (min-width: 900px) {
  .hero::before {
    right: -8vw;
    bottom: -300px;
  }
}
.hero-phone img {
  border-color: var(--frame);
}
