/* The consulting page and the rule sheet. One column, a letter from one person.
   Ground #0F0E0C, text #F2EDE4, Anton headlines, gold for his name and mark,
   fire orange only on the two buttons. Amber is the review layer and never reaches a buyer. */

:root {
  --ground: #0F0E0C;
  --text: #F2EDE4;
  --dim: #C9C4BE;
  --gold: #D9B45A;
  --gold-bright: #F0CB6E;
  --fire: #FF7A1A;
  --fire-hover: #FF9445;
  --amber: #F2B233;
  --line: rgba(242, 237, 228, 0.22);
  --field: #191714;
  --anton: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", "Arial Narrow", sans-serif;
  --inter: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ground);
  color-scheme: dark; /* the browser's own boxes and scroll bars are drawn dark */
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--inter);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.page {
  max-width: 684px; /* 640 of text and 22 of margin on each side */
  margin: 0 auto;
  padding: 0 22px;
}

p {
  margin: 0 0 1.15em;
}

strong {
  font-weight: 600;
}

h1,
h2,
legend {
  font-family: var(--anton);
  font-weight: 400;
  color: var(--text);
}

h1 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}

h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 2.1em 0 0.7em;
}

section {
  padding-top: 76px;
}

section::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--line);
  margin-bottom: 44px;
}

section > h2:first-of-type {
  margin-top: 0;
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding-top: 44px;
}

.hero::before {
  display: none;
}

.kicker {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  margin: 0 0 20px;
}

.kicker span {
  white-space: nowrap; /* on a phone it breaks after the dot, never inside a name */
}

.bar {
  width: 56px;
  height: 5px;
  background: var(--gold);
  margin: 26px 0 28px;
}

.lede {
  font-size: 1.22em;
  line-height: 1.5;
}

.cta {
  margin: 1.8em 0 1em;
}

.btn {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 18px 24px;
  background: var(--fire);
  color: var(--ground);
  font-family: var(--anton);
  font-weight: 400;
  font-size: 26px;
  line-height: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover {
  background: var(--fire-hover);
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- places for what is not there yet */

.slot {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  margin: 1.7em 0;
  background: #151310;
  border: 1px dashed rgba(242, 237, 228, 0.38);
}

.proof {
  margin: 2em 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.proof h2 {
  font-size: 26px;
  margin-top: 1.6em;
}

/* ---------------------------------------------------------------- the rules */

.rules {
  list-style: none;
  margin: 1.7em 0;
  padding: 0;
}

.rules li {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr);
  padding: 0.95em 0;
  border-top: 1px solid var(--line);
}

.rules li:last-child {
  border-bottom: 1px solid var(--line);
}

.rules .num {
  font-family: var(--anton);
  font-size: 1.2em;
  line-height: 1.4;
}

/* ---------------------------------------------------------------- the last word */

.sig {
  margin: 2.2em 0 0;
}

.sig-name {
  display: block;
  font-family: var(--anton);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--gold);
}

.sig-title {
  display: block;
  font-weight: 600;
  font-size: 0.9em;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.ps {
  margin-top: 2.2em;
}

/* ---------------------------------------------------------------- the application */

.apply-title {
  font-size: 44px;
  line-height: 1.05;
}

form {
  margin: 0;
}

fieldset {
  border: 0;
  margin: 3.2em 0 0;
  padding: 0;
  min-width: 0;
}

legend {
  display: block;
  width: 100%;
  padding: 0 0 0.5em;
  margin: 0 0 1em;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--line);
}

.q {
  margin: 0 0 2.2em;
}

.q-text,
label {
  display: block;
  font-weight: 600;
  margin: 0 0 0.6em;
}

label .num,
.q-text .num {
  font-family: var(--anton);
  font-weight: 400;
  font-size: 1.15em;
  margin-right: 0.15em;
}

label.sub {
  font-weight: 400;
  font-size: 0.92em;
  color: var(--dim);
  margin-bottom: 0.35em;
}

label.second {
  margin-top: 1.3em;
}

.pair > div + div {
  margin-top: 1em;
}

.req {
  font-weight: 400;
  color: var(--dim);
}

.hint {
  font-size: 0.94em;
  color: var(--dim);
  margin: 0 0 0.7em;
}

input[type="text"],
input[type="email"],
textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px;
  font: inherit;
  font-size: 18px; /* 16 or more: a phone does not zoom on focus */
  line-height: 1.5;
  color: var(--text);
  background: var(--field);
  border: 1px solid rgba(242, 237, 228, 0.5);
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"],
input[type="email"] {
  min-height: 56px;
}

textarea {
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-color: var(--text);
}

.check {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  min-height: 56px;
  margin: 0;
  padding: 15px 0;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.check input {
  width: 30px;
  height: 30px;
  margin: 0;
  accent-color: var(--text);
  cursor: pointer;
}

.check input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.storage {
  margin: 2.4em 0 1.6em;
  font-size: 0.94em;
  color: var(--dim);
}

.send .marks-only {
  margin-top: 0.8em;
}

.form-status {
  margin: 1.2em 0 0;
  padding: 16px 18px;
  font-weight: 600;
  border: 1px solid var(--text);
}

.form-status:focus {
  outline: none;
}

.site-footer {
  max-width: 684px;
  margin: 84px auto 0;
  padding: 26px 22px 72px;
  font-size: 0.85em;
  color: var(--dim);
}

.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--line);
  margin-bottom: 26px;
}

main.page {
  padding-bottom: 0;
}

body.sheet main.page {
  padding-top: 44px;
  padding-bottom: 80px;
}

/* ---------------------------------------------------------------- the rule sheet */

.sheet h1 {
  margin-bottom: 0.7em;
}

.sheet .lead {
  margin-top: 1.6em;
}

.sheet .accept {
  margin-top: 2.2em;
  font-size: 1.1em;
}

.sign {
  margin-top: 2em;
}

.sign-line {
  height: 64px;
  border-bottom: 1px solid var(--text);
}

/* ---------------------------------------------------------------- the review layer (owner only) */

.review-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 4px 14px;
  background: #241C06;
  border-bottom: 1px solid rgba(242, 178, 51, 0.55);
  color: #F5C24B;
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.35;
}

.review-bar a {
  flex: none;
  padding: 8px 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.chip {
  display: inline-block; /* one box: a short chip moves to the next line whole, a long one wraps inside itself */
  max-width: 100%;
  padding: 2px 7px;
  font-family: var(--inter);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  color: #F5C24B;
  background: rgba(242, 178, 51, 0.12);
  border: 1px dashed rgba(242, 178, 51, 0.6);
  border-radius: 3px;
  vertical-align: 0.1em;
  overflow-wrap: anywhere;
  text-align: left;
}

.chip-call {
  color: #1B1404;
  background: var(--amber);
  border: 1px solid var(--amber);
}

.chip-src {
  font-weight: 400;
  color: #A8A29A;
  background: transparent;
  border: 1px solid rgba(242, 237, 228, 0.28);
}

.marks-only {
  line-height: 1.9;
}

.clean .chip,
.clean .marks-only,
.clean .review-bar {
  display: none;
}

/* ---------------------------------------------------------------- wider screens */

@media (min-width: 720px) {
  body {
    font-size: 20px;
    line-height: 1.7;
  }

  h1 {
    font-size: 62px;
    line-height: 1.08;
  }

  h2 {
    font-size: 38px;
  }

  section {
    padding-top: 96px;
  }

  section::before {
    margin-bottom: 56px;
  }

  .hero {
    padding-top: 72px;
  }

  .kicker {
    font-size: 15px;
    margin-bottom: 26px;
  }

  .bar {
    margin: 32px 0 34px;
  }

  .proof {
    padding-left: 26px;
  }

  .proof h2 {
    font-size: 30px;
  }

  .sig-name {
    font-size: 38px;
  }

  .apply-title {
    font-size: 62px;
  }

  legend {
    font-size: 30px;
  }

  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 19px;
    padding: 16px;
  }

  .review-bar {
    font-size: 13.5px;
    padding: 4px 22px;
  }

  .chip {
    font-size: 13px;
  }

  body.sheet main.page {
    padding-top: 72px;
  }
}

/* ---------------------------------------------------------------- paper: the rule sheet on one or two sheets */

@media print {
  @page {
    margin: 15mm 17mm;
  }

  .review-bar {
    display: none;
  }

  html {
    color-scheme: light;
  }

  html,
  body.sheet {
    background: #fff;
  }

  body.sheet {
    color: #000;
    font-size: 10.5pt;
    line-height: 1.4;
  }

  body.sheet main.page {
    max-width: none;
    padding: 0;
  }

  body.sheet h1 {
    color: #000;
    font-size: 24pt;
    margin: 0 0 10pt;
  }

  body.sheet p {
    margin: 0 0 7pt;
  }

  body.sheet .lead {
    margin-top: 10pt;
  }

  body.sheet .rules {
    margin: 6pt 0 10pt;
  }

  body.sheet .rules li {
    padding: 4.5pt 0;
    border-color: #bbb;
    break-inside: avoid;
  }

  body.sheet .rules .num {
    font-size: 1.1em;
    line-height: 1.3;
  }

  body.sheet .accept {
    margin-top: 14pt;
    font-size: 1.05em;
  }

  body.sheet .sign {
    margin-top: 16pt;
  }

  body.sheet .sign-line {
    height: 34pt;
    border-color: #000;
  }

  body.sheet .chip {
    font-size: 7.5pt;
    color: #444;
    background: none;
    border: 0.5pt dashed #777;
  }

  body.sheet .chip-call {
    color: #000;
    border: 0.5pt solid #000;
  }
}

/* the hidden field only a robot fills */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
