/* ---------- Custom styles for yukokasuya site ---------- */
:root {
  --yk-accent: #8a1c32;          /* Waseda maroon */
  --yk-accent-soft: #f6eaec;
  --yk-text: #2b2f33;
  --yk-muted: #6b7178;
  --yk-border: #e3e5e8;
  --yk-card: #ffffff;
  --yk-sans: "IBM Plex Sans", "IBM Plex Sans JP", -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --yk-mono: "IBM Plex Mono", "IBM Plex Sans JP", ui-monospace, monospace;
}
html[data-theme="dark"] {
  --yk-accent: #e58a9b;
  --yk-accent-soft: #3a2328;
  --yk-text: #e6e6e6;
  --yk-muted: #a3a8ae;
  --yk-border: #3a3f44;
  --yk-card: #23272b;
}

body, h1, h2, h3, h4, h5, h6, .page__content, .masthead, .author__name, .author__bio, .author__urls {
  font-family: var(--yk-sans);
}
a { color: var(--yk-accent); }

/* Navigation: small uppercase mono */
.masthead__menu-item a {
  font-family: var(--yk-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.masthead__menu-item--lg a {
  font-family: var(--yk-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* Section headings on all pages */
.page__content h2 {
  font-family: var(--yk-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yk-accent);
  border-bottom: 1px solid var(--yk-border);
  padding-bottom: 0.4em;
  margin-top: 2.2em;
}
html[lang="ja"] .page__content h2 { letter-spacing: 0.08em; font-size: 0.95rem; }

/* ---------- Home hero ---------- */
.home-hero {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 1rem 0 2.5rem;
}
.home-hero__avatar {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.home-hero__name {
  margin: 0 0 0.3rem !important;
  font-size: 2rem;
  font-weight: 700;
  color: var(--yk-text);
}
.home-hero__name small {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--yk-muted);
  margin-top: 0.2rem;
}
.home-hero__role {
  margin: 0 0 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--yk-text);
}
.home-hero__links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.home-hero__links a {
  font-family: var(--yk-mono);
  font-size: 0.78rem;
  padding: 0.3em 0.8em;
  border: 1px solid var(--yk-accent);
  border-radius: 6px;
  text-decoration: none;
  color: var(--yk-accent);
  transition: background 0.15s, color 0.15s;
}
.home-hero__links a:hover { background: var(--yk-accent); color: #fff; }

/* ---------- Tags ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 1rem; }
.tag {
  font-size: 0.82rem;
  padding: 0.3em 0.85em;
  border-radius: 999px;
  background: var(--yk-accent-soft);
  color: var(--yk-accent);
}

/* ---------- Publication cards ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.section-head h2 { flex: 1; }
.section-more {
  font-family: var(--yk-mono);
  font-size: 0.78rem;
  margin-left: 1rem;
  white-space: nowrap;
}
.pub-cards { display: flex; flex-direction: column; gap: 0.7rem; margin: 0.8rem 0 1.5rem; }
.pub-card {
  border: 1px solid var(--yk-border);
  border-left: 3px solid var(--yk-accent);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: var(--yk-card);
}
.pub-card__title { font-weight: 600; font-size: 0.95rem; color: var(--yk-text); line-height: 1.4; }
.pub-card__meta { font-size: 0.82rem; color: var(--yk-muted); margin-top: 0.25rem; }
.pub-card__meta a { font-family: var(--yk-mono); }

/* Publication list pages: lighter list items */
.page__content ul li { margin-bottom: 0.45em; }

/* Mobile */
@media (max-width: 640px) {
  .home-hero { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .home-hero__avatar { width: 140px; height: 170px; }
  .home-hero__name { font-size: 1.6rem; }
}

/* Hide the default page title on pages with a hero */
.page__inner-wrap:has(.home-hero) .page__title,
article:has(.home-hero) .page__title { display: none; }
