* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #d8d8d8;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 12px 0;
  flex-wrap: nowrap;
}

.nav-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 1100px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .logo {
    width: 100%;
  }

  .nav-wrap {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 18px;
    padding-top: 8px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
  }

  .logo {
    width: auto;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a,
.main-nav button {
  font: inherit;
  color: #111;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover,
.main-nav button:hover,
.mobile-menu a:hover,
.mobile-menu summary:hover {
  color: #000;
  background: #faedf2;
}

.main-nav a.active,
.main-nav button.active,
.dropdown-toggle.active,
.mobile-menu a.active,
.mobile-menu summary.active {
  font-weight: bold;
  color: #000;
  background: #f4dfe8;
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 200;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: #faedf2;
}

.social-links {
  display: flex;
  gap: 3px;
}

.social-links a,
.mobile-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.social-links a img,
.mobile-social a img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: #111;
}

.mobile-panel {
  display: none;
  padding: 0 0 16px;
}

.mobile-panel.open {
  display: block;
}

.mobile-menu {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
}

.mobile-menu a,
.mobile-menu summary {
  display: block;
  padding: 10px 4px;
  cursor: pointer;
}

.mobile-menu details {
  border-top: 1px solid #e8e8e8;
  padding-top: 6px;
}

.mobile-submenu {
  display: grid;
  gap: 4px;
  padding-left: 14px;
}

.page-content {
  padding: 56px 0 80px;
}

.home-layout {
  display: grid;
  gap: 36px;
}

.intro-block h1,
.page-content h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin: 0 0 14px;
}

.content-block h2 {
  font-size: 1.4rem;
  margin: 0 0 10px;
}

@media (max-width: 900px) {
  .logo img {
    width: 220px;
  }

  .nav-wrap {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1200px, calc(100% - 28px));
  }

  .logo img {
    width: 190px;
  }

  .header-inner {
    min-height: 74px;
  }

  .page-content {
    padding: 36px 0 60px;
  }
}

/* Illustration cards (old overview style, if still used somewhere) */
.illustration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.illustration-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.illustration-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.illustration-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #efefef;
  border-radius: 10px;
}

.illustration-card strong {
  font-size: 1rem;
}

.illustration-card span {
  color: #555;
}

/* Portfolio galleries */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.illustration-page .gallery-grid {
  grid-template-columns: 1fr;
  width: 800px;
  max-width: 100%;
  margin: 0;
}
.anaya-page .gallery-grid {
  width: 600px;
  max-width: 100%;
}

.gallery-item {
  margin: 0;
  border: none;
  box-shadow: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 0;
  border: none;
}

@media (max-width: 900px) {
  .illustration-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Info */
.info-page {
  max-width: 1100px;
}

.info-image {
  margin: 0 0 24px;
}

.info-image img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.info-text p {
  margin: 0 0 18px;
}

.info-text h2 {
  margin: 28px 0 14px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* News */
.news-block {
  margin-top: 24px;
}

.scriptBLUSKY {
  width: 100%;
}

/* Contact */
.contact-page {
  max-width: 760px;
}

.contact-image {
  margin: 0 0 24px;
}

.contact-image img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.contact-text p {
  margin: 0;
}

/* Comic */
.comic-page {
  max-width: 760px;
}

.comic-entry {
  margin-bottom: 56px;
}

.comic-image {
  margin: 0 0 10px;
}

.comic-image img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.comic-entry p {
  margin: 0;
}

.comic-entry p + p {
  margin-top: 8px;
}

.comic-entry a {
  text-decoration: underline;
}

/* Overview */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.overview-item {
  display: block;
  position: relative;
  text-decoration: none;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.overview-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-label {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  padding: 6px 10px;
  background: #f4dfe8;
  color: #000;
  border-radius: 0;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Illustration page titles */
.illustration-page .intro-block h1 {
  font-family: "Special Elite", "Courier New", Courier, monospace;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: normal;
}
.news-block {
  margin-top: 24px;
  margin-left: 0;
  text-align: left;
}

.news-block,
.scriptBLUSKY,
bsky-embed {
  width: 100%;
  max-width: 800px;
  margin-left: 0;
  margin-right: auto;
}
.landing-hero {
  max-width: 800px;
  margin-bottom: 34px;
}

.landing-kicker {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0;
  font-weight: normal;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.landing-card {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 18px;
  border: 1px solid #d8d8d8;
  background: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}

.landing-card:hover {
  background: #faedf2;
}

.landing-card-large {
  min-height: 220px;
}

.landing-label {
  font-weight: bold;
}

.landing-text {
  color: #333;
}

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

  .landing-card,
  .landing-card-large {
    min-height: auto;
  }
}
.home-visual {
  margin-bottom: 24px;
}

.home-feature {
  display: block;
}

.home-feature img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.home-links a {
  padding: 3px 6px;
  background: transparent;
  transition: background 0.15s ease;
}

.home-links a:hover {
  background: #faedf2;
}

@media (max-width: 700px) {
  .home-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-links a {
    width: fit-content;
  }
}
.home-feature img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
}