@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  --sketch-bg: #f5efe0;
  --sketch-ink: #3d2b1f;
  --sketch-ink-light: #6b5744;
  --sketch-ink-muted: #9a876e;
  --sketch-border: #3d2b1f;
  --sketch-accent: #8b4513;
}

body {
  background: var(--sketch-bg);
  color: var(--sketch-ink);
  font-family: 'Source Serif 4', Georgia, serif;
  margin: 0;
  min-height: 100vh;
}

/* Header / Nav */
header {
  background: var(--sketch-bg) !important;
  border-bottom: 2px dashed var(--sketch-border) !important;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 0.5rem 0;
}
.logo-link {
  font-family: 'Caveat', cursive !important;
  font-weight: 700 !important;
  font-size: 2rem !important;
  text-decoration: none;
  color: var(--sketch-ink) !important;
}
.logo-link:hover {
  color: var(--sketch-accent) !important;
}
.main-nav {
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sketch-ink) !important;
  font-family: 'Caveat', cursive !important;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--sketch-accent) !important;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 4px;
}
.nav-links a i {
  font-size: 0.8rem;
  color: var(--sketch-ink-muted);
}
.menu-toggle {
  display: none;
  background: none;
  border: 2px dashed var(--sketch-border);
  cursor: pointer;
  padding: 0.5rem 0.6rem;
}
.bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--sketch-ink);
  transition: all 0.3s;
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: var(--sketch-bg);
    border: 2px dashed var(--sketch-border);
    padding: 0.5rem 1rem;
    z-index: 99;
  }
  .nav-links.active { display: flex; }
  .nav-links a { width: 100%; padding: 0.6rem 0.5rem; }
  .menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Footer */
footer {
  background: #ebe5d6 !important;
  border-top: 2px dashed var(--sketch-border) !important;
  color: var(--sketch-ink-light);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.88rem;
  margin-top: 3rem;
}
footer .container {
  max-width: 1000px;
  margin: 0 auto;
}
footer a {
  color: var(--sketch-accent) !important;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
  text-decoration-style: wavy;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 2.5rem 1.5rem;
}
.footer-logo .logo-link {
  font-size: 1.5rem !important;
}
.footer-logo p {
  color: var(--sketch-ink-muted);
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
}
.footer-links h3,
.footer-social h3 {
  color: var(--sketch-ink);
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { font-size: 0.85rem; }
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icons a {
  color: var(--sketch-ink-muted) !important;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.social-icons a:hover {
  color: var(--sketch-accent) !important;
}
.footer-bottom {
  border-top: 1px dashed var(--sketch-ink-muted);
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}
.footer-bottom p { margin: 0.2rem 0; }

/* Sketch Container */
.sketch-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Divider */
.sketch-divider {
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--sketch-ink-muted);
  margin: 2rem 0;
  letter-spacing: 0.5em;
}

/* Hero */
.sketch-hero-section {
  text-align: center;
  padding: 2rem 0 0;
}
.sketch-site-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin: 0 0 0.5rem;
  color: var(--sketch-ink);
  line-height: 1;
}
.sketch-site-desc {
  color: var(--sketch-ink-light);
  font-size: 1.1rem;
  font-style: italic;
  margin: 0;
}

/* Featured */
.sketch-featured {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 2px dashed var(--sketch-border);
  padding: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.sketch-featured:hover {
  transform: rotate(-0.5deg);
}
.sketch-featured-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  box-shadow: 4px 4px 0 var(--sketch-ink-muted);
}
.sketch-featured-body {
  padding: 1.2rem 0.5rem 0.5rem;
}
.sketch-featured-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.15;
  margin: 0.5rem 0 0.6rem;
  color: var(--sketch-ink);
}

/* Chips */
.sketch-chip {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border: 1px dashed var(--sketch-ink-muted);
  color: var(--sketch-ink-light);
  font-family: 'Caveat', cursive;
  font-size: 0.9rem;
  font-weight: 500;
}

.sketch-meta {
  font-size: 0.85rem;
  color: var(--sketch-ink-muted);
  font-style: italic;
}

/* Section title */
.sketch-section-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 2rem;
  color: var(--sketch-ink);
  margin: 0 0 1.5rem;
  text-align: center;
}

/* Grid - 2 columns with offset */
.sketch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.sketch-grid .sketch-card:nth-child(even) {
  margin-top: 1.5rem;
}

.sketch-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 2px dashed var(--sketch-border);
  padding: 0.8rem;
  transition: all 0.3s;
  background: var(--sketch-bg);
}
.sketch-card:hover {
  transform: rotate(-1deg);
  box-shadow: 5px 5px 0 var(--sketch-ink-muted);
}
.sketch-card-img {
  overflow: hidden;
}
.sketch-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  box-shadow: 3px 3px 0 var(--sketch-ink-muted);
}
.sketch-card-body {
  padding: 1rem 0.3rem 0.5rem;
}
.sketch-card-title {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0.4rem 0 0.5rem;
  color: var(--sketch-ink);
}

/* Categories */
.sketch-categories {
  margin-top: 1rem;
}
.sketch-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.sketch-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 2px dashed var(--sketch-border);
  text-decoration: none;
  color: var(--sketch-ink);
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.2s;
}
.sketch-cat-link:hover {
  transform: rotate(-2deg);
  background: var(--sketch-ink);
  color: var(--sketch-bg);
  box-shadow: 3px 3px 0 var(--sketch-ink-muted);
}
.sketch-cat-link i {
  font-size: 0.85rem;
}

/* Breadcrumb */
.sketch-breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--sketch-ink-muted);
}
.sketch-breadcrumb a {
  color: var(--sketch-accent);
  text-decoration: none;
}
.sketch-breadcrumb a:hover {
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* Post page */
.sketch-post-wrap {
  max-width: 740px;
}
.sketch-article {
  margin-bottom: 2rem;
}
.sketch-post-header {
  margin-bottom: 2rem;
  text-align: center;
}
.sketch-post-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0.6rem 0 0.8rem;
  color: var(--sketch-ink);
}
.sketch-post-img {
  margin-bottom: 2rem;
  padding: 0.5rem;
  border: 2px dashed var(--sketch-border);
}
.sketch-post-img img {
  width: 100%;
  display: block;
  box-shadow: 5px 5px 0 var(--sketch-ink-muted);
}
.sketch-post-body {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--sketch-ink-light);
}
.sketch-post-body p {
  margin-bottom: 1.3rem;
}
.sketch-post-body h2 {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--sketch-ink);
  margin: 2.5rem 0 1rem;
}
.sketch-post-body h3 {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--sketch-ink);
  margin: 2rem 0 0.8rem;
}
.sketch-post-body a {
  color: var(--sketch-accent);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 3px;
}
.sketch-post-body blockquote {
  border-left: 3px dashed var(--sketch-ink-muted);
  padding: 0.8rem 1.3rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--sketch-ink-muted);
  background: rgba(61,43,31,0.04);
}
.sketch-post-body strong {
  font-weight: 600;
  color: var(--sketch-ink);
}

/* Category page */
.sketch-cat-header {
  text-align: center;
  margin-bottom: 1rem;
}
.sketch-cat-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 2.8rem;
  margin: 0 0 0.5rem;
  color: var(--sketch-ink);
}

/* Related */
.sketch-related {
  margin-top: 1rem;
}

/* Empty */
.sketch-empty {
  text-align: center;
  padding: 3rem;
  color: var(--sketch-ink-muted);
  font-style: italic;
}
.sketch-empty a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--sketch-accent);
  text-decoration: none;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 700px) {
  .sketch-grid {
    grid-template-columns: 1fr;
  }
  .sketch-grid .sketch-card:nth-child(even) {
    margin-top: 0;
  }
  .sketch-featured-img img {
    height: 240px;
  }
  .sketch-container {
    padding: 1.5rem 1rem 3rem;
  }
}
