@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1A1A2E;
  --surface: #22223A;
  --border: #3A3A58;
  --dim: #8A8AAC;
  --mid: #A0A0C0;
  --text: #BBBBD8;
  --bright: #D8D8F0;
  --white: #F0F0FF;
  --red: #E74C3C;
  --yellow: #F1C40F;
  --blue: #3498DB;
  --green: #2ECC71;
  --display: "Space Grotesk", sans-serif;
  --sans: "Inter", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(241, 196, 15, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: rgba(241, 196, 15, 0.3);
  color: var(--white);
}

a {
  color: inherit;
}

.page {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 24px 64px;
  position: relative;
  z-index: 1;
}

nav {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border);
  margin-bottom: 48px;
  position: relative;
}

.nav-home {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  border-color: var(--yellow);
  color: var(--yellow);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yellow);
  margin: 4px 0;
}

.hero {
  margin-bottom: 44px;
}

.hero::after,
.prose::after {
  content: "";
  display: block;
  clear: both;
}

.hero .over {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 10px;
}

.hero-photo {
  float: right;
  width: 130px;
  height: 165px;
  object-fit: cover;
  object-position: center top;
  margin: -8px 0 16px 24px;
  border: 3px solid var(--yellow);
  box-shadow: 6px 6px 0 var(--blue);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 12px;
}

.hero .subtitle {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--yellow);
  margin-bottom: 10px;
}

.tagline {
  font-family: var(--display);
  font-size: 18px;
  color: var(--bright);
  margin-bottom: 20px;
}

.hero p {
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.hero p strong,
.prose strong {
  color: var(--yellow);
  font-weight: 500;
}

.chapter {
  margin-bottom: 52px;
}

.chapter-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chapter-label::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--border);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(22px, 3.5vw, 30px);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 18px;
}

.prose {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}

.prose p {
  margin-bottom: 16px;
}

.prose em {
  color: var(--bright);
}

.prose a,
.archive-line a {
  color: var(--bright);
  text-decoration: none;
  border-bottom: 1px solid var(--mid);
}

.prose a:hover,
.archive-line a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.age-timeline {
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
}

.age-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: start;
}

.age-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.age-brick svg {
  display: block;
}

.age-line {
  width: 3px;
  flex: 1;
  min-height: 8px;
}

.age-step:last-child .age-line {
  display: none;
}

.age-step:nth-child(1) .age-line {
  background: var(--red);
}

.age-step:nth-child(2) .age-line {
  background: var(--yellow);
}

.age-step:nth-child(3) .age-line {
  background: var(--blue);
}

.age-step:nth-child(4) .age-line {
  background: var(--green);
}

.age-step:nth-child(5) .age-line {
  background: var(--red);
}

.age-step:nth-child(6) .age-line {
  background: var(--yellow);
}

.age-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  padding: 10px 0 20px 12px;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 52px;
  background: var(--surface);
  border: 2px solid var(--border);
}

.num-item {
  padding: 20px 12px;
  text-align: center;
  border-right: 2px solid var(--border);
}

.num-item:last-child {
  border-right: none;
}

.num-item:nth-child(1) .num-val {
  color: var(--red);
}

.num-item:nth-child(2) .num-val {
  color: var(--green);
}

.num-item:nth-child(3) .num-val {
  color: var(--blue);
}

.num-item:nth-child(4) .num-val {
  color: var(--yellow);
}

.num-val {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
}

.num-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 4px;
}

.project {
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--border);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.project:hover {
  border-color: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--yellow);
}

.status {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 12px;
  background: var(--red);
  color: var(--white);
}

.project h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.project p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.company-block {
  padding: 20px 24px;
  border-left: 4px solid var(--border);
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.company-block:hover {
  border-left-color: var(--yellow);
}

.company-stack .company-block:nth-child(1) {
  border-left-color: var(--red);
}

.company-stack .company-block:nth-child(2) {
  border-left-color: var(--blue);
}

.company-stack .company-block:nth-child(3) {
  border-left-color: var(--green);
}

.company-stack .company-block:nth-child(4) {
  border-left-color: var(--yellow);
}

.company-block h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.company-block p,
.company-note,
.about-preview p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.company-note {
  color: var(--mid);
  margin-top: 16px;
}

.pullquote {
  margin: 40px 0;
  padding: 16px 0 16px 20px;
  border-left: 4px solid var(--blue);
}

.pullquote.alt {
  border-left-color: var(--green);
}

.pullquote blockquote {
  font-family: var(--display);
  font-size: 18px;
  font-style: italic;
  color: var(--bright);
  line-height: 1.55;
}

.pullquote cite {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  color: var(--dim);
  margin-top: 10px;
  font-style: normal;
  letter-spacing: 0.5px;
}

.feed-list {
  list-style: none;
}

.feed-list li {
  border-bottom: 1px solid var(--border);
}

.feed-list a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}

.feed-list a:hover {
  padding-left: 6px;
}

.feed-list a:hover .f-title {
  color: var(--yellow);
}

.f-year,
.f-tag {
  font-family: var(--mono);
  color: var(--mid);
}

.f-year {
  font-size: 11px;
  font-weight: 300;
}

.f-title {
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s;
  line-height: 1.5;
}

.f-tag {
  font-size: 9px;
  font-weight: 300;
  text-align: right;
  white-space: nowrap;
}

.about-preview p:first-child {
  color: var(--bright);
}

.about-preview p:last-child {
  font-family: var(--display);
  font-style: italic;
  color: var(--yellow);
}

.about-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 300;
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
}

.story-photo {
  width: 100%;
  border: 2px solid var(--border);
  margin: 20px 0;
  display: block;
  transition: all 0.3s;
}

.story-photo:hover {
  border-color: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--yellow);
}

.photo-row,
.cooking-grid,
.lego-grid,
.sxsw-row {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.photo-row {
  grid-template-columns: 1fr 1fr;
}

.cooking-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lego-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.sxsw-row {
  grid-template-columns: 1fr 3fr;
}

.photo-row img,
.cooking-grid img,
.lego-grid img,
.sxsw-row img {
  width: 100%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.photo-row img {
  height: 240px;
}

.cooking-grid img,
.lego-grid img {
  height: 200px;
}

.sxsw-row img {
  height: 360px;
}

.sxsw-row img.contain {
  object-fit: contain;
  background: var(--surface);
}

.photo-row img:hover,
.sxsw-row img:hover {
  border-color: var(--green);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--green);
}

.cooking-grid img:hover {
  border-color: var(--red);
  box-shadow: 3px 3px 0 var(--red);
}

.lego-grid img:hover {
  border-color: var(--yellow);
  box-shadow: 3px 3px 0 var(--yellow);
}

.photo-caption,
.small-note {
  font-family: var(--mono);
  color: var(--dim);
}

.photo-caption {
  font-size: 10px;
  font-weight: 300;
  margin-top: -12px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.photo-float {
  max-width: 280px;
  float: right;
  margin: 0 0 16px 20px;
}

.values-box {
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 24px;
  margin: 24px 0;
  position: relative;
}

.values-box::before {
  content: "7";
  position: absolute;
  top: -16px;
  left: 20px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  background: var(--bg);
  padding: 2px 10px;
  line-height: 1;
}

.values-list {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 300;
  color: var(--bright);
  line-height: 2.2;
}

.values-list span {
  color: var(--yellow);
}

.botnode-logo-inline {
  float: left;
  width: 80px;
  height: auto;
  margin: 4px 16px 8px 0;
  border: none;
}

.idea-line,
.accent-line,
.closing-line {
  font-family: var(--display);
}

.idea-line {
  font-size: 22px;
  color: var(--white);
  line-height: 1.4;
  margin: 8px 0 24px;
}

.accent-line,
.closing-line {
  color: var(--yellow);
  font-size: 17px;
  line-height: 1.65;
}

.closing-line {
  margin: 24px 0;
}

.small-note {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 8px 0 12px;
}

.contact-grid,
.project-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 2px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.contact-item:hover {
  border-color: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--yellow);
}

.contact-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mid);
  min-width: 78px;
}

.contact-value {
  font-size: 15px;
  color: var(--bright);
}

.project-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-left: 4px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.project-link:nth-child(1) {
  border-left-color: var(--red);
}

.project-link:nth-child(2) {
  border-left-color: var(--blue);
}

.project-link:nth-child(3) {
  border-left-color: var(--green);
}

.project-link:hover {
  padding-left: 24px;
}

.project-link:hover .project-name {
  color: var(--yellow);
}

.project-name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.2s;
}

.project-url {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  color: var(--mid);
  margin-left: auto;
}

.archive-line,
.speaking-text,
.speaking-cta,
.location-text {
  font-size: 15px;
  line-height: 1.85;
}

.archive-line,
.location-text,
.speaking-text {
  color: var(--text);
}

.archive-line {
  margin-top: 16px;
}

.speaking-text .cities {
  color: var(--bright);
}

.speaking-cta {
  color: var(--bright);
  font-family: var(--display);
}

footer {
  padding: 40px 0 0;
  border-top: 2px solid var(--border);
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.f-left {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  color: var(--dim);
  line-height: 2;
}

.f-left a {
  color: var(--mid);
  text-decoration: none;
}

.f-left a:hover {
  color: var(--yellow);
}

.f-right {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: var(--mid);
  max-width: 300px;
  text-align: right;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.97);
    padding: 16px 24px;
    gap: 14px;
    z-index: 10;
    border-bottom: 2px solid var(--border);
  }

  .hamburger {
    display: block;
  }

  .hero-photo {
    float: none;
    display: block;
    width: 100px;
    height: 126px;
    margin: 0 0 20px;
  }

  .numbers {
    grid-template-columns: 1fr 1fr;
  }

  .num-item:nth-child(2) {
    border-right: none;
  }

  .num-item:nth-child(-n + 2) {
    border-bottom: 2px solid var(--border);
  }

  .feed-list a {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .f-year {
    order: 2;
  }

  .f-tag {
    text-align: left;
    order: 3;
  }

  .photo-row,
  .cooking-grid,
  .lego-grid,
  .sxsw-row {
    grid-template-columns: 1fr;
  }

  .photo-row img,
  .cooking-grid img,
  .lego-grid img,
  .sxsw-row img {
    height: auto;
  }

  .photo-float {
    float: none;
    max-width: 100%;
    margin: 16px 0;
  }

  .botnode-logo-inline {
    float: none;
    display: block;
    margin: 0 0 16px;
    width: 88px;
  }

  .contact-item,
  .project-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-url {
    margin-left: 0;
  }

  footer {
    flex-direction: column;
  }

  .f-right {
    max-width: none;
    text-align: left;
  }
}

/* ==========================================================================
   Blog Styles
   ========================================================================== */

/* Blog post cards on listing page */
.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 24px;
  border: 2px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
}

.post-card:hover {
  border-color: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--yellow);
}

.post-card-inner {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
}

.post-card-thumb {
  width: 140px;
  height: 140px;
  overflow: hidden;
  background: var(--bg);
}

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

.post-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-body {
  padding: 20px 24px;
}

.post-card-meta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.reading-time {
  color: var(--mid);
}

.post-card-body h2 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 8px;
}

.post-card .excerpt {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Chips (category and tag labels) */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--border);
  color: var(--dim);
  text-decoration: none;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.chip-category {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

.chip-category:hover {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

/* Blog post single */
.blog-post {
  margin-bottom: 40px;
}

.post-header {
  margin-bottom: 32px;
}

.post-category-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-block;
  padding: 2px 10px;
  margin-bottom: 16px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s;
}

.post-category-label:hover {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
}

.post-header h1 {
  font-family: var(--display);
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 12px;
}

.post-meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.8px;
  color: var(--dim);
}

.meta-sep {
  margin: 0 6px;
  color: var(--border);
}

.post-featured-image {
  width: 100%;
  height: auto;
  border: 2px solid var(--border);
  margin-bottom: 32px;
  transition: all 0.3s;
}

.post-featured-image:hover {
  border-color: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--yellow);
}

/* Post content article body */
.post-content {
  margin-bottom: 40px;
}

.post-content p:first-of-type {
  font-size: 17px;
  color: var(--bright);
  line-height: 1.85;
}

.post-content h2 {
  font-family: var(--display);
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 700;
  color: var(--white);
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.post-content h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 12px 0 12px 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--bright);
}

.post-content code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--yellow);
  background: var(--surface);
  padding: 2px 6px;
}

.post-content pre {
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  color: var(--text);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--border);
  margin: 1em 0;
  display: block;
  box-sizing: border-box;
  transition: all 0.3s;
}

.post-content img:hover {
  border-color: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--yellow);
}

.post-content hr {
  border: none;
  height: 2px;
  background: var(--border);
  margin: 40px 0;
}

.post-content ul,
.post-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

/* Post tags at bottom */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}

/* Post navigation (prev/next) */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}

.post-nav-item {
  display: block;
  padding: 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.post-nav-item:hover {
  border-color: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--yellow);
}

.post-nav-next {
  text-align: right;
}

.post-nav-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
  display: block;
  margin-bottom: 4px;
}

.post-nav-title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

/* Comments section */
.comments-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.comments-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.comments-label::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--border);
}

.comments-note {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
}

.math-challenge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.math-challenge label {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--bright);
}

.math-challenge input {
  font-family: var(--mono);
  font-size: 14px;
  padding: 8px 12px;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--white);
  width: 100px;
  outline: none;
}

.math-challenge input:focus {
  border-color: var(--yellow);
}

.math-challenge button {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 20px;
  background: var(--yellow);
  color: var(--bg);
  border: 2px solid var(--yellow);
  cursor: pointer;
  transition: all 0.2s;
}

.math-challenge button:hover {
  background: transparent;
  color: var(--yellow);
}

.historical-comments {
  margin-top: 32px;
}

/* Mobile overrides for blog */
@media (max-width: 640px) {
  .post-card-inner {
    grid-template-columns: 1fr;
  }

  .post-card-thumb {
    width: 100%;
    height: 120px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav-next {
    text-align: left;
  }

  .math-challenge {
    flex-direction: column;
    align-items: flex-start;
  }

  .math-challenge input {
    width: 100%;
  }
}

/* Lightbox overlay for About page images */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.lightbox-overlay.active {
  opacity: 1;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 2px solid var(--yellow);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--yellow);
  cursor: pointer;
  z-index: 1001;
  border: 1px solid var(--yellow);
  padding: 4px 10px;
  background: transparent;
  letter-spacing: 1px;
}

.lightbox-close:hover {
  background: var(--yellow);
  color: var(--bg);
}

/* Make prose images show pointer cursor to hint they're clickable */
.prose img,
.post-content img {
  cursor: zoom-in;
}
.lightbox-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.92);z-index:1000;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .2s}
.lightbox-overlay.active{opacity:1;pointer-events:all}
.lightbox-overlay img{max-width:90vw;max-height:90vh;object-fit:contain;border:2px solid #F1C40F}
.lightbox-close{position:fixed;top:20px;right:30px;color:#fff;font-size:36px;font-family:sans-serif;cursor:pointer;z-index:1001}
.post-content img,.prose img{max-width:100%;height:auto;margin:1em 0}

footer{flex-direction:column!important;align-items:center!important;text-align:center!important}
.f-right{text-align:center!important;margin-left:0!important;max-width:100%!important;margin-bottom:16px}
.f-left{text-align:center!important}
