/* Psychedelic Arts Society — faithful rebuild of the Carrd single-page site
   Palette + type pulled from the original:
   bg #FBFBFB · headings Syne #212121 · body Fraunces #292929
   accent/button #f22f2c · link hover #F05D7D · orange highlight #F68A23 */

:root {
  --bg: #FBFBFB;
  --heading: #212121;
  --text: #000;
  --accent: #f22f2c;
  --accent-hover: #fc605d;
  --content-width: 54rem;
}

* { box-sizing: border-box; }

/* --- Sticky section nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 251, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  list-style: none;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  max-width: var(--content-width);
}
.site-nav a {
  font-family: 'Syne', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  color: #212121;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; }

/* keep section headings clear of the sticky bar when jumped to */
section[id] { scroll-margin-top: 4.5rem; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  line-height: 1.85;
  word-wrap: break-word;
}

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 5rem 1rem;
  text-align: center;
}

/* --- Sections --- */
.section { margin-bottom: 4.5rem; }

/* --- Headings --- */
h1, h2 {
  font-family: 'Syne', sans-serif;
  text-transform: uppercase;
  color: var(--heading);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  overflow-wrap: normal;
  word-break: normal;
}

h1 {
  font-size: clamp(3rem, 12vw, 6.25rem);
  line-height: 1.05;
  margin-bottom: 2.75rem;
}

h2 { font-size: clamp(2.25rem, 8vw, 4rem); }

/* --- Body copy --- */
.tagline {
  font-size: clamp(1.2rem, 3.4vw, 1.7rem);
  line-height: 1.6;
  color: #000;
  max-width: 44rem;
  margin: 0 auto;
}

p {
  font-size: 1.25rem;
  margin: 0 auto 1.25rem;
  max-width: 44rem;
}

strong { font-weight: 500; color: #000; }
em { font-style: italic; }

/* --- Links --- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--accent-hover); }

/* --- Buttons --- */
.cta { margin-top: 2rem; }

.button {
  display: inline-block;
  background-color: var(--accent);
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 3rem;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.button:hover {
  background-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* --- Substack embed --- */
.substack-embed {
  max-width: 480px;
  margin: 2rem auto 0;
}
.substack-embed iframe {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* --- Inline text CTA link --- */
.text-link {
  font-family: 'Syne', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  color: var(--accent);
}
.text-link:hover { color: var(--accent-hover); }

.disclaimer {
  font-family: 'Fraunces', Georgia, serif;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
  color: #747989;
  line-height: 1.7;
  margin-top: 0;
}

/* --- Images --- */
.media {
  margin: 0 auto 4.5rem;
  max-width: var(--content-width);
}
.media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}
.placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 0.5rem;
  background: repeating-linear-gradient(45deg, #efefef, #efefef 12px, #e7e7e7 12px, #e7e7e7 24px);
  border: 1px dashed #c9c9c9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder span {
  font-family: 'Syne', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  color: #9a9a9a;
}

/* --- Footer --- */
footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.social {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
.social a {
  display: inline-flex;
  color: #747989;
  transition: color 0.2s ease;
}
.social a:hover { color: #212121; }
.social svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
  display: block;
}
footer p {
  font-family: 'Fraunces', Georgia, serif;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #747989;
  max-width: 100%;
  margin: 0 auto;
}
footer .copyright {
  margin-top: 1.5rem;
}

/* --- Mobile nav: collapse to full-screen overlay --- */
@media (max-width: 768px) {
  .site-nav {
    display: flex;
    justify-content: flex-end;
  }
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 30;
    margin: 0;
    padding: 0.85rem 1.5rem;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    line-height: 1;
    color: #212121;
  }
  .site-nav ul {
    position: fixed;
    inset: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    max-width: none;
    margin: 0;
    padding: 2rem;
    background: #FBFBFB;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 20;
  }
  .site-nav ul.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav ul a { font-size: 1.6rem; }
}

/* --- Small screens --- */
@media (max-width: 480px) {
  main { padding: 3.5rem 1.5rem; }
  .section { margin-bottom: 3.5rem; }
  h1 { font-size: 2.625rem; }
  h2 { font-size: 2.125rem; }
  p, .tagline { font-size: 1.125rem; line-height: 1.7; color: #000; }
}
