/* ==========================================================================
   PataNYC — Home Page Stylesheet
   ========================================================================== */

/* --- Masthead --- */
.masthead {
  padding: 5rem 2rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--color-rule);
}

.masthead-inner {
  max-width: 600px;
  margin: 0 auto;
}

.masthead-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1.8rem;
}

.masthead-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.masthead-motto {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.5;
  max-width: 460px;
  margin: 0 auto;
}

.masthead-rule {
  border: none;
  height: 3px;
  background: var(--color-green);
  width: 50px;
  margin: 2.2rem auto 0;
}

/* NYC clock */
.masthead-clock {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--color-text-tertiary);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: color 0.2s;
}

.masthead-clock:hover {
  color: var(--color-absinthe);
}

/* --- Main content area --- */
.home-main {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Sections --- */
.home-section {
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--color-rule);
}

.home-section:last-child {
  border-bottom: none;
}

/* Section stamp heading — Special Elite */
.section-stamp {
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 0.35em 0.6em 0.15em;
  border: 1.5px solid var(--color-green);
  transform: rotate(-0.6deg);
}

/* --- Latest article --- */
.latest-article {
  margin-top: 0.5rem;
}

.latest-link {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  padding: 1.2rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: border-color 0.2s;
  margin: -1.2rem -1.4rem;
}

.latest-link:hover {
  border-color: var(--color-green-border);
}

.latest-category {
  font-family: var(--font-stamp);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-green);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.latest-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.3em;
  color: var(--color-text);
}

.latest-link:hover .latest-title {
  color: var(--color-absinthe);
}

.latest-subtitle {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.45;
  margin-bottom: 0.8rem;
}

.latest-meta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
}

/* Featured image in latest article */
.latest-image {
  margin-top: 1.2rem;
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
}

.latest-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}

.latest-link:hover .latest-image img {
  opacity: 0.88;
}

/* --- Table of Contents navigation --- */
.home-toc {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.toc-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--color-rule);
  transition: all 0.15s;
}

.toc-item:last-child {
  border-bottom: none;
}

.toc-item:hover {
  padding-left: 0.5rem;
}

.toc-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  transition: color 0.15s;
}

.toc-item:hover .toc-title {
  color: var(--color-absinthe);
}

.toc-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  transition: color 0.15s;
}

.toc-item:hover .toc-desc {
  color: var(--color-text-secondary);
}

/* Absinthe arrow on hover */
.toc-item::after {
  content: "↗";
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: transparent;
  margin-left: auto;
  transition: color 0.15s;
  flex-shrink: 0;
}

.toc-item:hover::after {
  color: var(--color-absinthe);
}

/* --- Bluesky feed --- */
.bsky-container {
  margin-top: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .masthead {
    padding: 3.5rem 1.5rem 2.5rem;
  }

  .masthead-title {
    font-size: 1.7rem;
  }

  .masthead-logo {
    height: 40px;
  }

  .home-main {
    padding: 0 1.25rem;
  }

  .toc-item {
    flex-direction: column;
    gap: 0.15rem;
  }

  .toc-item::after {
    display: none;
  }
}
