/*
  Butterscotch HR splash page.
  The line is the biggest thing on the page, and the signup is a message box
  with a round send arrow. White ground, butterscotch lettering, one light look.
  Every word is set in the wordmark's typeface, Century Schoolbook, in two weights.
*/

@font-face { font-family: "Butterscotch Schoolbook"; src: url("/assets/fonts/schoolbook-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Butterscotch Schoolbook"; src: url("/assets/fonts/schoolbook-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ground: #FFFFFF;
  --caramel: #C8861A;           /* the wordmark's name */
  --caution: #F5C400;           /* traffic yellow: the send button's middle light, as in the app */
  --caution-rim: #B07A00;       /* its edge, because yellow alone is faint on white */
  --butterscotch-deep: #A8650A; /* the line, the send arrow, a sent message */
  --go: #4E7A4A;                /* Moss, deepened: the send arrow */
  --stop: #D3202A;              /* stop-sign red: the X */
  --ink: #2A2521;               /* Warm Slate, for what a person types */
  --quiet: #675E52;             /* Slate 600 */
  --edge: #948566;              /* Rope, the functional line */
  --wash: #FBF3E2;              /* a breath of butterscotch behind the message box */
  --shadow: 0 1px 2px rgba(42, 37, 33, .05), 0 14px 36px rgba(168, 101, 10, .14);
  --serif: "Butterscotch Schoolbook", "Century Schoolbook", "New Century Schoolbook", Georgia, serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ground); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 60rem;
  padding: 3rem 1.5rem 4.5rem;
  padding-inline: max(1.5rem, env(safe-area-inset-left)) max(1.5rem, env(safe-area-inset-right));
  text-align: center;
}

/* The wordmark. */
.mark {
  display: block;
  width: min(80vw, 22rem);
  height: auto;
  margin: 0 auto 3.5rem;
}

h1 {
  margin: 0 auto;
  font-size: clamp(2.25rem, .3rem + 10.6vw, 7rem);   /* 36 to 112 */
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.022em;
  word-spacing: -.04em;
  color: var(--butterscotch-deep);
}
h1 span { display: block; }
/* A small folded paper plane stands in for the full stop. */
h1 .plane { display: inline-block; width: calc(.26em + 6px); height: calc(.26em + 6px); margin-inline-start: 0; vertical-align: -.02em; }

.signup { margin: 3.5rem auto 0; max-width: 31rem; }

/* The message box. */
.field {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4375rem;
  background: #FFFFFF;
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.field input {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  height: 3.25rem;
  padding: 0 .5rem 0 1.375rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.1875rem;
}
.field input::placeholder { color: var(--quiet); opacity: 1; }
.field input:focus { outline: none; }
.field:has(input:focus-visible) { outline: 3px solid var(--butterscotch-deep); outline-offset: 3px; }
.field input:read-only { opacity: .7; }

/* The round send arrow: quiet while the box is empty, lit once there are words. */
button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--go);
  color: #FFFFFF;
  cursor: pointer;
  transition: transform 160ms ease-out, opacity 180ms ease-out, background-color 650ms ease-in-out, color 650ms ease-in-out;
}
/* Three lights, one round button, a stoplight: green arrow, yellow question mark, red X (Micah, 2026-11-13). */
/* One icon turns into the next and stops at its own size: no overshoot (Micah, 2026-11-13). */
button .i { grid-area: 1 / 1; display: block; width: 1.5rem; height: 1.5rem; opacity: 0; transform: scale(.6) rotate(-20deg); transition: opacity 400ms ease-in-out, transform 400ms ease-out; }
button[data-light="go"]   .i-go,
button[data-light="look"] .i-look,
button[data-light="stop"] .i-stop { opacity: 1; transform: none; }
button[data-light="look"] { background: var(--caution); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--caution-rim); }
button[data-light="stop"] { background: var(--stop); }
button.nudge { animation: nudge 420ms ease-in-out; }
@keyframes nudge { 0%,100% { translate: 0; } 20% { translate: -4px; } 40% { translate: 4px; } 60% { translate: -3px; } 80% { translate: 2px; } }
button:hover { transform: scale(1.04); }
button:active { transform: scale(.96); }
button:focus-visible { outline: 3px solid var(--butterscotch-deep); outline-offset: 3px; opacity: 1; }
button[aria-disabled="true"], button:disabled { cursor: default; transform: none; }
button[aria-disabled="true"] { opacity: .6; }

.note {
  min-height: 1.6em;
  margin: .875rem 0 0;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ink);
}
.note:empty { visibility: hidden; }

.ask {
  margin: .25rem auto 0;
  max-width: 28rem;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--quiet);
  text-wrap: balance;
}
.ask[hidden] { display: none; }
/* The privacy promise: one quiet line under the sentence. */
.promise {
  margin: .25rem auto 0;
  max-width: 28rem;
  font-size: .9375rem;
  font-weight: 400;
  color: var(--quiet);
  text-wrap: balance;
}

/* The promise is also the way to the privacy page: the same words, underlined. */
.promise a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--edge); }
.promise a:hover { text-decoration-color: currentColor; }
.promise a:focus-visible { outline: 3px solid var(--butterscotch-deep); outline-offset: 3px; border-radius: .125rem; }

/* A field for machines that fill in everything; people never meet it. */
.elsewhere { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }

/* Sent: the address goes up as a message, with "On file" and the time under it. */
.receipt { max-width: 31rem; margin: 3.5rem auto 0; text-align: end; }
.receipt[hidden], .signup[hidden] { display: none; }
.receipt:focus { outline: none; }
.receipt p { margin: 0; }
.sent {
  display: inline-block;
  max-width: 100%;
  padding: .8125rem 1.375rem;
  background: var(--butterscotch-deep);
  color: #FFFFFF;
  border-radius: 1.5rem 1.5rem .4rem 1.5rem;
  font-size: 1.1875rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow);
}
.receipt p.receipt-line {
  margin-top: .5rem;
  padding-inline-end: .375rem;
  font-size: .875rem;
  font-weight: 400;
  color: var(--quiet);
}
/* As a text thread does it, and as the app does: when, over the message; where it went and that it is on file, under it. */
.receipt p.receipt-when { margin-bottom: .75rem; text-align: center; font-size: .875rem; color: var(--quiet); }
.receipt-when:has(time:empty) { display: none; }
.receipt p.receipt-body {
  margin-top: 2rem;
  text-align: center;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink);
}

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

@media (max-width: 30rem) {
  .page { padding-top: 2.5rem; padding-bottom: 3.5rem; }
  .mark { margin-bottom: 2.75rem; }
  .signup, .receipt { margin-top: 2.75rem; }
  .field input { height: 3rem; padding-inline-start: 1.125rem; font-size: 1.0625rem; }
  button { width: 3rem; height: 3rem; }
}

/* The page arrives settled: nothing fades or slides in on load (Micah, 2026-11-13). The one rise left is the sent
   message going up, which answers a person's own send. */
@media (prefers-reduced-motion: no-preference) {
  .page > .receipt { animation: sent-rise 220ms ease-out both; }
  @keyframes sent-rise { from { transform: translateY(.5rem); } to { transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
