/* =========================================================
   v3, black background. Loads after ../v3/styles.css.
   The paperwork stays paper-coloured (it's physical stuff on a
   dark desk); only the page and the letter's text are re-coloured.
   The deep rose is too dark to read on black, so the letter uses
   a lighter blush instead. Pieces on paper keep the deep rose.
   ========================================================= */

:root {
  color-scheme: dark;
  --night: #0D0D0D;
  --cream: #F3EEE6;
  --blush-light: #F29BB8;
  --night-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body, .desk { background: var(--night-grain), var(--night); color: var(--cream); }
::selection { background: var(--blush-light); color: var(--night); }

/* the letter: cream text, blush accents */
.letter {
  --ink: var(--cream);
  --paper: #161616;
  --grey: #A8A29A;
  --rose: var(--blush-light);
  --rose-deep: var(--blush-light);
  color: var(--cream);
}
.letter .body { font-weight: 350; }

/* sign-up: dark field, cream button (like the reference's white button) */
.letter .signup__row { border-color: #3B3936; box-shadow: none; }
.letter .signup__row:focus-within { border-color: var(--cream); box-shadow: 0 0 0 3px rgb(242 155 184 / .18); }
.letter .signup input::placeholder { color: #807A73; }
.letter .signup__btn { background: var(--cream); color: var(--night); }
.letter .signup__btn:hover { background: var(--blush-light); color: var(--night); }
.letter .signup.is-done .signup__done { background: #26181E; color: var(--cream); }

/* paperwork: deeper shadows so pieces still lift off a dark desk */
.folder { box-shadow: 0 1.6cqw 4cqw -1cqw rgb(0 0 0 / .7); }
.sheet, .receipt, .note { box-shadow: 0 .8cqw 3cqw -.4cqw rgb(0 0 0 / .6); }
.pc.o, .pc.k { filter: drop-shadow(0 .9cqw 1.6cqw rgb(0 0 0 / .55)); }

/* browser autofill: keep the field dark instead of the browser's own grey/blue fill */
/* the field gets the pill's rounded ends, so the fill can't poke past the curve */
.letter .signup input[type="email"] { border-radius: 999px; }
.letter .signup input:-webkit-autofill,
.letter .signup input:-webkit-autofill:hover,
.letter .signup input:-webkit-autofill:focus,
.letter .signup input:autofill {
  -webkit-box-shadow: 0 0 0 100px var(--paper) inset;
  box-shadow: 0 0 0 100px var(--paper) inset;
  -webkit-text-fill-color: var(--cream);
  caret-color: var(--cream);
  transition: background-color 600000s 0s;
}
