/*
Theme Name: Taunton Matters
Theme URI: https://taunton-matters.local
Author: Hatched
Description: Lightweight holding page and API companion theme for Taunton Matters.
Version: 1.0.0
Text Domain: taunton-matters
*/

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/poppins-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/poppins-semibold.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/poppins-bold.ttf") format("truetype");
}

:root {
  --tm-purple: #603090;
  --tm-purple-deep: #31184e;
  --tm-lime: #d8ef13;
  --tm-red: #f04438;
  --tm-turquoise: #2da5b4;
  --tm-canvas: #f7f5f2;
  --tm-ink: #29263a;
  --tm-muted: #686477;
  --tm-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--tm-canvas);
}

body {
  margin: 0;
  color: var(--tm-ink);
  background: var(--tm-canvas);
  font-family: "Poppins", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.holding-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.holding-page::before,
.holding-page::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.holding-page::before {
  top: -14rem;
  right: -13rem;
  width: 34rem;
  height: 34rem;
  background: color-mix(in srgb, var(--tm-purple) 10%, transparent);
}

.holding-page::after {
  bottom: -16rem;
  left: -12rem;
  width: 30rem;
  height: 30rem;
  background: color-mix(in srgb, var(--tm-lime) 20%, transparent);
}

.holding-shell {
  display: flex;
  flex-direction: column;
  width: min(100% - 2rem, 76rem);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-wordmark {
  color: var(--tm-purple);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.brand-wordmark span {
  display: block;
}

.brand-dot {
  display: inline;
  color: var(--tm-lime);
}

.brand-tagline {
  margin-top: 0.45rem;
  color: var(--tm-purple);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.launch-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid color-mix(in srgb, var(--tm-purple) 16%, transparent);
  border-radius: 999px;
  color: var(--tm-purple-deep);
  background: color-mix(in srgb, var(--tm-white) 82%, transparent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--tm-lime);
  box-shadow: 0 0 0 0.3rem color-mix(in srgb, var(--tm-lime) 22%, transparent);
}

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.75fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(4rem, 10vh, 8rem) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  color: var(--tm-purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 0.22rem;
  border-radius: 999px;
  background: var(--tm-lime);
  content: "";
}

.hero-title {
  max-width: 12ch;
  margin: 0;
  color: var(--tm-purple-deep);
  font-size: clamp(3rem, 6.5vw, 6.4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero-title span {
  color: var(--tm-purple);
}

.hero-title-dot {
  color: var(--tm-lime);
}

.hero-copy {
  max-width: 46rem;
}

.hero-lede {
  max-width: 38rem;
  margin: 1.75rem 0 0;
  color: var(--tm-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.event-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.event-types li {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--tm-purple-deep);
  background: var(--tm-white);
  box-shadow: 0 0.45rem 1.4rem color-mix(in srgb, var(--tm-purple-deep) 7%, transparent);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 29rem;
}

.holding-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(100%, 22rem);
  min-height: 29rem;
  padding: 2rem;
  overflow: hidden;
  border-radius: 2rem;
  color: var(--tm-white);
  background: var(--tm-purple);
  box-shadow: 0 2rem 5rem color-mix(in srgb, var(--tm-purple-deep) 24%, transparent);
  transform: rotate(2deg);
}

.holding-card::before {
  position: absolute;
  top: -3rem;
  right: -4rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: var(--tm-red);
  content: "";
  opacity: 0.96;
}

.holding-card::after {
  position: absolute;
  right: 2rem;
  bottom: 6.5rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--tm-turquoise);
  content: "";
}

.card-heading,
.card-date,
.card-footer {
  position: relative;
  z-index: 1;
}

.card-heading {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
}

.card-heading > span {
  display: block;
}

.card-heading > span:last-child {
  white-space: nowrap;
}

.card-heading-dot {
  display: inline;
  color: var(--tm-lime);
  font-size: 1.75em;
  line-height: 0;
  margin-left: 0.02em;
  vertical-align: -0.08em;
}

.card-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: auto 0;
  transform: rotate(-2deg);
}

.card-date span {
  color: var(--tm-lime);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.card-date strong {
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.card-footer {
  max-width: 14rem;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
}

.accent-square {
  position: absolute;
  bottom: -1.1rem;
  left: -1.4rem;
  z-index: -1;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 1.6rem;
  background: var(--tm-lime);
  transform: rotate(-12deg);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--tm-purple) 13%, transparent);
  color: var(--tm-muted);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 4rem 0 5rem;
  }

  .hero-title {
    max-width: 10ch;
  }

  .hero-visual {
    min-height: auto;
  }

  .holding-card {
    min-height: 25rem;
    transform: rotate(1deg);
  }
}

@media (max-width: 480px) {
  .holding-shell {
    width: min(100% - 1.5rem, 76rem);
    padding-top: 1rem;
  }

  .site-header {
    align-items: flex-start;
  }

  .launch-status {
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.65rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .event-types {
    gap: 0.45rem;
  }

  .event-types li {
    padding: 0.48rem 0.7rem;
    font-size: 0.7rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

.admin-bar .holding-page {
  min-height: calc(100svh - 32px);
}

.admin-bar .holding-shell {
  padding-top: calc(clamp(1.25rem, 3vw, 2.5rem) + 2rem);
}

@media screen and (max-width: 782px) {
  .admin-bar .holding-page {
    min-height: calc(100svh - 46px);
  }

  .admin-bar .holding-shell {
    padding-top: calc(1rem + 2.875rem);
  }
}
