/* The poster: a sheet of paper on screen, and the whole page in print.
   Light, so it prints cleanly on any printer. */

/* Hidden means hidden, whatever display a class gives. */
[hidden] {
  display: none !important;
}

:root {
  --paper: #fdfcf9;
  --ink: #1d1b28;
  --ink-2: #4a4758;
  --ink-3: #75728a;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #2a2936;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding: 16px;
  color: #ece9f2;
  font-size: 14px;
}
.controls a {
  color: #bdb9cb;
}
.controls label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.controls input {
  width: 180px;
  padding: 7px 10px;
  border: 1px solid rgba(236, 233, 242, 0.3);
  border-radius: 8px;
  background: #13121c;
  color: #ece9f2;
  font: inherit;
}
.print {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: #f1af5d;
  color: #1d1b28;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid #f1af5d;
  outline-offset: 3px;
}

/* A sheet in the A4/Letter proportion, as wide as fits. */
.poster {
  display: flex;
  flex-direction: column;
  width: min(760px, calc(100vw - 32px));
  aspect-ratio: 1 / 1.414;
  margin: 0 auto 40px;
  padding: 6% 7%;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  container-type: inline-size;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.6cqi;
  font-family: var(--serif);
  font-size: 3.4cqi;
}
.brand i {
  color: var(--ink-2);
}
h1 {
  margin: 7cqi 0 0;
  font-family: var(--serif);
  font-weight: 360;
  font-size: 9cqi;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.lede {
  margin: 3.4cqi 0 0;
  font-family: var(--serif);
  font-size: 3.1cqi;
  line-height: 1.4;
  color: var(--ink-2);
}
.sky {
  margin: 4cqi 0 0;
}
.sky svg {
  display: block;
  width: 100%;
  height: auto;
}
.scan {
  display: flex;
  align-items: center;
  gap: 5cqi;
  margin-top: auto;
}
.scan .code {
  flex: none;
  width: 30cqi;
}
.scan .qr {
  display: block;
  width: 100%;
  height: auto;
}
.scan p {
  margin: 0;
}
.step {
  font-size: 3cqi;
  font-weight: 600;
}
.url {
  margin-top: 1.2cqi !important;
  font-family: var(--serif);
  font-size: 4.6cqi;
}
.scan .fine {
  margin-top: 2cqi !important;
  font-size: 2.3cqi;
  line-height: 1.45;
  color: var(--ink-3);
}
.why {
  margin-top: 5cqi;
  padding-top: 3cqi;
  border-top: 1px solid rgba(29, 27, 40, 0.18);
  font-size: 2.4cqi;
  line-height: 1.5;
  color: var(--ink-2);
}
.why p {
  margin: 0;
}
.host {
  display: flex;
  align-items: baseline;
  gap: 1.5cqi;
  margin-top: 3cqi !important;
  color: var(--ink-3);
}
.host .line {
  flex: 1;
  border-bottom: 1px solid rgba(29, 27, 40, 0.35);
  min-height: 1.2em;
}

@page {
  size: auto;
  margin: 10mm;
}
@media print {
  html,
  body {
    background: var(--paper);
  }
  .controls {
    display: none;
  }
  .poster {
    width: 100%;
    margin: 0;
    padding: 4% 5%;
    box-shadow: none;
    aspect-ratio: auto;
    height: calc(100vh - 1px);
  }
}
