@import url("https://api.fontshare.com/v2/css?f[]=switzer@300,400,500,600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600&display=swap");

:root {
  --ink: #11110f;
  --muted: #969691;
  --line: #e8e8e4;
  --panel: #f2f2ef;
  font-family: "Switzer", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overscroll-behavior: none; }
body { margin: 0; overflow: hidden; background: #fff; }
button, a { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
.material-symbols-rounded { font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.discover-wordmark {
  position: fixed;
  top: clamp(22px, 3.4vh, 38px);
  left: clamp(24px, 4vw, 64px);
  z-index: 9;
  font-family: "Space Grotesk", sans-serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -1.05px;
  text-decoration: none;
}
.discover-wordmark:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.discover-feed {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(18px, 3vh, 34px) clamp(20px, 4vw, 64px);
}

.discover-stage {
  position: relative;
  width: min(45vw, 620px);
  height: min(80dvh, 780px);
  min-height: 500px;
}

.discover-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--panel);
  contain: layout paint;
  will-change: transform, opacity, filter;
}
.discover-card:not(.discover-card-peek) { z-index: 2; }
.discover-card-peek { z-index: 1; transform: translateY(calc(100% + 14px)); pointer-events: none; }
.discover-card-peek[hidden] { display: none; }

.discover-card-link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.discover-card-image { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--panel); }
.discover-card-shade { position: absolute; inset: 36% 0 0; background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.08) 40%, rgba(0,0,0,.74) 100%); pointer-events: none; }
.discover-card-copy { position: absolute; z-index: 2; right: 24px; bottom: 24px; left: 24px; text-shadow: 0 1px 18px rgba(0,0,0,.24); }
.discover-card-copy h2 { margin: 0; font-size: clamp(30px, 3vw, 43px); font-weight: 400; line-height: .98; letter-spacing: -1.55px; }
.discover-verified { color: #ffbb00; font-size: .58em; line-height: 1; vertical-align: .08em; font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.discover-experience { display: flex; min-width: 0; align-items: center; gap: 7px; margin: 9px 0 0; color: rgba(255,255,255,.9); font-size: clamp(13px, 1.05vw, 15px); line-height: 1.25; }
.discover-experience span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discover-experience .discover-company { flex: 0 1 auto; color: #fff; font-weight: 500; }
.discover-experience .discover-role { flex: 1 1 auto; }
.discover-experience i { flex: 0 0 auto; color: rgba(255,255,255,.62); font-style: normal; }

.discover-follow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17,17,15,.08);
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 160ms ease, transform 160ms cubic-bezier(.22,1,.36,1), opacity 160ms ease;
}
.discover-follow:hover { background: rgba(17,17,15,.24); transform: scale(1.04); }
.discover-follow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.discover-follow .material-symbols-rounded { font-size: 21px; line-height: 1; }
.discover-follow.is-following { background: rgba(255,255,255,.94); color: var(--ink); text-shadow: none; }
.discover-follow.is-following .material-symbols-rounded { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20; }
.discover-follow:disabled { opacity: .5; cursor: wait; }

.discover-mode-switch {
  position: fixed;
  top: 50%;
  left: clamp(24px, 5.5vw, 88px);
  z-index: 7;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}
.discover-mode-switch button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 4px; border: 0; background: transparent; color: #aaa9a4; font-size: 14px; text-align: left; cursor: pointer; transition: color 160ms ease; }
.discover-mode-switch button:hover, .discover-mode-switch button:focus-visible { color: #5f5f5b; outline: none; }
.discover-mode-switch button.is-active { color: var(--ink); font-weight: 500; }
.discover-mode-switch .material-symbols-rounded { font-size: 18px; }
.discover-mode-switch button.is-active .material-symbols-rounded { font-variation-settings: "FILL" 1, "wght" 450, "GRAD" 0, "opsz" 20; }

.discover-controls {
  position: fixed;
  top: 50%;
  right: clamp(24px, 5.5vw, 88px);
  display: flex;
  height: min(80dvh, 780px);
  min-height: 500px;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 0;
  pointer-events: none;
  transform: translateY(-50%);
}
.discover-controls button { padding: 7px 4px; border: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 400; cursor: pointer; pointer-events: auto; transition: color 150ms ease, opacity 150ms ease; }
.discover-controls button:hover { color: #777773; }
.discover-controls button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.discover-controls button:disabled { opacity: .18; cursor: default; }

.discover-status { position: fixed; bottom: 12px; left: 50%; z-index: 8; margin: 0; color: #7c7c77; font-size: 12px; transform: translateX(-50%); }
.discover-status:empty { display: none; }

.discover-skeleton { position: absolute; inset: 0; overflow: hidden; background: #efefec; }
.discover-skeleton::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.65) 49%, transparent 63%); transform: translateX(-100%); animation: discover-shimmer 1.25s ease-in-out infinite; }
.discover-skeleton-name, .discover-skeleton-role { position: absolute; left: 24px; z-index: 1; display: block; border-radius: 3px; background: rgba(255,255,255,.72); }
.discover-skeleton-name { bottom: 58px; width: 42%; height: 34px; }
.discover-skeleton-role { bottom: 27px; width: 58%; height: 14px; }
.discover-empty { display: grid; height: 100%; place-items: center; padding: 30px; text-align: center; }
.discover-empty div { max-width: 340px; }
.discover-empty h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -1px; }
.discover-empty p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

@keyframes discover-shimmer { to { transform: translateX(100%); } }

@media (max-width: 900px) {
  .discover-wordmark { top: 21px; left: 20px; color: #fff; font-size: 20px; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
  .discover-feed { display: block; padding: 10px 10px calc(70px + env(safe-area-inset-bottom)); }
  .discover-stage { width: 100%; height: calc(100dvh - 104px - env(safe-area-inset-bottom)); min-height: 0; }
  .discover-card { border-radius: 10px; }
  .discover-card-copy { right: 18px; bottom: 20px; left: 18px; }
  .discover-card-copy h2 { font-size: clamp(31px, 9vw, 42px); }
  .discover-experience { max-width: calc(100vw - 56px); font-size: 13px; }
  .discover-follow { top: 12px; right: 12px; width: 38px; height: 38px; }
  .discover-controls { position: fixed; inset: 16px 20px auto 92px; z-index: 8; display: flex; width: auto; height: 34px; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; padding: 0; transform: none; }
  .discover-controls button { min-width: 70px; padding: 8px 2px; color: #fff; font-size: 12px; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
  .discover-mode-switch { top: auto; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 10px; display: grid; height: 48px; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid rgba(17,17,15,.08); border-radius: 10px; background: rgba(255,255,255,.88); box-shadow: 0 5px 20px rgba(17,17,15,.05); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: none; }
  .discover-mode-switch button { justify-content: center; border-radius: 7px; color: #8c8c87; font-size: 13px; }
  .discover-mode-switch button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 5px rgba(17,17,15,.08); }
  .discover-status { bottom: calc(68px + env(safe-area-inset-bottom)); max-width: calc(100vw - 40px); overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .discover-skeleton-name { bottom: 56px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .discover-skeleton::before { animation: none; }
  .discover-follow { transition: none; }
}
