/* erikfinman.com - one stylesheet, no JavaScript. Mobile first; IBM Plex (SIL OFL 1.1), self-hosted. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/plex-sans.056e4e2459.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;          /* the file is the fixed 400 italic: browsers synthesize the 600 for headings */
  font-display: swap;
  src: url("/fonts/plex-sans-italic.134dc0ee94.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plex-mono-500.a76f53ca66.woff2") format("woff2");
}

:root {
  --ink: #0e1116;
  --text: #262d36;
  --muted: #5a6370;
  --line: #e3e6ea;
  --paper: #ffffff;
  --paper-2: #f4f5f6;
  --accent: #1f5f43;
  --dark: #0b0e12;
  --dark-text: #d9dee4;
  --dark-muted: #9aa4b0;
  --dark-line: #232a33;
  --signal: #7fd3a4;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: 20px;
  --measure: 36em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sentry :focus-visible, .site-footer :focus-visible { outline-color: var(--signal); }
[id] { scroll-margin-top: 112px; }
@media (min-width: 880px) { [id] { scroll-margin-top: 84px; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.kicker {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 14px; text-decoration: none; font-size: 0.9rem;
}
.skip:focus { top: 12px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header { background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.bar > * { min-width: 0; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 1.12rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-flex; align-items: center; flex: none; min-height: 44px;
  font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav-row { display: none; }
.bar .nav { display: none; }
/* room for the focus ring inside the scroll containers */
.bar .nav { padding: 6px; margin: -6px; }
@media (max-width: 879px) {
  .nav-row { display: block; border-top: 1px solid var(--line); }
  /* full-bleed scroller; the fade on the right says there is more ('Publications' peeks in under it) */
  .nav-row .nav {
    display: flex; gap: 0; padding: 0 calc(var(--gutter) - 6px); scroll-padding-inline: 0 56px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  }
  .nav-row .nav::after { content: ""; flex: 0 0 28px; }
  .nav-row .nav a { padding-inline: 6px; letter-spacing: 0.04em; }
  .nav-row .nav a:focus-visible { outline-offset: -2px; }
}
/* the old site's header icons, on screens wide enough for them */
.bar .head-socials { display: none; }
@media (min-width: 1200px) { .bar .head-socials { display: flex; margin: 0 -6px 0 0; } .bar .head-socials a { width: 36px; height: 36px; } .bar .head-socials svg { width: 17px; height: 17px; } }
@media (min-width: 880px) { .bar .nav { display: flex; } .bar { min-height: 68px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  font-family: var(--mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 2px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 9px 14px; font-size: 0.72rem; }
.btn-light { border-color: #fff; color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--dark); }
.btn .arrow { font-family: var(--sans); font-size: 1rem; line-height: 1; }

/* hero */
.hero { padding: 20px 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.portrait { margin: 0; background: var(--paper-2); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 52% 30%; }
.hero h1 { font-size: clamp(1.85rem, 6.4vw, 3.25rem); line-height: 1.1; margin-bottom: 18px; }
.hero .lead { font-size: 1.12rem; color: var(--text); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
@media (max-width: 879px) {
  /* the portrait never fills the first screen: capped by width and by the viewport's height (landscape phones) */
  .portrait { max-width: min(100%, 400px, 52svh); }
}
@media (max-width: 599px) {
  .portrait img { aspect-ratio: 4 / 3; object-position: 52% 8%; }
  .hero .actions .btn { padding-inline: 15px; }
  /* phones: the Sentry card comes right under the headline, so the hardware is in the first screen */
  .hero-grid > div { display: flex; flex-direction: column; }
  .hero .now { order: 1; margin: 0 0 22px; }
  .hero .lead { order: 2; }
  .hero .actions { order: 3; margin-top: 6px; }
}
@media (min-width: 880px) {
  .hero { padding: 44px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
  .hero .lead { font-size: 1.22rem; }
}

/* "now building" card in the hero: the Sentry hardware in the first screen */
.now { display: flex; align-items: center; gap: 14px; margin: 28px 0 0; padding: 10px; max-width: 32rem;
       border: 1px solid var(--line); border-radius: 2px; text-decoration: none; background: var(--paper); }
.now picture, .now img { flex: none; width: 120px; height: 68px; }
.now img { object-fit: cover; background: var(--dark); }
.now .kicker { display: block; margin: 0 0 4px; }
.now-title { display: block; color: var(--ink); font-weight: 600; line-height: 1.3; }
.now:hover { border-color: var(--ink); }
.now:hover .now-title { text-decoration: underline; text-underline-offset: 3px; }

/* socials (footer) */
.socials { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0 0 0 -12px; padding: 0; }
.socials a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--muted); border-radius: 2px; }
.socials a:hover { color: var(--ink); background: var(--paper-2); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

/* Sentry (dark) */
.sentry { background: var(--dark); color: var(--dark-text); padding: 56px 0; }
.sentry h2 { color: #fff; font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: -0.02em; }
.sentry .kicker { color: var(--signal); }
.sentry .sub { font-family: var(--mono); font-weight: 500; font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-muted); margin: 10px 0 0; }
.sentry p { max-width: var(--measure); }
.sentry-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "fig" "body" "specs"; row-gap: 28px; align-items: start; }
.sentry-head { grid-area: head; }
.sentry-fig { grid-area: fig; margin: 0; }
.sentry-body { grid-area: body; }
.sentry-body .actions { margin-top: 28px; }
.sentry .specs { grid-area: specs; }
.sentry figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--dark-line); }
.sentry figcaption { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--dark-muted); margin-top: 10px; }
@media (min-width: 960px) {
  .sentry { padding: 88px 0; }
  .sentry-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: auto auto 1fr; grid-template-areas: "head fig" "body fig" "body specs"; column-gap: 64px; row-gap: 24px; }
}

/* Sentry "at a glance" */
.specs { margin: 0; border-top: 1px solid var(--dark-line); }
.specs div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--dark-line); }
.specs dt { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-muted); }
.specs dd { margin: 0; color: #fff; }
@media (min-width: 600px) and (max-width: 959px) { .specs div { grid-template-columns: 13rem minmax(0, 1fr); gap: 16px; align-items: baseline; } }

/* "as seen in": plain text; every outlet's article is in Publications */
.seen { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.seen .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding-top: 18px; padding-bottom: 18px; }
.seen .kicker { margin: 0; color: var(--muted); }
.seen .outlets { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; color: var(--ink); font-size: 0.95rem; font-weight: 600; letter-spacing: -0.005em; }

/* photo banners: the old site's four section photos, as grayscale bands (baked at build time) */
.banner { position: relative; overflow: hidden; background: var(--dark); min-height: clamp(150px, 22vw, 280px); display: flex; align-items: flex-end; }
.banner picture, .banner img { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner img { object-fit: cover; object-position: 50% 50%; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 11, 14, 0.88) 0%, rgba(9, 11, 14, 0.62) 60%, rgba(9, 11, 14, 0.5) 100%); }
.banner-text { position: relative; z-index: 1; width: 100%; padding-bottom: 28px; padding-top: 40px; }
.banner .num { font-family: var(--mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--signal); margin: 0 0 8px; }
.banner h2 { color: #fff; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.02em; }
@media (min-width: 880px) { .banner-text { padding-bottom: 40px; } }

.section { padding: 56px 0; }
@media (min-width: 880px) { .section { padding: 80px 0; } }

/* about */
.about p { font-size: 1.08rem; max-width: var(--measure); }
.about p:first-child { font-size: clamp(1.3rem, 3.4vw, 1.6rem); line-height: 1.35; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 880px) {
  .about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 48px; align-items: start; }
  .about p:first-child { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .about p:not(:first-child) { grid-column: 2; }
}

/* experience + accomplishments */
.entries { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 26px 0; border-top: 1px solid var(--line); }
.entry h3 { font-size: 1.32rem; }
.entry h3 a { display: inline-block; padding: 8px 0; margin: -8px 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: #b9c0c8; }
.entry h3 a::after { content: "\2009\2197"; content: "\2009\2197" / ""; font-size: 0.75em; color: var(--muted); }
.entry h3 a:focus-visible { outline-offset: 0; }
.entry h3 a:hover { color: var(--accent); text-decoration-color: currentColor; }
.entry .role { font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 6px 0 0; }
.entry > p { margin: 0; max-width: var(--measure); }
@media (min-width: 880px) {
  .entry { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; padding: 32px 0; }
}

/* publications */
.press-group { margin: 0 0 48px; }
.press-group:last-child { margin-bottom: 0; }
.press-title { font-size: 1.18rem; margin: 0 0 14px; }
.press { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
.press li { border-top: 1px solid var(--line); }
.press a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0; text-decoration: none; }
.press .outlet { grid-column: 1; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.press .headline { grid-column: 1; color: var(--ink); font-size: 1.02rem; line-height: 1.4; }
.press .go { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); font-size: 1.05rem; }
.press a:hover .headline { text-decoration: underline; text-underline-offset: 3px; }
.press a:hover .go { color: var(--accent); }
@media (min-width: 880px) {
  .press { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; }
}

/* footer */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 44px 0; }
.foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; }
.foot .name { font-weight: 600; font-size: 1.2rem; color: #fff; margin: 0; }
.foot .socials a { color: var(--dark-muted); }
.foot .socials a:hover { color: #fff; background: var(--dark-line); }
.foot .mail { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 0.86rem; color: var(--dark-text); text-decoration: none; }
.foot .mail:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 880px) {
  .foot { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .foot .socials { margin-left: 0; }
  .foot .mail { justify-self: end; }
}

/* 404: the footer stays at the bottom of the screen */
body:has(.notfound) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.notfound { flex: 1 0 auto; width: 100%; }
.notfound { padding: 96px var(--gutter); text-align: center; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 14px; }
.notfound p { color: var(--muted); }
.notfound .actions { justify-content: center; }
