/* Wonderspaces Show Guide — styling.
   Light, gallery-inspired theme. Mobile-first: most visitors are on a phone
   walking the show. Rebrand by editing the :root variables below. */

:root {
  --bg: #f6f4ef;          /* warm paper */
  --bg-soft: #efece4;
  --surface: #ffffff;     /* cards */
  --text: #1c1b19;        /* near-black ink */
  --text-dim: #76726a;    /* muted */
  --accent: #b06a2c;      /* bronze */
  --accent-soft: #f0e3d4;
  --border: #e7e2d8;
  --shadow: 0 1px 2px rgba(28,27,25,0.04), 0 8px 24px rgba(28,27,25,0.06);
  --shadow-hover: 0 2px 6px rgba(28,27,25,0.06), 0 14px 34px rgba(28,27,25,0.10);
  --radius: 16px;
  --maxw: 760px;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px 72px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246,244,239,0.85);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
}
.brand { text-decoration: none; color: var(--text); line-height: 1; display: block; }
.brand .wordmark {
  display: block; height: 22px; width: auto;
}

.lang-toggle {
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 16px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; box-shadow: var(--shadow);
  transition: transform 0.1s, border-color 0.15s;
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-toggle:active { transform: scale(0.97); }

/* ---------- Hero / intro ---------- */
.hero { padding: 40px 0 6px; }
.hero .eyebrow {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em;
  font-size: 2.4rem; line-height: 1.08;
}
.hero p { color: var(--text-dim); margin-top: 12px; font-size: 1.05rem; max-width: 48ch; }

.section-title {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-dim); font-weight: 700; margin: 34px 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Location cards (landing) ---------- */
.loc-list { display: flex; flex-direction: column; gap: 14px; }
.loc-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; text-decoration: none;
  color: var(--text); box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.15s;
}
.loc-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.loc-card:active { transform: scale(0.995); }
.loc-card .meta h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.loc-card .meta .sub { color: var(--text-dim); font-size: 0.92rem; margin-top: 3px; }
.loc-card .arrow {
  margin-left: auto; color: var(--accent); font-size: 1.5rem; line-height: 1;
  flex: 0 0 auto; transition: transform 0.15s;
}
.loc-card:hover .arrow { transform: translateX(3px); }

/* ---------- Artwork grid (gallery) ---------- */
/* Picture-forward artwork cards: image fills the card, title overlaid. */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.tile {
  position: relative; display: block; aspect-ratio: 3 / 2;
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: #fff; box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.15s;
}
.tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tile:active { transform: scale(0.995); }

.tile-img {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-soft), var(--accent-soft));
}
.tile-img img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Placeholder mark shown when no photo is set yet */
.tile-img::after {
  content: "❖"; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  color: rgba(176,106,44,0.35); font-size: 2rem; z-index: 0;
}
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 32px 16px 14px;
  background: linear-gradient(to top, rgba(18,16,13,0.86), rgba(18,16,13,0.42) 55%, rgba(18,16,13,0));
}
.tile-cap h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1.14rem;
  line-height: 1.2; letter-spacing: -0.01em; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.tile-cap .artist {
  color: rgba(255,255,255,0.85); font-size: 0.84rem; margin-top: 3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

/* ---------- Detail view ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); text-decoration: none; font-weight: 600;
  font-size: 0.9rem; margin: 24px 0 18px; background: none; border: none;
  cursor: pointer; padding: 0;
}
.back-link:hover { text-decoration: underline; }

.detail-figure { margin: 0 0 26px; }
.detail-img {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--bg-soft), var(--accent-soft));
}
.photo-credit {
  margin-top: 9px; font-size: 0.78rem; font-style: italic;
  color: var(--text-dim); letter-spacing: 0.01em;
}
.detail-img::after {
  content: "\2756"; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  color: rgba(176,106,44,0.32); font-size: 2.4rem; z-index: 0;
}
.detail-img img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.detail .eyebrow {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.detail h1 {
  font-family: var(--serif); font-weight: 600; font-size: 2.3rem;
  line-height: 1.1; letter-spacing: -0.01em;
}
.detail .artist { color: var(--text-dim); font-weight: 500; margin-top: 8px; font-size: 1.05rem; }
.detail .artist b { color: var(--accent); font-weight: 600; }
.detail .medium { color: var(--text-dim); font-size: 0.9rem; margin-top: 10px; font-style: italic; }

.detail .desc {
  margin-top: 22px; font-size: 1.14rem; line-height: 1.65; color: #34322e;
  border-top: 1px solid var(--border); padding-top: 22px;
}
.detail .desc p + p { margin-top: 1em; }

.detail .block-title {
  font-family: var(--sans); font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 700; color: var(--accent);
  margin: 34px 0 12px;
}
.detail .bio { color: #4a473f; font-size: 1.02rem; line-height: 1.6; }
.detail .bio p + p { margin-top: 0.8em; }

/* FAQ accordion (native <details>) */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 2px 16px; box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 14px 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1;
  flex: 0 0 auto; transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "\2212"; } /* minus */
.faq-answer { padding: 0 0 16px; color: #4a473f; line-height: 1.6; }
.faq-answer p + p { margin-top: 0.7em; }

/* Artist links */
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.link-pill {
  display: inline-flex; align-items: center; text-decoration: none;
  background: var(--surface); color: var(--accent); font-weight: 600;
  font-size: 0.88rem; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; box-shadow: var(--shadow); transition: border-color 0.15s;
}
.link-pill:hover { border-color: var(--accent); }

/* ---------- About (Mission / History) on the home page ---------- */
.about { margin-top: 4px; }
.about-heading {
  font-family: var(--serif); font-weight: 600; font-size: 1.55rem;
  letter-spacing: 0.06em; margin: 40px 0 14px; color: var(--text);
}
.about-body { color: #3d3a34; font-size: 1.05rem; line-height: 1.62; }
.about-body p + p { margin-top: 1em; }
.learn-more {
  display: inline-block; margin-top: 30px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 15px 32px; border-radius: 999px; box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.15s;
}
.learn-more:hover { box-shadow: var(--shadow-hover); }
.learn-more:active { transform: scale(0.98); }

/* ---------- "Next" link on a detail page ---------- */
.next-link {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border);
  text-decoration: none; text-align: center;
}
.next-link .next-label {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 700;
}
.next-link .next-title {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--accent); letter-spacing: -0.01em; line-height: 1.15;
}
.next-link:hover .next-title { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 48px;
  padding: 28px 0; color: var(--text-dim); font-size: 0.82rem; text-align: center;
}

/* Fade in once JS renders */
[data-app] { opacity: 0; transition: opacity 0.25s ease; }
[data-app].ready { opacity: 1; }

@media (min-width: 560px) {
  .hero h1 { font-size: 2.9rem; }
  .grid { gap: 20px; }
}
