/* ============================================================
   Foundingones — early version
   Mood: pink editorial-brutalist panels on black, corner dots,
   grotesque headlines, monospace accents.
   ============================================================ */

:root {
  --pink: #ffe4e4;
  --pink-deep: #ffe4e4;
  --paper: #ffe4e4;
  --jobs-bg: #fff7f7;
  --publish-cta: #141414;
  --publish-bg: #e6d7f6;
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --gap: 1px;
  --radius: 22px;
  --sans: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  letter-spacing: -0.02em;
}

[hidden] { display: none !important; }

html {
  background: #000;
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  padding: 12px 0 0 12px;
}

a { color: inherit; }

/* ---------- Board grid ---------- */

.board {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) 7fr;
  gap: var(--gap);
  max-width: 1400px;
  margin: 0;
  align-items: start;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  position: sticky;
  top: var(--gap);
}

.main {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ---------- Panels ---------- */

.panel {
  position: relative;
  border-radius: var(--radius);
  padding: 52px 28px 28px;
}

.panel--pink  { background: var(--pink); }
.panel--paper { background: #fbb8b8; }
.panel--black { background: #242323; color: var(--pink); }

/* corner dots, like screws on a plate */
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.panel::before { left: 18px; }
.panel::after  { right: 18px; }
.panel--black::before,
.panel--black::after { background: var(--pink); }

.panel__label {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.panel--black .panel__label { color: var(--pink); }

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

.panel--hero {
  display: flex;
  height: 31vh;
  max-height: 330px;
}

.site-sticky-shell > .panel { width: 100%; }

.hero__inner {
  margin: auto;
  text-align: center;
  padding: 40px 0;
}

.hero__title {
  font-size: clamp(50px, 3.0vw, 36px);
  font-weight: 600;
  line-height: 1.16;
}

.hero__subtitle {
  display: block;
  margin-top: 8px;
  font-size: 0.48em;
  font-weight: 500;
}

/* ---------- Mark + About row ---------- */

.rail__split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--gap);
  align-items: stretch;
}

.panel--mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
}

.mark {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(70px, 7vw, 120px);
  line-height: 0.9;
  text-align: center;
}
.mark span { display: block; }

.panel--about { font-size: 16.5px; }
.about__text { text-align: center; max-width: 34em; margin: 0 auto 0.9em; }
.about__text:last-child { margin-bottom: 0; }

/* ---------- Pills (footer links) ---------- */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  display: inline-block;
  padding: 9px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  transition: background 120ms ease, color 120ms ease;
}
.pill:hover { background: var(--ink); color: var(--pink); }

.panel--back { padding: 18px 28px; }

.panel--publish {
  background: var(--publish-bg);
  text-align: center;
}

.panel--publish .panel__label { color: var(--ink); }
.panel--publish::before,
.panel--publish::after { background: var(--ink); }

.publish__cta {
  display: inline-block;
  color: var(--publish-cta);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}

.publish__cta:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Jobs panel ---------- */

.panel--jobs {
  background: var(--jobs-bg);
  padding-bottom: 12px;
}

.toolbar-sentinel {
  height: 1px;
  margin-bottom: -1px;
  pointer-events: none;
}

.jobs__toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: calc(100% + 56px);
  margin-left: -28px;
  gap: 14px;
  padding: 12px 28px 22px;
  background: var(--jobs-bg);
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  transition: box-shadow 160ms ease;
}

.jobs__toolbar.is-stuck {
  box-shadow: 0 10px 16px -14px rgba(20, 20, 20, 0.275);
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 550;
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.06);
  color: rgba(20, 20, 20, 0.8);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.chip:hover { background: var(--ink); color: rgba(243, 239, 233, 0.8); }
.chip.is-active,
.chip--toggle[aria-pressed="true"] {
  background: var(--ink);
  color: rgba(243, 239, 233, 0.8);
}

.searchrow {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

.searchbox {
  position: relative;
  flex: 1 1 260px;
}

.search {
  width: 100%;
  height: 40px;
  font-family: var(--mono);
  font-size: 14px;
  padding: 10px 52px 10px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.06);
  color: var(--ink);
  outline: none;
}
.search::placeholder { color: var(--ink-soft); opacity: 0.7; }
.search::-webkit-search-cancel-button { -webkit-appearance: none; }
.search:focus { background: rgba(20, 20, 20, 0.1); }

.search__clear {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.12);
  color: rgba(20, 20, 20, 0.65);
  font: 600 20px/1 var(--sans);
  cursor: pointer;
  transform: translateY(-50%);
}

.search__clear:hover { background: rgba(20, 20, 20, 0.2); }

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
}

.count { white-space: nowrap; }

/* ---------- Job rows ---------- */

.jobs { list-style: none; }

.job {
  position: relative;
  width: calc(100% + 56px);
  margin-left: -28px;
  padding: 30px 32px;
  transition: background-color 140ms ease;
}

.job:not(:last-child) {
  background: repeating-linear-gradient(
      to right,
      rgba(20, 20, 20, 0.2) 0 6px,
      transparent 6px 12px
    )
    left 12px bottom / calc(100% - 24px) 1px no-repeat;
}

.job:hover,
.job.is-touched { background-color: rgba(20, 20, 20, 0.05); }

.job:not(:last-child)::before,
.job:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: -20px;
  width: 12px;
  height: 40px;
  background: #0f0101;
  pointer-events: none;
}

.job:not(:last-child)::before {
  left: 0;
  clip-path: path("M 0 0 C 0 10 3 17 12 20 C 3 23 0 30 0 40 Z");
}

.job:not(:last-child)::after {
  right: 0;
  clip-path: path("M 12 0 C 12 10 9 17 0 20 C 9 23 12 30 12 40 Z");
}

.job__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.job__meta { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; color: var(--ink-soft); }

.job__title {
  font-size: clamp(24px, 2.2vw, 28px);
  font-weight: 600;
  margin: 6px 0 10px;
  line-height: 1.2;
}

.job__desc {
  font-size: 15.5px;
  letter-spacing: -0.01em;
  max-width: 60em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.job__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.job__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 0;
  border-radius: 9px;
  background: rgba(20, 20, 20, 0.06);
  color: rgba(20, 20, 20, 0.8);
}

.job__apply {
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 22px;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
}
.job__apply:hover { background: var(--ink); color: var(--paper); }
.job__apply::after { content: " ↗"; }

.jobs__empty { padding: 40px 4px; text-align: center; color: var(--ink-soft); }

/* ---------- Post-a-job typewriter block ---------- */

.panel--post { text-align: center; }

.post__wanted {
  display: block;
  font-family: var(--mono);
  font-size: clamp(22px, 3.2vw, 44px);
  line-height: 1.25;
  text-decoration: none;
  padding: 30px 0 14px;
}
.post__wanted:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Job detail page ---------- */

.panel--role { background: var(--jobs-bg); }

.board--single {
  display: block;
  max-width: 760px;
}

.job__link { text-decoration: none; }
.job__link:hover { text-decoration: underline; text-underline-offset: 4px; }

.panel--company { display: flex; }

.company-sticky-shell > .panel { width: 100%; }

.company__inner {
  margin: auto;
  width: 100%;
  text-align: center;
  padding: 20px 0;
}

.company__kicker { color: var(--ink-soft); margin-bottom: 14px; }

.company__name {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 28px;
}

.facts {
  max-width: 340px;
  margin: 0 auto;
  text-align: left;
}

.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
}
.facts__row:last-child { border-bottom: 0; }
.facts__row dt { color: var(--ink-soft); }
.facts__row dd { font-size: 14.5px; text-align: right; }

.pill--solid { background: var(--ink); color: var(--pink); }
.pill--solid:hover { background: transparent; color: var(--ink); }

.role__head { padding-bottom: 24px; border-bottom: 1px solid var(--ink); }

.role__title {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 14px;
}

.role__lede { font-size: 17px; max-width: 42em; margin-bottom: 16px; }

.role__section { padding: 26px 0 4px; }

.role__heading { color: var(--ink-soft); margin-bottom: 12px; }

.role__text { font-size: 15px; max-width: 46em; }

.role__list {
  list-style: none;
  max-width: 46em;
}
.role__list li {
  font-size: 15px;
  padding: 8px 0 8px 26px;
  position: relative;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
}
.role__list li:last-child { border-bottom: 0; }
.role__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-family: var(--mono);
}

.role__cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.role__note { color: var(--ink-soft); }

/* ---------- Blog page ---------- */

.board--blog {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--gap);
}

.panel--blog-hero {
  min-height: 280px;
  display: flex;
}

.blog__intro {
  margin: auto;
  max-width: 560px;
  padding: 8px 0;
  text-align: center;
}

.blog__back {
  display: inline-block;
  margin-bottom: 14px;
}

.blog__title {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 600;
  line-height: 0.95;
  margin-bottom: 20px;
  text-align: center;
}

.blog__lede {
  max-width: 42em;
  color: var(--ink-soft);
  text-align: left;
}

.blog__empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
}

.blog__empty-inner { max-width: 440px; }
.blog__empty-title { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.blog__empty-text { color: var(--ink-soft); margin-bottom: 24px; }

.blog__posts { padding-bottom: 36px; }

.blog-card { padding: 22px 0 8px; }
.blog-card__meta { color: var(--ink-soft); margin-bottom: 16px; }
.blog-card__title { font-size: clamp(30px, 5vw, 48px); line-height: 1.05; margin-bottom: 16px; }
.blog-card__title a { text-decoration: none; }
.blog-card__title a:hover { text-decoration: underline; text-underline-offset: 5px; }
.blog-card__excerpt { max-width: 48em; color: var(--ink-soft); margin-bottom: 24px; }

.article__header { padding-bottom: 18px; border-bottom: 1px dashed rgba(20, 20, 20, 0.18); }
.article__title { font-size: clamp(38px, 7vw, 68px); line-height: 0.98; margin: 16px 0 20px; }
.article__meta { color: var(--ink-soft); }
.article__body { max-width: 650px; padding-top: 28px; }
.article__body p { font-size: 17px; line-height: 1.65; margin-bottom: 1.4em; }
.article__body h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
  margin: 1.8em 0 0.7em;
}
.article__body ul,
.article__body ol {
  padding-left: 1.35rem;
  margin: 0 0 1.5em;
}
.article__body li {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 0.75em;
}
.article__table-wrap {
  width: min(100%, calc(100vw - 48px));
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(20, 20, 20, 0.16);
}
.article__body table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}
.article__body th,
.article__body td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid rgba(20, 20, 20, 0.14);
  border-bottom: 1px solid rgba(20, 20, 20, 0.14);
}
.article__body th {
  background: var(--pink);
  font-weight: 750;
}
.article__body tr:last-child td { border-bottom: 0; }
.article__body th:last-child,
.article__body td:last-child { border-right: 0; }

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

.panel--footer { padding: 44px 28px 20px; text-align: center; }
.footer__note { color: var(--ink-soft); }
.footer--mobile { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .board { grid-template-columns: 1fr; }
  .rail { position: static; }
  .panel--hero {
    height: auto;
    max-height: none;
  }
  .hero__inner { padding: 30px 0; }
}

@media (max-width: 560px) {
  body {
    padding: 0;
    overflow-x: hidden;
  }
  .board,
  .panel { width: 100%; }
  .board > *,
  .main,
  .panel--jobs,
  .jobs__toolbar { min-width: 0; }
  .panel { padding: 48px 18px 20px; }
  .hero__title { font-size: 34px; }
  .panel--back { display: none; }
  #home-board > .rail { display: contents; }
  #home-board .site-sticky-shell {
    position: sticky;
    top: 0;
    z-index: 0;
    padding-top: 12px;
    background: #000;
  }
  #home-board .rail__split,
  #home-board .panel--publish,
  #home-board .panel--links,
  #home-board > .main {
    position: relative;
    z-index: 1;
  }
  #home-board .rail__split > .panel,
  #home-board .panel--publish,
  #home-board .panel--links,
  #home-board > .main > .panel {
    box-shadow: 0 -10px 20px -16px rgba(0, 0, 0, 0.18);
  }
  #home-board .panel--mark {
    box-shadow: 0 10px 20px -16px rgba(0, 0, 0, 0.3);
  }
  #detail-board > .rail { display: contents; }
  #detail-board .company-sticky-shell {
    position: sticky;
    top: 0;
    z-index: 0;
    padding-top: 12px;
    background: #000;
  }
  #detail-board > .main {
    position: relative;
    z-index: 1;
  }
  #detail-board .panel--role {
    box-shadow: 0 -10px 20px -16px rgba(0, 0, 0, 0.18);
  }
  .footer--desktop { display: none; }
  .footer--mobile { display: block; }
  .rail__split { grid-template-columns: 2fr 3fr; }
  .panel--mark { min-height: 140px; }
  .filters {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .jobs__toolbar {
    position: relative;
    top: auto;
    width: calc(100% + 36px);
    margin-left: -18px;
    padding-inline: 18px;
  }
  .jobs__toolbar.is-stuck { box-shadow: none; }
  .job {
    width: calc(100% + 36px);
    margin-left: -18px;
    padding-inline: 22px;
  }
  .job__title { font-size: 28px; }
  .job__top { flex-direction: column; gap: 4px; }
}
