/* vishalanand.app — one family (Bricolage Grotesque), cobalt + white, yellow only for warnings */
:root {
  --cobalt: #2438f0;
  --cobalt-deep: #1a28b8;
  --cobalt-tint: #eef0ff;
  --ink: #14163a;
  --muted: #5b5f7a;
  --paper: #ffffff;
  --caution: #ffd23f;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* site rule: everything is lowercase */
body {
  text-transform: lowercase;
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--caution);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ landing */
.hello {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cobalt);
  color: #fff;
  display: grid;
  align-items: end;
  padding: 24px 22px max(40px, env(safe-area-inset-bottom));
}

.hello h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(64px, 19vw, 210px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  max-width: 8.5ch;
}

.hello h1 span {
  display: block;
}

.hello {
  position: relative;
}

.hello-nav {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: 22px;
}

.hello-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
}

.hello-nav a:hover {
  border-bottom-color: #fff;
}

@media (min-width: 900px) {
  .hello {
    padding: 6vw;
  }
  .hello-nav {
    top: 40px;
    right: 6vw;
  }
}

/* ------------------------------------------------------------------ resource page */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  max-width: 760px;
  margin: 0 auto;
  font-weight: 600;
  font-size: 16px;
}

.top a {
  text-decoration: none;
  padding: 8px 0;
}

.top .links {
  display: flex;
  gap: 20px;
}

.top a:hover {
  color: var(--cobalt);
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}

.intro {
  margin-bottom: 20px;
}

.intro h1 {
  font-weight: 800;
  font-size: clamp(44px, 13vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 12px 0 12px;
  color: var(--cobalt);
}

.intro .lede {
  font-size: 19px;
  margin: 0 0 20px;
  color: var(--muted);
}

/* one tappable row per company */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list a {
  display: grid;
  grid-template-columns: 40px 1fr 16px;
  align-items: center;
  column-gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  border-top: 1.5px solid var(--cobalt-tint);
}

.list li:first-child a {
  border-top: 0;
}

.list a::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2.5px solid var(--cobalt);
  border-right: 2.5px solid var(--cobalt);
  transform: rotate(45deg);
  justify-self: center;
}

.list a:hover strong {
  color: var(--cobalt);
}

.list .n {
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--cobalt);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.list .b {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.list strong {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.list .b span {
  font-size: 16px;
  line-height: 1.35;
  color: var(--muted);
}

.list em {
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  color: var(--cobalt);
  margin-top: 2px;
}

.note {
  margin: 28px 0 12px;
  font-size: 16px;
  color: var(--muted);
}

.warn {
  margin: 28px 0 0;
  background: var(--caution);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
}

/* the resources index: same rows, no rank numbers */
.list.plain a {
  grid-template-columns: 1fr 16px;
  padding: 18px 0;
}
