/* ================================================================== home */
.fit { padding: 0 0 4px; }
.fit-form { max-width: 34em; font-family: var(--font-serif); font-size: clamp(22px, 2.5vw, 28px); line-height: 1.5; color: var(--ink); }
.fit-form .fit-line { text-wrap: balance; }
.fit-pick { position: relative; display: inline-block; white-space: nowrap; }
.fit-pick select {
  appearance: none; field-sizing: content;
  max-width: 100%; padding: 0 1.05em 0 .06em; margin: 0;
  border: 0; border-bottom: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 0;
  background: transparent; color: var(--accent);
  font: inherit; font-style: italic; line-height: 1.2; cursor: pointer;
}
.fit-pick select:hover { border-bottom-color: var(--accent); }
.fit-pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.fit-pick select option { font-family: var(--font-sans); font-style: normal; font-size: 16px; color: var(--ink); background: var(--surface); }
.fit-pick .ico { position: absolute; right: 0; top: 50%; width: .8em; height: .8em; translate: 0 -40%; color: var(--accent); pointer-events: none; }
.fit-go { padding: 0; border: 0; border-bottom: 2px solid currentColor; background: none; color: var(--accent); font-style: italic; line-height: 1.2; }
.fit-go:hover { color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.fit-note { margin-top: 12px; font-size: 15px; color: var(--ink-3); }

.section { padding-top: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 30px); }
.section-note { margin: -6px 0 10px; font-size: 15px; color: var(--ink-3); }
.more-link { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }
.more-link .ico { width: 17px; height: 17px; transition: transform .15s var(--ease); }
.more-link:hover .ico { transform: translateX(2px); }

.index { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px 56px; }
.index h3 { margin-bottom: 6px; font-style: italic; font-weight: 500; font-size: 19px; color: var(--ink-2); }
.index ul { list-style: none; padding: 0; }
.index a { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: 16px; }
.index a .dots { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--line-2); translate: 0 -4px; }
.index a .n { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.index a:hover .t { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }

.about-split { display: grid; grid-template-columns: minmax(0, 38rem) max-content; justify-content: space-between; align-items: center; gap: 36px clamp(40px, 7vw, 96px); }
.about p { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
@media (max-width: 880px) {
  .about-split { grid-template-columns: minmax(0, 1fr); }
}

/* The dedication. A slow light passes over the verse, like the lighthouse in the hero,
   and comes to rest on the full stop, which never quite goes dark. */
@property --w { syntax: '<color>'; inherits: false; initial-value: #888; }
.dedication { --rest: 0 1px 20px rgba(4, 6, 12, .9); font-family: var(--font-serif); font-style: italic; font-size: clamp(25px, 2.7vw, 31px); line-height: 1.34; letter-spacing: -.005em; text-shadow: var(--rest); }
.ded-line { display: block; white-space: nowrap; }
.ded-w { --w: var(--ink-2); display: inline-block; color: var(--w); transition: --w .4s var(--ease); }
.dedication .spark-love:hover { --w: #f291a6; }
.dedication .spark-coffee:hover { --w: #cfa07a; }
.ded-dot { color: var(--beam); text-shadow: 0 0 12px var(--beam-glow); }
@media screen and (prefers-reduced-motion: no-preference) {
  .ded-w { animation: ded-beam 12s ease-in-out calc(2s + var(--i) * 130ms) infinite; }
  .ded-dot { animation-name: ded-keep; }
  .dedication.is-away .ded-w { animation-play-state: paused; }
}
@keyframes ded-beam {
  0%, 18%, 100% { color: var(--w); text-shadow: var(--rest); }
  8% { color: var(--beam); text-shadow: 0 0 16px var(--beam-glow); }
}
@keyframes ded-keep {
  0%, 100% { opacity: .62; text-shadow: 0 0 6px var(--beam-glow); }
  10% { opacity: 1; text-shadow: 0 0 20px var(--beam), 0 0 6px var(--beam); }
  50% { opacity: .75; text-shadow: 0 0 9px var(--beam-glow); }
}

/* ================================================================== inner pages */
.page { padding-top: 48px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 46px); line-height: 1.05; }
.page-head p { margin-top: 10px; max-width: 42rem; color: var(--ink-2); font-size: 17px; }
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

/* ---- opportunities */
.browse-search { max-width: 44rem; }
.browse-bar { margin-top: 14px; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 10px; font-size: 14px; color: var(--ink-3); }
.result-bar strong { color: var(--ink); font-weight: 700; }
.more { display: flex; justify-content: center; padding: 26px 0 0; }

/* ---- hiring now */
.hn-search { width: min(100%, 22rem); }
.hn-note p { margin: -2px 0 12px; max-width: 46rem; font-size: 15px; color: var(--ink-2); }
.row.is-new .when-main { color: var(--accent); }
.hn-tag { color: var(--ink-2); font-weight: 600; }
.hn-intern, .hn-grad { color: var(--ok); }
.hn-out { width: 16px; height: 16px; color: var(--ink-3); }
.hn-foot { margin-top: 26px; }

/* ---- deadlines */
.monthbar {
  position: sticky; top: var(--topbar-h); z-index: 5;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--bg) 96%, transparent); border-bottom: 1px solid var(--line);
}
.monthbar::-webkit-scrollbar { display: none; }
.monthbar a { flex: none; padding: 6px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.monthbar a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.monthbar a.is-active { background: var(--ink); color: var(--bg); }
.monthbar .n { margin-left: 5px; font-weight: 400; color: var(--ink-3); }
.monthbar a.is-active .n { color: inherit; opacity: .75; }
.month { scroll-margin-top: calc(var(--topbar-h) + 64px); }
.nodate { margin-top: 44px; color: var(--ink-2); }

/* ---- events */
.ev-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ev-bar .search-field { height: 38px; width: min(100%, 17rem); border-radius: 10px; }
.ev-bar .search-field input { font-size: 15px; padding-left: 40px; }
.ev-bar .search-field > .ico { left: 12px; width: 18px; height: 18px; }

/* ---- perks */
.perk-index { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; font-size: 15px; }
.perk-index a { color: var(--ink-2); text-decoration: none; }
.perk-index a:hover { color: var(--accent); text-decoration: underline; }
.perks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.perk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 240px); gap: 6px 28px; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.perk-name { font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: var(--ink); text-decoration: none; }
.perk-name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .16em; }
.perk-name .ico { display: inline-block; width: 15px; height: 15px; margin-left: 3px; vertical-align: -1px; color: var(--ink-3); }
.perk-what { margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.perk-side { display: flex; flex-direction: column; gap: 3px; padding-top: 3px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.perk-india { font-weight: 700; }
.perk-india.yes { color: var(--ok); }
.perk-india.no { color: var(--urgent); }
.perk-india.maybe { color: var(--ink-3); }
.perk-section { scroll-margin-top: calc(var(--topbar-h) + 20px); }

/* ---- guides */
.guide-list { list-style: none; padding: 0; border-top: 1px solid var(--line); max-width: 46rem; }
.guide-list a { display: block; padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.guide-list a:hover .t { color: var(--accent); text-decoration: underline; text-underline-offset: .16em; }
.guide-list .t { font-family: var(--font-serif); font-size: 22px; line-height: 1.25; }
.guide-list .d { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.reader { display: grid; grid-template-columns: minmax(0, var(--read)) 220px; justify-content: space-between; gap: 64px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px; font-size: 15px; font-weight: 600; text-decoration: none; }
.back-link .ico { rotate: 180deg; width: 17px; height: 17px; }
.toc { position: sticky; top: calc(var(--topbar-h) + 36px); align-self: start; max-height: calc(100vh - var(--topbar-h) - 72px); overflow-y: auto; font-size: 14px; }
.toc p { margin-bottom: 8px; font-weight: 600; color: var(--ink-3); }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); color: var(--ink-3); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { border-left-color: var(--accent); color: var(--ink); }

/* ---- saved */
.saved-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }

/* ================================================================== responsive */
@media (max-width: 1000px) {
  .reader { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .browse-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; }
  .browse-bar::-webkit-scrollbar { display: none; }
  .perk { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 60px; }
  .page { padding-top: 32px; }
}
