:root {
  --bg: #f6f2ec;
  --text: #1f1f1f;
  --muted: #666;
  --link: #3b5bdb;
}

/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Libre Baskerville", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* Layout */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  margin-bottom: 64px;
}

.nav a {
  margin-right: 18px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}

.nav a:hover {
  text-decoration: underline;
}

/* Main */
.main {
  flex: 1;
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: start;
  gap: 40px;
}

/* Art */
.art {
  display: flex;
  justify-content: center;
}

.art img {
  max-width: 320px;   /* 👈 bigger image */
  height: auto;
}

/* Content */
.content {
  max-width: 460px;
}

.tagline {
  font-size: 1.35rem;
 /* margin-bottom: 56px;*/
}

/* Links */
.links a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: center;
}

.links span {
  color: var(--link);
  padding-left: 6px;
}

.links a:hover span {
  padding-left: 10px;
  transition: padding-left 0.15s ease;
}

/* Footer */
.footer {
  margin-top: 64px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 768px) {
  .page {
    padding: 32px 20px;
  }

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

  /*.art {
    order: -1; /* 👈 image first on mobile */
    margin-bottom: 40px;
    /* justify-content: flex-start; */
  }*/

  /*.art img {
    max-width: 240px;
  }*/

  .tagline {
    font-size: 1.25rem;
  }
}



/* Narrow layout for reading pages */
.page.narrow {
  max-width: 680px;
}

/* Narrow content for non-home pages */
main.narrow-content {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Active nav item */
.nav .active {
  text-decoration: underline;
}

/* Page title */
.page-title {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

/* Intro text */
.page-intro {
  margin-bottom: 56px;
  color: var(--muted);
}

/* Project list */
.project {
  margin-bottom: 56px;
}

.project-title {
  text-decoration: none;
  color: var(--text);
  font-size: 1.15rem;
}

.project-title span {
  color: var(--link);
  padding-left: 6px;
}

.project-title:hover span {
  padding-left: 10px;
  transition: padding-left 0.15s ease;
}

.project-desc {
  margin: 12px 0 6px;
}

.project-meta {
  font-size: 0.85rem;
  color: var(--muted);
}


/* Projects page structure */

.year-block {
  margin-bottom: 72px;
}

.year {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.category {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 32px 0 16px;
}

.project {
  margin-bottom: 24px;
}

.project-date {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.project-title {
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
}

.project-title span {
  color: var(--link);
  padding-left: 6px;
}

.project-title:hover span {
  padding-left: 10px;
  transition: padding-left 0.15s ease;
}

.project-desc {
  margin: 6px 0 0;
}

.github-note {
  margin-top: 48px;
  font-size: 0.9rem;
  color: var(--muted);
}

.github-note a {
  color: var(--text);
}


/* 404 Page */

.not-found {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 40px;
  align-items: center;
}

.nf-art img {
  max-width: 260px;
  height: auto;
}

.nf-text h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.nf-text p {
  margin-bottom: 24px;
  color: var(--muted);
}

.nf-link {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
}

.nf-link:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .not-found {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .nf-art {
    order: -1;
    margin-bottom: 32px;
  }

  .nf-art img {
    max-width: 220px;
  }
}

/* Lost Cat 404 */

.lost {
  margin-top: 96px;
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 48px;
  align-items: center;
}

.lost-art img {
  max-width: 300px;
  height: auto;
}

.lost-text h1 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.lost-text p {
  color: var(--muted);
  margin-bottom: 32px;
}

.home-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--text);
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}

.home-btn:hover {
  background: var(--text);
  color: var(--bg);
}

/* Mobile */
@media (max-width: 768px) {
  .lost {
    grid-template-columns: 1fr;
    margin-top: 56px;
    text-align: left;
  }

  .lost-art {
    order: -1;
    margin-bottom: 32px;
  }

  .lost-art img {
    max-width: 240px;
  }
}

/* Notes page */

.notes-list {
  margin-top: 48px;
}

.note {
  margin-bottom: 48px;
}

.note-title {
  text-decoration: none;
  color: var(--text);
  font-size: 1.15rem;
}

.note-title span {
  color: var(--link);
  padding-left: 6px;
}

.note-title:hover span {
  padding-left: 10px;
  transition: padding-left 0.15s ease;
}

.note-desc {
  margin: 10px 0 6px;
}

.note-date {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Single note page */

.note-page {
  margin-top: 48px;
}

.note-title-single {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.note-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.note-content p {
  margin-bottom: 24px;
}

.back-link {
  margin-top: 48px;
}

.back-link a {
  text-decoration: none;
  color: var(--text);
}

.back-link a:hover {
  text-decoration: underline;
}

/* Single project page */

.project-page {
  margin-top: 48px;
}

.project-title-single {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.project-meta-single {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.project-content p {
  margin-bottom: 24px;
}

.project-content a {
  color: var(--text);
  text-decoration: none;
}

.project-content a:hover {
  text-decoration: underline;
}
