/* remotoenusa: a CV on a reviewer's desk. Paper, ink, one correction pen. */

:root {
  --desk: #f4f2ee;
  --paper: #fff;
  --ink: #1f1b16;
  --ink-2: #5e554a;
  --ink-3: #736a5e;
  --rule: #8f867a;
  --pen: #c8410e;
  --pen-press: #ab370b;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 16px/1.5 var(--sans); }
h1, h2, p, ul, ol, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 32px; line-height: 1.1; }
h2 { font-size: 24px; line-height: 1.2; }
ul, ol { padding-left: 20px; }
li + li { margin-top: 4px; }
li::marker { color: var(--ink-3); }
a { color: inherit; }

/* Layout */
.page, .landing, .thanks { max-width: 480px; margin: 0 auto; padding: 28px 20px 64px; }
.lead { margin-top: 12px; font-size: 18px; color: var(--ink-2); }
.note { margin-top: 32px; color: var(--ink-2); }
.fine { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.inside { margin-top: 40px; }
.steps { margin-top: 24px; }
.steps li + li { margin-top: 8px; }

/* The pen: crosses out what has to go, and writes the correction. */
.x { background: linear-gradient(var(--pen), var(--pen)) no-repeat 0 56% / 100% 2px; }
.fix { display: block; margin-top: 4px; color: var(--pen); font-weight: 500; }
.error { margin-bottom: 16px; color: var(--pen); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .x { animation: strike .4s var(--ease) .5s both; }
  .x:nth-of-type(2) { animation-delay: .75s; }
  .x:nth-of-type(3) { animation-delay: 1s; }
  .fix { animation: write .4s var(--ease) 1s both; }
  @keyframes strike { from { background-size: 0 2px; } }
  @keyframes write { from { opacity: 0; transform: translateY(4px); } }
}

/* Form and buttons */
form { margin-top: 24px; }
label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; }
input {
  display: block; width: 100%; height: 48px; margin-bottom: 16px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: 6px;
  background: var(--paper); color: var(--ink); font: inherit;
}
.hp { position: absolute; left: -9999px; }
.btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 52px; padding: 0 20px; border: 0; border-radius: 6px;
  color: #fff; font: 600 16px/1.25 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.btn span + span { font-weight: 400; }
.btn s { margin-right: 8px; }
.btn:active { transform: scale(.985); }
.btn-pen { background: var(--pen); }
.btn-ink { background: var(--ink); }
@media (hover: hover) {
  .btn-pen:hover { background: var(--pen-press); }
  .btn-ink:hover { background: #000; }
}
input:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
form .btn { margin-top: 4px; }

/* The sheet: real lines from the guide or the example CV, as paper. Always shown whole. */
.sheet {
  padding: 28px 24px; background: var(--paper); border-radius: 2px;
  box-shadow: 0 1px 2px rgba(31, 27, 22, .06), 0 12px 32px rgba(31, 27, 22, .1);
  font-size: 13px; line-height: 1.55;
}
.landing .sheet { margin-top: 40px; aspect-ratio: 8.5 / 11; }
.sheet .h { font-family: var(--serif); font-size: 17px; line-height: 1.25; margin: 24px 0 4px; }
.sheet .h:first-child { margin-top: 0; }
.sheet p + p, .sheet ul + p, .sheet p + ul { margin-top: 4px; }
.sheet li + li { margin-top: 0; }
.sheet li::marker { color: var(--ink); }

/* Thank-you page: the downloads stay quiet, the review offer gets the room. */
.got h1 { font-size: 24px; line-height: 1.2; }
.got p { margin-top: 8px; color: var(--ink-2); }
.got .btn { margin-top: 20px; }
.files { margin-top: 8px; padding: 0; list-style: none; }
.files li + li { margin-top: 0; }
.files a { display: inline-block; padding: 8px 0; text-underline-offset: 3px; }
.offer { margin-top: 48px; }
.offer h2 { font-size: 32px; line-height: 1.1; }
.offer > p { margin-top: 12px; }
.offer > ul { margin-top: 24px; }
.proof { margin-top: 24px; }
.proof .x { color: var(--ink-3); }
.proof figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
/* On a phone the buy button follows the reader through the offer. */
.buy { position: sticky; bottom: 0; margin: 24px -20px 0; padding: 12px 20px; background: var(--desk); }
.buy::before {
  content: ""; position: absolute; inset: auto 0 100%; height: 16px;
  background: linear-gradient(to top, var(--desk), transparent); pointer-events: none;
}
.buy + .fine { margin-top: 0; }

@media (min-width: 960px) {
  .page { padding-top: 88px; }
  .landing, .thanks {
    display: grid; justify-content: space-between; align-items: start; column-gap: 64px;
    max-width: 1200px; padding: 88px 40px 64px;
  }
  .landing { grid-template-columns: minmax(0, 520px) minmax(0, 480px); }
  .landing h1, .offer h2 { font-size: 48px; line-height: 1.05; letter-spacing: -.02em; }
  .landing .lead { margin-top: 16px; }
  .landing form { max-width: 400px; margin-top: 32px; }
  .landing .sheet { margin-top: 0; padding: 44px 40px; font-size: 14px; }
  .landing .sheet .h { font-size: 19px; }
  .landing .sheet .h:not(:first-child) { margin-top: 28px; }

  .thanks { grid-template-columns: minmax(0, 380px) minmax(0, 560px); grid-template-rows: auto 1fr; }
  .offer { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
  .thanks .note { grid-column: 1; }
  .offer h2 + p { margin-top: 16px; font-size: 18px; color: var(--ink-2); }
  .offer .sheet { padding: 32px; font-size: 14px; }
  .buy { position: static; max-width: 400px; margin: 24px 0 0; padding: 0; }
  .buy::before { display: none; }
  .buy + .fine { margin-top: 12px; }
}
