/* ---------------------------------------------------------------
   hellobteam.com — shared stylesheet
   Every page on the site loads this file. Add a page by copying
   the shell from index.html; the type, spacing and color all come
   from here.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- tokens ---------- */

:root {
  --bg: #0e0c12;
  --panel: #16131d;
  --fg: #ece8f2;
  --muted: #9a93ab;
  --rule: #292434;
  --accent: #b79cff;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter Variable", Inter, ui-sans-serif, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:focus-visible,
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  background: var(--panel);
  border: 1px solid var(--rule);
}

/* ---------- layout ---------- */

.page {
  max-width: 62rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

@media (min-width: 52em) {
  .page {
    padding: 6rem 3rem 7rem;
    display: grid;
    grid-template-columns: 15rem 1fr;
    gap: 4.5rem;
    align-items: start;
  }
}

/* ---------- rail ---------- */

.rail {
  margin-bottom: 3.5rem;
}

@media (min-width: 52em) {
  .rail {
    position: sticky;
    top: 6rem;
    margin-bottom: 0;
  }
}

.rail .name {
  font-family: var(--serif);
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.rail .name a {
  color: inherit;
}
.rail .name a:hover {
  text-decoration: none;
  color: var(--accent);
}

.rail .tagline {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

@media (min-width: 52em) {
  nav ul { display: block; }
  nav li + li { margin-top: 0.375rem; }
}

nav a {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

nav a:hover {
  color: var(--fg);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--fg);
}

nav a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.2em;
  margin-right: 0.5em;
}

/* ---------- sections ---------- */

section + section {
  margin-top: 4.5rem;
}

h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--rule);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 1.25rem;
  text-wrap: pretty;
}

.lede em {
  font-style: italic;
  color: var(--accent);
}

.about-copy {
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
  text-wrap: pretty;
}

/* Marks copy that's still a placeholder. Delete the class="todo" when you
   replace the text and it goes back to normal styling. */
.todo {
  color: var(--accent);
  border-left: 2px dashed var(--rule);
  padding-left: 0.75rem;
}

/* ---------- experience ---------- */

.job {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.job:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.job:first-child {
  padding-top: 0;
}

.job-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

.meta {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.role {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
}

.summary {
  margin: 0.625rem 0 0;
  color: var(--muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.pull {
  margin: 1rem 0 0;
  padding: 0.875rem 1.125rem;
  background: var(--panel);
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.4375rem;
  line-height: 1.3;
}

ul.points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 58ch;
}

ul.points li {
  position: relative;
  padding-left: 1.25rem;
  margin-top: 0.375rem;
  color: var(--muted);
  text-wrap: pretty;
}

ul.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

ul.stints {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

ul.stints li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.375rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

/* ---------- cards ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.5rem;
  max-width: 34rem;
}

.card p {
  margin: 0.375rem 0 0;
  color: var(--muted);
}

/* ---------- contact ---------- */

.contact-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 1.0625rem;
}

/* ---------- selected work grid ---------- */

.work-grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 44em) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

.work-grid > figure {
  margin: 0;
}

/* The image slot. Keeps every card the same shape whether it holds a real
   image or the dashed placeholder, so the grid never jumps as you fill it in. */
.shot {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 1rem;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Generic empty-image slot. Works on .shot, .portrait and .pursuit-shot —
   anything with a fixed aspect ratio. Delete the element once a real
   <img> is in place. */
.empty {
  border: 1px dashed var(--rule);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.empty span {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  max-width: 24ch;
  line-height: 1.5;
  word-break: break-word;
}

.work-grid figcaption h3 {
  font-size: 1.5rem;
  margin: 0 0 0.125rem;
}

.work-grid .kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-grid figcaption p {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- about page ---------- */

.intro {
  max-width: 34rem;
}

.intro p {
  margin: 0 0 1.125rem;
  text-wrap: pretty;
}

.portrait {
  max-width: 26rem;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0 0 2rem;
  background: var(--panel);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pursuits {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pursuits > li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40em) {
  .pursuits > li {
    grid-template-columns: 13rem 1fr;
    gap: 1.75rem;
    align-items: start;
  }
}

.pursuits > li:first-child {
  padding-top: 0;
}

.pursuit-shot {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
}

.pursuit-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pursuits h3 {
  font-size: 1.375rem;
  margin: 0 0 0.25rem;
}

.pursuits p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
}

/* ---------- prose (for a future /writing section) ---------- */

.prose {
  max-width: 34rem;
}

.prose h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.prose .dateline {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 2rem;
}

.prose p,
.prose li {
  margin: 0 0 1.125rem;
  text-wrap: pretty;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg);
  border-bottom: 0;
  padding-bottom: 0;
  margin: 2.5rem 0 0.75rem;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1.125rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-list li {
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-list h3 {
  font-size: 1.375rem;
  margin: 0 0 0.25rem;
}

.post-list p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notfound .code {
  font-family: var(--serif);
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 0.9;
  color: var(--accent);
  margin: 0 0 1rem;
}

/* ---------- footer ---------- */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
}

footer p {
  margin: 0;
}
