.brand-lockup {
  border: 0;
  background: none;
  padding: 6px 0 4px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  text-align: left;
}

.brand-word {
  display: block;
  font-family: "Literata", serif;
  font-size: 31px;
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.brand-word > span { color: var(--accent); }

.brand-byline {
  display: block;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.compact-hero {
  min-height: 285px;
  padding-top: 76px;
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line);
}

.compact-hero h1 {
  font-size: clamp(44px, 6vw, 74px);
}

.category-section {
  padding-top: 48px;
  padding-bottom: 46px;
}

.primary-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.primary-category-card {
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  grid-template-columns: 58px 1fr 44px;
  align-items: center;
  gap: 18px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform .22s ease, box-shadow .22s ease;
}

.primary-category-card:hover {
  transform: translateY(-5px);
}

.primary-category-card.cerpen { background: linear-gradient(135deg, #edf3e8, #f8fbf5); }
.primary-category-card.nota { background: linear-gradient(135deg, #f9eee6, #fff8f3); }
.primary-category-card.campus { background: linear-gradient(135deg, #eaf1f6, #f8fbfd); }

.category-symbol {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.62);
  font-size: 25px;
  color: var(--accent);
}

.primary-category-card strong {
  display: block;
  font-family: "Literata", serif;
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.primary-category-card strong em {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  margin-top: 4px;
}

.primary-category-card small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.category-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.latest-section { padding-top: 36px; }

.category-page-header {
  padding-bottom: 28px;
}

.back-link {
  margin: 0 0 34px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.category-description {
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 22px 0 0;
}

.category-grid {
  padding: 10px clamp(20px, 6vw, 92px) 100px;
}

.story-card { position: relative; }

.story-author {
  display: block;
  margin: 8px 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.favorite-button {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--muted);
  font-size: 21px;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}

.favorite-button:hover { transform: scale(1.07); color: var(--accent); }
.favorite-button.active { color: #9d403d; background: #f5e3df; border-color: transparent; }

.favorites-grid {
  padding: 10px clamp(20px, 6vw, 92px) 100px;
}

.reader-topbar {
  grid-template-columns: 50px minmax(80px, 1fr) auto;
}

.reader-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#readerFavorite.active {
  color: #9d403d;
  background: #f5e3df;
  border-color: transparent;
}

.article-credit {
  margin: 0 0 42px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  line-height: 1.7;
  background: var(--bg);
}

.article-credit strong { color: var(--text); }

.site-footer {
  margin: 0 clamp(20px, 6vw, 92px);
  padding: 34px 0 96px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-brand strong {
  color: var(--text);
  font-family: "Literata", serif;
  font-size: 24px;
  line-height: .9;
}

.footer-brand span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  text-align: right;
  line-height: 1.6;
}

.reader-view.active ~ .site-footer { display: none; }

@media (max-width: 1000px) {
  .primary-category-grid { grid-template-columns: 1fr; }
  .primary-category-card { min-height: 145px; }
}

@media (max-width: 850px) {
  .brand-word { font-size: 26px; }
  .brand-byline { font-size: 7px; letter-spacing: .14em; }
  .mobile-nav { grid-template-columns: repeat(4, 1fr); }
  .site-footer {
    padding-bottom: 34px;
    flex-direction: column;
  }
  .site-footer p { text-align: left; }
  .reader-actions { gap: 5px; }
  .reader-actions .icon-button { width: 38px; height: 38px; }
  .compact-hero { min-height: 250px; padding-top: 64px; }
  .primary-category-card {
    grid-template-columns: 48px 1fr 38px;
    padding: 20px;
  }
  .category-symbol { width: 48px; height: 48px; font-size: 21px; }
  .primary-category-card strong { font-size: 22px; }
}