/* Silk Walls Entertainment — static replica of the archived Squarespace 7.1 site.
   Palette, type roles, logo size, and events-list layout follow the Jan 2026 Wayback snapshot + site.css tokens.
   Rama Gothic E/M (Adobe Fonts) is substituted with Barlow Condensed. */

:root {
  --black: #000000;
  --dark: #1c1c1c;
  --page: #fafafa;
  --accent: #dcdcdc;
  --white: #ffffff;
  --heading: "Permanent Marker", cursive;
  --body: "Alatsi", sans-serif;
  --meta: "Gantari", sans-serif;
  --nav: "Space Mono", ui-monospace, monospace;
  --gothic: "Barlow Condensed", "Oswald", "Anton", sans-serif;
  --max: 1400px;
  --pad: 3vw;
  --logo-h: 167px;
  --logo-h-mobile: 64px; /* archived token was 30px; that made the wordmark unreadable */
  --ease: ease;
}

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

html {
  font-size: 22px;
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--page);
}

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.6rem;
  line-height: 1.5em;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--page);
  color: var(--black);
  padding: 0.4rem 0.7rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---- Header: transparent over the dark first section, not fixed ---- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  padding: 3vw var(--pad);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--nav);
  font-size: 0.55rem;
  letter-spacing: 0.02em;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--page);
  opacity: 0.92;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 0.3em; }

.logo {
  display: block;
  justify-self: center;
}

.logo img {
  height: var(--logo-h);
  width: auto;
  max-width: min(420px, 50vw);
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
}

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

.social a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--page);
  text-decoration: none;
}

.social a:hover { opacity: 0.7; }

.social svg { width: 16px; height: 16px; fill: currentColor; }

.btn {
  display: inline-block;
  border: 1px solid var(--page);
  background: transparent;
  color: var(--page);
  text-decoration: none;
  padding: 0.45em 0.9em;
  border-radius: 0;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}

.btn:hover { background: var(--page); color: var(--black); }

.btn-cta {
  font-family: var(--nav);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-primary {
  font-family: var(--heading);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  color: var(--page);
  cursor: pointer;
  padding: 0;
}

.burger-lines,
.burger-lines::before,
.burger-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger-lines::before { top: -7px; }
.burger-lines::after { top: 7px; }

body.menu-open .burger-lines { background: transparent; }
body.menu-open .burger-lines::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger-lines::after { top: 0; transform: rotate(-45deg); }

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 30;
  padding: 5rem var(--pad) 2rem;
  overflow: auto;
}

body.menu-open .menu-overlay { display: flex; flex-direction: column; gap: 1.5rem; }

.menu-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: var(--nav);
  font-size: 1rem;
}

.menu-overlay nav a { text-decoration: none; color: var(--page); }
.menu-overlay nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }

.menu-overlay .social { margin-top: 0.5rem; }
.menu-overlay .btn-cta { align-self: flex-start; font-size: 0.7rem; padding: 0.7em 1.1em; }
.menu-overlay .burger-close {
  position: absolute;
  top: 1.2rem;
  right: var(--pad);
}

/* ---- Pages ---- */
.page {
  position: relative;
  min-height: 100vh;
}

.hero-space {
  /* room for the absolutely positioned transparent header */
  padding-top: calc(var(--logo-h) + 6vw);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  padding-bottom: 8vw;
}

.section-dark {
  background: var(--black);
  color: var(--page);
}

/* ---- Events list (homepage) ---- */
.event {
  display: grid;
  grid-template-columns: 35% 5.5rem 1fr;
  gap: 1.4rem 1.6rem;
  align-items: start;
  animation: fadein 0.9s ease 0.15s both;
}

.event-thumb {
  position: relative;
  width: 100%;
  /* 4:3 of this element's own width (grid cell is already 35% / full on mobile) */
  padding-bottom: 75%;
  background: rgba(110, 110, 110, 0.05);
  overflow: hidden;
  text-decoration: none;
}

.event-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.datetag {
  font-family: var(--gothic);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--page);
  padding-top: 0.15rem;
}

.datetag-month {
  font-size: 0.7rem;
  opacity: 0.85;
}

.datetag-day {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0.15rem 0 0.25rem;
}

.datetag-end {
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
  line-height: 1.2;
  text-transform: uppercase;
}

.event-title {
  margin: 0 0 17px;
  padding: 0;
  font-family: var(--heading);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2em;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.event-title a { text-decoration: none; }

.event-meta {
  list-style: none;
  margin: 0 0 17px;
  padding: 0;
  font-family: var(--meta);
  font-size: 0.7rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.event-meta li { margin: 0 0 0.35em; }
.event-meta a { text-decoration: underline; text-underline-offset: 0.15em; }
.event-meta .divider::before { content: " · "; opacity: 0.6; }

.event-excerpt {
  margin: 0 0 1.2rem;
  max-width: 46rem;
  font-size: 0.6rem;
  line-height: 1.5em;
}

.event-excerpt p { margin: 0; }

/* ---- Event detail ---- */
.event-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem 3rem;
  align-items: start;
  animation: fadein 0.9s ease 0.15s both;
}

.poster img {
  width: 100%;
  height: auto;
}

.detail-title {
  margin: 0 0 0.6rem;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 5.2rem);
  line-height: 1em;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.detail-meta {
  font-family: var(--meta);
  font-size: 0.7rem;
  line-height: 1.4;
  margin: 0 0 1.2rem;
}

.detail-body {
  font-size: 0.6rem;
  line-height: 1.5em;
  max-width: 42rem;
}

.detail-body p { margin: 0 0 1em; }
.detail-body h2 {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1em;
  margin: 1.6rem 0 0.7rem;
}

.lineup {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  display: grid;
  gap: 0.15rem 1.2rem;
  font-family: var(--gothic);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note {
  margin: 1.6rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(220, 220, 220, 0.2);
  font-size: 0.5rem;
  line-height: 1.5;
  opacity: 0.7;
  max-width: 42rem;
}

.facts {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}
.facts li { margin: 0 0 0.45em; }
.facts strong {
  font-family: var(--gothic);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 0.1em;
}

/* ---- Contact / thanks ---- */
.page-title {
  margin: 0 0 1.2rem;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 1em;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  animation: fadein 0.9s ease both;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem 4rem;
  animation: fadein 0.9s ease 0.15s both;
}

.contact-details p { margin: 0 0 0.85em; }
.contact-details a { text-decoration: underline; text-underline-offset: 0.18em; }
.contact-details .label {
  font-family: var(--gothic);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.55rem;
  display: block;
  margin-bottom: 0.15em;
  opacity: 0.8;
}

form.contact-form {
  display: grid;
  gap: 0.85rem;
}

form.contact-form label {
  display: grid;
  gap: 0.3em;
  font-family: var(--gothic);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.55rem;
}

form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  font-family: var(--body);
  font-size: 0.6rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  padding: 0.45em 0;
  width: 100%;
}

form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--page);
}

form.contact-form textarea { min-height: 7em; resize: vertical; }
form.contact-form select option { color: var(--black); }

form.contact-form .btn { justify-self: start; margin-top: 0.4rem; }

.hidden, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.thanks-msg {
  font-size: 0.7rem;
  max-width: 28rem;
  animation: fadein 0.9s ease 0.15s both;
}

.thanks-msg a { text-decoration: underline; text-underline-offset: 0.18em; }

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ---- Label / Labs ---- */
.page-intro {
  margin: 0 0 2rem;
  font-size: 0.7rem;
  max-width: 36rem;
  animation: fadein 0.9s ease 0.1s both;
}

.page-cta {
  margin: 0;
  animation: fadein 0.9s ease 0.15s both;
}

.labs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  max-width: 52rem;
  animation: fadein 0.9s ease 0.15s both;
}

.lab-card {
  border: 1px solid rgba(220, 220, 220, 0.25);
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.lab-card h2 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1em;
}

.lab-card p {
  margin: 0;
  font-size: 0.6rem;
  line-height: 1.5em;
  flex: 1;
}

.lab-card .btn { align-self: flex-start; }

.lab-card .soon {
  font-family: var(--gothic);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.55rem;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .event {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "thumb thumb"
      "date info";
  }
  .event-thumb {
    grid-area: thumb;
  }
  .datetag { grid-area: date; }
  .event-info { grid-area: info; }

  .event-detail,
  .contact-grid,
  .labs-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }
  .nav-desktop,
  .header-actions .social,
  .header-actions .btn-cta { display: none; }
  .logo { justify-self: start; }
  .burger { display: block; justify-self: end; }
}

@media (max-width: 767px) {
  .site-header { padding: 6vw var(--pad) 4vw; }
  .logo img {
    height: var(--logo-h-mobile);
    max-width: 70vw;
  }
  .hero-space { padding-top: calc(var(--logo-h-mobile) + 14vw); }
  .event-title { font-size: 22px; }
}

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