:root {
  --bg: #f6f3ed;
  --surface: rgba(255, 255, 255, 0.76);
  --ink: #202020;
  --accent: #9a3b23;
  --muted: #6a665f;
  --border: #e2dbd1;
  --deep: #29241f;
  --sand: #d9c5a4;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem;
}

.press-scan {
  display: block;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: zoom-in;
}

.press-scan:focus-visible,
.press-scan:hover {
  outline: 2px solid var(--accent);
}

.press-scan img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.artwork-grid .press-scan span {
  display: block;
  padding: 0.4rem 0.2rem;
  color: var(--ink);
  font-size: 0.85rem;
}

.category-search {
  display: grid;
  gap: 0.35rem;
  max-width: 28rem;
  font-weight: 700;
}

.category-search input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: normal;
}

.gallery-sort,
.artwork-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.gallery-sort button,
.artwork-carousel button {
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.gallery-sort button {
  inline-size: min(100%, 17rem);
}

.gallery-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
}

.gallery-controls .gallery-sort {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin: 0;
}

.gallery-controls .gallery-sort button {
  inline-size: 100%;
}

@media (min-width: 860px) {
  .gallery-controls {
    grid-template-columns: minmax(12rem, 1fr) minmax(30rem, 2fr);
  }
}

.artwork-carousel {
  margin-top: 1.5rem;
}

.artwork-stage {
  display: grid;
  grid-template-columns: minmax(44px, 1fr) minmax(0, auto) minmax(44px, 1fr);
  align-items: stretch;
  min-height: 16rem;
  background: var(--deep);
  touch-action: pan-y pinch-zoom;
}

.artwork-stage img {
  display: block;
  width: 100%;
  height: min(66dvh, 760px);
  object-fit: contain;
}

.artwork-stage button {
  padding-inline: 0;
  border: 0;
  background: transparent;
  color: #fffaf2;
  font-size: 1.75rem;
}

.artwork-toolbar,
.viewer-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
}

.artwork-toolbar,
.viewer-footer {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
}

.viewer-footer {
  padding: 0.35rem 0.75rem 0;
}

.artwork-toolbar .artwork-caption,
.viewer-footer #image-caption {
  grid-column: 2;
  margin: 0;
  text-align: center;
}

@media (max-width: 640px) {
  .artwork-toolbar,
  .viewer-footer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .artwork-toolbar .artwork-caption,
  .viewer-footer #image-caption {
    grid-column: 1 / -1;
  }

  .artwork-toolbar .artwork-controls,
  .viewer-footer .viewer-toolbar {
    grid-column: 2;
  }
}

.artwork-controls,
.viewer-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.artwork-controls {
  margin-inline-start: auto;
}

.artwork-play span {
  display: inline-block;
  width: 18px;
  height: 20px;
  vertical-align: middle;
  font-size: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 20'%3E%3Cpath d='M2 2L15 10L2 18Z' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.38;
}

.artwork-play span + span {
  margin-left: -10px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 20'%3E%3Cpath d='M2 7V2L15 10L2 18V13' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.artwork-play .is-lit {
  opacity: 1;
}

.viewer-toolbar {
  align-items: center;
}

.image-viewer.viewer-expanded,
.viewer-content:fullscreen {
  width: 100%;
  max-width: 100%;
  max-height: 100dvh;
  background: var(--deep);
}

.image-viewer.viewer-expanded {
  height: 100dvh;
}

.image-viewer.viewer-expanded img,
.viewer-content:fullscreen img {
  max-width: calc(100vw - 88px);
  max-height: calc(100dvh - 5.5rem);
}

@media (max-width: 640px) {
  .image-viewer.viewer-expanded img,
  .viewer-content:fullscreen img {
    max-height: calc(100dvh - 8rem);
  }
}

.viewer-content:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 0.5rem;
  overflow: auto;
}

.artwork-caption {
  flex: 1;
  margin: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.artwork-play[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.artwork-carousel:fullscreen,
.artwork-carousel.artwork-expanded {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.75rem;
  background: var(--deep);
  color: #fffaf2;
}

.artwork-carousel.artwork-expanded {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.artwork-carousel:fullscreen .artwork-stage,
.artwork-expanded .artwork-stage {
  flex: 1;
  min-height: 0;
}

.artwork-carousel:fullscreen img,
.artwork-expanded img {
  height: 100%;
  min-height: 0;
}

.front-page .hero {
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  background: radial-gradient(ellipse at 80% 5%, rgba(89, 70, 55, 0.92), rgba(40, 35, 30, 0.92) 72%);
  color: #fffaf2;
}

.front-page .hero h1 {
  max-width: 28ch;
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 3.4vw, 2.65rem);
  line-height: 1.15;
}

.front-page .hero > p {
  max-width: 58ch;
}

.front-page .hero .kicker,
.front-page .hero .text-link {
  color: var(--sand);
}

.page-intro {
  position: relative;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-intro::after {
  content: "";
  position: absolute;
  inset: auto auto -1px 0;
  width: 3rem;
  border-bottom: 2px solid var(--accent);
}

.page-intro h1 {
  margin: 0.3rem 0 0;
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: clamp(1.9rem, 5vw, 3.45rem);
  line-height: 1.1;
}

.page-intro-home > p:not(.kicker) {
  max-width: 60ch;
  margin: 0.8rem 0 0;
}

.page-intro-home .hero-actions {
  margin-top: 0.35rem;
}

.page-intro-artwork {
  padding-bottom: 0.85rem;
}

.page-intro-artwork h1 {
  margin-top: 0;
  font-size: clamp(1.65rem, 3.8vw, 2.65rem);
}

.page-intro-artwork + .artwork-carousel {
  margin-top: 0.85rem;
}

#kontakt {
  scroll-margin-top: 7rem;
}

.story-copy {
  max-width: 65ch;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.review {
  display: grid;
  grid-template-rows: auto 1fr;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.review img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 10rem;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 0.65rem;
  background: var(--bg);
}

.review figcaption {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1rem;
}

.review blockquote {
  margin: 0;
  font-family: Georgia, serif;
}

.review figcaption p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.commission-languages h3::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 0.75em;
  margin-right: 0.45em;
  border: 1px solid #77664c;
  border-radius: 2px;
  box-shadow: inset 0 0 3px #48372066;
}

.commission-languages [lang="fr"] h3::before {
  background: linear-gradient(90deg, #3e5370 33.33%, #e9ddbc 33.33% 66.66%, #9a493c 66.66%);
}

.commission-languages [lang="es"] h3::before {
  background: linear-gradient(#9a493c 25%, #d5ad58 25% 75%, #9a493c 75%);
}

.commission-languages [lang="de"] h3::before {
  background: linear-gradient(#40362c 33.33%, #9a493c 33.33% 66.66%, #d5ad58 66.66%);
}

.commission-languages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.5rem;
}

.commission-languages h3,
.commission-languages p {
  margin: 0;
}

.commission-languages p {
  margin-top: 0.5rem;
}

* {
  box-sizing: border-box;
}

body {
  isolation: isolate;
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: linear-gradient(160deg, #f7f4ef 0%, #efe7d8 100%);
  color: var(--ink);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("images/indianwarrior-mark.png") center / auto 84vh no-repeat;
  background-size: min(72vw, 60vh) auto;
  mix-blend-mode: multiply;
  opacity: 0.12;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  flex: none;
  object-fit: contain;
  mix-blend-mode: multiply;
}

nav a {
  color: var(--muted);
  margin-left: 1rem;
  text-decoration: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--accent);
}

.home,
.gallery-page {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1rem) 0 3rem;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
}

.kicker {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.05em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0.5rem 0 1rem;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border: 1px solid currentColor;
  border-radius: 10px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--deep);
  color: #fffaf2;
}

.trust-strip div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  color: var(--sand);
  font-size: 1.2rem;
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}

.info,
.heritage,
.craft-section,
.testimonial,
.commission,
.gallery-header,
.folder-block {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
}

.story h2,
.section-heading h2,
.commission h2 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.story-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.story-columns p {
  margin: 0;
}

.craft-section {
  background: transparent;
  border: 0;
  padding-inline: 0;
}

.section-heading {
  max-width: 660px;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.craft-grid article {
  min-height: 210px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.craft-grid span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.craft-grid h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.35rem;
}

.craft-grid p {
  margin: 0;
  color: var(--muted);
}

.testimonial {
  border-color: var(--sand);
  background: rgba(240, 228, 208, 0.76);
}

.testimonial .quote {
  margin: 0 0 0.5rem;
  color: var(--deep);
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.2;
}

.testimonial > p:not(.quote) {
  max-width: 760px;
}

.commission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--accent);
  color: #fff;
}

.commission .kicker {
  color: var(--sand);
}

.commission p {
  max-width: 690px;
}

.button-light {
  flex: none;
  margin: 0;
  color: #fffaf2;
}

footer {
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

footer p {
  margin: 0.15rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  background: #fff;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.gallery-item {
  border: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  cursor: zoom-in;
  font: inherit;
  min-width: 0;
  overflow-wrap: anywhere;
}

.folder-block summary {
  cursor: pointer;
  font-weight: 700;
  position: relative;
  padding: 0.6rem 3.25rem 0.6rem 0;
}

.folder-block {
  scroll-margin-top: 9rem;
}

.gallery-share-category {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
}

button.gallery-share-icon,
.gallery-controls .gallery-sort button,
.folder-block > button,
.image-viewer .viewer-toolbar button,
.artwork-carousel .artwork-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem;
  border: 1px solid currentColor;
  border-radius: 12px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.folder-block > button {
  font: inherit;
}

.gallery-sort button span {
  font-weight: 600;
}

.image-viewer .viewer-toolbar button,
.artwork-carousel:is(:fullscreen, .artwork-expanded) .artwork-controls button {
  color: var(--sand);
}

@media (hover: hover) {
  .button:hover,
  button.gallery-share-icon:hover,
  .gallery-controls .gallery-sort button:hover,
  .folder-block > button:hover,
  .image-viewer .viewer-toolbar button:not(:disabled):hover,
  .artwork-carousel .artwork-controls button:not(:disabled):hover {
    background: color-mix(in srgb, currentColor 12%, transparent);
  }
}

.gallery-share-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  margin-inline: auto;
}

.viewer-toolbar .viewer-close-control,
.artwork-controls .viewer-close-control {
  font-size: 1.4rem;
  line-height: 1;
}

.folder-block[open] .grid {
  margin-block: 1rem;
}

.gallery-item img {
  object-fit: contain;
  background: var(--bg);
}

.gallery-item:hover img {
  filter: brightness(0.9);
}

.gallery-image-title {
  display: block;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
}

.thumbnail-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0.5rem;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.85rem;
}

.gallery-item:focus-visible,
.image-viewer button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.image-viewer {
  box-sizing: border-box;
  max-width: 100%;
  max-height: 94dvh;
  padding-inline: 0;
  border: 0;
}

.image-viewer::backdrop {
  background: #201912dd;
}

.image-viewer:focus {
  outline: none;
}

.image-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(calc(100vw - 88px), 1100px);
  max-height: 75dvh;
  object-fit: contain;
}

.viewer-stage {
  display: grid;
  grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
  align-items: stretch;
  margin-top: 0.75rem;
}

.image-viewer {
  width: 100%;
  background: transparent;
  color: #fffaf2;
}

.image-viewer button {
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.viewer-stage > button {
  min-width: 44px;
  padding-inline: 0;
  font-size: 1.5rem;
}

.viewer-stage > button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.viewer-stage .viewer-close-image {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  cursor: zoom-out;
  touch-action: pan-y pinch-zoom;
}

.image-viewer .viewer-close-image:focus-visible {
  outline: none;
}

.viewer-stage button:disabled {
  opacity: 0.4;
  cursor: default;
}

#image-caption {
  margin: 0.5rem 0 0;
  text-align: center;
}

#image-title {
  margin: 0;
  overflow-wrap: anywhere;
}

#image-position {
  margin: 0.25rem 0 0;
  color: #d9c5a4;
  font-size: 0.8rem;
}

.card p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  word-break: break-word;
}

.loading,
.error {
  padding: 1rem;
}

.error {
  color: #8e1f1f;
}

@media (max-width: 640px) {
  .hero,
  .info,
  .heritage,
  .craft-section,
  .testimonial,
  .commission,
  .gallery-header,
  .folder-block {
    padding: 1rem;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .topbar .brand {
    align-self: center;
  }

  .topbar .brand img {
    width: 36px;
    height: 36px;
  }

  .topbar nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0.2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
  }

  .topbar nav a {
    display: grid;
    place-items: center;
    min-height: 44px;
    margin: 0;
    border-radius: 8px;
    font-size: clamp(0.75rem, 3vw, 0.9rem);
  }

  .topbar nav a[aria-current="page"] {
    background: var(--accent);
    color: #fff;
  }

  .trust-strip,
  .story-columns,
  .craft-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .commission {
    align-items: flex-start;
    flex-direction: column;
  }
}
