/* The public web of TheLever: the artboards of CU-14, mobile first and two columns from 1024 px. */
@font-face {
  font-family: Barlow;
  font-weight: 400;
  font-display: swap;
  src: url('/_site/fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: Barlow;
  font-weight: 500;
  font-display: swap;
  src: url('/_site/fonts/barlow-500.woff2') format('woff2');
}
@font-face {
  font-family: Barlow;
  font-weight: 600;
  font-display: swap;
  src: url('/_site/fonts/barlow-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-display: swap;
  src: url('/_site/fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-display: swap;
  src: url('/_site/fonts/barlow-condensed-700.woff2') format('woff2');
}

:root {
  color-scheme: only light;
  --bg: #fbf6ec;
  --surface: #f1e9d8;
  --raised: #ffffff;
  --ink: #17140f;
  --ink-soft: #3a352c;
  --muted: #5e574b;
  --border: #e2d8c3;
  --border-strong: #8c8372;
  --primary: #ffd23f;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: Barlow, system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 24px;
}

a {
  color: var(--ink);
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
}

h1 {
  font-size: 32px;
  line-height: 36px;
}

h2 {
  margin-top: 12px;
  font-size: 24px;
  line-height: 28px;
}

.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px 12px 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  text-decoration: none;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Only on wide screens, where there is room for it: on a phone, the home offers it below. */
.header .header-play {
  display: none;
}

.stripe {
  height: 8px;
  background: repeating-linear-gradient(135deg, var(--primary) 0 12px, var(--ink) 12px 24px);
}

.languages {
  position: relative;
}

.languages summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.languages summary::-webkit-details-marker {
  display: none;
}

.languages-sheet {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1;
  width: min(320px, calc(100vw - 16px));
  padding: 8px 8px 16px;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 0 8px 32px rgb(23 20 15 / 25%);
}

.languages-title {
  margin: 0;
  padding: 4px 12px 8px;
  font-family: var(--text);
  font-size: 18px;
  line-height: 24px;
}

.languages ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.languages li a {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
}

.languages li a[aria-current='page'] {
  background: var(--surface);
  font-weight: 600;
}

.main {
  flex-grow: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px 28px;
}

.intro {
  margin: 0;
  color: var(--ink-soft);
}

.crumbs {
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
  font-weight: 500;
  text-decoration: none;
}

.button.primary {
  min-height: 52px;
  background: var(--primary);
  box-shadow: inset 0 0 0 2px var(--ink);
  font-weight: 600;
}

.home,
.hero,
.hero-text,
.home-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home {
  gap: 24px;
  padding-top: 4px;
}

.home h1 {
  font-size: 36px;
  line-height: 40px;
}

.home h2 {
  margin-top: 0;
}

.home .intro {
  color: var(--ink);
}

.play {
  gap: 8px;
}

.hero-scene {
  display: none;
}

/* How to play: each step with a screen of the app in miniature, in a row on the phone. */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* The phone shows the top of the screen, at six tenths of its size. */
.step-screen {
  flex: none;
  width: 124px;
  height: 150px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding-top: 16px;
  border-radius: 16px;
  background: var(--surface);
}

.mini {
  flex: none;
  width: 190px;
  height: 330px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 14px;
  border: 3px solid var(--ink);
  border-radius: 30px;
  background: var(--bg);
  transform: scale(0.6);
  transform-origin: top center;
}

.step:first-child .mini {
  align-items: center;
  gap: 14px;
}

.mini-dark {
  background: var(--ink);
  color: var(--bg);
}

.mini-label {
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mini-dark .mini-label {
  color: var(--primary);
}

.mini-code {
  align-self: stretch;
  padding: 6px 0;
  border-radius: 12px;
  background: var(--raised);
  box-shadow: inset 0 0 0 2px var(--ink);
  text-align: center;
  font-family: var(--display);
  font-size: 40px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mini-faces {
  display: flex;
}

.mini-face {
  width: 34px;
  height: 34px;
  display: inline-flex;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--bg);
}

.mini-face + .mini-face,
.mini-add {
  margin-left: -6px;
}

.mini-face img {
  width: 100%;
  height: 100%;
  display: block;
}

.mini-dark .mini-face {
  width: 28px;
  height: 28px;
  box-shadow: 0 0 0 2px var(--ink);
}

/* The colours of the players, as the app gives them. */
.mini-teal {
  background: #5ecdbf;
}

.mini-khaki {
  background: #d6c58e;
}

.mini-rust {
  background: #f0a07a;
}

.mini-olive {
  background: #c3cf6e;
}

.mini-cyan {
  background: #67c7e3;
}

/* Who else may join, and who the player read right: only where the whole screen shows. */
.mini-add,
.mini-right {
  display: none;
}

.mini-add {
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--border-strong);
  color: var(--muted);
}

.mini-add .icon {
  width: 18px;
  height: 18px;
}

.mini-share {
  align-self: stretch;
  padding: 8px 0;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: inset 0 0 0 2px var(--ink);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.mini-dilemma {
  font-family: var(--display);
  font-size: 19px;
  line-height: 23px;
  font-weight: 600;
}

/* The two colours of the options of a dilemma of two, as the app gives them. */
.mini-a {
  background: #1358de;
}

.mini-b {
  background: #bd0468;
}

.mini-option {
  padding: 10px 12px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.mini-private {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.mini-private .icon {
  width: 14px;
  height: 14px;
}

.mini-result {
  display: flex;
  gap: 4px;
}

.mini-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-yes {
  flex: 3;
}

.mini-no {
  flex: 2;
}

.mini-bar {
  height: 56px;
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.mini-right {
  align-self: center;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* The number of the step, which the list already says: drawn, and silent for screen readers. */
.step-number {
  flex: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: inset 0 0 0 2px var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.step h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
}

.chips,
.dilemmas,
.options {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
}

.chips {
  flex-wrap: wrap;
}

.chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.dilemmas,
.options {
  flex-direction: column;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--border);
  text-decoration: none;
}

.card-title {
  font-family: var(--display);
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}

.card-meta {
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

.dilemma {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dilemma-main,
.dilemma-arguments {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dilemma-text {
  margin: 0;
}

.options li {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 15px;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.actions .button {
  gap: 8px;
}

/* Why the page shows no world result: it is seen after voting, so it does not sway the vote. */
.world-later {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.argument {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--border);
}

.argument h3 {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}

.argument p {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
}

.argument strong {
  font-weight: 600;
}

.credit,
.updated {
  margin: 0;
  font-size: 13px;
  line-height: 19px;
  color: var(--muted);
}

/* The invitation to donate after the arguments of a dilemma. */
.support-line {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
  line-height: 21px;
}

.support-line a {
  color: var(--ink);
  font-weight: 600;
}

/* The invitation to donate that closes the home. */
.support {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--border);
}

.support h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  line-height: 26px;
  font-weight: 600;
}

.support p {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
}

.support .button {
  align-self: flex-start;
}

.footer .support-link {
  font-weight: 600;
}

.more {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}

.scene {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.own-page {
  max-width: 720px;
}

.own-page p,
.own-page li {
  color: var(--ink-soft);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 20px;
  background: var(--surface);
  font-size: 13px;
  line-height: 20px;
}

/* A button that reads as one more link of the footer. */
.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/*
 * The spaces for ads, labelled as such, each the size of its ad unit: the one for phones below the
 * arguments, at the full width of the narrowest phone; the two for wide screens above the dilemma
 * and beside its arguments.
 */
.ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ad-label {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad ins {
  display: block;
}

.ad-phone {
  margin-inline: -16px;
}

.ad-phone ins {
  width: 320px;
  height: 100px;
}

.ad-top,
.ad-side {
  display: none;
}

.ad-top ins {
  width: 728px;
  height: 90px;
}

.ad-side ins {
  width: 300px;
  height: 250px;
}

/* A table of a page of its own, which scrolls inside its box on a narrow screen. */
.table {
  overflow-x: auto;
  border-radius: 12px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--border);
}

.table:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}

.table th,
.table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table th {
  background: var(--surface);
  font-weight: 600;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table td:first-child {
  font-family: ui-monospace, monospace;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .ad-phone {
    display: none;
  }

  .ad-top,
  .ad-side {
    display: flex;
  }

  /* The header, the content and the footer line up 80 px in from the edges, up to 1280 px. */
  .header {
    gap: 32px;
    padding: 16px 80px;
  }

  .logo {
    gap: 10px;
    font-size: 28px;
    line-height: 32px;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  /* On the home, La Palanca is at the junction, and the logo goes without her. */
  .at-home .logo img {
    display: none;
  }

  .languages {
    margin-left: auto;
  }

  .languages summary {
    padding: 0;
  }

  .header .header-play {
    display: inline-flex;
    min-height: 44px;
    font-size: 15px;
  }

  .main {
    max-width: 1280px;
    padding: 32px 80px 48px;
  }

  .home {
    gap: 40px;
    padding-top: 16px;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }

  .hero-text {
    gap: 20px;
  }

  .home h1 {
    font-size: 56px;
    line-height: 58px;
  }

  .home .intro {
    font-size: 19px;
    line-height: 29px;
  }

  .play {
    align-self: flex-start;
    min-height: 56px;
    padding: 0 24px;
    font-size: 17px;
  }

  .play .icon {
    width: 22px;
    height: 22px;
  }

  .hero-scene {
    display: block;
    width: 100%;
    height: auto;
  }

  .home h2 {
    font-size: 30px;
    line-height: 34px;
  }

  /* Three columns, each with the whole screen of the app above what the step says. */
  .steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .step {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .step-screen {
    width: auto;
    height: 300px;
    padding-top: 32px;
    border-radius: 20px;
  }

  .mini {
    transform: none;
  }

  .mini-add,
  .mini-right {
    display: inline-flex;
  }

  /* The number beside the title and its text. */
  .step-text {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
  }

  .step-head {
    display: contents;
  }

  .step-number {
    grid-row: span 2;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .step h3 {
    font-size: 22px;
    line-height: 28px;
  }

  .step p {
    grid-column: 2;
    font-size: 16px;
    line-height: 24px;
  }

  .home .chips {
    gap: 10px;
  }

  .home .chip {
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
  }

  .footer {
    gap: 8px 24px;
    padding: 24px 80px;
    font-size: 14px;
  }

  h1 {
    font-size: 40px;
    line-height: 44px;
  }

  .dilemma {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

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