/* ==========================================
   Light Theme
   ========================================== */

:root {
  --bg: #faf7f2;
  --text: #2c2825;
  --muted: #2c2825;
  --accent: #b87a18;
  --rule: #e5ddd3;
  --font-serif: "Lora", Georgia, serif;
  --font-mono: "SF Mono", "Cascadia Code", "Courier New", monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Layout */

.container {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

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

.logo {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.75;
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 1px;
  background: var(--muted);
  display: block;
}

/* Homepage tiles */

.post-tile {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-tile:first-child {
  padding-top: 0;
}

.post-tile-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 1.1rem;
}

.post-tile-meta {
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
  letter-spacing: 0.08em;
}

.post-tile-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.post-tile-title a {
  color: inherit;
}

.post-tile-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-tile-excerpt {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.post-tile-tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Post page */

.post-cover {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  margin-bottom: 2rem;
}

.post-meta {
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.post-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.post-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.post-content {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
}

.post-content h2 {
  font-size: 1rem;
  color: var(--accent);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-content h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

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

.post-content ul,
.post-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

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

.post-content strong {
  color: var(--text);
  font-weight: bold;
}

.post-content em {
  font-style: italic;
  color: var(--muted);
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
  margin: 1.5rem 0;
  font-style: italic;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--accent);
}

.post-content pre {
  background: #111111;
  border: 1px solid var(--rule);
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  color: var(--text);
}

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

.post-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.75rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* No posts */

.no-posts {
  color: var(--muted);
  font-size: 0.875rem;
  padding: 2rem 0;
}

/* Magazine layout */

.magazine-hero {
  display: block;
  margin-bottom: 2rem;
  color: inherit;
  text-decoration: none;
}

.magazine-hero:hover .magazine-hero-title {
  color: var(--accent);
}

.magazine-hero-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.magazine-hero-img--empty {
  background: var(--rule);
}

.magazine-hero-meta {
  padding: 1rem 0 0;
  border-top: 2px solid var(--text);
}

.magazine-hero-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text);
  line-height: 1.3;
  margin-top: 0.25rem;
}

.magazine-date {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.magazine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.magazine-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.magazine-card:hover .magazine-card-title {
  color: var(--accent);
}

.magazine-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.magazine-card-img--empty {
  background: var(--rule);
}

.magazine-card-meta {
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--rule);
}

.magazine-card-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text);
  line-height: 1.4;
  margin-top: 0.2rem;
}

@media (max-width: 600px) {
  .magazine-hero-img {
    height: 220px;
  }

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

/* About page */

.about {
}

.about-summary {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2.5rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

.about h2 {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  font-weight: normal;
}

.about-job {
  margin-bottom: 1.75rem;
}

.about-job-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.6rem;
}

.about-job-company {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: bold;
}

.about-job-title {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.about-job-highlights {
  margin: 0 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.about-job-highlights li {
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.about-edu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}

.about-edu-degree {
  font-size: 0.875rem;
  color: var(--text);
}

.about-edu-school {
  font-size: 0.75rem;
  color: var(--muted);
}

.about-skills {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-skill-group {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  font-size: 0.8rem;
  align-items: baseline;
}

.about-skill-name {
  color: var(--text);
}

.about-skill-keywords {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .about-skill-group {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Landing page */

.page-home {
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-home .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.landing {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.landing-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.landing-tagline {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.landing-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.landing-link {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}

.landing-link:first-child {
  border-top: 1px solid var(--rule);
}

.landing-link:hover {
  text-decoration: none;
}

.landing-link:hover .landing-link-label {
  color: var(--accent);
}

.landing-link-label {
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--text);
  white-space: nowrap;
  min-width: 80px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.landing-link-arrow {
  color: var(--accent);
}

.landing-link-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

.landing-section-title {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  font-weight: normal;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.landing-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.landing-card:hover .landing-card-title {
  color: var(--accent);
}

.landing-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.landing-card-img--empty {
  background: var(--rule);
}

.landing-card-meta {
  padding: 0.6rem 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.landing-card-date {
  font-size: 0.7rem;
  color: var(--muted);
}

.landing-card-title {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.4;
}

/* Responsive */

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--rule);
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .post-cover {
    height: 200px;
  }

  .post-title {
    font-size: 1.25rem;
  }

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

  .landing-post {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .archive-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .archive-tags {
    padding-bottom: 0.25rem;
  }
}
