/*
Theme Name: Binkowski
Theme URI: https://mattbinkowski.com
Author: Matthew Binkowski
Description: Private UX executive portfolio. Single-column monochrome system; all color comes from the work.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: binkowski
*/

/* Tokens — from the design handoff. The only color on this site is product imagery. */
:root {
  --bg: #FFFFFF;
  --ink: #161616;
  --body: #3A3833;
  --sec: #6E6B64;
  --faint: #8F8C84;
  --hair: #DDDAD3;
  --slot-light: #E7E4DD;
  --slot-dark: #1E1E1C;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

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

.col {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; transition: opacity 150ms ease; }
a:hover { opacity: 0.55; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; opacity: 1; }

.link-ink {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.mono { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

img { max-width: 100%; display: block; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 14px;
}
.topbar .site-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.topbar nav { display: flex; gap: 28px; font-size: 14px; }
.topbar nav a { color: var(--sec); }
.topbar nav a.current { color: var(--ink); }

/* Case-study bar variant: back link + section anchors */
.topbar--case { align-items: baseline; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.topbar--case .back { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-right: 20px; }
.topbar--case .anchors { display: flex; gap: 16px; font-family: var(--mono); font-size: 11.5px; }
.topbar--case .anchors a { color: var(--faint); }

/* Intro */
.intro { padding: 58px 0 56px; }
h1, .h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
  text-wrap: balance;
}
.intro .support { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--sec); }
.intro .rail { margin-top: 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: var(--faint); }

/* Work index */
.work-entry { display: block; padding: 28px 0; border-top: 1px solid var(--hair); }
.work-entry .head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.work-entry h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.018em; }
.work-entry .meta { font-family: var(--mono); font-size: 12px; color: var(--faint); white-space: nowrap; }
.work-entry .desc { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--body); max-width: 38em; text-wrap: pretty; }
.work-entry .thumb {
  margin-top: 16px;
  height: 220px;
  border: 1px solid var(--hair);
  overflow: hidden;
  background: var(--slot-dark);
}
.work-entry .thumb img { width: 100%; height: 220px; object-fit: cover; object-position: top; }
.work-entry .thumb--pending {
  background: var(--slot-light);
  display: flex;
  align-items: flex-end;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
}

/* Sections */
.section { padding: 36px 0; border-top: 1px solid var(--ink); }
.section--minor { border-top-color: var(--hair); }
.section h2.heading, .heading { margin: 0 0 14px; font-size: 14px; font-weight: 600; }

/* Ruled rows (career, TL;DR, results, stack, post lists) */
.row { display: flex; gap: 20px; padding: 8px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.row .key { font-family: var(--mono); font-size: 12.5px; color: var(--faint); flex: none; padding-top: 1px; }
.row .key--sm { font-size: 12px; width: 120px; padding-top: 2px; }
.row .key--yr { width: 44px; }
.row .key--num { width: 96px; font-size: 13px; color: var(--ink); }
.row .co { font-weight: 500; }
.row .role { color: var(--sec); }

/* References */
.quote { padding-top: 22px; font-size: 17px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.quote + .quote { margin-top: 24px; padding-top: 0; }
.quote .attr { margin-top: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

/* The recommendations page reads like a book's praise pages: short lines set large, long ones at reading size */
.praise { padding: 36px 0; border-bottom: 1px solid var(--hair); }
.praise:last-of-type { border-bottom: 0; }
.praise p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.praise--lg p { font-size: 23px; line-height: 1.45; letter-spacing: -0.014em; color: var(--ink); }

/* About */
.portrait { width: 260px; height: 260px; border: 1px solid var(--hair); overflow: hidden; }
.portrait img { width: 260px; height: 260px; object-fit: cover; }
.about-copy { margin-top: 24px; color: var(--body); display: flex; flex-direction: column; gap: 16px; }
.about-copy p { margin: 0; }

/* Contact + footer */
.contact { padding: 28px 0 40px; border-top: 1px solid var(--hair); }
.contact .lede { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.contact .links { margin-top: 10px; font-family: var(--mono); font-size: 13px; line-height: 2; }
.contact .links .alt { color: var(--sec); }
.colophon { margin-top: 28px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.colophon a { color: var(--faint); }

.footer-rule { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0 36px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; color: var(--faint); }
.footer-rule a { color: var(--faint); }
.footer-rule a.next { color: var(--ink); }

/* Case study */
.case-hero { padding: 56px 0 0; }
.case-hero .dek { margin-top: 10px; font-size: 18px; line-height: 1.55; color: var(--sec); text-wrap: pretty; }
.screen-row { margin-top: 36px; display: flex; align-items: flex-end; gap: 16px; }
.screen-row .slot { flex: 1; height: 390px; background: var(--slot-dark); border: 1px solid var(--ink); overflow: hidden; }
.screen-row .slot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen-row .slot--center { flex: 1.08; height: 430px; margin-bottom: 20px; }
.screen-row--exec .slot { height: 340px; }
.screen-row--exec .slot img { object-position: bottom; }
.screen-row--exec .slot--center { height: 375px; margin-bottom: 18px; }

.stat { padding: 44px 0 36px; border-bottom: 1px solid var(--hair); }
.stat .figure { display: flex; align-items: baseline; gap: 16px; }
.stat .num { font-size: 96px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat .label { font-size: 18px; color: var(--body); max-width: 14em; line-height: 1.4; }
.stat .sub { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

.case-section { padding: 32px 0; border-bottom: 1px solid var(--hair); }
.case-section:last-of-type { border-bottom: 0; }
.case-section p { margin: 0 0 14px; color: var(--body); text-wrap: pretty; }
.case-section p:last-child { margin-bottom: 0; }
.case-section .lead-in { font-weight: 600; color: var(--ink); }
.case-caption { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: var(--sec); }

/* Full-width landscape product frame, for desktop-software case studies */
.frame { margin-top: 20px; background: var(--slot-dark); border: 1px solid var(--ink); overflow: hidden; }
.frame img { width: 100%; display: block; cursor: zoom-in; }
.case-hero .frame { margin-top: 36px; }

/* Click-to-enlarge: any case image opens large over a white fade */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw; cursor: zoom-out;
  opacity: 0; transition: opacity 0.18s ease;
}
.lightbox.open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; }

/* Architecture diagram */
.diagram { margin-top: 24px; border: 1px solid var(--ink); padding: 20px; font-family: var(--mono); font-size: 11px; color: var(--ink); }
.diagram .box { border: 1px solid var(--ink); padding: 14px; }
.diagram .box--faint { border-color: var(--faint); }
.diagram .box .sub { color: var(--sec); margin-top: 2px; }
.diagram .strong { font-weight: 500; }
.diagram .surfaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.diagram .surfaces div { border: 1px solid var(--faint); padding: 7px; }
.diagram .strip { border: 1px solid var(--faint); padding: 7px; margin-top: 6px; }
.diagram .sync { text-align: center; padding: 6px 0; font-size: 13px; }
.diagram .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.diagram .pair > div { border: 1px solid var(--ink); padding: 12px; }
.diagram .pair--feed { margin-top: 6px; }
.diagram .pair--feed > div:first-child { border: 0; padding: 0; }
.diagram .pair--feed > div:last-child { border-color: var(--faint); }
.diagram .services { border: 1px solid var(--faint); padding: 9px 12px; margin-top: 6px; color: var(--sec); }

/* Blog (hidden) */
.post-list-year { padding: 24px 0 8px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.post-list-year:first-of-type { padding-top: 0; }
.post-row { display: flex; gap: 20px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 16px; }
.post-row .date { font-family: var(--mono); font-size: 12px; color: var(--faint); width: 70px; flex: none; }
.post-row .title { font-weight: 500; }
.pagination { display: flex; justify-content: space-between; align-items: baseline; padding: 24px 0 40px; font-family: var(--mono); font-size: 12px; color: var(--faint); }

.post-header { padding: 56px 0 0; }
.post-header .date { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.post-header h1 { margin-top: 12px; font-size: 28px; letter-spacing: -0.02em; line-height: 1.25; }
.post-body { padding: 24px 0 40px; color: var(--body); }
.post-body p { margin: 0 0 16px; text-wrap: pretty; }
.post-body img { border: 1px solid var(--hair); height: auto; margin: 8px 0; }
.post-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body blockquote { margin: 20px 0; padding-left: 20px; border-left: 1px solid var(--ink); color: var(--sec); }
.post-nav { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0 40px; border-top: 1px solid var(--hair); font-size: 15px; }
.post-nav .dir { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.post-nav .t { font-weight: 500; }
.post-nav .newer { text-align: right; }

/* Forms (gate, search) */
.field {
  width: 100%;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  padding: 13px 14px;
  outline: none;
}
.field:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 14px;
  border: 0;
  border-radius: 0;
  width: 100%;
  cursor: pointer;
}
.btn:hover { opacity: 0.85; }

/* Gate */
.gate-viewport { min-height: 100vh; display: flex; justify-content: center; }
.gate { width: 400px; display: flex; flex-direction: column; justify-content: center; padding: 0 32px; }
.gate .kicker { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.gate h1 { margin-top: 16px; line-height: 1.15; }
.gate .who { margin-top: 8px; font-size: 16px; color: var(--sec); }
.gate .lock { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hair); font-size: 15px; font-weight: 500; }
.gate .field { margin-top: 16px; }
.gate .btn { margin-top: 10px; }
.gate .error { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.gate .escape { margin-top: 32px; font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--faint); }

/* 404 / search */
.simple-page { padding: 72px 0 64px; }
.simple-page .kicker { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.simple-page h1 { margin-top: 14px; }
.simple-page .support { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--sec); max-width: 32em; }
.simple-page .field { margin-top: 28px; max-width: 380px; }
.simple-page .escape-links { margin-top: 24px; display: flex; gap: 32px; font-family: var(--mono); font-size: 12.5px; }
.results-head { padding: 56px 0 24px; }
.results-head h1 { font-size: 28px; letter-spacing: -0.02em; }
.results-head .count { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

/* Mobile */
@media (max-width: 640px) {
  .col { padding: 0 20px; }
  .topbar { padding-top: 20px; }
  .topbar--case .anchors { display: none; }
  .work-entry .head { flex-direction: column; gap: 4px; }
  .work-entry .thumb, .work-entry .thumb img { height: 180px; }
  .screen-row { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .screen-row .slot { flex: 0 0 260px; height: 460px; margin-bottom: 0; scroll-snap-align: start; }
  .screen-row .slot--center { flex: 0 0 260px; height: 460px; }
  .stat .num { font-size: 72px; }
  .diagram .surfaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagram .pair { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .post-header h1 { font-size: 24px; }
}
