/*
Theme Name: DesignSummitTalking
Theme URI: https://example.com/
Author: Codex
Description: Custom theme for Design Summit Talking.
Version: 1.0
Text Domain: designsummittalking
*/

:root {
  --orange: #ED721A;
  --purple: #CCADD2;
  --purple-8: rgba(204, 173, 210, 0.08);
  --ink: #000000;
  --line: rgba(0, 0, 0, 0.12);
  --content-max: min(1440px, 92vw);
  --pad: clamp(20px, 4vw, 72px);
  --section-gap: clamp(32px, 7vw, 110px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  color: var(--ink);
  font-weight: 400;
  background-color: var(--purple-8);
  background-image:
    radial-gradient(60% 80% at 18% 12%, rgba(204, 173, 210, 0.28), transparent 60%),
    radial-gradient(50% 60% at 85% 18%, rgba(237, 114, 26, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(204, 173, 210, 0.22), rgba(204, 173, 210, 0.04) 45%, rgba(255, 255, 255, 0));
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

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

.site-header {
  position: relative;
  z-index: 10;
}

#program .section-inner {
  padding-bottom: 0px;
}

.nav-bar {
  background: var(--orange);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 30px var(--pad);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 64px);
  list-style: none;
  margin: 0;
  padding: 0;
  /*text-transform: uppercase;*/
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.02em;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  font-weight: 300;
}

.nav-menu li:last-child a {
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 6px 0;
  color: var(--ink);
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle__label {
  display: inline-block;
}

.site-main {
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  height: 100vh;
  padding: var(--pad);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero--full {
  padding: 0;
}

.hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: var(--content-max);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rise-in 0.9s ease-out both;
}

.hero--full .hero-inner {
  max-width: none;
}

.hero-pills {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  --pill-mx: 0px;
  --pill-my: 0px;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: var(--hero-logo-size, clamp(220px, 45vw, 620px));
  max-width: 90vw;
  max-height: 70vh;
  height: auto;
}

.hero--full .hero-image {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.hero-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 0;
  isolation: isolate;
  padding: clamp(6px, 1vw, 10px) clamp(16px, 2.6vw, 28px);
  font-size: clamp(13px, 1.6vw, 18px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  background: none;
  transform: translate(-50%, -50%)
    translate(calc(var(--pill-x, 0px) + var(--pill-mx, 0px)), calc(var(--pill-y, 0px) + var(--pill-my, 0px)))
    rotate(var(--pill-rotate, 0deg));
  animation: float-pill 7s ease-in-out infinite;
}

.hero-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--pill-bg, rgba(204, 173, 210, 0.7));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M12 0H288Q300 30 288 60H12Q0 30 12 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M12 0H288Q300 30 288 60H12Q0 30 12 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: -1;
}

.hero-pill--1 {
  --pill-x: clamp(-240px, -26vw, -110px);
  --pill-y: clamp(-150px, -16vw, -70px);
  --pill-rotate: -6deg;
  --pill-bg: rgba(204, 173, 210, 0.75);
  animation-delay: 0s;
}

.hero-pill--2 {
  --pill-x: clamp(110px, 24vw, 240px);
  --pill-y: clamp(80px, 20vw, 170px);
  --pill-rotate: 6deg;
  --pill-bg: #ED721A;
  animation-delay: 1.4s;
}

.hero-pill--3 {
  --pill-x: clamp(150px, 20vw, 220px);
  --pill-y: clamp(-130px, -14vw, -70px);
  --pill-rotate: 4deg;
  --pill-bg: rgba(204, 173, 210, 0.6);
  animation-delay: 2.4s;
}

.hero-pill--4 {
  --pill-x: clamp(-210px, -22vw, -100px);
  --pill-y: clamp(110px, 16vw, 180px);
  --pill-rotate: -5deg;
  --pill-bg: rgba(237, 114, 26, 0.8);
  animation-delay: 3.4s;
}

.brand {
  text-transform: uppercase;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.brand--hero {
  font-size: clamp(48px, 9vw, 140px);
}

.brand--footer {
  font-size: clamp(24px, 4vw, 44px);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  width: clamp(140px, 20vw, 240px);
  height: auto;
}

.brand-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 14px);
}

.brand-bracket {
  display: inline-block;
  width: clamp(12px, 1.8vw, 22px);
  height: clamp(36px, 6vw, 90px);
  border: 3px solid var(--orange);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  transform: translateY(0.12em);
  box-shadow: -6px 0 0 rgba(0, 0, 0, 0.12);
}

.brand-bracket--soft {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: -6px 0 0 rgba(204, 173, 210, 0.7);
}

.section {
  padding: 0 var(--pad);
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: clamp(24px, 5vw, 64px);
  border-top: 2px solid var(--purple);
  padding: var(--section-gap) 0;
  animation: rise-in 0.8s ease-out both;
}

.section-label {
  font-size: clamp(12px, 1.3vw, 18px);
  letter-spacing: 0;
}

.section-label--accent {
  color: var(--orange);
}

.program-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.program-item {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: clamp(16px, 4vw, 40px);
  padding: clamp(20px, 3.5vw, 36px) 0;
  border-bottom: 2px solid var(--purple);
  animation: rise-in 0.7s ease-out both;
}

.program-item:nth-child(2) {
  animation-delay: 0.05s;
}

.program-item:nth-child(3) {
  animation-delay: 0.1s;
}

.program-item:nth-child(4) {
  animation-delay: 0.15s;
}

.program-item:nth-child(5) {
  animation-delay: 0.2s;
}

.program-item:last-child {
  border-bottom: 2px solid var(--purple);
  padding-bottom: clamp(20px, 3.5vw, 36px);
}

.program-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.program-title {
  font-size: clamp(18px, 2.4vw, 23px);
  /*text-transform: uppercase;*/
  letter-spacing: -0.01em;
}

.program-title a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.program-arrow {
  font-weight: inherit;
}

.dst-arrow {
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  line-height: 1;
}

.program-time {
  font-size: clamp(12px, 1.2vw, 14px);
  text-transform: uppercase;
}

.program-desc {
  font-size: clamp(14px, 1.2vw, 15px);
  line-height: 1.8;
  font-weight: 300;
  padding-top: 22px;
}

.program-empty {
  font-size: clamp(14px, 1.3vw, 15px);
  opacity: 0.8;
}

.tickets-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: clamp(24px, 5vw, 64px);
  padding: 0;
  align-items: center;
}

.tickets-inner .section-label {
  align-self: center;
}

.tickets-item {
  align-items: center;
}

.tickets-item.program-item:last-child {
  border-bottom: 0;
}

.tickets-text {
  text-transform: none;
  font-size: clamp(14px, 1.2vw, 15px);
  letter-spacing: 0;
  line-height: 1.6;
  font-weight: 400;
}

.tickets-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  position: relative;
  isolation: isolate;
  padding: clamp(15px, 1vw, 10px) clamp(18px, 3vw, 30px);
  border-radius: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: none;
  background: none;
  justify-self: end;
}

.tickets-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M12 0H288Q300 30 288 60H12Q0 30 12 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M12 0H288Q300 30 288 60H12Q0 30 12 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: -1;
}

.tickets-button:hover,
.tickets-button:focus-visible {
  transform: translateY(-1px);
}

.about-content {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: clamp(20px, 4vw, 48px);
}

.about-title {
  font-size: clamp(16px, 2vw, 24px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.about-text {
  font-size: clamp(14px, 1.2vw, 15px);
  line-height: 1.8;
  font-weight: 300;
}

.archive-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: clamp(12px, 1.2vw, 14px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.archive-list a {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.personality {
  padding: var(--section-gap) var(--pad);
}

.personality-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(32px, 6vw, 96px);
}

.personality-left {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 32px);
}

.personality-name {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 34px);
  text-transform: none;
}

.personality-meta {
  font-size: clamp(12px, 1.2vw, 14px);
}

.personality-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.personality-web {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(18px, 2.6vw, 28px);
  text-transform: none;
}

.personality-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: clamp(12px, 1.1vw, 14px);
}

.personality-social a {
  border-bottom: 1px solid var(--ink);
}

.personality-right {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 48px);
  border-bottom: 2px solid var(--purple);
  padding-bottom: clamp(24px, 4vw, 48px);
  --personality-text-width: 600px;
}

.personality-text {
  border-top: 2px solid var(--purple);
  padding-top: clamp(20px, 3vw, 36px);
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.8;
  font-weight: 300;
  border-bottom: 2px solid var(--purple);
  padding-bottom: 25px;
}

.personality-text p:first-child {
  margin-top: 0;
}

.personality-text p {
  max-width: var(--personality-text-width);
}

.personality-gallery {
  /*border-top: 2px solid var(--purple);*/
  /*padding-top: clamp(20px, 3vw, 36px);*/
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  max-width: var(--personality-text-width);
  align-self: flex-start;
  justify-content: start;
}

.personality-gallery__item {
  margin: 0;
}

.personality-gallery__image {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer {
  padding: clamp(48px, 10vw, 120px) var(--pad);
  border-top: 2px solid var(--purple);
  background: var(--purple);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: clamp(32px, 6vw, 80px);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: clamp(24px, 5vw, 64px);
}

.footer-sponsors {
  margin-top: clamp(24px, 4vw, 36px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
}

.footer-sponsor {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-sponsor__image {
  width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.footer-title {
  font-size: clamp(12px, 1.2vw, 14px);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-text {
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.6;
  font-weight: 300;
}

.footer-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: clamp(12px, 1vw, 13px);
  text-transform: uppercase;
}

.footer-links a {
  border-bottom: 1px solid var(--ink);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-pill {
  0%,
  100% {
    transform: translate(-50%, -50%)
      translate(calc(var(--pill-x, 0px) + var(--pill-mx, 0px)), calc(var(--pill-y, 0px) + var(--pill-my, 0px)))
      rotate(var(--pill-rotate, 0deg));
  }
  50% {
    transform: translate(-50%, -50%)
      translate(calc((var(--pill-x, 0px) + var(--pill-mx, 0px)) * 0.9), calc((var(--pill-y, 0px) + var(--pill-my, 0px)) * 0.9))
      rotate(calc(var(--pill-rotate, 0deg) - 2deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner,
  .section-inner,
  .program-item {
    animation: none;
  }

  .hero-pill {
    animation: none;
  }

  .tickets-button:hover,
  .tickets-button:focus-visible {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .section-inner {
    grid-template-columns: 1fr;
  }

  .program-item {
    grid-template-columns: 1fr;
  }

  .tickets-inner {
    grid-template-columns: 1fr;
    padding-top: 30px;
    padding-bottom: 25px;
  }

  .tickets-item {
    justify-items: start;
  }

  .tickets-button {
    justify-self: start;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 12px;
  }

  body.nav-open .nav-menu {
    display: flex;
  }

  .brand-line {
    flex-wrap: wrap;
  }

  .footer-sponsors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .program-desc {
    padding-top: 0;
  }

  .hero-pill {
    padding: 6px 14px;
    font-size: 12px;
  }

  .hero-pill--1 {
    --pill-x: clamp(-120px, -18vw, -60px);
    --pill-y: clamp(-220px, -32vw, -150px);
  }

  .hero-pill--2 {
    --pill-x: clamp(80px, 16vw, 140px);
    --pill-y: clamp(180px, 32vw, 260px);
  }

  .tickets-button {
    width: 100%;
    justify-content: center;
  }

  .personality-inner {
    grid-template-columns: 1fr;
  }

  .personality-gallery {
    grid-template-columns: 1fr;
  }

  .site-footer {
    text-align: center;
  }

  .footer-inner {
    justify-items: center;
  }

  .footer-brand {
    justify-self: center;
  }

  .footer-columns {
    justify-items: center;
  }

  .footer-links {
    gap: 12px;
    justify-content: center;
  }

  .footer-sponsors {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-sponsor {
    justify-content: center;
  }
}
