/* James Sackl — Golden Age. Minimal editorial. */
:root {
  --red: #DB0042;
  --red-dark: #B5003A;
  --black: #000;
  --grey: #929292;
  --muted: #999;
  --border: #E8E8E8;
  --bg: #fff;
  --tag-bg: #F4F4F4;
  --bq-bg: #FFF5F7;
}

* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--bg);
  line-height: 1.56;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0 0; }
img { max-width: 100%; }

/* ---------------- NAV ---------------- */
#nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.logo {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--red);
}
.logo:hover { color: var(--red-dark); }
.nav-r {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-r a {
  color: var(--grey);
  font-size: 0.83rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
}
.nav-r a:hover { color: var(--black); }
.nav-r a.nav-icon { color: inherit; gap: 0; }

/* ---------------- PAGE ---------------- */
main { display: block; }
.page {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}
.page-home { padding-top: 0; }
.page-archive,
.page-about,
.page-post { padding-top: 3rem; }

/* ---------------- HOME HERO ---------------- */
.home-hero {
  padding-top: 3rem;
  padding-bottom: 1rem;
}
.home-portrait {
  margin: 1.2rem 0 1.6rem;
}
.home-portrait img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 2px;
}
.about-portrait {
  margin: 1.4rem 0 0;
}
.about-portrait img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 2px;
}
.home-h1 {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
  color: var(--black);
}
.home-tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
}

/* ---------------- HERO ROW (kept for legacy) ---------------- */
.hero-bio {
  padding-top: 1rem;
}
.hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
  margin-bottom: 1.2rem;
}
.hero-label {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  color: var(--red);
}
.hero-row a { color: var(--red); font-weight: 400; }
.hero-row a:hover { color: var(--red-dark); }
.hero-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.hero-text a { color: var(--red); }

/* ---------------- SECTION HEADS ---------------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 2rem 0 0;
  padding-bottom: 0.5rem;
}
.section-h {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  color: var(--black);
}
.section-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.section-link:hover { color: var(--red); }

.more-link {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
}

/* ---------------- PAGE HEADERS ---------------- */
.page-header {
  margin-bottom: 2rem;
}
.page-header h1 {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 0.4rem;
  color: var(--black);
}
.page-header .page-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.page-header .page-sub a { color: var(--red); }

/* ---------------- COMPANY CARDS (homepage + index) ---------------- */
.co-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.co-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.co-card:last-child { border-bottom: 0; }
.co-card-lg {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.co-name {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.co-card-lg .co-name { font-size: 1.4rem; }
.co-name a { color: var(--black); }
.co-name a:hover { color: var(--red); }
.co-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
  color: var(--red);
  margin: 0 0 0.6rem;
}
.co-blurb {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  color: var(--black);
  line-height: 1.55;
  margin: 0 0 0.8rem;
}
.co-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.8;
}
.co-meta a { color: var(--red); }
.co-meta a:hover { color: var(--red-dark); }

/* ---------------- COMPANY DETAIL PAGE ---------------- */
.page-company {
  padding-top: 3rem;
}
.co-header {
  margin-bottom: 2.5rem;
}
.co-header h1 {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 1.95rem;
  line-height: 1.15;
  margin: 0 0 0.4rem;
  color: var(--black);
}
.co-tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  color: var(--red);
  margin: 0 0 1rem;
}
.co-meta-row {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.co-meta-row a { color: var(--muted); }
.co-meta-row a:hover { color: var(--red); }
.co-cta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
}

/* ---------------- POST CARDS (homepage feed) ---------------- */
.post-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.post-card:last-of-type { border-bottom: 0; }
.post-title {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.3;
  margin: 0 0 0.25rem;
}
.post-title a { color: var(--black); }
.post-title a:hover { color: var(--red); }
.post-sub {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--black);
  margin: 0 0 0.5rem;
  line-height: 1.45;
}
.post-excerpt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 0.75rem;
}
.post-excerpt .more { color: var(--red); }
.post-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.meta-tag {
  background: var(--tag-bg);
  color: var(--grey);
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
}
.meta-read { color: var(--muted); }
.meta-read:hover { color: var(--red); }

/* ---------------- SUBSCRIBE ---------------- */
.subscribe {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.subscribe h3 {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
}
.subscribe p {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.subscribe form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.subscribe input {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  font: inherit;
  font-size: 0.9rem;
}
.subscribe button {
  padding: 0.6rem 1.2rem;
  background: var(--red);
  color: #fff;
  border: 0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.subscribe button:hover { background: var(--red-dark); }
.subscribe button:disabled { background: var(--grey); cursor: default; }
.subscribe-msg {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--grey);
  margin: 0.75rem 0 0;
  min-height: 1em;
}

/* ---------------- ARCHIVE ---------------- */
.page-archive h1 {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 1.78rem;
  margin: 0 0 0.25rem;
}
.page-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}
.arch-year {
  margin-bottom: 2.5rem;
}
.arch-year-h {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.arch-year hr { margin: 0 0 1rem; }
.arch-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.arch-row:last-child { border-bottom: 0; }
.arch-row .arch-title {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  color: var(--black);
  font-weight: 400;
  line-height: 1.35;
}
.arch-row:hover .arch-title { color: var(--red); }
.arch-meta {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-shrink: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.arch-cat { color: var(--grey); }
.arch-date { color: var(--muted); }

/* ---------------- POST PAGE ---------------- */
.post-header {
  margin-bottom: 2.5rem;
}
.post-cat {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
}
.post-cat .cat { color: var(--red); }
.post-header h1 {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 1.78rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--black);
}
.post-header .post-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--black);
  margin: 0 0 1.2rem;
}
.post-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.post-body {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--black);
}
.post-body p {
  margin: 0 0 1.2rem;
}
.post-body .lead {
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.post-body h2 {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.6rem;
}
.post-body blockquote {
  margin: 2rem 0;
  padding: 0.7rem 1.4rem;
  border-left: 3px solid var(--red);
  background: var(--bq-bg);
  font-family: "Source Sans 3", sans-serif;
  font-style: italic;
  font-size: 0.97rem;
  color: #333;
}
.post-body blockquote p { margin: 0; }
.post-body strong { font-weight: 700; }

.post-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
}
.post-nav a { color: var(--muted); }
.post-nav a:hover { color: var(--red); }
.pn-newer { margin-left: auto; text-align: right; }

/* ---------------- FOOTER ---------------- */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--red); }
.foot-l, .foot-r { line-height: 1.7; }
.foot-nap {
  width: 100%;
  margin-top: 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  line-height: 1.7;
  font-style: normal;
}
.foot-nap a { color: var(--muted); }
.foot-nap a:hover { color: var(--red); }
.about-nap {
  margin: 0.4rem 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
  font-style: normal;
}
.about-nap a { color: var(--muted); }
.about-nap a:hover { color: var(--red); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 760px) {
  #nav { padding: 1rem 1.2rem; flex-wrap: wrap; gap: 0.5rem; }
  .nav-r { gap: 1rem; }
}
@media (max-width: 600px) {
  #nav { padding: 1rem 1.2rem; }
  .nav-r { gap: 0.7rem; }
  .post-header h1, .page-archive h1 { font-size: 1.5rem; }
  .arch-row { flex-direction: column; gap: 0.3rem; align-items: flex-start; }
}
