/* The Treasure Yurt — celestial lattice splash */

:root {
  --navy: #0a1630;
  --navy-deep: #050c1c;
  --navy-mid: #132044;
  --gold: #d4b45a;
  --gold-bright: #f0d78c;
  --gold-dim: rgba(212, 180, 90, 0.22);
  --cream: #f4ead6;
  --cream-dim: #d9ccb0;
  --canvas: #e6d4b5;
  --wood: #8a5a32;
  --ink: #16110c;
  --mushroom: #9e3434;
  --max: 72rem;
  --header-h: 4.25rem;
  --font-display: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
  --font-name: "Cinzel", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cream);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-bright); }
a:hover { color: #fff8e4; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--navy-deep);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.1rem;
  background: rgba(5, 12, 28, 0.55);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 12, 28, 0.94);
  border-bottom-color: var(--gold-dim);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
  min-width: 0;
}
.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: var(--cream);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--gold-dim);
}
.brand-name {
  font-family: var(--font-name);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a {
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav a:hover { color: var(--gold-bright); }
.nav-aux { display: none; }
.nav-facebook {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-bright) !important;
}

@media (min-width: 720px) {
  .site-header { padding: 0 1.75rem; }
  .nav-aux { display: inline; }
  .brand-name { font-size: 1.05rem; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-name);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-bright); color: var(--navy-deep); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--gold);
}
.btn-ghost:hover { background: var(--gold-dim); color: #fff; }

.icon-fb {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(100svh, 54rem);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(5, 12, 28, 0.96) 0%, rgba(5, 12, 28, 0.55) 42%, rgba(10, 22, 48, 0.28) 100%),
    linear-gradient(to right, rgba(5, 12, 28, 0.55) 0%, transparent 55%);
}
.hero-inner {
  width: min(100% - 2.2rem, var(--max));
  margin: 0 auto;
  padding: 6.5rem 0 3.25rem;
}
.hero-logo {
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
  border: 1px solid var(--gold-dim);
  margin-bottom: 1.15rem;
  box-shadow: 0 8px 30px rgba(5, 12, 28, 0.45);
}
.hero-line {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-family: var(--font-name);
  font-weight: 700;
  font-size: clamp(2.15rem, 8vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 2px 28px rgba(5, 12, 28, 0.7);
}
.hero-line .behold {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.38em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.35em;
}
.hero-tag {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.35;
  color: var(--cream);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.hero-dare {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.hero-dare span {
  color: #c75a5a;
}

/* —— Shared layout —— */
.wrap {
  width: min(100% - 2.2rem, var(--max));
  margin: 0 auto;
}
.section {
  padding: 4.25rem 0;
}
.kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-name);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 1.15;
  color: var(--cream);
}
.lede {
  margin: 0 0 2rem;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--cream-dim);
}
.gold-rule {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
  margin: 0 0 1.5rem;
  border: 0;
}

.star-div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.25rem 0;
  color: var(--gold);
}
.star-div::before,
.star-div::after {
  content: "";
  height: 1px;
  width: min(28vw, 8rem);
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.star-div svg { width: 0.85rem; height: 0.85rem; fill: currentColor; }

/* —— Interior band —— */
.interior {
  position: relative;
  min-height: clamp(14rem, 42vw, 26rem);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.interior img.bleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: -2;
}
.interior-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(5, 12, 28, 0.88), rgba(5, 12, 28, 0.15) 55%, rgba(5, 12, 28, 0.35));
}
.interior-caption {
  width: min(100% - 2.2rem, var(--max));
  margin: 0 auto;
  padding: 3rem 0 1.75rem;
}
.interior-caption p {
  margin: 0;
  max-width: 28rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.3;
  color: var(--cream);
}

/* —— Wares —— */
.wares {
  background:
    radial-gradient(1.2px 1.2px at 18% 22%, rgba(240, 215, 140, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 38%, rgba(244, 234, 214, 0.4) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 40% 78%, rgba(212, 180, 90, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 70%, rgba(240, 215, 140, 0.35) 50%, transparent 51%),
    var(--navy);
  background-size: 280px 240px, 280px 240px, 280px 240px, 280px 240px, auto;
}
.ware {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
  align-items: center;
}
.ware:last-child { margin-bottom: 0; }
.ware figure { margin: 0; }
.ware img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--gold-dim);
}
.ware h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--cream);
}
.ware p {
  margin: 0;
  color: var(--cream-dim);
  max-width: 36rem;
}

@media (min-width: 800px) {
  .ware {
    grid-template-columns: 1.05fr 1fr;
    gap: 2.25rem;
    margin-bottom: 3.5rem;
  }
  .ware:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
  .ware:nth-child(even) figure { order: 2; }
  .ware img { aspect-ratio: 5 / 4; }
}

/* —— Gallery mosaic —— */
.mosaic {
  background: var(--navy-deep);
  padding-top: 0;
}
.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.mosaic-grid figure { margin: 0; }
.mosaic-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}
.mosaic-grid .wide {
  grid-column: 1 / -1;
}
.mosaic-grid .wide img { aspect-ratio: 16 / 8; object-position: center 45%; }

@media (min-width: 800px) {
  .mosaic-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.7rem;
  }
  .mosaic-grid .wide {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .mosaic-grid .wide img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 22rem;
    object-position: center 40%;
  }
}

.mosaic-grid figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Makers */
.maker {
  background-color: var(--canvas);
  color: var(--ink);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48'><path d='M24 0 L48 24 L24 48 L0 24 Z' fill='none' stroke='%238a5a32' stroke-width='0.7' opacity='0.18'/></svg>");
}
.maker .kicker { color: var(--wood); }
.maker h2,
.maker h3 { color: var(--navy); }
.maker .lede,
.maker p { color: #3a2c1c; }
.maker .gold-rule { background: var(--wood); }
.makers-intro { max-width: 40rem; margin: 0 0 2rem; }
.makers-list {
  display: grid;
  gap: 1.75rem;
}
.maker-person {
  margin: 0;
}
.maker-person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(138, 90, 50, 0.25);
  margin-bottom: 1rem;
}
.maker-person h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}
.maker-person p {
  margin: 0;
  max-width: 32rem;
}

@media (min-width: 800px) {
  .makers-list {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

/* —— Find us / Facebook —— */
.find {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.find::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 10% 20%, rgba(240, 215, 140, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 80%, rgba(244, 234, 214, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 30%, rgba(212, 180, 90, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 72%, rgba(240, 215, 140, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 12%, rgba(244, 234, 214, 0.5) 50%, transparent 51%);
  background-size: 340px 280px;
  pointer-events: none;
}
.find-grid {
  position: relative;
  display: grid;
  gap: 1.5rem;
}
.find-card {
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid var(--gold-dim);
  background: rgba(19, 32, 68, 0.45);
}
.find-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}
.find-card p {
  margin: 0 0 1.2rem;
  color: var(--cream-dim);
}
.find-card p:last-of-type { margin-bottom: 0; }
.find-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 0.85rem !important;
}
.find-email {
  margin: 0 !important;
  font-size: 0.95rem;
}
.find-email a { color: var(--gold-bright); }
.find-photo {
  margin: 0;
}
.find-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--gold-dim);
}

@media (min-width: 800px) {
  .find-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
  }
}

/* —— Footer —— */
.site-footer {
  position: relative;
  isolation: isolate;
  min-height: 16rem;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.site-footer .bleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: -2;
}
.footer-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(5, 12, 28, 0.96) 0%, rgba(5, 12, 28, 0.55) 70%, rgba(5, 12, 28, 0.35) 100%);
}
.footer-inner {
  width: min(100% - 2.2rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 1.75rem;
}
.footer-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-name);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-place {
  margin: 0 0 1.25rem;
  color: var(--cream-dim);
}
.legal {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #9a8f78;
}
