/* Tatiana Granados Stark — shared styles
   CI aus der bestehenden Wix-Seite übernommen: Schwarz/Weiß, Helvetica, sehr reduziert. */

:root {
  --color-bg: #ffffff;
  --color-text: #0a0a0a;
  --color-muted: #b9b9b9;
  --color-muted-2: #7a7a7a;
  --color-line: #eaeaea;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sidebar-width: 250px;
  --content-max: 1100px;
  --gutter: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

p { text-align: justify; text-justify: inter-word; }

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

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

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

ul { list-style: none; margin: 0; padding: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout shell ---------- */

.site-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 48px 0 32px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 40;
}

.logo-link {
  display: inline-block;
  width: 84px;
}

.logo-link img {
  width: 100%;
  height: auto;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 64px;
}

.main-nav a {
  font-size: 17px;
  color: var(--color-text);
  transition: color .15s ease;
}

.main-nav a:hover { color: var(--color-muted-2); }

.main-nav a[aria-current="page"] {
  color: var(--color-muted);
  pointer-events: none;
}

.sidebar-foot {
  font-size: 11px;
  color: var(--color-muted);
  padding-right: 32px;
  line-height: 1.5;
}

.content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  padding: 48px var(--gutter) 96px;
}

.lang-switch {
  position: fixed;
  top: max(44px, env(safe-area-inset-top));
  right: calc(var(--gutter) + env(safe-area-inset-right));
  z-index: 100;
  display: flex;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .04em;
  white-space: nowrap;
  background: var(--color-bg);
}

.lang-switch button {
  color: var(--color-muted);
  padding: 2px 0;
}

.lang-switch button.active {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
}

.lang-switch button:hover { color: var(--color-text); }

/* ---------- Mobile nav ---------- */

.menu-toggle {
  display: none;
}

@media (max-width: 860px) {
  .site-shell { display: block; }

  .sidebar {
    position: fixed;
    width: 100%;
    height: auto;
    bottom: auto;
    padding: 20px 24px;
    flex-direction: row;
    align-items: center;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
  }

  .sidebar > div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
  }

  .logo-link { width: 56px; }

  .menu-toggle {
    display: block;
    width: 26px;
    height: 20px;
    position: relative;
  }

  .menu-toggle span,
  .menu-toggle::before,
  .menu-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-text);
    transition: transform .2s ease, opacity .2s ease;
  }
  .menu-toggle::before { top: 0; }
  .menu-toggle span { top: 9px; }
  .menu-toggle::after { top: 18px; }

  .sidebar.nav-open .menu-toggle::before { transform: translateY(9px) rotate(45deg); }
  .sidebar.nav-open .menu-toggle span { opacity: 0; }
  .sidebar.nav-open .menu-toggle::after { transform: translateY(-9px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    padding: 24px;
    transform: translateY(-110%);
    transition: transform .25s ease;
    overflow-y: auto;
  }

  .sidebar.nav-open .main-nav { transform: translateY(0); }

  .main-nav ul { margin-top: 8px; gap: 20px; }
  .main-nav a { font-size: 20px; }

  .sidebar-foot { display: none; }

  .content {
    margin-left: 0;
    padding-top: 100px;
  }

  .lang-switch {
    top: max(24px, env(safe-area-inset-top));
    right: calc(70px + env(safe-area-inset-right));
  }
}

/* ---------- Page heading ---------- */

.page-title {
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 40px;
}

/* ---------- Home ---------- */

.home-hero {
  min-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vh, 36px);
  text-align: center;
}

.home-hero__image-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero__image-wrap img {
  width: min(50vw, 520px);
  max-height: 62vh;
  object-fit: contain;
}

.home-hero__label,
.home-hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
  transition: opacity .2s ease;
}

.home-hero__label:hover,
.home-hero__text:hover {
  opacity: .6;
}

.home-hero__label h1,
.home-hero__text h1 {
  font-size: clamp(15px, 1.5vw, 19px);
  margin: 0 0 2px;
  text-align: center;
}

.home-hero__label p,
.home-hero__text p {
  font-size: clamp(13px, 1.2vw, 16px);
  margin: 0;
  color: var(--color-muted-2);
  position: static;
  text-align: center;
}

@media (max-width: 860px) {
  .home-hero { min-height: 80vh; }
  .home-hero__image-wrap img { width: 82vw; max-height: 56vh; }
  .home-hero__label h1,
  .home-hero__text h1 { font-size: clamp(13px, 3.6vw, 17px); }
  .home-hero__label p,
  .home-hero__text p {
    position: static;
    margin-top: 2px;
    font-size: clamp(11px, 3vw, 14px);
    text-align: center;
  }
}

/* ---------- Intro / body text ---------- */

.intro-text {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text);
}

.intro-text p { margin: 0 0 20px; }
.intro-text p:last-child { margin-bottom: 0; }
.intro-text em { font-style: italic; }

.intro-text--full { max-width: none; }

/* ---------- Project tabs (Projekte page) ---------- */

.project-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  margin-top: 32px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--color-line);
  padding-top: 16px;
  padding-bottom: 16px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.project-tabs::-webkit-scrollbar {
  display: none;
}

.project-tabs button {
  flex: 0 0 auto;
  font-size: 20px;
  color: var(--color-muted);
  padding-bottom: 4px;
  white-space: nowrap;
}

.project-tabs button.active {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
}

.project-tabs button:hover { color: var(--color-text); }

@media (max-width: 860px) {
  .project-tabs {
    gap: 22px;
  }
  .project-tabs button {
    font-size: 17px;
  }
}

.project-section { display: none; }
.project-section.active { display: block; }

.project-section h2 {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 24px;
  color: var(--color-muted-2);
  letter-spacing: .02em;
}

/* ---------- Gallery grid (thumbnails -> lightbox) ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 4px;
  margin-top: 8px;
}

.gallery-grid.gallery-grid--wide {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .gallery-grid.gallery-grid--wide { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
  .gallery-grid.gallery-grid--wide { grid-template-columns: 1fr; gap: 14px; }
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4f4f4;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, opacity .2s ease;
}

.gallery-item:hover img { transform: scale(1.045); opacity: .92; }

/* ---------- Featured single artwork (e.g. Lo que viene) ---------- */

.featured-work {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-line);
}

.featured-work__title {
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 10px;
}

.featured-work__meta {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-muted-2);
  margin: 24px 0 0;
  max-width: 480px;
}

.featured-work__frame {
  max-width: 480px;
}

.featured-work__frame--tall {
  aspect-ratio: auto;
}

.featured-work__frame--tall img {
  height: auto;
  object-fit: contain;
}

.quote-block {
  margin: 8px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--color-line);
  font-style: italic;
  color: var(--color-muted-2);
  text-align: justify;
  text-justify: inter-word;
}

.quote-citation {
  font-size: 13px;
  color: var(--color-muted-2);
  margin: 10px 0 0 22px;
}

/* Press-style captioned cards */

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px 20px;
  margin-top: 8px;
}

.press-card { text-align: left; }

.press-card .gallery-item { aspect-ratio: 3 / 4; background: #f4f4f4; }

.press-card figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-muted-2);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, .94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox__figure {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox figcaption {
  color: #ddd;
  font-size: 13px;
  text-align: center;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  color: #fff;
  font-size: 16px;
  padding: 10px;
  letter-spacing: .05em;
}

.lightbox__close { top: 28px; right: 36px; font-size: 26px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 32px; }

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--color-muted); }

@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lightbox__prev { left: 2px; }
  .lightbox__next { right: 2px; }
}

/* ---------- Bio page ---------- */

.bio-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

.bio-layout img {
  width: 100%;
  object-fit: cover;
}

.bio-name {
  font-size: 20px;
  margin: 0 0 6px;
}

.bio-role {
  color: var(--color-muted-2);
  margin: 0 0 24px;
  font-size: 15px;
}

.awards h3 {
  font-size: 16px;
  font-weight: 400;
  margin: 40px 0 18px;
  letter-spacing: .02em;
}

.awards dl { margin: 0; }
.awards dt {
  font-weight: 700;
  font-size: 14px;
  margin-top: 20px;
}
.awards dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: justify;
  text-justify: inter-word;
}
.awards dd + dd { margin-top: 10px; }

.cv-link {
  display: inline-block;
  font-size: 15px;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
  transition: opacity .15s ease;
}

.cv-link:hover { opacity: .6; }

@media (max-width: 860px) {
  .bio-layout { grid-template-columns: 1fr; gap: 28px; }
  .bio-layout img { max-width: 280px; }
}

/* ---------- CV page ---------- */

.cv-section {
  max-width: 760px;
  margin-bottom: 48px;
}

.cv-section h2 {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line);
}

.cv-section dl { margin: 0; }

.cv-section dt {
  font-weight: 700;
  font-size: 14px;
  margin-top: 16px;
}

.cv-section dt:first-child { margin-top: 0; }

.cv-section dd {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: justify;
  text-justify: inter-word;
}

.cv-section dd + dd { margin-top: 8px; }

/* ---------- Contact page ---------- */

.contact-layout {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  padding: 56px var(--gutter);
  margin: -16px calc(var(--gutter) * -1) 0;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) brightness(1.04);
}

.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .74);
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.contact-info { margin: 0 0 36px; font-size: 16px; line-height: 1.8; }
.contact-info a { text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid #ccc;
  background: rgba(255, 255, 255, .9);
  color: var(--color-text);
  resize: vertical;
}

.contact-form textarea { min-height: 140px; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8a8a8a; }

.contact-form button {
  align-self: flex-start;
  background: var(--color-text);
  color: #fff;
  padding: 13px 34px;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 6px;
}

.contact-form button:hover { background: #2a2a2a; }
.contact-form button:disabled { opacity: .5; cursor: default; }

.contact-form__status {
  margin: 4px 0 0;
  font-size: 14px;
  min-height: 1.4em;
}
.contact-form__status--ok  { color: #2a7a2a; }
.contact-form__status--err { color: #b00; }

@media (max-width: 860px) {
  .contact-layout { margin: -16px -24px 0; padding: 40px 24px; }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  font-size: 12px;
  color: var(--color-muted);
}

/* ---------- Mobile text-align override ---------- */

@media (max-width: 860px) {
  p, .quote-block, .awards dd, .cv-section dd {
    text-align: left;
  }
}
