/* Font and loading state */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/dm-sans.woff2?v=ca72d2bcea8f4daa)
    format('woff2');
}
html {
  background: var(--bg);
  scrollbar-gutter: stable;
}
@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}
/* Theme and base elements */
:root {
  color-scheme: dark;
  --bg: #141516;
  --text: #f1efec;
  --muted: #a7a8ad;
  --line: #353639;
  --surface: #1d1f22;
  --focus: #d1c5ff;
  --selection: #414348;
  --sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: .25em;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}
::selection {
  background: var(--selection);
  color: var(--text);
}
/* Page shell and archive */
.wrap {
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
}
.site-header {
  padding-block: 48px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.linkedin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  color: var(--muted);
}
.name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.025em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.home-intro {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 32px;
  margin-bottom: 56px;
}
.entry {
  min-width: 0;
  display: flex;
}
/* Editorial entries: a square-cornered cover with text set on the page,
   rather than a raised panel. The cover doubles as the social embed. */
.card {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
}
.card-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: var(--line);
  /* Hairline keeps light images from bleeding into the page. */
  outline: 1px solid #ffffff1a;
  outline-offset: -1px;
  transition: opacity .2s ease;
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
}
/* Title and date share the first line; the date sits on the title's baseline. */
.card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.card h2 {
  font: 500 clamp(1.35rem, 2.4vw, 1.65rem)/1.3 var(--sans);
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
}
.card-date {
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-description {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.55;
  /* Keeps long descriptions from stretching every card in the row. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-block: 32px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
}
.pagination a[aria-current] {
  background: var(--text);
  color: var(--bg);
}
.pagination .unavailable {
  color: var(--muted);
}
/* Article layout and sharing */
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.reading {
  max-width: 66ch;
  margin: 0 auto 56px;
}
.reading h1 {
  font: 600 clamp(2.3rem, 6vw, 3.8rem)/1.2 var(--sans);
  letter-spacing: -.035em;
  text-wrap: balance;
  margin: 0 0 32px;
}
/* Footer and accessibility utilities */
.site-footer {
  padding-block: 20px 40px;
  color: var(--muted);
  font-size: .8125rem;
}
.site-footer p {
  margin: 0;
}
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  background: var(--bg);
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
h1,
h2,
p {
  overflow-wrap: break-word;
}
/* Interaction and responsive overrides */
@media (hover: hover) {
  .card:hover h2 {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
  }
  .card:hover .card-cover {
    opacity: .85;
  }
  .pagination a:not([aria-current]):hover {
    background: var(--surface);
  }
}
@media (max-width: 38rem) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    padding-block: 28px 24px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .card-body {
    padding-top: 14px;
  }
  .reading h1 {
    font-size: 2.55rem;
  }
}
@media (forced-colors: active) {
  .card-cover {
    outline-color: CanvasText;
  }
  .pagination a[aria-current] {
    border: 2px solid Highlight;
  }
}

.pagination {
  flex-wrap: wrap;
}
[hidden] {
  display: none !important;
}
@media (forced-colors: active) {
  :focus-visible {
    outline-color: Highlight;
  }
}
