/* CSS Reset: https://www.joshwcomeau.com/css/custom-css-reset/ */
/* Use more intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
/* treat media tags as layout elements */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
/* inheret font styles for form inputs */
input, button, textarea, select {
  font: inherit;
}
/* avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

:root {
  --font-family: system-ui, -apple-system, sans-serif;
  --font-size-small: 0.8rem;
  --color-bg-body: #181a18;
  --color-bg-surface: #36454F;
  --color-accent: #19b37d;
  --color-accent-secondary: #1c241f;
  --color-text: #fffdf7;
  --color-text-secondary: #a0a0a0;

  --space-xs:  0.5rem;
  --space-sm:  1rem;  
  --space-md:  1.5rem;
  --space-lg:  3rem;  
  --space-xl:  7rem;  

  --border-radius: 6px;
}

body {
  background-color: var(--color-bg-body);
  color: var(--color-text);
  font-family: var(--font-family);
  padding-inline: var(--space-sm);
  line-height: 1.3;
}

main, footer {
  max-width: 900px;
  margin-inline: auto;
}

main {
  padding-top: var(--space-lg);
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-md);
}

header img {
  height: 200px;
}

footer {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  text-align: center;
}

h1 {
  font-size: 4rem;
}

h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-size: 2rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-secondary);
  text-decoration: underline;
}

.main-paragraph {
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md); 
}

.card img {
  transition: transform 0.2s ease; 
}

.card img:hover {
  transform: scale(1.01);
}

.card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  margin-bottom: var(--space-xs);
}

.card figcaption {
  text-align: left;
}

.card-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.speaker-title {
  font-weight: 400;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.tickets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md); 
}

.tickets div {
  border: 2px solid;
  border-radius: var(--border-radius);
  padding: var(--space-sm);
}

.tickets button {
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid;
  border-radius: var(--border-radius); 
  background-color: var(--color-bg-body);
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1rem;
  width: 100%;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.tickets button:hover {
  filter: brightness(1.5);
  text-decoration: underline;
  transform: scale(1.01);
  /* opacity: 0.2; */
  /* background-color: var(--color-accent); */
}

.tickets button:active:not(:disabled) {
  transform: scale(0.98);
}

.tickets button:disabled {
  background-color: var(--color-bg-surface);
  color: #888;
  cursor: not-allowed;
  opacity: 0.7;
}

.sponsors {
  display: flex;            
  flex-wrap: wrap;          
  justify-content: center;  
  align-items: center;      
  gap: var(--space-md); 
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.sponsors img {
  max-height: 80px;
  max-width: 350px;
}

.food-details {
  font-weight: 400;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.food figcaption img {
  fill: var(--color-text);
}

.food-guide-key {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: var(--space-sm);
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  margin-bottom: var(--space-sm);
}

.icon {
  display: inline-block;
  width: 1.2em;           
  height: 1.2em;
  vertical-align: middle; 
  margin-right: 0.3em;    
  
  background-color: var(--color-text);
  
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

.icon-info {
  -webkit-mask-image: url('icons/info.svg');
  mask-image: url('icons/info.svg');
}

.icon-heart {
  -webkit-mask-image: url('icons/heart.svg');
  mask-image: url('icons/heart.svg');
}

.icon-footprints {
  -webkit-mask-image: url('icons/footprints.svg');
  mask-image: url('icons/footprints.svg');
}

.venue img {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
