/* Creative Heroes temporary site. Sizes are PDF points multiplied by --u, which is 1.3px at 1024 x 768 (the owner's requested size increase). Set the 1.3 back to 1 for PDF proportions. */
@font-face {
  font-family: "TeX Gyre Adventor";
  src: url("fonts/texgyreadventor-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #edf2f4;
  --ink: #06060c;
  --solid: #020202;
  --vh: 1vh;
  --u: calc(1.3 * max(1px, min(100vw / 1024, 100 * var(--vh) / 768)));
  /* Fixed steps, not a scaling size: this font renders the i and E badly at 14, 15 and 17 px on standard screens. */
  --small: 16px;
  --control: max(44px, calc(25 * var(--u)));
}

@supports (height: 1svh) {
  :root { --vh: 1svh; }
}

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

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

body {
  margin: 0;
  min-height: calc(100 * var(--vh));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "TeX Gyre Adventor", "Century Gothic", "Avant Garde", Futura, sans-serif;
  font-size: var(--small);
  font-weight: 400;
  line-height: 1.19;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.stage {
  flex: 1 0 auto;
  /* Keeps the centre block at 40.6% of the screen height, as in the PDF. */
  padding-top: max(24px, calc(40.6 * var(--vh) - 137 * var(--u)));
  padding-bottom: calc(24 * var(--u));
  text-align: center;
}

.logo {
  display: block;
  width: calc(120 * var(--u));
  height: calc(120 * var(--u));
  margin: 0 auto;
}

.heading {
  --tracking: calc(4.7 * var(--u));
  margin: calc(38 * var(--u)) 0 0;
  font-size: calc(25.35 * var(--u));
  font-weight: 400;
  line-height: calc(30.25 * var(--u));
  letter-spacing: var(--tracking);
  word-spacing: calc(0.4 * var(--u));
  text-transform: uppercase;
}

/* letter-spacing trails each line, so the indent keeps the ink centred as in the PDF. */
.heading span { display: block; padding-left: var(--tracking); }

.notify {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: calc(6.12 * var(--u));
  margin-top: calc(30 * var(--u));
}

.notify-input,
.notify-button {
  height: var(--control);
  margin: 0;
  border-radius: 0;
  font: inherit;
  appearance: none;
}

.notify-input {
  width: calc(200 * var(--u));
  padding: 0.2em 0.93em 0;
  border: max(0.5px, calc(0.5 * var(--u))) solid var(--solid);
  background: transparent;
  color: var(--ink);
}

.notify-input::placeholder { color: var(--ink); opacity: 1; }

.notify-button {
  width: calc(90 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2em 0 0;
  border: 0;
  background: var(--solid);
  color: #fff;
  cursor: pointer;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 0 calc(35.1 * var(--u)) calc(32.75 * var(--u)) calc(36 * var(--u));
}

.footer-sep {
  display: inline-block;
  width: max(1px, calc(0.75 * var(--u)));
  height: 0.91em;
  margin: 0 1.45em 0 1.66em;
  vertical-align: -0.19em;
  background: var(--ink);
}

.footer-note { justify-self: end; display: flex; align-items: flex-end; text-align: right; }

.footer-note::after {
  content: "";
  width: max(1px, calc(0.926 * var(--u)));
  height: 2.15em;
  margin: 0 0 0.24em 1.09em;
  background: var(--ink);
}

@media (min-width: 1800px) and (min-height: 1000px) {
  :root { --small: 18px; }
}

@media (min-width: 2400px) and (min-height: 1300px) {
  :root { --small: 24px; }
}

/* Tablet and phone: clean adaptations of the PDF, with readable sizes. */
@media (max-width: 1023.98px) {
  :root { --u: 1px; }

  body { font-size: 16px; line-height: 20px; }

  .stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 24px;
  }

  .logo { width: 132px; height: 132px; }

  .heading {
    --tracking: 0.22em;
    margin-top: 36px;
    font-size: clamp(19px, 3.6vw, 28px);
    line-height: 1.25;
    word-spacing: 0.1em;
  }

  .notify { margin-top: 36px; }
  .notify-input, .notify-button { height: 44px; }
  .notify-input { width: min(320px, 60vw); padding: 0 12px; font-size: 16px; border-width: 1px; }
  .notify-button { width: 112px; padding: 0; }

  .footer { padding: 0 24px 24px; }
  .footer-sep { width: 1px; height: 16px; margin: 0 14px; vertical-align: -3px; }
  .footer-note::after { height: 40px; width: 1px; margin: 0 0 0 10px; }
}

@media (max-width: 599.98px) {
  .notify { flex-direction: column; align-items: center; gap: 8px; }
  .notify-input, .notify-button { width: 100%; max-width: 327px; }

  .stage { padding: 40px 24px; }

  .heading { font-size: clamp(17px, 5.2vw, 24px); }

  .footer { grid-template-columns: 1fr; justify-items: center; row-gap: 14px; text-align: center; }
  .footer-note { justify-self: center; }
}
