:root {
  --color-bg: #faf7f2;
  --color-surface: #f0ebe1;
  --color-border: #d6cbba;
  --color-text: #1c1710;
  --color-muted: #6b5e4e;
  --color-accent: #8b4513;
  --color-accent-2: #c8934a;
  --color-link: #7a3b1e;
  --color-dark: #2c1c11;
  --color-white: #fffdf9;
  --shadow-soft: 0 20px 50px rgba(60, 37, 17, 0.08);
  --shadow-card: 0 16px 40px rgba(60, 37, 17, 0.12);
  --container-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(200, 147, 74, 0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(139, 69, 19, 0.14), transparent 26%),
    linear-gradient(180deg, #fbf8f3 0%, #f8f2e8 100%);
  color: var(--color-text);
  font-family: "Source Serif 4", "Noto Serif SC", Georgia, serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(250, 247, 242, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(214, 203, 186, 0.92);
  box-shadow: 0 8px 30px rgba(60, 37, 17, 0.06);
}

.nav-shell {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  background: rgba(200, 147, 74, 0.12);
  border: 1px solid rgba(139, 69, 19, 0.12);
  border-radius: 14px;
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand-copy {
  display: grid;
}

.brand-title,
.hero-title,
.section-title,
.article-card h3,
.feature-card h3,
.partner-card h3,
.activity-card h3,
.join-card a,
.footer-brand {
  font-family: "Playfair Display", "Noto Serif SC", Georgia, serif;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.05;
}

.brand-subtitle,
.nav-links,
.lang-toggle,
.eyebrow,
.card-label,
.article-meta,
.article-tag,
.footer-meta,
.footer-links {
  font-family: "DM Sans", "Noto Serif SC", sans-serif;
}

.brand-subtitle {
  color: var(--color-muted);
  font-size: 0.76rem;
}

.nav-toggle {
  width: 46px;
  height: 46px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  border: 1px solid rgba(139, 69, 19, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.65);
  color: var(--color-text);
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 99px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  display: none;
  padding: 18px;
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid rgba(214, 203, 186, 0.95);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.nav-menu.is-open {
  display: grid;
  gap: 16px;
}

.nav-links {
  display: grid;
  gap: 12px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a,
.footer-copy,
.footer-meta,
.section-intro,
.hero-text,
.join-text,
.article-desc,
.feature-card p,
.activity-card p,
.partner-card p {
  color: var(--color-muted);
}

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--color-accent);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border: 1px solid rgba(139, 69, 19, 0.16);
  background: rgba(240, 235, 225, 0.68);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.lang-toggle-btn {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  padding: 2px 4px;
  cursor: pointer;
}

.lang-toggle-btn.active {
  color: var(--color-accent);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 44px 0 34px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(200, 147, 74, 0.18), transparent 28%),
    radial-gradient(circle at 80% 25%, rgba(139, 69, 19, 0.15), transparent 24%),
    linear-gradient(135deg, rgba(255, 253, 249, 0.42), rgba(232, 213, 176, 0.22));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrown-light,
.light,
.join-card a,
.join-card p {
  color: var(--color-white);
}

.hero-title,
.section-title {
  margin: 0;
  line-height: 1.05;
}

.hero-title {
  font-size: clamp(2.2rem, 5.8vw, 4.8rem);
  max-width: 9ch;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 13ch;
}

.hero-text,
.section-intro,
.join-text {
  max-width: 62ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: "DM Sans", "Noto Serif SC", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.button-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 14px 32px rgba(139, 69, 19, 0.18);
}

.button-secondary {
  background: rgba(255, 253, 249, 0.64);
  border-color: rgba(139, 69, 19, 0.18);
  color: var(--color-accent);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
}

.metric {
  padding: 14px;
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid rgba(214, 203, 186, 0.85);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.metric strong {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 1.05rem;
}

.metric span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.poster-frame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(240, 235, 225, 0.92));
  border: 1px solid rgba(214, 203, 186, 0.9);
  box-shadow: 0 28px 60px rgba(60, 37, 17, 0.16);
  padding: 14px;
}

.poster-frame img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(60, 37, 17, 0.12);
}

.hero-note {
  margin-top: 14px;
  margin-left: auto;
  width: min(92%, 320px);
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--color-dark);
  color: var(--color-white);
}

.section,
.department-hero {
  padding: 74px 0;
}

.article-shell {
  padding: 56px 0 84px;
}

.article-reader-card {
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(214, 203, 186, 0.95);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
}

.article-reader-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.article-source {
  margin: 0;
  color: var(--color-muted);
  font-family: "DM Sans", "Noto Serif SC", sans-serif;
  font-size: 0.88rem;
  word-break: break-all;
}

.article-prose {
  font-size: 1.06rem;
}

.article-prose > :first-child {
  margin-top: 0;
}

.article-prose h1,
.article-prose h2,
.article-prose h3,
.article-prose h4 {
  font-family: "Playfair Display", "Noto Serif SC", Georgia, serif;
  line-height: 1.15;
  margin: 1.4em 0 0.5em;
}

.article-prose h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.article-prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.article-prose h3 {
  font-size: 1.35rem;
}

.article-prose p,
.article-prose li,
.article-prose blockquote {
  color: var(--color-text);
}

.article-prose p,
.article-prose ul,
.article-prose ol,
.article-prose blockquote {
  margin: 0 0 1em;
}

.article-prose img {
  margin: 22px auto;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.article-prose a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.article-prose blockquote {
  margin-left: 0;
  padding: 14px 18px;
  border-left: 4px solid var(--color-accent-2);
  background: rgba(240, 235, 225, 0.72);
  border-radius: 0 12px 12px 0;
}

.article-prose code {
  font-family: "Courier New", monospace;
  background: rgba(240, 235, 225, 0.8);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.article-prose pre {
  overflow-x: auto;
  padding: 16px;
  background: #24180f;
  color: #f8f2e8;
  border-radius: 16px;
}

.article-prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.section-heading {
  margin-bottom: 28px;
}

.about-grid,
.partner-grid,
.activities-grid,
.join-grid,
.footer-grid,
.card-grid,
.join-cards {
  display: grid;
  gap: 18px;
}

.feature-card,
.activity-card,
.partner-card,
.article-card,
.join-card {
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid rgba(214, 203, 186, 0.95);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.feature-card,
.activity-card,
.article-card,
.join-card {
  padding: 22px;
}

.feature-card h3,
.activity-card h3,
.partner-card h3,
.article-card h3 {
  margin: 8px 0 10px;
  font-size: 1.45rem;
}

.card-label {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mission-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
}

.mission-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.mission-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(200, 147, 74, 0.16);
  color: var(--color-accent);
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.mentor-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mentor-avatar {
  width: 68px;
  height: 68px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: var(--color-white);
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
}

.mentor-avatar-link {
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(139, 69, 19, 0.14);
}

.mentor-avatar-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.mentor-avatar-text {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.section-articles {
  background:
    linear-gradient(180deg, rgba(240, 235, 225, 0.58), rgba(240, 235, 225, 0.16)),
    radial-gradient(circle at 10% 10%, rgba(200, 147, 74, 0.14), transparent 24%);
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.tab-button {
  border: 1px solid rgba(139, 69, 19, 0.14);
  background: rgba(255, 253, 249, 0.7);
  color: var(--color-muted);
  border-radius: 999px;
  padding: 10px 16px;
  white-space: nowrap;
  cursor: pointer;
}

.tab-button.is-active {
  background: var(--color-accent);
  color: var(--color-white);
}

.article-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(139, 69, 19, 0.18);
}

.article-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.tag-philosophy {
  background: #f0e6d3;
  color: #8b4513;
}

.tag-coffee {
  background: #e8d5b0;
  color: #5c3317;
}

.tag-tech {
  background: #dde8e0;
  color: #2d5a3d;
}

.article-meta {
  font-size: 0.78rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-link);
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
}

.text-link::after {
  content: "→";
}

.activity-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(200, 147, 74, 0.18);
  color: var(--color-accent);
  font-family: "DM Sans", sans-serif;
}

.partner-card {
  overflow: hidden;
}

.partner-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(240, 235, 225, 0.5), rgba(255, 253, 249, 0.95));
  padding: 18px;
}

.partner-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(240, 235, 225, 0.5), rgba(255, 253, 249, 0.95));
  color: var(--color-muted);
  font-family: "DM Sans", "Noto Serif SC", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.partner-copy {
  padding: 18px 20px 24px;
}

.join-section {
  background:
    radial-gradient(circle at 15% 10%, rgba(200, 147, 74, 0.28), transparent 22%),
    linear-gradient(135deg, #3a2416 0%, #20150d 100%);
  color: var(--color-white);
}

.join-card {
  background: rgba(255, 253, 249, 0.08);
  border-color: rgba(255, 253, 249, 0.12);
}

.join-card a {
  font-size: 1.2rem;
}

.site-footer {
  padding: 26px 0 34px;
  background: rgba(28, 23, 16, 0.04);
  border-top: 1px solid rgba(214, 203, 186, 0.72);
}

.footer-brand {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy,
.footer-meta p {
  margin: 0;
}

.department-hero {
  padding-top: 48px;
  padding-bottom: 30px;
}

.department-hero .section-title {
  max-width: 16ch;
}

@media (max-width: 767px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 54px 0 44px;
  }

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

  .hero-grid {
    gap: 34px;
    grid-template-columns: minmax(0, 0.96fr) minmax(500px, 1.04fr);
  }

  .hero-copy {
    padding-right: 6px;
  }

  .hero-visual {
    align-self: center;
    padding-top: 8px;
  }

  .poster-frame {
    transform: none;
  }

  .poster-frame::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 20px;
    border: 1px solid rgba(139, 69, 19, 0.08);
    pointer-events: none;
  }

  .hero-note {
    margin-top: -18px;
    margin-right: 6px;
    position: relative;
    z-index: 1;
    width: min(78%, 380px);
  }

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

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

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

  .article-reader-card {
    padding: 38px 42px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
  }
}

@media (min-width: 1200px) {
  .hero {
    min-height: 90vh;
  }

  .hero-grid {
    gap: 40px;
    grid-template-columns: minmax(0, 0.9fr) minmax(600px, 1.05fr);
  }

  .hero-title {
    font-size: clamp(2.6rem, 4.9vw, 4.4rem);
    max-width: 8.5ch;
  }

  .poster-frame {
    padding: 16px;
    max-width: 680px;
    margin-left: auto;
  }

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

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

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