/* jevforlinkedin.com: one sheet of paper, a marker and a red pen. */

:root {
  --paper: #EEF0F2;
  --sheet: #FAFBFC;
  --ink: #15171C;
  --graphite: #5C626C;
  --rule: #D6DAE0;
  --marker: #FFEE3B;
  --pen: #D93A2B;

  --display: "Anybody", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.mono { font-family: var(--mono); }
.muted { color: var(--graphite); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Marks: the signature ---------- */

/* Marker: a yellow swipe that grows left to right. Add .on to draw it. */
.mark {
  margin: 0 -0.2em;
  padding: 0.05em 0.2em;
  border-radius: 0.7em 0.25em 0.6em 0.3em;
  background-image: linear-gradient(100deg, rgba(255, 238, 59, 0.55) 0%, var(--marker) 6%, rgba(255, 238, 59, 0.85) 94%, rgba(255, 238, 59, 0.5) 100%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.55s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.mark.on { background-size: 100% 100%; }
/* On big display type the stroke stays flat, like a wide chisel tip. */
.headline .mark, .big .mark, .odds .mark { margin: 0 -0.05em; padding: 0 0.08em; border-radius: 0.06em 0.02em 0.08em 0.03em; }

/* Pen: a red strike through the middle. Add .on to draw it. */
.strike {
  background-image: linear-gradient(transparent 52%, var(--pen) 52%, var(--pen) calc(52% + 2px), transparent calc(52% + 2px));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.4s ease-out, color 0.4s;
}
.strike.on { background-size: 100% 100%; color: var(--graphite); }

@media (prefers-reduced-motion: reduce) {
  .mark, .strike { transition: none; }
}

/* ---------- Header and tool nav ---------- */

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.25rem; padding-bottom: 1rem;
}
.brand {
  font: 800 1.35rem/1 var(--display);
  font-stretch: 70%;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand .mark { background-size: 100% 100%; }
.byline { font-size: 0.875rem; color: var(--graphite); text-decoration: none; white-space: nowrap; }
.byline:hover { color: var(--ink); }
.top-links { display: flex; gap: 1.25rem; }
.byline[aria-current="page"] { color: var(--ink); font-weight: 600; }

.tools {
  display: flex; gap: 0.25rem;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.tools::-webkit-scrollbar { display: none; }
.tool-link {
  flex: 0 0 auto;
  padding: 0.7rem 0.9rem 0.8rem;
  text-decoration: none;
  color: var(--graphite);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  line-height: 1.25;
}
.tool-link:hover { color: var(--ink); }
.tool-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.tool-name { display: block; font-weight: 600; font-size: 0.95rem; }
.tool-hint { display: block; font-size: 0.8rem; }

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

.hero { padding-block: 3.5rem 2rem; }
.headline {
  margin: 0;
  font: 850 clamp(2.6rem, 7.5vw, 5.6rem)/0.95 var(--display);
  font-stretch: 62%;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.lede { margin: 1.1rem 0 0; font-size: 1.15rem; color: var(--graphite); max-width: 38rem; }

/* The ask: one field that reads like a sentence. */
.ask {
  margin-top: 2.2rem;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem;
}
.ask-label { font: 600 1.15rem/1.2 var(--body); padding-bottom: 0.55rem; }
.ask-input {
  flex: 1 1 18rem;
  min-width: 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  padding: 0.35rem 0.1rem;
  font: 700 clamp(1.4rem, 3vw, 1.9rem)/1.2 var(--body);
  border-radius: 0;
}
.ask-input::placeholder { color: #9BA1AA; font-weight: 500; }
.ask-input:focus { outline: none; background: rgba(255, 238, 59, 0.28); }
textarea.ask-input {
  flex-basis: 100%;
  font-size: 1.05rem; font-weight: 400; line-height: 1.55;
  border: 1px solid var(--rule); border-radius: 0.5rem;
  background: var(--sheet); padding: 0.9rem 1rem; resize: vertical; min-height: 9rem;
}
textarea.ask-input:focus { border-color: var(--ink); background: var(--sheet); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: rgba(21, 23, 28, 0.05); }
.btn-ink { background: var(--ink); color: var(--sheet); }
.btn-ink:hover { background: #2A2D35; }
.btn-marker { background: var(--marker); border-color: var(--ink); color: var(--ink); }
.btn-marker:hover { background: #FFE500; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.tries { margin-top: 1rem; font-size: 0.9rem; color: var(--graphite); display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.try {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px;
}
.try:hover { text-decoration-color: var(--ink); }

/* ---------- The sheet ---------- */

.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  box-shadow: 0 1px 0 rgba(21, 23, 28, 0.04), 0 12px 32px -18px rgba(21, 23, 28, 0.18);
  margin-bottom: 3rem;
}
.sheet-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem;
  padding: 1.4rem 1.5rem 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.sheet-title { margin: 0; font: 600 1.35rem/1.35 var(--body); max-width: 44rem; }
.sheet-meta { font: 400 0.8rem/1.4 var(--mono); color: var(--graphite); }

.row {
  display: grid;
  grid-template-columns: 12.5rem 1fr;
  gap: 0 1.5rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.row:last-child { border-bottom: 0; }
.note {
  font: 400 0.78rem/1.6 var(--mono);
  color: var(--graphite);
  border-right: 1px solid var(--rule);
  padding-right: 1rem;
  white-space: pre;
}
.note b { font-weight: 500; color: var(--ink); }
.note .yes { background: var(--marker); color: var(--ink); padding: 0 0.2em; }
.note .no { color: var(--pen); }
.who { font-weight: 600; }
.who-sub { font-size: 0.875rem; color: var(--graphite); }
.quote { margin: 0.35rem 0 0; font-size: 1.02rem; }

.locked { filter: blur(5px); user-select: none; pointer-events: none; }
.gate {
  position: relative;
  margin-top: -9rem;
  padding: 9rem 1.5rem 1.8rem;
  background: linear-gradient(to bottom, rgba(250, 251, 252, 0), var(--sheet) 55%);
  border-radius: 0 0 0.75rem 0.75rem;
  text-align: center;
}
.gate h3 { margin: 0; font: 800 clamp(1.6rem, 3.5vw, 2.2rem)/1.05 var(--display); font-stretch: 70%; }
.gate p { margin: 0.6rem auto 1.2rem; max-width: 34rem; color: var(--graphite); }

.sheet-foot {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-top: 1px solid var(--rule);
}

/* Jev reading: one thin line while it works. */
.reading {
  font: 400 0.85rem/1.5 var(--mono);
  color: var(--graphite);
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  min-height: 3.2rem;
}
.reading .dot { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ink); margin-right: 0.5em; animation: blink 0.9s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .reading .dot { animation: none; } }

/* ---------- Sections below the sheet ---------- */

.section { padding-block: 1rem 3rem; }
.section-title { margin: 0 0 1rem; font: 800 clamp(1.7rem, 3.8vw, 2.4rem)/1 var(--display); font-stretch: 66%; }


.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.more-card {
  display: block; text-decoration: none;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 0.75rem;
  padding: 1.1rem 1.2rem 1.2rem;
}
.more-card:hover { border-color: var(--ink); }
.more-card .tool-name { font: 800 1.45rem/1.05 var(--display); font-stretch: 68%; }
.more-card .tool-hint { margin-top: 0.4rem; font-size: 0.92rem; color: var(--graphite); }
.more-card .sample { margin-top: 0.9rem; font-size: 0.92rem; }

.foot {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.85rem; color: var(--graphite);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
}

/* ---------- Sponsor rails ---------- */

.rail { display: none; }
.spot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  text-align: center; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 0.75rem;
  padding: 0.8rem;
  min-height: 0; overflow: hidden;
}
.spot:hover { border-color: var(--ink); }
.spot-icon { width: 20px; height: 20px; flex: none; object-fit: contain; border-radius: 0.25rem; margin-bottom: 0.2rem; }
.spot-name { font: 800 1.1rem/1.1 var(--display); font-stretch: 72%; }
.spot-line {
  font-size: 0.8rem; line-height: 1.35; color: var(--graphite);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.spot-open { border-style: dashed; background: transparent; }
.spot-open .spot-name { color: var(--graphite); }
.rail-link { font-size: 0.8rem; color: var(--graphite); text-align: center; align-self: center; }
.rail-link:hover { color: var(--ink); }

/* Phones and narrow screens: moving lines of sponsor chips, fixed at the top and the bottom. */
.line {
  position: fixed; left: 0; right: 0; z-index: 40;
  height: 3.25rem; overflow: hidden;
  background: rgba(238, 240, 242, 0.85); backdrop-filter: blur(6px);
}
.line-top { top: 0; border-bottom: 1px solid var(--rule); }
.line-bottom { bottom: 0; border-top: 1px solid var(--rule); }
.line-track { display: flex; gap: 0.5rem; width: max-content; height: 100%; align-items: center; padding: 0 0.25rem; animation: slide 40s linear infinite; }
.line-bottom .line-track { animation-direction: reverse; }
.line:hover .line-track, .line:focus-within .line-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .line { overflow-x: auto; }
  .line-track { animation: none; }
}
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap;
  padding: 0.45rem 0.8rem; border: 1px solid var(--rule); border-radius: 0.5rem;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.chip img { width: 16px; height: 16px; flex: none; object-fit: contain; border-radius: 0.2rem; }
.chip-open { border-style: dashed; color: var(--graphite); font-weight: 500; }
.chip:hover { border-color: var(--ink); }
/* Room for the rails and lines is reserved in CSS, so the page never shifts when they load. */
body { padding-block: 3.25rem; }

.rail-slot { display: grid; min-height: 0; }
.rail-slot .spot { animation: flip-in 0.45s ease-out; }
@keyframes flip-in { from { opacity: 0; transform: rotateX(70deg); } }
@media (prefers-reduced-motion: reduce) { .rail-slot .spot { animation: none; } }

@media (min-width: 1280px) {
  body { padding-inline: 16.666vw; padding-block: 0; }
  .line { display: none; }
  .rail {
    display: grid; grid-template-rows: repeat(5, minmax(0, 1fr));
    position: fixed; top: 0; width: 16.666vw; height: 100vh;
    gap: 0.9rem; padding: 1rem;
  }
  .rail-left { left: 0; }
  .rail-right { right: 0; grid-template-rows: repeat(5, minmax(0, 1fr)) auto; }
}

/* Short windows: the rail cards get too low for two lines, so they keep the name only. */
@media (min-width: 1280px) and (max-height: 760px) {
  .rail .spot-line, .rail .spot-icon { display: none; }
}

/* ---------- Phones ---------- */

@media (max-width: 720px) {
  .hero { padding-block-start: 2rem; }
  .row { grid-template-columns: 1fr; padding: 1rem 1.1rem; }
  .note { border-right: 0; padding: 0 0 0.5rem; white-space: pre-wrap; }
  .sheet-head, .sheet-foot, .reading { padding-left: 1.1rem; padding-right: 1.1rem; }
      .more { grid-template-columns: 1fr; }
  .tool-hint { display: none; }
  .ask .btn { width: 100%; }
}
