@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --lf-bg: #f7f8f5;
  --lf-surface: #ffffff;
  --lf-ink: #10221e;
  --lf-muted: #3f5650;
  --lf-line: #d9e3df;
  --lf-primary: #173f35;
  --lf-accent: #245f51;
  --lf-link: #1f5b4e;
  --lf-link-hover: #123c34;
  --lf-primary-soft: #e7f0ed;
  --lf-focus: #1f6f5d;
  --lf-shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.04);
  --lf-shadow-mid: 0 10px 26px rgba(15, 23, 42, 0.08);
  --lf-text-sm: 0.875rem;
  --lf-text-md: 1rem;
  --lf-text-lg: 1.125rem;
}

html,
body {
  background: radial-gradient(circle at top right, #ecf2ef 0%, #f7f8f5 45%, #fafbf9 100%);
  color: var(--lf-ink);
  font-family: 'Manrope', sans-serif;
  scroll-behavior: smooth;
}

body {
  margin-top: 74px;
  font-size: var(--lf-text-md);
}

a {
  color: var(--lf-link);
}

a:hover,
a:focus {
  color: var(--lf-link-hover);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--lf-focus);
  outline-offset: 2px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1120px;
  }
}

.lf-navbar {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(23, 63, 53, 0.15);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
  padding: 0.5rem 0;
}

.lf-navbar.navbar-light .navbar-brand,
.lf-navbar .navbar-brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #123229 !important;
}

.lf-navbar.navbar-light .navbar-nav > .nav-item > .nav-link,
.lf-navbar.navbar-light .navbar-nav > .nav-item > .nav-link:focus,
.lf-navbar .nav-link {
  color: #2e4b43 !important;
  font-weight: 600;
  margin-right: 0.2rem;
  border-radius: 999px;
  padding-left: 0.8rem !important;
  padding-right: 0.8rem !important;
  line-height: 1.2 !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lf-navbar.navbar-light .navbar-nav > .nav-item > .nav-link:hover,
.lf-navbar .nav-link:hover {
  color: #123229 !important;
  background: #edf4f1;
}

.lf-navbar .nav-link.is-active {
  color: #123229 !important;
  background: #e3efeb;
  box-shadow: inset 0 0 0 1px #c5d8d1;
}

.lf-navbar.navbar-light .navbar-toggler,
.lf-navbar .navbar-toggler {
  color: #173f35 !important;
}

main {
  padding-bottom: 2rem;
}

.lf-hero {
  padding: 5.5rem 0 3.5rem;
}

.lf-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--lf-accent);
  margin-bottom: 0.9rem;
}

.lf-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.7vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #13263f;
}

.lf-lead {
  max-width: 700px;
  font-size: 1.07rem;
  line-height: 1.75;
  color: var(--lf-muted);
}

.lf-hero-note {
  max-width: 700px;
  margin-top: 0.45rem;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--lf-muted);
}

.lf-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.lf-btn {
  border-radius: 999px;
  display: inline-block;
  padding: 0.58rem 1.05rem;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.lf-btn-primary {
  background: var(--lf-primary);
  border-color: var(--lf-primary);
  color: #fff;
}

.lf-btn-primary:hover,
.lf-btn-primary:focus {
  color: #fff;
  transform: translateY(-1px);
}

.lf-btn-secondary {
  background: transparent;
  border-color: var(--lf-line);
  color: var(--lf-ink);
}

.lf-btn-secondary:hover,
.lf-btn-secondary:focus {
  background: var(--lf-primary-soft);
}

.lf-social {
  display: flex;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  gap: 0.9rem;
}

.lf-social a {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--lf-line);
  color: var(--lf-primary);
}

.lf-portrait-card {
  background: var(--lf-surface);
  border: 1px solid var(--lf-line);
  border-radius: 18px;
  padding: 0.95rem;
  box-shadow: 0 15px 40px rgba(19, 38, 63, 0.08);
  max-width: 280px;
  margin-left: auto;
}

.lf-portrait {
  width: 100%;
  border-radius: 12px;
}

.lf-hero .col-lg-4 {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.lf-portrait-note {
  margin: 0.8rem 0 0;
  font-size: 0.86rem;
  color: var(--lf-muted);
  text-align: center;
}

.lf-section {
  padding: clamp(2.5rem, 5vw, 3.35rem) 0;
}

.lf-section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.55rem, 3.3vw, 2.25rem);
  margin-bottom: 1.15rem;
  color: #13263f;
}

.lf-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.lf-inline-link {
  font-size: 0.93rem;
  font-weight: 700;
}

.lf-grid {
  display: grid;
  gap: 0.9rem;
}

.lf-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lf-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lf-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lf-card,
.lf-theme,
.lf-panel,
.lf-pub-item,
.lf-join-box {
  background: var(--lf-surface);
  border: 1px solid var(--lf-line);
  border-radius: 14px;
  box-shadow: var(--lf-shadow-soft);
}

.lf-card,
.lf-theme,
.lf-panel,
.lf-pub-item {
  padding: 1rem 1rem 0.9rem;
}

.lf-card p,
.lf-theme p,
.lf-panel p,
.lf-pub-item p,
.lf-join-box p {
  margin-bottom: 0;
  color: var(--lf-muted);
}

.lf-pub-item > p:first-child {
  font-size: 1.1rem;
  line-height: 1.62;
  color: #1b2f29;
  text-wrap: pretty;
}

.lf-theme h3,
.lf-panel h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.lf-system-list {
  margin: 0.15rem 0 0;
  padding-left: 1.1rem;
}

.lf-system-list li {
  margin-bottom: 0.36rem;
  color: var(--lf-muted);
  line-height: 1.45;
}

.lf-system-list a {
  font-weight: 700;
  color: var(--lf-primary);
}

.lf-system-list span {
  color: #5f766f;
  font-size: 0.88rem;
}

.lf-muted {
  color: var(--lf-muted);
  margin-bottom: 1rem;
}

.lf-pub-list {
  display: grid;
  gap: 0.75rem;
}

.lf-tag {
  display: inline-block;
  min-width: 110px;
  color: var(--lf-primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.lf-authors {
  margin-top: 0.42rem;
  color: var(--lf-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.lf-authors strong {
  color: #1b3f35;
}

.lf-pub-links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lf-pub-links a {
  font-size: 0.84rem;
  font-weight: 700;
}

.lf-inline-link[target="_blank"]::after,
.lf-pub-links a[target="_blank"]::after,
.lf-system-list a[target="_blank"]::after,
.lf-footer a[target="_blank"]::after {
  content: "↗";
  margin-left: 0.25rem;
  font-size: 0.78em;
  color: #55756c;
}

.lf-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid #cadcd8;
}

.lf-timeline li {
  position: relative;
  margin-left: 0.9rem;
  padding: 0.55rem 0 0.85rem 0.9rem;
  color: var(--lf-muted);
}

.lf-timeline li::before {
  content: '';
  position: absolute;
  left: -0.51rem;
  top: 0.95rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--lf-accent);
  border-radius: 50%;
}

.lf-timeline span {
  font-weight: 700;
  color: var(--lf-primary);
  margin-right: 0.45rem;
}

.lf-join-box {
  margin-top: 0.95rem;
  padding: 1.2rem;
  background: linear-gradient(135deg, #f8fbfa 0%, #eef6f2 100%);
}

.lf-join-box h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.lf-join-box .lf-btn {
  margin-top: 1rem;
}

.lf-member-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.lf-member-card {
  border: 1px solid var(--lf-line);
  border-radius: 12px;
  background: #fcfdfc;
  padding: 0.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 228px;
}

.lf-member-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.45rem;
}

.lf-member-name {
  margin: 0 0 0.12rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1b2f29;
}

.lf-member-role {
  margin: auto 0 0;
  font-size: 0.82rem;
  color: #5c746d;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lf-theme,
.lf-panel,
.lf-pub-item,
.lf-member-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lf-theme:hover,
.lf-panel:hover,
.lf-pub-item:hover,
.lf-member-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lf-shadow-mid);
}

.lf-contact .lf-panel a {
  font-weight: 700;
}

.lf-footer {
  border-top: 1px solid var(--lf-line);
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  padding-bottom: 2.1rem;
}

.lf-footer p {
  color: var(--lf-muted);
}

@media (max-width: 1199px) {
  .lf-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  body {
    margin-top: 60px;
  }

  .lf-hero {
    padding-top: 4.1rem;
  }

  .lf-portrait-card {
    margin-top: 1rem;
    max-width: 300px;
  }

  .lf-grid-3,
  .lf-grid-2 {
    grid-template-columns: 1fr;
  }

  .lf-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .lf-member-card {
    min-height: 0;
  }
}

@media (max-width: 575px) {
  .lf-grid-4 {
    grid-template-columns: 1fr;
  }

  .lf-member-grid {
    grid-template-columns: 1fr;
  }

  .lf-tag {
    display: block;
    margin-bottom: 0.35rem;
  }
}
