/* careers.wtf coming-soon page.
   Sizes follow the 1440 and 390 reference boards and scale between them. */

:root {
  --raven: #111b31;
  --sandpiper: #f0eae5;
  --egret: #fcfcf9;
  --teal-green: #005149;
  --warbler: #fff534;
  --budgie: #a3ede4;
  --robin: #ff9a8a;
  --white: #ffffff;

  --shadow-paper: 0 1px 2px rgba(17, 27, 49, 0.18), 0 14px 24px -6px rgba(17, 27, 49, 0.3);
  --radius-control: 8px;
  --sheen: linear-gradient(to bottom, rgba(17, 27, 49, 0.035) 0, rgba(17, 27, 49, 0) 18%, rgba(255, 255, 255, 0.08) 22%, rgba(255, 255, 255, 0) 45%, rgba(17, 27, 49, 0.06) 100%);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Shantell Sans", "Comic Sans MS", cursive;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-slip: "Courier Prime", "Courier New", monospace;

  --gutter: clamp(20px, 4.45vw, 64px);
}

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

html {
  background: var(--raven);
}

body {
  margin: 0;
  background: var(--sandpiper);
  color: var(--raven);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
ul {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(1312px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-family: var(--font-hand);
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

/* ---------- Hero ---------- */

.hero {
  background: var(--sandpiper) url("/assets/paper/paper-bg.webp") center / cover no-repeat;
  padding-block: 24px 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "mark"
    "print"
    "label"
    "title"
    "copy";
}

.hero-mark {
  grid-area: mark;
  justify-self: start;
  width: 140px;
}

.hero-mark img {
  width: 100%;
  height: auto;
}

.hero-label {
  grid-area: label;
  margin-top: 26px;
  color: var(--teal-green);
}

.hero-title {
  grid-area: title;
  position: relative;
  z-index: 2;
  margin-top: 18px;
  /* Each line stays whole; the size tracks the viewport instead. */
  font-size: clamp(31px, 10vw, 124px);
  line-height: 0.96;
  white-space: nowrap;
  transform: rotate(-1deg);
  transform-origin: left top;
}

.hl {
  background: url("/assets/paper/highlight-warbler.webp") 0 0 / 100% 100% no-repeat;
  padding: 0 0.14em;
  margin: 0 -0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Photo print with the sticker on its top-right corner */
.hero-print {
  grid-area: print;
  position: relative;
  justify-self: start;
  width: min(100% - 24px, 460px);
  margin: 21px 0 0 8px;
  --sticker: 104px;
}

.print {
  position: relative;
  z-index: 1;
  background: var(--egret);
  padding: 9px 9px 28px;
  box-shadow: var(--shadow-paper);
  transform: rotate(3deg);
}

.print img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 60% 45%;
}

.sticker {
  position: absolute;
  z-index: 5;
  top: calc(var(--sticker) * -0.42);
  right: calc(var(--sticker) * -0.25);
  width: var(--sticker);
  height: var(--sticker);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--raven);
  box-shadow: var(--shadow-paper);
  color: var(--white);
  font-family: var(--font-hand);
  font-weight: 800;
  font-size: calc(var(--sticker) * 0.195);
  line-height: 0.98;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(6deg);
}

.sticker::before {
  content: "";
  position: absolute;
  inset: calc(var(--sticker) * 0.05);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.hero-copy {
  grid-area: copy;
  margin-top: 24px;
  max-width: 600px;
}

.lead {
  font-size: 18px;
  line-height: 1.5;
}

/* ---------- Signup ---------- */

.signup {
  margin-top: 18px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 56px;
  padding: 0 18px;
  border: 2px solid var(--raven);
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--raven);
  font: 400 18px var(--font-body);
}

.signup input[type="email"]::placeholder {
  color: #6b7180;
}

.signup input[aria-invalid="true"] {
  border-color: #b3261e;
}

.signup button {
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--raven);
  color: var(--white);
  font: 700 18px var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}

.signup button:hover {
  background: #1d2a48;
}

.signup button:disabled {
  cursor: progress;
  opacity: 0.85;
}

.signup-error {
  font-size: 15px;
  color: #b3261e;
}

.signup-error:empty {
  display: none;
}

.signup-success {
  font-family: var(--font-hand);
  font-style: italic;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
}

.signup-success:focus {
  outline: none;
}

/* Honeypot: off-screen, not display:none, so naive bots still fill it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* "Free. Zero fluff." with an arrow pointing up at the button */
.aside {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-hand);
  font-style: italic;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.05;
  transform: rotate(-3deg);
  transform-origin: left center;
}

.aside svg {
  flex: none;
  width: 44px;
  height: 22px;
  transform: rotate(-90deg);
}

.aside br {
  display: none;
}

/* ---------- Torn strip ---------- */

.strip {
  position: relative;
  z-index: 3;
  height: 110px;
  margin-bottom: -50px;
  /* Clip sideways only, so the rotated band can rise over the hero. */
  overflow-x: clip;
}

.strip-band {
  position: absolute;
  top: 0;
  left: -100px;
  right: -100px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--white);
  font-size: 22px;
  line-height: 1.05;
  transform: rotate(-2deg);
}

.strip-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -44px;
  background: url("/assets/paper/strip-torn-raven.webp") 0 0 / 100% 100% no-repeat;
}

.strip-band span {
  white-space: nowrap;
}

.strip-band svg {
  display: none;
  flex: none;
  width: 0.83em;
  height: 0.83em;
}

/* ---------- Post-it wall ---------- */

.wall {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--teal-green);
  padding-block: 104px 72px;
  color: var(--white);
}

.wall::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("/assets/photos/wall-city-window-800.webp") center / cover no-repeat;
  mix-blend-mode: luminosity;
  opacity: 0.32;
}

.wall-head {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wall-head h2 {
  font-size: clamp(36px, 10.8vw, 66px);
  line-height: 0.98;
}

.budgie {
  color: var(--budgie);
}

.wall-head p {
  max-width: 420px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

.notes {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 34px;
}

.note {
  --size: 210px;
  --slip-w: 240px;
  --slip-h: 104px;
  --overlap: 21px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: start;
  padding-left: 8px;
  color: var(--raven);
}

.note:nth-child(even) {
  justify-self: end;
  padding: 0 8px 0 0;
}

.postit {
  width: var(--size);
  height: var(--size);
  display: flex;
  align-items: center;
  padding: 13% 11%;
  background-color: var(--paper);
  background-image: var(--sheen);
  box-shadow: var(--shadow-paper);
  font-family: var(--font-hand);
  font-style: italic;
  font-weight: 700;
  font-size: calc(var(--size) * 0.1143);
  line-height: 1.12;
  transform: rotate(var(--tilt));
}

.slip {
  position: relative;
  z-index: 1;
  width: var(--slip-w);
  height: var(--slip-h);
  margin-top: calc(var(--overlap) * -1);
  padding: 18px 19px 0;
  transform: rotate(var(--slip-tilt));
}

.slip::before {
  content: "";
  position: absolute;
  z-index: -1;
  /* the slip image has 44px of transparent bleed on each side */
  inset: -35.5% -15.7%;
  background: url("/assets/paper/answer-slip.webp") 0 0 / 100% 100% no-repeat;
}

.slip .mono {
  color: var(--teal-green);
}

.slip-text {
  margin-top: 6px;
  font-family: var(--font-slip);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
}

.note-1 { --paper: var(--budgie); --tilt: -1.5deg; --slip-tilt: 1.5deg; --d-size: 256px; --d-top: 18px; }
.note-2 { --paper: var(--robin); --tilt: 1deg; --slip-tilt: -2deg; --d-size: 296px; --d-top: 0px; }
.note-3 { --paper: var(--warbler); --tilt: -1deg; --slip-tilt: 2deg; --d-size: 248px; --d-top: 64px; }
.note-4 { --paper: var(--egret); --tilt: 1.5deg; --slip-tilt: -1.5deg; --d-size: 276px; --d-top: 30px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--raven);
  color: var(--white);
  padding-block: 44px 40px;
}

.footer-grid {
  display: grid;
  grid-template-areas:
    "lockup"
    "social"
    "disclosure";
  gap: 24px;
  justify-items: start;
}

.lockup {
  grid-area: lockup;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lockup > img {
  width: 150px;
  height: auto;
}

.lockup-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.45);
}

.lockup-by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.lockup-by img {
  width: 52px;
  height: auto;
}

.disclosure {
  grid-area: disclosure;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
}

.social {
  grid-area: social;
  display: flex;
  gap: 10px;
  margin-left: -10px;
}

.social a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 4px;
}

.social svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.social a:hover {
  color: var(--budgie);
}

.footer :focus-visible {
  outline-color: var(--warbler);
}

/* ---------- Small tablets and up ---------- */

@media (min-width: 560px) {
  .signup-row {
    flex-direction: row;
  }

  /* Inline form: mirror the aside so the arrow sits under the button */
  .aside {
    flex-direction: row-reverse;
    width: max-content;
    margin-left: auto;
    margin-right: 66px;
    transform: rotate(-3deg);
    transform-origin: right center;
  }

  .lead {
    font-size: 20px;
  }
}

@media (min-width: 720px) {
  .strip {
    height: 140px;
    margin-bottom: -62px;
  }

  .strip-band {
    flex-direction: row;
    gap: 30px;
    font-size: clamp(22px, 2.5vw, 36px);
    transform: rotate(-1.5deg);
  }

  .strip-band svg {
    display: block;
  }

  .wall {
    padding-block: 150px 96px;
  }

  .wall::before {
    background-image: url("/assets/photos/wall-city-window.webp");
  }

  .wall-head p {
    font-size: 20px;
    line-height: 1.5;
  }

  /* Two columns of post-its at desktop size */
  .notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 20px;
    margin-top: 64px;
  }

  .note,
  .note:nth-child(even) {
    --size: var(--d-size);
    --slip-w: 280px;
    --slip-h: 124px;
    --overlap: 27px;
    justify-self: center;
    padding: var(--d-top) 0 0;
  }

  .slip {
    padding: 21px 22px 0;
  }

  .slip-text {
    font-size: 18px;
  }

  .postit {
    font-size: 28px;
  }

  .footer {
    padding-block: 52px 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "lockup social"
      "disclosure social";
    gap: 14px 40px;
    align-items: center;
  }

  .lockup > img {
    width: 170px;
  }

  .social {
    gap: 16px;
    margin: 0 -9px 0 0;
  }

  .social a {
    width: 52px;
    height: 52px;
  }

  .social svg {
    width: 30px;
    height: 30px;
  }
}

/* ---------- Desktop hero: copy left, photo right ---------- */

@media (min-width: 960px) {
  .hero {
    padding-block: 34px 36px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "mark mark"
      "label label"
      "title title"
      "copy print";
    column-gap: clamp(40px, 6vw, 196px);
    align-items: start;
  }

  .hero-mark {
    width: 200px;
  }

  .hero-label {
    margin-top: 27px;
    font-size: 13px;
  }

  .hero-title {
    margin: 27px 0 0 -4px;
    line-height: 0.94;
  }

  .hero-print {
    justify-self: end;
    width: clamp(340px, 36.7vw, 528px);
    margin-top: 23px;
    --sticker: clamp(120px, 11.8vw, 170px);
  }

  .hero-print .sticker {
    top: calc(var(--sticker) * -0.53);
    right: calc(var(--sticker) * -0.01);
  }

  .print {
    padding: 14px 14px 44px;
    transform: rotate(4deg);
  }

  .print img {
    aspect-ratio: 25 / 16;
  }

  .hero-copy {
    margin-top: clamp(40px, 7vw, 103px);
  }

  .signup {
    margin-top: 22px;
  }
}

/* Room for the aside to sit beside the button */
@media (min-width: 1400px) {
  .signup {
    position: relative;
  }

  .hero-print {
    margin-right: -12px;
  }

  .aside {
    position: absolute;
    left: calc(100% + 12px);
    top: 30px;
    flex-direction: row;
    margin: 0;
    gap: 4px;
    font-size: 22px;
    transform: rotate(-5deg);
  }

  .aside svg {
    width: 48px;
    height: 24px;
    transform: rotate(185deg);
  }

  .aside br {
    display: inline;
  }
}

@media (min-width: 1200px) {
  .wall-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
  }

  .wall-head h2 {
    white-space: nowrap;
    font-size: clamp(54px, 4.6vw, 66px);
  }

  .wall-head p {
    max-width: 360px;
  }
}

/* Full wall: four post-its in a row */
@media (min-width: 1300px) {
  .notes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
