/* ============================================================
   Philebus Arts — gallery-wall design system
   Palette: gallery white, ink, seal red (印泥), wall-label stone
   Type: Marcellus (display) / Karla (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Karla:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@700&family=Noto+Serif+SC:wght@500&display=swap');

:root {
  --paper: #ffffff;
  --paper-warm: #f7f6f2;
  --ink: #171614;
  --seal: #b5342a;
  --stone: #7c7870;
  --line: #e6e3dc;
  --display: 'Marcellus', 'Noto Serif SC', serif;
  --body: 'Karla', 'Noto Serif SC', sans-serif;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.main-nav { display: flex; gap: 2rem; align-items: center; }

.main-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--seal);
  padding-bottom: 2px;
}

/* the seal: EN/中 language mark */
.lang-seal {
  font-family: var(--display);
  font-size: 0.85rem;
  line-height: 1;
  border: 1.5px solid var(--seal);
  color: var(--seal);
  padding: 0.45rem 0.55rem;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-seal:hover { background: var(--seal); color: #fff; }

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem var(--gutter) 1.5rem;
    gap: 1.1rem;
  }
  .main-nav.open { display: flex; }
}

/* ---------- shared layout ---------- */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section--warm { background: var(--paper-warm); }
.section--line { border-top: 1px solid var(--line); }

/* wall label: the museum-caption motif used for every eyebrow */
.wall-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  border-left: 2px solid var(--seal);
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.lede {
  max-width: var(--measure);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink);
}

.muted { color: var(--stone); }
em, .it { font-style: italic; }

.text-link {
  color: var(--seal);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}
.text-link:hover { opacity: 0.7; }

/* ---------- hero ---------- */

.hero { padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5.5rem); }

.hero h1 { max-width: 18ch; margin: 0.75rem 0 1.5rem; }

.hero .lede { color: var(--stone); }

.hero-actions { margin-top: 2.25rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--seal { border-color: var(--seal); color: var(--seal); }
.btn--seal:hover { background: var(--seal); color: #fff; }

/* ---------- exhibition feature ---------- */

.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

.feature img { width: 100%; height: auto; }

.status-note {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seal);
  border: 1px solid var(--seal);
  padding: 0.35rem 0.7rem;
  margin: 1.25rem 0;
}

/* ---------- gallery grid ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.gallery figure img {
  width: 100%;
  height: auto;
  transition: opacity 0.25s ease;
}
.gallery figure a:hover img { opacity: 0.85; }

.gallery figcaption {
  font-size: 0.8rem;
  color: var(--stone);
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
}

/* ---------- exhibition content ---------- */

.exhibit-meta p { margin-bottom: 1rem; }
.exhibit-meta p:last-child { margin-bottom: 0; }

.exhibit-body p { margin-bottom: 1.1rem; max-width: var(--measure); }
.exhibit-body p:last-child { margin-bottom: 0; }

.exhibit-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
  align-items: start;
}

.exhibit-figures img { width: 100%; height: auto; }

.caption {
  display: block;
  font-size: 0.8rem;
  color: var(--stone);
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  margin-top: 0.9rem;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}

.mosaic img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- stripe embed ---------- */

.stripe-embed {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ---------- team ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
}

.team-member img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(12%);
}

.team-member .role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--seal);
  margin: 1.1rem 0 0.35rem;
}

.team-member h3 { margin-bottom: 0.5rem; }
.team-member p { font-size: 0.94rem; color: var(--stone); }

/* ---------- newsletter ---------- */

.newsletter { text-align: left; }
.newsletter h2 { margin-bottom: 0.75rem; }

.newsletter-form {
  margin-top: 1.75rem;
  display: flex;
  gap: 0;
  max-width: 480px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ink);
  border-right: none;
  background: var(--paper);
  color: var(--ink);
}
.newsletter-form input::placeholder { color: var(--stone); }

.newsletter-form button {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0 1.4rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s ease;
}
.newsletter-form button:hover { background: var(--seal); border-color: var(--seal); }

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { border-right: 1px solid var(--ink); }
  .newsletter-form button { padding: 0.9rem 1.4rem; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 3.5rem;
  background: var(--paper-warm);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-grid .org {
  font-family: var(--display);
  font-size: 1.1rem;
}

.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }

.footer-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--seal); }

.footer-email {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--stone);
}
.footer-email:hover { color: var(--seal); }
