@font-face {
  font-family: "Limerick Serial";
  src: url("../fonts/Limerick-Serial-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Base Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 19px;
}

body {
  background: #fff;
  color: #1a1a1a;
  font-family: sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Common UI Elements */
.cat-tag {
  display: inline-block;
  background: #dcdcdc;
  color: #1a1a1a;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 16px;
  font-weight: 500;
}
.cat-tag.small {
  background: transparent;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #4a4a4a;
}
.date-tag {
  font-family: "Limerick Serial", Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #888;
}
.see-more {
  display: inline-block;
  color: #1a1a1a;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-black-outline {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 16px;
  font-weight: 700;
  transition: opacity 0.2s;
}
.btn-black-outline:hover {
  opacity: 0.85;
}

/* -----------------------------
   TOP BANNER
------------------------------ */
.top-banner {
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-banner .banner-link {
  font-weight: 700;
}
.top-banner .banner-divider {
  color: #555;
}
.top-banner .banner-subtitle {
  color: #777;
}

/* -----------------------------
   SITE HEADER 
------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.main-nav {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 64px;
}

.nav-brand {
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-brand img {
  height: 22px;
  width: auto;
  display: block;
}

.nav-brand span {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #777;
  text-transform: uppercase;
  font-family: "Limerick Serial", Georgia, serif;
}

.desktop-nav {
  display: flex;
  gap: 0;
  align-items: center;
}

.desktop-nav a:not(.btn-become-model) {
  color: #4a4a4a;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: color 0.2s;
}

.desktop-nav a.active {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
}

.desktop-nav a:not(.btn-become-model):hover {
  color: #1a1a1a;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-btn {
  background: none;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  height: 64px;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.search-btn:hover {
  opacity: 0.7;
}

.btn-become-model {
  background: #1a1a1a;
  color: #fff !important;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-become-model:hover {
  opacity: 0.8;
}

.desktop-only {
  display: block;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  padding: 2px 0;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #1a1a1a;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

#m1-menu-toggle:checked ~ .main-nav .hamburger-menu .bar:nth-child(1),
.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#m1-menu-toggle:checked ~ .main-nav .hamburger-menu .bar:nth-child(2),
.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}
#m1-menu-toggle:checked ~ .main-nav .hamburger-menu .bar:nth-child(3),
.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -----------------------------
   SITE FOOTER 
------------------------------ */
.site-footer {
  border-top: 1px solid #efefef;
  margin-top: 80px;
  padding: 48px 24px 32px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}

.footer-title {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  color: #666;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: #1a1a1a;
}

.footer-social {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 16px;
  width: auto;
  display: block;
  margin-bottom: 4px;
}
.footer-logo-sub {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #777;
  margin-top: 4px;
}
.footer-desc {
  font-size: 13px;
  color: #888;
  margin-top: 16px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid #f5f5f5;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #888;
}

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  color: #888;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: #1a1a1a;
}

.m1-mobile-menu {
  background: #fff;
  border-top: 1px solid #efefef;
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-left: 24px;
  padding-right: 24px;
  visibility: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s ease,
    visibility 0.4s;
}

.m1-mobile-menu a:not(.m1-mobile-back) {
  display: block;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
}

.m1-mobile-menu a.m1-mobile-back {
  display: block;
  color: #4a4a4a;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 0 0;
}

/* -----------------------------
   SEARCH MODAL
------------------------------ */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    visibility 0.2s;
}
.search-modal.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: fadeSlideUp 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-modal-container {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #dcdcdc;
  padding: 40px 0 20px;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #1a1a1a;
  font-size: clamp(26px, 3.2vw, 40px);
  font-family: "Limerick Serial", Georgia, serif;
  letter-spacing: 0.01em;
}

.search-close {
  background: none;
  border: 1px solid #dcdcdc;
  color: #4a4a4a;
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.search-close:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.search-body {
  overflow-y: auto;
  flex: 1;
  padding-bottom: 48px;
}

.search-categories {
  padding-top: 40px;
}

.search-cat-title {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 20px;
}

.search-cat-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-cat-list button {
  background: none;
  border: 1px solid #e8e8e8;
  color: #666;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.search-cat-list button:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.search-hint {
  margin-top: 48px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #888;
  text-transform: uppercase;
}

.search-hint kbd {
  background: #f5f5f5;
  border: 1px solid #dcdcdc;
  color: #777;
  font-size: 12px;
  padding: 2px 6px;
  letter-spacing: 0.05em;
}

@media (max-width: 1200px) {
  .desktop-nav {
    display: none;
  }
  .desktop-only {
    display: none;
  }
  .hamburger-menu {
    display: flex;
  }

  #m1-menu-toggle:checked ~ .m1-mobile-menu,
  .m1-mobile-menu.active {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    padding-top: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
}

.search-cat-list a {
  background: none;
  border: 1px solid #e8e8e8;
  color: #666;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.search-header form {
  flex: 1;
}

.search-header form .search-input {
  width: 100%;
}
#live-search-results {
  display: flex;
  flex: 1;
  height: 100%;
  flex-direction: column;
}

@media (min-width: 575px) {
  #live-search-results .search-story {
  }
}

#live-search-results .search-story .search-story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.85);
}

.search-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  padding-bottom: 24px;
  position: relative;
}

.search-modal {
  height: 100vh;
}

.search-story-link {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px 0px;
  border-bottom: 1px solid rgb(245, 245, 245);
  cursor: pointer;
  transition: opacity 0.2s;
  opacity: 1;
}

.search-story-content {
  flex: 1 1 0%;
}

.search-arrow {
  font-size: 19px;
  color: rgb(136, 136, 136);
  flex-shrink: 0;
}

.search-story-link:hover {
  filter: brightness(1.2);
}
.search-story-thumb {
  width: 56px;
  height: 68px;
  flex-shrink: 0;
  overflow: hidden;
  background: rgb(245, 245, 245);
}

.search-story-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

.search-story-meta .search-cat {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(74, 74, 74);
  font-weight: 500;
}

.search-story-meta .search-date {
  font-size: 12px;
  color: rgb(136, 136, 136);
  letter-spacing: 0.08em;
}

.search-story-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgb(26, 26, 26);
}
.error-image {
  display: none;
}

.error-404-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  gap: 20px;
  text-align: center;
}

.error-code {
  font-size: 28vw;
  line-height: 1;
  font-weight: 700;
}

.error-description {
  max-width: 500px;
}

.error-actions .btn-become-model {
  display: block;
  padding: 20px 30px;
  font-size: 18px;
}

@media (max-width: 575px) {
  .search-hint {
    line-height: 1.8;
  }
  .search-story-link {
    padding: 10px 0px;
    gap: 10px;
  }
  .search-story-meta .search-cat,
  .search-story-meta .search-date {
    font-size: 10px;
  }
  .search-arrow {
    font-size: 14px;
  }
  .feed-card-body {
    padding: 10px 0px 30px;
  }
  .error-title {
    font-size: 24px;
  }

  .error-code {
    font-size: 50vw;
  }

  .error-description {
    font-size: 16px;
    line-height: 1.4;
  }
}

.post-content p {
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.post-content p strong {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: -6px;
  display: block;
}

@media (max-width: 767px) {
  .post-content p {
    font-size: 14px;
  }
  .post-content p strong {
    font-size: 18px;
  }
}

.search-models-heading {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(119, 119, 119);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

span.external-link-badge {
  background: rgb(245, 245, 245);
  border: 1px solid rgb(232, 232, 232);
  color: rgb(136, 136, 136);
  font-size: 11px;
  padding: 2px 8px;
  letter-spacing: 0.1em;
}

.search-models-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}

.search-model-card {
  background: rgb(255, 255, 255);
  border: 1px solid rgb(232, 232, 232);
  padding: 16px 20px 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s;
  min-width: 160px;
}

.search-model-source {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(119, 119, 119);
}

.search-model-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(26, 26, 26);
  line-height: 1.1;
}

.search-model-link {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(136, 136, 136);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-model-link svg {
  width: 8px;
  height: 8px;
}

@media (max-width: 767px) {
  .search-model-card {
    padding: 12px 14px;
  }

  .search-model-name {
    font-size: 17px;
  }

  .search-model-link {
    margin-top: 0;
  }

  .search-models-grid {
    margin-bottom: 20px;
  }

  .search-models-heading {
    margin-bottom: 12px;
  }
}

.search-loader {
  padding: 30px 0;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  justify-content: center;
  background: rgb(255, 255, 255);
  z-index: 99;
}

.loader-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid #ddd;
  border-top-color: #000;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
