/* POLYTOPE - Shared Styles
   Matching original Squarespace design system
   Dark theme: --darkAccent ~#1c1c1c, text ~#fafafa
   Grid: 24-col desktop, 8-col mobile
   Spacing: 4vw gutter desktop, 6vw mobile
   Max width: 1500px
*/

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #1c1c1c;
  color: #fafafa;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: hsla(0, 0%, 86%, 1);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: #ffffff;
  opacity: 0.85;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fafafa;
}

h1 {
  font-size: 2.8rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

p {
  margin-bottom: 0.9rem;
  font-weight: 300;
  color: hsla(0, 0%, 86%, 1);
}

strong {
  font-weight: 500;
  color: #fafafa;
}

em {
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 3rem 0;
}

/* Header / Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease;
}

.site-header.scrolled {
  background: rgba(28, 28, 28, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-logo {
  font-family: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffffff;
}

.site-logo a {
  color: #ffffff;
  text-decoration: none;
}

.site-logo img {
  height: 20px;
  width: auto;
}

.site-logo a:hover {
  opacity: 1;
}

.site-nav {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.site-nav a:hover {
  color: #ffffff;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a.active {
  color: #ffffff;
}

.site-nav a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: #ffffff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Main content area */
main {
  padding-top: 80px;
}

/* Page container */
.page-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 3vw 4vw 6rem;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4vw;
  align-items: start;
}

.two-col-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: start;
}

/* Section heading (left column in two-col) */
.section-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.5);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 3vw 4vw;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.site-footer p {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.35);
}

.site-footer a {
  color: rgba(250, 250, 250, 0.5);
}

.site-footer a:hover {
  color: #ffffff;
}

/* Custom cursor - gramophone */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 75px;
  height: 75px;
  pointer-events: none;
  z-index: 9999;
  transform-style: preserve-3d;
  will-change: transform;
}

#custom-cursor .face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/gramophone.png') no-repeat center / contain;
  backface-visibility: hidden;
}

#custom-cursor .face.back {
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

body, body a, body button {
  cursor: none;
}

@media (max-width: 600px) {
  body, body a, body button {
    cursor: auto;
  }
  #custom-cursor {
    display: none;
  }
}

/* Light page theme (inner pages) */
body.light-page {
  background-color: #ffffff;
  color: #1c1c1c;
}

body.light-page h1, body.light-page h2, body.light-page h3,
body.light-page h4, body.light-page h5, body.light-page h6 {
  color: #1c1c1c;
}

body.light-page p {
  color: #444444;
}

body.light-page strong {
  color: #1c1c1c;
}

body.light-page a {
  color: #444444;
}

body.light-page a:hover {
  color: #1c1c1c;
}

body.light-page hr {
  border-top-color: rgba(0, 0, 0, 0.12);
}

body.light-page .site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.light-page .site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

body.light-page .site-logo {
  color: #1c1c1c;
}

body.light-page .site-logo a {
  color: #1c1c1c;
}

body.light-page .site-nav a {
  color: rgba(28, 28, 28, 0.5);
}

body.light-page .site-nav a:hover {
  color: #1c1c1c;
}

body.light-page .site-nav a.active {
  color: #1c1c1c;
}

body.light-page .site-nav a::after {
  background: #1c1c1c;
}

body.light-page .menu-toggle span {
  background: #1c1c1c;
}

body.light-page .site-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-page .site-footer p {
  color: rgba(28, 28, 28, 0.4);
}

body.light-page .site-footer a {
  color: rgba(28, 28, 28, 0.5);
}

body.light-page .site-footer a:hover {
  color: #1c1c1c;
}

/* Responsive */
@media (max-width: 900px) {
  .site-header {
    padding: 1.2rem 6vw;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(28, 28, 28, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
  }

  body.light-page .site-nav {
    background: rgba(255, 255, 255, 0.98);
  }

  .site-nav.open {
    right: 0;
  }

  .site-nav a {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
  }

  .menu-toggle {
    display: block;
  }

  .page-content {
    padding: 6vw 6vw 4rem;
  }

  .two-col,
  .two-col-equal {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
  }

  .page-content {
    padding: 6vw 6vw 3rem;
  }

  .site-header {
    padding: 1rem 6vw;
  }

  .site-logo img {
    height: 30px;
  }
}
