/* Base + component styles. Class-based (our styling approach for the vanilla
   TS + Vite build); tokens come from tokens.css. */

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

body {
  margin: 0;
  background: var(--cream-2);
  color: var(--ink);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ochre);
  text-decoration: none;
}
a:hover {
  color: var(--ochre-hover);
}

::placeholder {
  color: var(--placeholder);
}

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

/* ---------- layout primitives ---------- */
.site {
  min-height: 100vh;
  background: var(--cream);
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.accent-bar {
  width: 44px;
  height: 2px;
  background: var(--ochre);
  margin-bottom: 26px;
}

/* ---------- header / nav ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}

.brand {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-1);
}

.nav-link {
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: var(--ink);
}
.nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--ochre);
}

.lang-toggle {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ochre);
}

.header-rule {
  height: 1px;
  background: var(--rule);
}

/* ---------- home: hero ---------- */
.home {
  padding-bottom: 40px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
  padding: clamp(48px, 6vw, 74px) 0 clamp(44px, 5vw, 66px);
}

.hero__title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero__title em {
  font-style: italic;
  color: var(--ochre);
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin-top: 26px;
  max-width: 440px;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-top: 32px;
  color: var(--ochre);
  border-bottom: 1px solid var(--ochre);
  padding-bottom: 3px;
  cursor: pointer;
}

.hero__frame {
  aspect-ratio: 5 / 6;
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4vw, 42px);
}

/* Matted artwork: image is a direct flex child of its frame, so max-height:100%
   resolves against the frame's definite (aspect-ratio) height. The white mat
   border hugs the image because it keeps its intrinsic ratio (no fixed w/h). */
.matted {
  max-width: 100%;
  max-height: 100%;
  border: 16px solid var(--mat);
  box-shadow: var(--shadow-mat);
}
.matted--sm {
  border-width: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

/* ---------- hero carousel ---------- */
.hero__frame--carousel {
  position: relative;
}
.hero-carousel__slide[hidden] {
  display: none;
}
.hero-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(247, 241, 228, 0.85);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.hero-carousel__nav:hover {
  background: var(--ochre);
  color: #f7f0e4;
  border-color: var(--ochre);
}
.hero-carousel__nav--prev {
  left: 10px;
}
.hero-carousel__nav--next {
  right: 10px;
}
.hero-carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: background 0.15s ease;
}
.hero-carousel__dot:hover {
  background: rgba(0, 0, 0, 0.4);
}
.hero-carousel__dot.is-active {
  background: var(--ochre);
}

/* ---------- work cards (featured grid + gallery) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  padding: 44px 0 58px;
  border-top: 1px solid var(--rule);
}

.work-card {
  cursor: pointer;
}
.work-card__frame {
  aspect-ratio: 1 / 1;
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.work-card__title {
  margin: 14px 0 0;
  font-weight: 400;
  font-size: 18px;
}
.work-card__meta {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 5px;
  line-height: 1.55;
}
.work-card__avail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.work-avail {
  font-family: var(--font-sans);
  font-size: 12.5px;
}
.work-avail--verfuegbar {
  color: var(--ochre);
}
.work-avail--verkauft,
.work-avail--reserviert {
  color: var(--text-4);
}

/* link badges on a card */
.badge {
  flex: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge--blog {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid var(--ochre);
  color: var(--ochre);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.badge--blog:hover {
  background: var(--ochre);
  color: #f7f0e4;
}
.badge--yt {
  color: var(--ochre);
}

/* ---------- home: exhibition banner ---------- */
.exhibition {
  background: var(--ochre);
  color: #f7f0e4;
  padding: clamp(30px, 4vw, 44px) clamp(24px, 4vw, 46px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px 30px;
  border-radius: var(--radius);
}
.exhibition__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 14px;
}
.exhibition__title {
  font-size: 28px;
  font-style: italic;
}
.exhibition__venue {
  font-family: var(--font-sans);
  font-size: 14px;
  opacity: 0.88;
  margin-top: 6px;
}
.exhibition__date {
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 20px;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding-block: 26px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--text-4);
}
.site-footer__links {
  display: flex;
  gap: 18px;
}
.site-footer__links a {
  color: var(--text-4);
}
.site-footer__links a:hover {
  color: var(--ink);
}
.studio-link {
  cursor: pointer;
}

/* ---------- shared page primitives ---------- */
.container.w-narrow {
  max-width: 920px;
}
.container.w-blog {
  max-width: 820px;
}
.container.w-contact {
  max-width: 720px;
}
.container.w-post {
  max-width: 680px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 14px;
}
.eyebrow--ochre {
  color: var(--ochre);
  letter-spacing: 0.12em;
}

.page-title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 38px);
  line-height: 1.1;
}

.rule {
  height: 1px;
  background: var(--rule);
  margin: 26px 0 36px;
}
.rule--tight {
  margin: 30px 0;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}
.btn--primary {
  background: var(--ochre);
  color: #f7f0e4;
}
.btn--primary:hover {
  background: var(--ochre-hover);
  color: #f7f0e4;
}

.work-card__link {
  display: block;
  color: inherit;
}
.work-card__link:hover {
  color: inherit;
}

/* ---------- gallery ---------- */
.gallery {
  padding-block: 52px 60px;
}
.gallery__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  gap: 26px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-1);
  padding-bottom: 4px;
}
.filter {
  color: var(--text-1);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  cursor: pointer;
}
.filter:hover {
  color: var(--ink);
}
.filter.is-active {
  color: var(--ochre);
  border-bottom-color: var(--ochre);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px 30px;
}

/* ---------- artwork detail ---------- */
.detail {
  padding-block: 34px 64px;
}
.detail__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.detail__back {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-3);
}
.detail__back:hover {
  color: var(--ink);
}
.detail__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.detail__prev,
.detail__next {
  color: var(--ochre);
}
.detail__pos {
  color: var(--text-4);
  letter-spacing: 0.04em;
}
.detail__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.detail__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eae3d6;
  padding: 48px;
  min-height: 420px;
}
.detail__frame {
  height: min(520px, 64vh);
  max-width: 100%;
  border: 16px solid var(--mat);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}
.detail__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail__title {
  margin: 0;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
}
.detail__desc {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-top: 18px;
  max-width: 380px;
}
.specs {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink);
}
.spec {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.spec__k {
  color: var(--text-3);
}
.spec__v {
  text-align: right;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0 30px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 20px;
  padding: 4px 11px;
}

/* ---------- events ---------- */
.events {
  padding-block: 52px 64px;
}
.event {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 26px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.event__kind {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.event__kind--ausstellung {
  color: var(--ochre);
}
.event__kind--workshop,
.event__kind--webinar {
  color: var(--text-1);
}
.event__title {
  font-size: 22px;
  font-style: italic;
}
.event__venue {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 5px;
}
.event__date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-1);
  white-space: nowrap;
}

/* ---------- about ---------- */
.about {
  padding-block: 60px 70px;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.about__portrait {
  aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(
    135deg,
    #e9e0d0,
    #e9e0d0 11px,
    #e2d8c5 11px,
    #e2d8c5 22px
  );
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.ph-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-4);
  background: rgba(242, 236, 225, 0.72);
  padding: 3px 7px;
}
.about__title {
  margin: 0;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
}
.about__p {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-2);
  margin-top: 22px;
}
.about__p + .about__p {
  margin-top: 16px;
}

/* ---------- contact ---------- */
.contact {
  padding-block: 60px 70px;
}
.contact__title {
  margin: 0;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.12;
}
.contact__sub {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin-top: 18px;
  max-width: 460px;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}
.field {
  padding: 13px 15px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fbf7ef;
  font-size: 14px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
}
.field--full {
  grid-column: 1 / 3;
}
textarea.field {
  resize: vertical;
}
.contact__send {
  grid-column: 1 / 3;
  justify-self: start;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.consent input {
  margin-top: 2px;
  accent-color: var(--ochre);
  flex: none;
}
/* honeypot — off-screen, not display:none (which bots detect) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.form-status {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ochre-hover);
  min-height: 0;
}
.form-status:empty {
  display: none;
}
.form-success {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  padding: 20px 0;
}

/* ---------- legal pages ---------- */
.legal {
  padding-block: 44px 72px;
}
.legal__body {
  margin-top: 22px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-2);
}
.legal__body h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin: 28px 0 8px;
}
.legal__body p {
  margin: 0 0 14px;
}
.legal__body strong {
  color: var(--ink);
  font-weight: 500;
}
.legal__note {
  font-size: 12.5px;
  color: var(--text-4);
  font-style: italic;
  margin-top: 24px;
}

/* ---------- blog list ---------- */
.blog {
  padding-block: 52px 64px;
}
.post-row {
  display: block;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  cursor: pointer;
}
.post-row:hover {
  color: inherit;
}
.post-row__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  margin-bottom: 10px;
}
.post-row__title {
  margin: 0;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
}
.post-row__excerpt {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin-top: 10px;
  max-width: 560px;
}
.post-row__more {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ochre);
  margin-top: 12px;
}

/* ---------- single post ---------- */
.post {
  padding-block: 40px 72px;
}
.post__back {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 30px;
}
.post__back:hover {
  color: var(--ink);
}
.post__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  margin-bottom: 14px;
}
.post__title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.14;
}
.post__body {
  margin-top: 26px;
}
.post__body p {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.85;
  color: #3a342c;
  margin: 0 0 18px;
}
.post__body h2 {
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 30px 0 12px;
}
.post__body blockquote {
  margin: 22px 0;
  padding-left: 18px;
  border-left: 2px solid var(--ochre);
  font-style: italic;
  color: var(--text-2);
}
.post__body img {
  width: 100%;
  margin: 22px 0;
  border-radius: var(--radius);
}
.post__body a {
  color: var(--ochre);
}
.post__body strong {
  font-weight: 600;
}
.post__body em {
  font-style: italic;
}

/* ---------- not found ---------- */
.notfound {
  padding-block: 70px 100px;
}
.notfound__body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text-2);
  margin: 0 0 26px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .detail__grid,
  .about__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .event {
    grid-template-columns: 96px 1fr;
    gap: 6px 18px;
  }
  .event__date {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-wrap: wrap;
    gap: 14px 18px;
  }
  .nav {
    gap: 16px 18px;
    flex-wrap: wrap;
  }
  .event {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .detail__stage {
    padding: 22px;
    min-height: 0;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .field--full,
  .contact__send {
    grid-column: 1;
  }
}
