/*
 Mono theme overrides
 - Minimal, type-led aesthetic inspired by modern portfolio templates
 - Non-destructive: only overrides where necessary
*/

/* Root tokens */
:root {
  --mono-bg: #ffffff;
  --mono-text: #333333;
  --mono-muted: #6b7280; /* gray-500 */
  --mono-border: #e6e6e6;
  --nav-height: 64px;
  color-scheme: light;
}

/* Typography */
/* Keep only minimal base here; detailed typography lives further below */
html, body { color: var(--mono-text); background: var(--mono-bg); }

/* Fixed header compensation */
main { padding-top: var(--nav-height); }

/* Navbar */
.navbar {
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.navbar.navbar-light .navbar-nav .nav-link {
  color: var(--mono-text) !important;
}
.navbar-brand .wordmark {
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.06em;
}

/* Dark theme navbar toggler icon (make it visible on dark bg) */
:root[data-theme="dark"] .navbar-light .navbar-toggler {
  border-color: var(--border) !important;
}
:root[data-theme="dark"] .navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Remove legacy homepage background to allow hero section to control it */
body.homepage { background: none !important; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 64px 0;
}
.homepage main { padding-top: 0 !important; }
.hero--with-image {
  background-size: cover;
  background-position: center center;
}
.hero--with-image::before { display: none !important; }
.hero .container { position: relative; z-index: 1; }
/* Only apply light-on-dark styling when hero has a background image */
.hero.hero--with-image .hero-title {
  color: #ffffff !important;
  text-shadow: 0 6px 18px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.45);
}
.hero.hero--with-image .hero-subtitle {
  color: rgba(255,255,255,0.92) !important;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.35);
}

/* Removed hero-copy chip per design feedback */

/* Section headings and dividers */
.exhibition { border-bottom: 2px solid var(--mono-border) !important; }
.exhibition-entry { border-left-color: var(--mono-border) !important; }
.exhibition-entry:hover { border-left-color: var(--mono-text) !important; }
.year { color: #9a9a9a !important; }

/* Works grid – subtle polish */
.works img { transition: transform 280ms ease, opacity 280ms ease; }
.works img:hover { transform: scale(1.03); opacity: 0.98; }

/* Footer */
footer.footer { background: transparent !important; color: var(--mono-muted); }
.footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Remove fixed footer behavior from legacy styles */
footer { position: static !important; }

/* Mobile tweaks */
@media (max-width: 576px) {
  :root { --nav-height: 56px; }
  .navbar-brand .wordmark { font-size: 18px; }
}

/* Monochrome minimal theme overrides */
/* Color system */
:root {
  --bg: #f7f7f7;
  --fg: #333333;
  --muted: #6b6b6b;
  --soft: #9a9a9a;
  --border: #e6e6e6;
}

/* Dark theme tokens */
:root[data-theme="dark"] {
  /* legacy mono tokens */
  --mono-bg: #0f1115;
  --mono-text: #e6e6e6;
  --mono-muted: #9aa0a6;
  --mono-border: #272a33;

  /* modern tokens */
  --bg: #0f1115;           /* page background */
  --fg: #e6e6e6;           /* foreground text */
  --muted: #a0a6ad;        /* muted text */
  --soft: #7c848d;         /* softer text */
  --border: #272a33;       /* borders */
  --surface: #151922;      /* elevated surfaces (cards, menus) */
  color-scheme: dark;
}

/* Base */
html, body {
  background: var(--bg) !important;
  color: var(--fg) !important;
  font-family: 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
  /* subtle dot grid to add texture */
  background-image: radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 14px 14px;
  background-attachment: fixed;
}

/* Dark theme background texture */
:root[data-theme="dark"] html,
:root[data-theme="dark"] body {
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
}

/* Base font family for body text */
body {
  font-family: 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
}

/* Remove homepage background image */
body.homepage {
  background: var(--bg) !important;
}
body.homepage main {
  background: transparent !important;
}

/* Typography */
/* Body text */
h1, h2, h3, h4, h5, h6, .wordmark, .hero-title {
  font-family: 'GFS Didot', Didot, 'Bodoni 72', Georgia, serif !important;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700 !important;
  color: var(--fg) !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  margin-top: 1.25em !important;
  margin-bottom: 0.6em !important;
}

/* Type scale */
h1 { font-size: clamp(2.25rem, 5vw, 2.75rem) !important; }
h2 { font-size: clamp(2rem, 4.2vw, 2.25rem) !important; }
h3 { font-size: clamp(1.5rem, 3.6vw, 1.75rem) !important; }
h4 { font-size: 1.25rem !important; }
h5 { font-size: 1.125rem !important; }
h6 { font-size: 1rem !important; }

p, li {
  color: var(--fg) !important;
}

i, em {
  color: var(--muted) !important;
}

/* Links */
a {
  color: var(--fg) !important;
  text-decoration: none !important;
}
a:hover {
  text-decoration: underline !important;
}

/* Generic active state override */
.active { color: var(--fg) !important; }

/* Hero */
.hero {
  padding-top: 22vh;
  padding-bottom: 18vh;
  text-align: center;
}
.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0 0 0.4em 0;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--muted);
  margin: 0 auto;
}

/* Layout helpers */
main {
  padding-top: 88px;
  padding-bottom: 6rem;
}

.container,
.container-fluid {
  background: transparent !important;
}

/* Navbar */
.navbar.bgConnects,
.bgConnects {
  background-color: #f7f7f7 !important;
  border-bottom: 1px solid var(--border) !important;
}

:root[data-theme="dark"] .navbar.bgConnects,
:root[data-theme="dark"] .bgConnects {
  background-color: var(--bg) !important;
  border-bottom: 1px solid var(--border) !important;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  display: block;
  /* Keep image logo neutral if used */
  filter: none;
}

/* Typographic wordmark */
.wordmark {
  font-family: "GFS Didot", ui-serif, Georgia, serif !important;
  font-size: 22px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--fg) !important;
  text-transform: uppercase;
}

.navbar-light .navbar-nav .nav-link,
.navConnect {
  color: var(--fg) !important;
  font-weight: 500 !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navConnect:hover {
  color: var(--fg) !important;
  text-decoration: underline !important;
}

.navbar-light .navbar-nav .nav-link.active,
.navConnect.active {
  color: var(--fg) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

.navbar-brand { padding-left: 0 !important; }
.nav-item { padding-right: 16px !important; }
.nav-item:last-child { padding-right: 0 !important; }

/* Dropdown */
.dropdown-menu.dropdownConnects,
#changeCh,
.dropdown-menu {
  background: #f7f7f7 !important;
  border: 1px solid var(--border) !important;
}
.dropdown-item {
  color: var(--fg) !important;
}
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  color: var(--fg) !important;
  background: #f8f8f8 !important;
}
.dropdownConnects a { color: var(--fg) !important; }
.dropdownConnects a:hover, .dropdown-menu a:hover { color: var(--fg) !important; background: #efefef !important; }

/* Dark theme dropdowns */
:root[data-theme="dark"] .dropdown-menu.dropdownConnects,
:root[data-theme="dark"] #changeCh,
:root[data-theme="dark"] .dropdown-menu {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}
:root[data-theme="dark"] .dropdown-item:hover,
:root[data-theme="dark"] .dropdown-item:focus,
:root[data-theme="dark"] .dropdown-item.active {
  background: rgba(255,255,255,0.04) !important;
}
:root[data-theme="dark"] .dropdownConnects a:hover,
:root[data-theme="dark"] .dropdown-menu a:hover {
  background: rgba(255,255,255,0.06) !important;
}

/* Lists, cards, buttons */
.card {
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

/* Dark theme cards */
:root[data-theme="dark"] .card {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

.card-title {
  font-weight: 600 !important;
}

.btn,
.btn-primary {
  background: transparent !important;
  color: var(--fg) !important;
  border: 1px solid var(--fg) !important;
  border-radius: 999px !important;
  padding: 0.5rem 1rem !important;
}
.btn:hover,
.btn-primary:hover {
  background: var(--fg) !important;
  color: #ffffff !important;
}

/* Works grid */
.photo-gallery {
  color: var(--fg) !important;
  background: transparent !important;
}
.homini { margin-top: 32px !important; margin-bottom: 48px !important; }
.titlech { margin-top: 0 !important; margin-bottom: 24px !important; }
.titlech h1 {
  margin-bottom: 1.5rem !important;
}

.works img,
.photo-gallery .item img {
  filter: none;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
}
.works img:hover,
.photo-gallery .item img:hover {
  transform: scale(1.01) !important;
  opacity: 0.96 !important;
}

.works p,
.photo-gallery p {
  color: var(--muted) !important;
}
.photo-gallery p:hover { color: var(--fg) !important; text-decoration: none !important; }

/* Subtle hover for work items */
.item.works {
  border-radius: 8px;
  transition: background-color 0.2s ease;
}
.item.works:hover { background-color: rgba(0,0,0,0.02); }

/* Dark theme hover on items */
:root[data-theme="dark"] .item.works:hover { background-color: rgba(255,255,255,0.04); }

/* About page */
.about {
  margin-top: 120px !important;
  margin-bottom: 120px !important;
}

.imgConnect {
  position: static !important;
  margin-bottom: 2rem !important;
}

.cv {
  padding-left: 0 !important;
  max-width: 760px !important;
}

.exhibition {
  border-bottom: 1px solid var(--border) !important;
}
.exhibition-entry,
.award-entry {
  border-left: 3px solid var(--border) !important;
}
.exhibition-entry:hover { border-left-color: var(--fg) !important; }
.year {
  color: var(--soft) !important;
}

/* Contact */
.contact { margin: 120px 0 !important; }
.contact-wrapper { align-items: stretch; }
.contact-photo { display: flex; justify-content: center; }
.contact-photo img { display: block; width: 100%; height: auto; object-fit: cover; }
@media (min-width: 768px) {
  .contact-photo img { width: 90%; max-width: 520px; }
}
.contact-panel { max-width: 560px; }
.contact-title { letter-spacing: 0.02em; }
.contact-details { font-style: normal; }
.contact-detail { display: flex; gap: 0.75rem; align-items: baseline; padding: 0.4rem 0; border-bottom: 1px dashed var(--border); }
.contact-detail:last-child { border-bottom: 0; }
.contact-label { width: 7.5rem; color: var(--muted); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.06em; }
.contact-value { color: var(--fg); }
.contact-link { color: var(--fg) !important; text-decoration: underline !important; text-underline-offset: 2px; }
.contact-cta .btn { min-width: 9rem; }

/* Footer */
footer {
  position: static !important;
  margin-top: 4rem !important;
}
.footerConnect {
  background: #ffffff !important;
  color: var(--muted) !important;
  border-top: 1px solid var(--border) !important;
}

/* Dark theme footer */
:root[data-theme="dark"] .footerConnect {
  background: var(--bg) !important;
  color: var(--muted) !important;
  border-top-color: var(--border) !important;
}
.footerConnect a,
.copyright {
  color: var(--muted) !important;
  font-family: 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
}

/* Fancybox caption – keep minimal */
.fancybox__caption {
  background: rgba(0, 0, 0, 0.88) !important;
  font-family: 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial !important;
  font-size: 0.95rem !important;
}
.fancybox__counter {
  font-family: 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial !important;
}

/* Toggle button minimal tweaks */
#theme-toggle.btn {
  border-color: var(--border) !important;
  color: var(--fg) !important;
}


/* Removed extra layering block to avoid seams between header and hero */

/* Utilities */
.text-muted { color: var(--muted) !important; }



