/*
Theme Name: Exposed Magazine
Author: Seven Hills Creative
Author URI: https://www.sevenhillscreative.co.uk/
Description: Another custom theme for a happy customer!
Tags: accessibility-ready, one-column, two-columns, custom-menu, featured-images, microformats, sticky-post, threaded-comments, translation-ready
Version: 2023.1
Requires at least: 5.2
Requires PHP: 7.0
*/

:root {
  --page-max: 1240px;
  --page-gutter: 2rem;
  --text: #1b1c1f;
  --muted: #5f6166;
  --surface: #f2f2f2;
  --border: #e6e6e6;
  --brand: #cb6828;
  --brand-gradient: linear-gradient(124deg, rgba(240, 214, 73, 1) 2%, rgba(206, 96, 44, 1) 58%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Fira Sans", sans-serif;
  line-height: 1.5;
}

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

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

p,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  clip: auto !important;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100000;
  color: #fff;
  background: #000;
}

.skip-link {
  position: absolute;
  left: -9999rem;
}

.skip-link:focus {
  left: 0.5rem;
}

main#content {
  display: block;
}

.wp-content-section {
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 4rem 0;
}

.wp-content-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.wp-content-section p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

nav.exposed-menu {
  display: grid;
  grid-template-columns: minmax(0, 160px) 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem var(--page-gutter);
}

nav.exposed-menu img {
  width: 100%;
  max-width: 160px;
}

section.headline {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 28rem;
  width: 100%;
  max-width: none;
  padding: 6rem 0 2rem;
}

section.headline nav {
  position: absolute;
  top: 0;
  left: 0;
}

.headline-wrap {
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

.headline-wrap h1 {
  max-width: 12ch;
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  text-transform: uppercase;
}

.headline-wrap label {
  display: block;
  margin-top: 0.75rem;
  color: #fff;
  font-family: "Roboto Serif", serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

#tabs {
  width: calc(100% - (var(--page-gutter) * 2));
  margin: 2rem auto 0;
}

#tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

#tabs ul li {
  flex: 1 1 14rem;
  padding: 0;
  background: var(--surface);
  text-align: center;
}

#tabs ul li a {
  display: block;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

#tabs ul li.active {
  background: var(--brand-gradient);
}

.events-day {
  width: calc(100% - (var(--page-gutter) * 2));
  margin: 1rem auto 0;
}

.events-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.events-wrapper > div,
.events-wrapper .venue-row,
.events-wrapper #stickyHeader {
  width: auto !important;
}

.schedule-section + .schedule-section {
  margin-top: 1.5rem;
}

.schedule-section-heading {
  position: sticky;
  left: 0;
  margin-bottom: 0.75rem;
  padding: 0.65rem 1rem;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0.5rem;
}

.schedule-section-toggle {
  display: block;
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.schedule-section-toggle::after {
  content: "Hide";
  float: right;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.schedule-section-toggle.is-collapsed::after {
  content: "Show";
}

.schedule-section-content[hidden] {
  display: none;
}

.venue-row {
  display: flex;
}

.venue-label {
  gap: 0.35rem;
}

.venue-highlight-label {
  display: inline-block;
  justify-self: end;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event {
  position: absolute;
  cursor: pointer;
  width: 100%;
  padding: 2px;
  text-align: center;
  border: 1px solid #eee;
  border-radius: 0.5rem;
  background: var(--brand-gradient);
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.event span {
  padding: 0.35rem 0.5rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.event-has-highlight {
  position: absolute;
}

.event-highlight-marker {
  position: absolute;
  top: 0.2rem;
  right: 0.35rem;
  padding: 0;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.event-highlight {
  background: var(--brand-gradient);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.venue-accordion-list {
  width: min(1100px, calc(100% - (var(--page-gutter) * 2)));
  margin: 2rem auto 4rem;
}

.venue-accordion {
  border-bottom: 1px solid var(--border);
}

.venue-accordion + .venue-accordion {
  margin-top: 0.75rem;
}

.venue-accordion summary {
  list-style: none;
}

.venue-accordion summary::-webkit-details-marker {
  display: none;
}

.venue-accordion h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.venue-accordion ul {
  padding: 0;
  list-style: none;
}

.venue-accordion li {
  padding: 1rem;
  line-height: 1.6;
}

.venue-accordion li strong {
  display: inline-block;
  margin-right: 0.25rem;
}

footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: var(--surface);
}

footer img {
  width: 100%;
  max-width: 154px;
}

.footer-columnn ul {
  padding: 0;
  list-style: none;
}

.footer-columnn li + li {
  margin-top: 0.6rem;
}

.footer-link {
  font-size: 0.75rem;
}

.footer-social-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.footer-social-details i {
  font-size: 2rem;
}

#eventModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(0, 0, 0, 0.5);
}

#eventModal.visible {
  display: block;
}

#eventModalContent {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(600px, calc(100vw - 2rem));
  max-height: 90vh;
  padding: 2rem;
  overflow-y: auto;
  background: #f7f5fc;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -50%);
  outline: none;
}

#closeModal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
}

#modalTitle {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  font-weight: 800;
}

#modalTime {
  margin-bottom: 0.75rem;
  font-weight: 700;
}

#modalDescription {
  color: var(--muted);
}

#modalICS {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  color: #fff;
  background: var(--brand);
  border-radius: 0.375rem;
}

@media (max-width: 900px) {
  section.headline {
    min-height: 22rem;
  }

  .headline-wrap h1 {
    max-width: none;
  }

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

@media (max-width: 640px) {
  :root {
    --page-gutter: 1rem;
  }

  nav.exposed-menu {
    grid-template-columns: 120px 1fr;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .headline-wrap h1 {
    font-size: 2.5rem;
  }

  #tabs ul {
    flex-direction: column;
  }

  #tabs ul li {
    flex-basis: auto;
  }

  .event span {
    font-size: 0.75rem;
  }
}
