@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Permanent+Marker&display=swap');

:root {
  --paper: #f5f1e8;
  --paper-dark: #e9e2d5;
  --ink: #111111;
  --muted: #55504a;
  --white: #fffdf8;
  --accent: #ef3d50;
  --yellow: #DECE79;
  --blue: #7EA1B5;
  --green: #5C8374;
  --pink: #C96363;
  --shadow: 7px 9px 0 rgba(17,17,17,.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(rgba(0,0,0,.035) .7px, transparent .7px) 0 0/5px 5px,
    var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}


/* =========================
   HEADER
   ========================= */

header {
  padding: 28px 0 12px;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(.95);
}

.brand-title {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: .9;
}

.brand-sub {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .72rem;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

nav a {
  padding: 8px 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
}


/* =========================
   HAMBURGER
   ========================= */

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  background: var(--ink);
  color: white;

  border: 2px solid var(--ink);

  font-size: 1.6rem;
  line-height: 1;

  cursor: pointer;

  box-shadow: 4px 4px 0 var(--accent);

  z-index: 1001;
}


/* =========================
   HERO
   ========================= */

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 55px;
  padding: 55px 25px 75px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 800;
}

.hand {
  font-family: "Permanent Marker", cursive;
}

.hero h1 {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(3.8rem, 9vw, 7.6rem);
  line-height: .82;
  margin: 12px 0 25px;
  letter-spacing: -.03em;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  max-width: 610px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}


/* =========================
   BUTTONS
   ========================= */

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  font-weight: 800;
  border: 2px solid var(--ink);
  box-shadow: 4px 5px 0 var(--accent);

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 var(--accent);
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: 4px 5px 0 var(--blue);
}

.btn.secondary:hover {
  box-shadow: 6px 7px 0 var(--blue);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 3px 0 var(--accent);
}

.btn.secondary:active {
  box-shadow: 2px 3px 0 var(--blue);
}


/* =========================
   HERO PHOTO
   ========================= */

.hero-photo {
  position: relative;
  transform: rotate(2deg);
  background: var(--white);
  padding: 12px 12px 28px;
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 1.05;
  object-fit: cover;
}

.hero-photo::after {
  content: "HUDDS QUEER SOCIAL";
  position: absolute;
  bottom: 4px;
  left: 16px;
  font-family: "Permanent Marker", cursive;
  font-size: 1rem;
}

.tape {
  position: absolute;
  width: 110px;
  height: 25px;
  background: rgba(240,212,112,.72);
  top: -10px;
  left: 35%;
  transform: rotate(-4deg);
}


/* =========================
   SECTIONS
   ========================= */

.section {
  padding: 72px 0;
  border-top: 2px solid var(--ink);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
}

.section h2,
.page-title {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: .95;
  margin: 0;
}

.under {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}


/* =========================
   HOMEPAGE EVENT CAROUSEL
   ========================= */

.events {
  display: flex;
  gap: 22px;

  overflow-x: auto;
  overflow-y: visible;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  padding: 5px 5px 15px;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}

.events::-webkit-scrollbar {
  display: none;
}

.events .card {
  flex: 0 0 calc((100% - 44px) / 3);
  scroll-snap-align: start;
}


/* =========================
   EVENT CARDS
   ========================= */

.card {
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 23px;
  box-shadow: 5px 6px 0 var(--paper-dark);
  position: relative;
  min-width: 0;
}

.events .card:nth-child(2) {
  transform: rotate(-1deg);
}

.events .card:nth-child(3) {
  transform: rotate(1deg);
}

.events .card:nth-child(5) {
  transform: rotate(-1deg);
}

.events .card:nth-child(6) {
  transform: rotate(1deg);
}

.card .date {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.card h3 {
  font-size: 1.45rem;
  margin: 8px 0;
}

.card p {
  color: var(--muted);
  margin: 6px 0;
}

.tag {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 8px;
  border: 2px solid var(--ink);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}


/* =========================
   TICKET STATUS
   ========================= */

.tag.sold-out {
  color: #d00000;
  border-color: #d00000;
}


/* =========================
   ABOUT
   ========================= */

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 55px;
  align-items: center;
}

.polaroid {
  background: var(--white);
  padding: 12px 12px 34px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.polaroid img {
  aspect-ratio: 1.1;
  object-fit: cover;
}

.polaroid figcaption {
  font-family: "Permanent Marker", cursive;
  padding: 7px 4px 0;
}

.about-text {
  font-size: 1.12rem;
}


/* =========================
   FOUNDER
   ========================= */

.founder-section {
  margin-top: 80px;
  padding-top: 55px;
  border-top: 2px solid var(--ink);
}

.founder-box {
  width: 100%;
  margin-top: 25px;

  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);

  gap: 30px;
  align-items: start;

  background: var(--blue);
  color: var(--ink);

  border: 2px solid var(--ink);

  padding: 25px;

  box-shadow: 7px 8px 0 var(--ink);

  transform: rotate(-0.4deg);
}


/* Founder image */

.founder-image {
  width: 260px;
  max-width: 260px;

  margin: 0;

  background: var(--white);

  padding: 10px;

  box-shadow: 4px 5px 0 rgba(17,17,17,.15);

  transform: rotate(1.5deg);
}

.founder-image img {
  display: block;

  width: 100%;
  height: 320px;

  max-width: none;

  object-fit: cover;
}


/* Founder text */

.founder-content {
  min-width: 0;
}

.founder-quote {
  font-size: 1.05rem;
  line-height: 1.6;
}

.founder-quote p {
  margin: 0 0 17px;
}

.founder-quote p:last-child {
  margin-bottom: 25px;
}


/* Founder name */

.founder-name {
  border-top: 2px solid var(--ink);
  padding-top: 15px;

  display: flex;
  flex-direction: column;

  gap: 2px;
}

.founder-name strong {
  font-family: "Permanent Marker", cursive;
  font-size: 1.45rem;
  line-height: 1.1;
}

.founder-name span {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}


/* =========================
   COMMUNITY NOTE
   ========================= */

.community-note {
  background: var(--yellow);
  color: var(--ink);

  border: 2px solid var(--ink);

  padding: 22px 25px;

  margin-top: 45px;

  box-shadow: 5px 6px 0 var(--ink);

  transform: rotate(.3deg);
}

.community-note strong {
  font-size: 1.4rem;
}

.community-note p {
  margin: 5px 0 0;
}


/* =========================
   RESOURCES
   ========================= */

.resources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.resource {
  border-top: 2px solid var(--ink);
  padding: 18px 0;
}

.resource h3 {
  margin: 0 0 5px;
  font-size: 1.25rem;
}


/* =========================
   FOOTER
   ========================= */

footer {
  border-top: 2px solid var(--ink);
  padding: 35px 0 50px;

  display: flex;
  justify-content: space-between;

  gap: 25px;

  flex-wrap: wrap;
}

footer strong {
  font-family: "Permanent Marker", cursive;
  font-size: 1.4rem;
}

footer a {
  text-underline-offset: 3px;
}

.link-needed {
  color: var(--accent);
  font-weight: 700;
}


/* =========================
   GENERAL PAGES
   ========================= */

.page {
  padding: 60px 0 90px;
}

.page-intro {
  max-width: 760px;
  font-size: 1.12rem;
  margin: 20px 0 45px;
}


/* =========================
   NEWSLETTER
   ========================= */

.newsletter-current {
  margin-top: 40px;
}

.newsletter-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}

.newsletter-heading h2 {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  margin: 5px 0 0;
}

.newsletter-heading a {
  font-weight: 800;
  text-underline-offset: 4px;
}

.newsletter-pdf {
  width: 100%;
  background: var(--paper-dark);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.newsletter-pdf iframe {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
  background: white;
}

.newsletter-archive {
  margin-top: 80px;
  padding-top: 50px;
  border-top: 2px solid var(--ink);
}

.newsletter-archive h2 {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: .95;
  margin: 5px 0 30px;
}

.newsletter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 18px 20px;

  background: var(--white);

  border: 2px solid var(--ink);

  box-shadow: 4px 5px 0 var(--paper-dark);

  text-decoration: none;

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.newsletter-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 var(--accent);
}

.newsletter-item strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* =========================
   NOTICE
   ========================= */

.notice {
  background: var(--yellow);

  border: 2px solid var(--ink);

  padding: 18px 20px;

  margin: 25px 0;

  box-shadow: 4px 5px 0 var(--ink);
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 800px) {

  .topline {
    align-items: center;
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;

    top: 0;
    right: 0;

    width: 100%;

    height: 100vh;
    height: 100dvh;

    background: var(--paper);

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 12px;

    padding: 80px 30px 40px;

    z-index: 1000;

    transform: translateX(100%);

    transition: transform .3s ease;

    overflow-y: auto;
  }

  nav.menu-open {
    transform: translateX(0);
  }

  nav a {
    font-family: "Permanent Marker", cursive;

    font-size: 2rem;

    padding: 8px 15px;

    border-bottom: 2px solid transparent;

    text-decoration: none;
  }

  nav a:hover,
  nav a[aria-current="page"] {
    border-bottom-color: var(--ink);
  }

  body:has(nav.menu-open) {
    overflow: hidden;
  }

  .hero {
    grid-template-columns: 1fr;

    gap: 35px;

    padding-top: 35px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .events .card {
    flex: 0 0 85%;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .resources {
    grid-template-columns: 1fr;
  }

  .newsletter-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .newsletter-pdf iframe {
    height: 75vh;
    min-height: 600px;
  }

  .founder-section {
    margin-top: 60px;
    padding-top: 45px;
  }

  .founder-box {
    grid-template-columns: 1fr;

    gap: 25px;

    padding: 18px;

    transform: none;
  }

  .founder-image {
    width: 75%;

    max-width: 300px;

    margin: 0 auto;
  }

  .founder-image img {
    width: 100%;

    height: auto;

    aspect-ratio: 4 / 5;

    object-fit: cover;
  }

  .founder-quote {
    font-size: 1rem;
  }

}


/* =========================
   SMALL PHONES
   ========================= */

@media (max-width: 500px) {

  .site {
    width: min(100% - 20px, 1120px);
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 55px;
    height: 55px;
  }

  .brand-title {
    font-size: 1.65rem;
  }

  .brand-sub {
    font-size: .58rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  nav a {
    font-size: 2rem;
  }

  .hero {
    padding-left: 5px;
    padding-right: 5px;
  }

  .section {
    padding: 50px 0;
  }

  .newsletter-pdf iframe {
    height: 70vh;
    min-height: 500px;
  }

  .newsletter-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .founder-box {
    padding: 15px;
  }

  .founder-image {
    width: 85%;
    max-width: 280px;
  }

  .founder-quote {
    font-size: .98rem;
  }

  .founder-name strong {
    font-size: 1.25rem;
  }

}

.event-card-link {
  display: inline-block;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.event-card-link:hover {
  color: var(--accent);
}

.homepage-events-empty {
  padding: 25px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 5px 6px 0 var(--paper-dark);
}

.homepage-events-empty p {
  margin-top: 0;
}
