/*
Theme Name: GiveForDV Coming Soon
Description: A temporary, editable coming-soon homepage for GiveForDV.
Version: 1.3.0
Text Domain: givefordv-coming-soon
*/

:root {
  --ink: #35353a;
  --purple: #8f2d87;
  --purple-dark: #5c1958;
  --purple-soft: #f4e8f2;
  --white: #fff;
  --heading: "Oswald", "Arial Narrow", sans-serif;
  --body: "Lato", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--purple);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
}

button,
summary {
  font: inherit;
}

.coming-soon {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(rgba(103, 22, 96, 0.12), rgba(103, 22, 96, 0.12)),
    var(--background-image) center / cover fixed;
}

.coming-soon::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, rgba(62, 12, 58, 0.46), rgba(143, 45, 135, 0.08) 48%, rgba(62, 12, 58, 0.4));
}

.page-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(530px, 1.4fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.brand-block {
  display: grid;
  justify-items: start;
  gap: 28px;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(44, 9, 41, 0.45);
}

.campaign-mark {
  display: block;
  width: min(218px, 62vw);
  height: auto;
  background: var(--white);
  border: 9px solid var(--white);
  box-shadow: 0 18px 56px rgba(42, 8, 39, 0.32);
}

.intro {
  max-width: 440px;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.intro h1,
.panel-heading h2 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 600;
  line-height: 0.95;
  text-transform: uppercase;
}

.intro h1 {
  font-size: clamp(3.8rem, 9vw, 7.2rem);
  letter-spacing: -0.035em;
}

.intro > p:last-child {
  margin: 20px 0 0;
  max-width: 38ch;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.givefordv-calendar {
  container-type: inline-size;
  width: 100%;
  min-width: 0;
}

.dates-panel {
  width: 100%;
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  box-shadow: 0 24px 80px rgba(45, 10, 43, 0.28);
  backdrop-filter: blur(12px);
}

.panel-heading {
  margin-bottom: 28px;
}

.panel-heading .eyebrow,
.date-month,
.date-label {
  color: var(--purple);
}

.panel-heading h2 {
  font-size: clamp(2.25rem, 8cqi, 4.6rem);
  color: var(--ink);
  letter-spacing: -0.025em;
}

.date-list {
  display: grid;
  gap: 12px;
}

.date-card {
  min-height: 108px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid #e7dde5;
  background: var(--white);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.date-card:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 45, 135, 0.45);
  box-shadow: 0 10px 28px rgba(57, 22, 54, 0.1);
}

.date-card--featured {
  border-color: var(--purple);
  background: var(--purple-soft);
}

.date-card time {
  min-height: 70px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-right: 1px solid #ded0dc;
}

.date-month,
.date-day {
  font-family: var(--heading);
  text-transform: uppercase;
}

.date-month {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.date-day {
  color: var(--ink);
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1;
}

.date-copy {
  min-width: 0;
}

.date-copy h3 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}

.date-copy p {
  margin: 5px 0 0;
  color: #70666e;
  font-size: 0.92rem;
}

.date-label {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calendar-menu {
  position: relative;
}

.calendar-menu summary {
  min-width: 142px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--purple);
  border: 1px solid var(--purple);
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  list-style: none;
  text-align: center;
  text-transform: uppercase;
}

.calendar-menu summary::-webkit-details-marker {
  display: none;
}

.calendar-menu summary:hover,
.calendar-menu summary:focus-visible,
.calendar-menu[open] summary {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
}

.calendar-options {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  display: grid;
  padding: 7px;
  background: var(--white);
  border: 1px solid #e1d5df;
  box-shadow: 0 14px 36px rgba(53, 20, 50, 0.2);
}

.calendar-options a,
.calendar-options button {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.88rem;
  text-align: left;
  text-decoration: none;
}

.calendar-options a:hover,
.calendar-options button:hover {
  color: var(--purple-dark);
  background: var(--purple-soft);
}

/* Respond to the calendar's column width, including sidebar placements. */
@container (max-width: 700px) {
  .dates-panel {
    padding: clamp(22px, 6cqi, 34px);
  }

  .panel-heading {
    margin-bottom: 22px;
  }

  .panel-heading h2 {
    font-size: clamp(2rem, 11cqi, 3.25rem);
  }

  .date-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .date-card time {
    min-height: 62px;
  }

  .date-day {
    font-size: 2rem;
  }

  .date-copy h3 {
    overflow-wrap: anywhere;
    font-size: clamp(1.25rem, 6cqi, 1.65rem);
  }

  .calendar-menu {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .calendar-menu summary {
    width: 100%;
    min-width: 0;
  }

  .calendar-options {
    position: static;
    width: 100%;
    margin-top: 7px;
    box-shadow: none;
  }
}

@container (max-width: 400px) {
  .dates-panel {
    padding: 20px 14px;
  }

  .panel-heading h2 {
    font-size: clamp(1.85rem, 13cqi, 2.5rem);
  }

  .date-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 10px;
  }

  .date-card time {
    min-height: 56px;
  }

  .date-month {
    font-size: 0.72rem;
  }

  .date-day {
    font-size: 1.75rem;
  }

  .date-copy h3 {
    font-size: clamp(1.1rem, 6.5cqi, 1.4rem);
  }

  .date-copy p {
    font-size: 0.82rem;
  }
}

.fine-print {
  margin: 22px 0 0;
  color: #7b7179;
  font-size: 0.75rem;
  line-height: 1.5;
}

.about-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  padding: clamp(34px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  box-shadow: 0 24px 80px rgba(45, 10, 43, 0.28);
  backdrop-filter: blur(12px);
}

.about-copy {
  max-width: 680px;
}

.about-copy .eyebrow {
  color: var(--purple);
}

.about-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--heading);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-transform: uppercase;
}

.about-copy > p:last-child {
  margin: 24px 0 0;
  max-width: 58ch;
  color: #625961;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.about-image-wrap {
  width: min(360px, 100%);
  margin: 0;
  justify-self: center;
}

.about-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border: 10px solid var(--purple-soft);
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(57, 22, 54, 0.2);
}

/* Blank page template: shared campaign background with an editor-built canvas. */
.content-page {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 72px);
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(rgba(103, 22, 96, 0.12), rgba(103, 22, 96, 0.12)),
    var(--background-image) center / cover fixed;
}

.content-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, rgba(62, 12, 58, 0.46), rgba(143, 45, 135, 0.08) 48%, rgba(62, 12, 58, 0.4));
}

.content-page__shell {
  width: min(1180px, 100%);
  min-height: calc(100vh - clamp(48px, 10vw, 144px));
  margin-inline: auto;
  padding: clamp(28px, 6vw, 80px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  box-shadow: 0 24px 80px rgba(45, 10, 43, 0.28);
}

.content-page__blocks,
.page-links {
  width: min(760px, 100%);
  margin-inline: auto;
}

.content-page__blocks > *:first-child {
  margin-top: 0;
}

.content-page__blocks > *:last-child {
  margin-bottom: 0;
}

.content-page__blocks .alignwide {
  width: min(960px, calc(100vw - clamp(96px, 22vw, 260px)));
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.content-page__blocks .alignfull {
  width: calc(100% + (2 * clamp(28px, 6vw, 80px)));
  max-width: none;
  margin-right: calc(-1 * clamp(28px, 6vw, 80px));
  margin-left: calc(-1 * clamp(28px, 6vw, 80px));
}

.content-page__blocks img {
  max-width: 100%;
  height: auto;
}

.content-page__blocks h1,
.content-page__blocks h2,
.content-page__blocks h3,
.content-page__blocks h4,
.content-page__blocks h5,
.content-page__blocks h6 {
  font-family: var(--heading);
  line-height: 1.1;
}

.content-page__blocks a {
  color: var(--purple-dark);
}

.content-page__blocks p,
.content-page__blocks li {
  line-height: 1.7;
}

@media (max-width: 900px) {
  .coming-soon {
    place-items: start center;
    background-attachment: scroll;
  }

  .page-shell {
    grid-template-columns: 1fr;
    width: min(680px, 100%);
  }

  .brand-block {
    grid-template-columns: auto 1fr;
    align-items: end;
  }

  .campaign-mark {
    width: 168px;
  }

  .about-panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  }

  .content-page {
    background-attachment: scroll;
  }
}

@media (max-width: 620px) {
  .coming-soon {
    padding: 24px 16px 40px;
  }

  .brand-block {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .intro > p:last-child {
    margin-inline: auto;
  }

  .dates-panel {
    padding: 26px 16px;
  }

  .date-card {
    grid-template-columns: 62px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .calendar-menu {
    grid-column: 1 / -1;
  }

  .calendar-menu summary {
    width: 100%;
  }

  .calendar-options {
    position: static;
    width: 100%;
    margin-top: 7px;
    box-shadow: none;
  }

  .about-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-copy > p:last-child {
    margin-inline: auto;
  }

  .about-image-wrap {
    width: min(280px, 82vw);
  }

  .content-page {
    padding: 16px;
  }

  .content-page__shell {
    min-height: calc(100vh - 32px);
    padding: 28px 20px;
  }

  .content-page__blocks .alignwide {
    width: 100%;
  }

  .content-page__blocks .alignfull {
    width: calc(100% + 40px);
    margin-right: -20px;
    margin-left: -20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
