/* ==========================================================================
   Mosso Art — archived static mirror
   ========================================================================== */

:root {
  --color-bg: #f7f8f9;
  --color-panel: #ffffff;
  --color-text: #8b3a34;
  --color-muted: #a4645f;
  --color-accent: #8b3a34;
  --color-accent-dark: #540101;
  --color-line: #e8d9d6;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;
  --text-size: 16px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-size);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 56px;
  padding: 56px 24px 120px;
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 36px; padding: 36px 20px 80px; }
  /* On mobile the layout stacks in one column — show the page content
     (logo + main content) first, with the nav/menu sidebar below it,
     so opening a page doesn't land you on a long link list you have to
     scroll past to see anything. */
  .layout main { order: 1; }
  .layout .sidebar { order: 2; }
}

/* ---- Sidebar / logo / nav ---- */

.sidebar { position: relative; padding-top: 108px; }

@media (max-width: 860px) {
  .sidebar { padding-top: 0; }
}

@media (min-width: 861px) {
  .sidebar { position: sticky; top: 40px; align-self: start; }
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.social-links a {
  color: var(--color-accent);
  display: inline-flex;
  transition: color .15s ease, transform .15s ease;
}

.social-links a:hover {
  color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 34px;
  padding: 3px;
  border-radius: 20px;
  background: var(--color-panel);
  box-shadow: 0 3px 10px rgba(139, 58, 52, .1);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
}

.lang-switch a,
.lang-switch span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 16px;
  line-height: 1;
}

.lang-switch a {
  color: var(--color-muted);
  transition: background .15s ease, color .15s ease;
}

.lang-switch a:hover {
  color: var(--color-accent-dark);
  background: var(--color-bg);
}

.lang-switch span[aria-current="page"] {
  background: var(--color-accent);
  color: #fff;
}

.nav-group {
  margin-bottom: 30px;
}

.nav-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-size);
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: .01em;
}

.nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-group li { margin-bottom: 9px; }

.nav-group a {
  color: var(--color-accent);
  font-size: var(--text-size);
  transition: color .15s ease, padding-left .15s ease;
}

.nav-group a:hover,
.nav-group a[aria-current="page"] {
  color: var(--color-accent-dark);
  font-weight: 700;
}

.nav-legal {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

.nav-legal a { color: var(--color-muted); font-size: var(--text-size); }

/* ---- Main content ---- */

main { min-width: 0; }

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  margin: 4px 0 30px;
  color: var(--color-accent);
  text-align: center;
  letter-spacing: 0;
}

.home-logo {
  display: block;
  max-width: 180px;
  margin: 0 auto 20px;
  transition: transform .25s ease;
}

.home-logo:hover { transform: scale(1.02); }

.page-subtitle {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-accent);
  font-size: var(--text-size);
  margin: -18px 0 34px;
  text-align: center;
}

.hero-image {
  max-width: 320px;
  border-radius: 10px;
  margin: 0 auto 38px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(139, 58, 52, .14);
}

.hero-image img { width: 100%; height: auto; transition: transform .4s ease; }
.hero-image:hover img { transform: scale(1.02); }

.prose {
  max-width: 700px;
  font-size: var(--text-size);
  margin: 0 auto;
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
  -webkit-hyphens: auto;
  color: var(--color-accent);
}

.prose p { margin: 0 0 22px; }

.meta-line {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-size);
  color: var(--color-accent);
  margin-bottom: 30px;
  text-align: center;
}

/* ---- Image slider (Events pages) ---- */

.slider {
  position: relative;
  max-width: 320px;
  margin: 0 auto 38px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(139, 58, 52, .14);
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar { display: none; }

.slider-track img {
  flex: 0 0 100%;
  scroll-snap-align: start;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--color-accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  transition: background .2s ease, transform .15s ease;
}

.slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

/* ---- Gallery grid (fallback, currently unused on content pages) ---- */

.gallery {
  columns: 4 150px;
  column-gap: 10px;
  margin: 34px 0;
}

.gallery figure {
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-panel);
  break-inside: avoid;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .3s ease;
}

.gallery a:hover img { transform: scale(1.03); }

@media (max-width: 600px) {
  .gallery { columns: 2 140px; }
}

/* ---- Work / hub grid on homepage ---- */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px 0 56px;
}

.hub-grid a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(139, 58, 52, .1);
}

.hub-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.hub-grid a:hover img { transform: scale(1.07); }

.hub-grid .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  color: #fff;
  background: linear-gradient(to top, rgba(84,1,1,.75), rgba(84,1,1,0));
  opacity: 0;
  transition: opacity .2s ease;
}

.hub-grid a:hover .cap { opacity: 1; }

@media (max-width: 860px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}

.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-accent);
  margin: 50px 0 8px;
  text-align: center;
}

main > .section-label:first-child { margin-top: 0; }

/* ---- Also-like strip ---- */

.also-like {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--color-line);
}

.also-like h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-size);
  color: var(--color-muted);
  margin: 0 0 18px;
}

.also-like .strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.also-like .strip a {
  flex: 0 0 160px;
  display: block;
}

.also-like .strip img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.also-like .strip span {
  display: block;
  margin-top: 6px;
  font-size: var(--text-size);
  color: var(--color-muted);
}

/* ---- Footer bio ---- */

.site-bio {
  margin-top: 76px;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
  font-size: var(--text-size);
  color: var(--color-muted);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ---- Contact form ---- */

form.contact-form {
  max-width: 520px;
  margin: 10px auto 0;
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-size: var(--text-size);
  color: var(--color-muted);
  margin-bottom: 6px;
  text-align: left;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: var(--text-size);
  color: var(--color-text);
  background: #fff;
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-submit {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 13px 34px;
  border-radius: 30px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

.form-submit:hover { background: var(--color-accent-dark); transform: translateY(-1px); }

/* ---- Video link button ---- */

.video-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-size);
  background: var(--color-accent);
  color: #fff;
  padding: 11px 28px;
  border-radius: 30px;
  transition: background .2s ease, transform .15s ease;
}

.video-btn:hover { background: var(--color-accent-dark); transform: translateY(-1px); }

/* ---- Back to top ---- */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-panel);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  font-size: 18px;
  transition: transform .15s ease;
}

.back-to-top:hover { transform: translateY(-2px); }

/* ---- Legal page ---- */

.legal p { margin: 0 0 16px; }
