:root {
  --bg: #f4efe7;
  --bg-soft: #fbf8f3;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #1c261f;
  --muted: #617067;
  --line: rgba(28, 38, 31, 0.12);
  --accent: #245446;
  --accent-soft: #d7e7df;
  --warm: #cf8d56;
  --shadow: 0 20px 50px rgba(34, 44, 38, 0.12);
  --radius: 24px;
  --radius-sm: 18px;
  --display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --ui-font: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(207, 141, 86, 0.22), transparent 26rem),
    radial-gradient(circle at left top, rgba(36, 84, 70, 0.14), transparent 30rem),
    linear-gradient(180deg, #f7f2ea 0%, var(--bg) 100%);
  font-family: var(--ui-font);
  line-height: 1.6;
}

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

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

[data-lang] {
  display: none;
}

html[data-site-lang="en"] [data-lang="en"],
html[data-site-lang="et"] [data-lang="et"] {
  display: block;
}

html[data-site-lang="en"] span[data-lang="en"],
html[data-site-lang="et"] span[data-lang="et"] {
  display: inline;
}

.site-shell {
  width: min(1280px, calc(100vw - 2.2rem));
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

.site-header {
  position: sticky;
  top: 0.8rem;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 248, 243, 0.86);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.brand-mark {
  display: inline-block;
  font-family: var(--display-font);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  padding: 0.68rem 1rem;
  border-radius: 999px;
  font-size: 0.98rem;
}

.lang-button {
  padding: 0.56rem 0.82rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.site-nav a:hover {
  background: rgba(36, 84, 70, 0.08);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-toggle {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(36, 84, 70, 0.08);
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(28, 38, 31, 0.1);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(36, 84, 70, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
}

.icon-link:hover {
  background: rgba(36, 84, 70, 0.08);
}

.icon-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-link .icon-fill {
  fill: currentColor;
  stroke: none;
}

.hero,
.page-intro,
.section,
.split-section,
.work-detail,
.image-view-frame,
.site-footer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  padding: 2rem;
}

.hero-copy h1,
.page-intro h1,
.section-heading h2,
.split-section h2,
.work-detail h1 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.45rem, 4.2vw, 4.8rem);
  max-width: 9.5ch;
}

.hero-text p,
.prose-section p,
.work-description p {
  max-width: 72ch;
}

.hero-dates,
.eyebrow,
.meta-grid dt,
.label-kicker,
.image-note,
.work-card-meta,
.footer-canonical p {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.hero-actions,
.detail-actions,
.work-detail-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(36, 84, 70, 0.18);
  background: var(--accent);
  color: #f6f4ef;
  font-weight: 600;
}

.text-link {
  background: transparent;
  color: var(--text);
}

.button:hover,
.text-link:hover {
  filter: brightness(0.97);
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-content: start;
}

.hero-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.64);
}

.hero-gallery figure:first-child {
  grid-column: span 2;
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.section,
.page-intro,
.split-section,
.work-detail,
.site-footer,
.image-view-frame {
  margin-top: 1.4rem;
  padding: 1.6rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.work-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.work-card-media {
  display: block;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4)),
    linear-gradient(135deg, rgba(36, 84, 70, 0.08), rgba(207, 141, 86, 0.08));
}

.work-card-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.work-card-body {
  padding: 0 1rem 1rem;
}

.work-card-body h3 {
  margin: 0.1rem 0 0.4rem;
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 500;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.info-panel {
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.info-panel h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 500;
}

.info-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.info-panel-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 0.9rem;
}

.page-intro h1 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.section-heading h2,
.split-section h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
}

.work-detail h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.8rem);
}

.hero-text p,
.prose-section p,
.work-description p {
  max-width: 72ch;
  font-size: 0.98rem;
}

.page-intro h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-top: 0.2rem;
}

.page-intro p:last-child {
  max-width: 52ch;
  font-size: 0.98rem;
}

.prose-section {
  display: grid;
  gap: 1rem;
}

.artist-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 1.6rem;
  align-items: start;
}

.artist-portrait {
  margin: 0;
}

.artist-portrait img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 36px rgba(28, 38, 31, 0.12);
}

.work-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.95fr);
  gap: 1.4rem;
}

.work-detail-media {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36)),
    linear-gradient(135deg, rgba(36, 84, 70, 0.08), rgba(207, 141, 86, 0.08));
}

.work-detail-media img {
  width: 100%;
  max-height: 72vh;
  margin: 0 auto;
  object-fit: contain;
}

.work-detail-copy h1 {
  margin-bottom: 1rem;
}

.work-detail-footer {
  align-items: flex-end;
  justify-content: space-between;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.2rem;
}

.meta-grid div {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.meta-grid dt {
  margin-bottom: 0.3rem;
}

.meta-grid dd {
  margin: 0;
  font-size: 1rem;
}

.detail-qr {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.detail-qr-box {
  padding: 0.5rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.detail-qr-box img {
  width: 104px;
  height: 104px;
}

.tags-shell {
  width: min(1480px, calc(100vw - 2rem));
  padding-top: 1.4rem;
}

.page-tags {
  background: #f5f0e8;
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.tag-card {
  break-inside: avoid;
  page-break-inside: avoid;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 12px 34px rgba(28, 38, 31, 0.08);
}

.tag-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.tag-kicker,
.tag-instagram {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.tag-card h2,
.tag-card h3 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 500;
}

.tag-card h2 {
  margin-top: 0.25rem;
  font-size: 1.75rem;
  line-height: 1.08;
}

.tag-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.tag-meta {
  margin-top: 0.65rem;
  font-size: 0.88rem;
}

.tag-qr {
  padding: 0.55rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.tag-qr img {
  width: 132px;
  height: 132px;
}

.tag-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.tag-columns section {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.tag-columns p {
  margin: 0 0 0.72rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.image-view {
  margin-top: 1.4rem;
}

.image-view-tools {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.image-view-frame {
  background: rgba(15, 18, 17, 0.92);
  color: #f6f4ef;
}

.image-view-frame img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.image-view-frame figcaption {
  padding-top: 1rem;
  color: rgba(246, 244, 239, 0.82);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.footer-icons {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.site-footer p {
  margin: 0 0 0.2rem;
}

.footer-note {
  max-width: 36rem;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(45, 58, 54, 0.62);
}

.footer-divider {
  padding: 0 0.5rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .split-section,
  .work-detail,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .artist-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 28px;
  }

  .site-nav,
  .header-tools {
    justify-content: flex-start;
  }

  .header-tools {
    flex-wrap: wrap;
  }

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

@media (max-width: 720px) {
  .site-shell {
    width: min(100vw - 1rem, 100%);
  }

  .site-header {
    top: 0.4rem;
  }

  .hero,
  .page-intro,
  .section,
  .split-section,
  .work-detail,
  .site-footer,
  .image-view-frame {
    padding: 1.15rem;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
  }

  .hero-gallery figure:first-child {
    grid-column: auto;
  }

  .work-grid,
  .meta-grid,
  .tags-grid,
  .tag-columns {
    grid-template-columns: 1fr;
  }

  .artist-portrait img {
    max-width: 280px;
  }

  .work-detail-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .tag-card-head {
    grid-template-columns: 1fr;
  }

  .detail-qr {
    margin-left: 0;
  }

  .detail-qr-box img,
  .tag-qr img {
    width: 126px;
    height: 126px;
  }
}
