/* ========================================
   CSS Variables - Tactile Minimalism
   ======================================== */
:root {
  --bg-color: #EBEBEB;
  --surface-color: #F5F5F5;
  --text-color: #1A1A1A;
  --accent-orange: #FF5C00;
  --border-color: #BCBCBC;
  --border-width: 1px;
  --border-radius: 2px;
}

/* ========================================
   Reset & Base
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   Typography
   ======================================== */
   h1 {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

   h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 36px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-orange);
}

/* ========================================
   Layout
   ======================================== */
.site-header {
  background-color: var(--surface-color);
  border-bottom: var(--border-width) solid var(--border-color);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem 2rem;
  min-height: calc(100vh - 200px);
}

.site-footer {
  background-color: var(--surface-color);
  border-top: var(--border-width) solid var(--border-color);
  padding: 2rem;
  text-align: center;
  font-size: 12px;
  color: var(--text-color);
  opacity: 0.6;
}

/* ========================================
   Homepage - Hero
   ======================================== */
.hero-section {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.hero-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  max-width: 600px;
  line-height: 1.4;
}

.hero-bio {
  font-size: 16px;
  max-width: 600px;
  line-height: 1.8;
}

.highlight {
  background-color: var(--accent-orange);
  color: white;
  padding: 0 0.25rem;
}

.highlight-animate {
  position: relative;
  display: inline;
  color: var(--text-color);
  padding: 0 0.25rem;
  background: linear-gradient(to right, rgba(255, 92, 0, 0.2) 0%, rgba(255, 92, 0, 0.2) 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
}

.highlight-animate.animate {
  animation: paintHighlight 1.2s ease-out forwards;
}

.highlight-animate.animate[data-delay="0"] {
  animation-duration: 2.4s;
  animation-delay: 0s;
}

.highlight-animate.animate[data-delay="1"] {
  animation-duration: 1.5s;
  animation-delay: 2.4s;
}

.highlight-animate.animate[data-delay="2"] {
  animation-duration: 4.5s;
  animation-delay: 3.9s;
}

.highlight-animate.no-animate {
  background-size: 100% 100%;
}

@keyframes paintHighlight {
  from {
    background-size: 0% 100%;
  }
  to {
    background-size: 100% 100%;
  }
}

/* ========================================
   Section Labels
   ======================================== */
.section-label {
  font-size: 18px;
  color: var(--accent-orange);
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: var(--border-width) solid var(--border-color);
}

/* ========================================
   Work Section
   ======================================== */
.work-section {
  margin-bottom: 6rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-card {
  display: block;
  background-color: var(--surface-color);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  color: var(--text-color);
}

.work-card:hover {
  background-color: rgba(255, 92, 0, 0.15);
  border-color: var(--accent-orange);
  color: var(--text-color);
}

.work-card:active {
  transform: translateY(1px);
}

.work-image {
  width: 100%;
  height: 200px;
  background-color: var(--bg-color);
  border-bottom: var(--border-width) solid var(--border-color);
  overflow: hidden;
  position: relative;
  transition: border-color 0.15s ease;
}

.work-card:hover .work-image {
  border-color: var(--accent-orange);
}

.work-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 92, 0, 0.2);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.work-card:hover .work-image::after {
  opacity: 1;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.15s ease;
}

.work-card:hover .work-image img {
  filter: grayscale(100%);
}

.work-content {
  padding: 1.5rem;
}

.work-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.work-description {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.work-button {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  background-color: var(--bg-color);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all 0.15s ease;
}

.work-button:hover,
.work-card:hover .work-button {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
}

.work-button:active {
  transform: translateY(1px);
}

/* ========================================
   Writing Section
   ======================================== */
.writing-section {
  margin-bottom: 4rem;
}

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

.writing-item {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.writing-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background-color: var(--accent-orange);
  border-radius: 50%;
}

.writing-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  transition: transform 0.15s ease;
}

.writing-link:active {
  transform: translateY(1px);
}

.writing-title {
  font-size: 14px;
  font-weight: 500;
}

.writing-date {
  font-size: 12px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ========================================
   Experience Section
   ======================================== */
.experience-section {
  margin-bottom: 4rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}

.experience-item {
  display: block;
  background-color: var(--surface-color);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  color: var(--text-color);
}

.experience-item:hover {
  background-color: rgba(255, 92, 0, 0.15);
  border-color: var(--accent-orange);
  color: var(--text-color);
}

.experience-item:active {
  transform: translateY(1px);
}

.experience-company {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.experience-title {
  font-size: 14px;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.experience-dates {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 0;
}

/* ========================================
   Post Layout
   ======================================== */
.post {
  max-width: 800px;
  margin: 0 auto;
}

.post-hero {
  margin: 2rem 0 3rem 0;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--surface-color);
}

.post-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.post-header {
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.post-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
}

.post-content {
  font-size: 15px;
  line-height: 1.8;
}

.post-content h1 {
  font-size: 28px;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.post-content h2 {
  font-size: 22px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  font-size: 18px;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content blockquote {
  border-left: 3px solid var(--accent-orange);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  opacity: 0.9;
}

.post-content code {
  background-color: var(--surface-color);
  border: var(--border-width) solid var(--border-color);
  padding: 0.2rem 0.4rem;
  border-radius: var(--border-radius);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}

.post-content pre {
  background-color: var(--surface-color);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content p:has(img) {
  margin-bottom: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  display: block;
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: var(--border-width) solid var(--border-color);
}

.back-link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--surface-color);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all 0.15s ease;
}

.back-link:hover {
  background-color: var(--text-color);
  border-color: var(--text-color);
  color: var(--surface-color);
}

.back-link:active {
  transform: translateY(1px);
}
