/*
Theme Name: Bethesda Green Coming Soon
Description: Temporary holding page for Bethesda Green. Every URL on the site shows the same "Coming soon" page while the new website is built.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: bethesda-green-coming-soon
*/

:root {
  --green: #71BF43;
  --aqua: #00A79D;
  --gold: #D6DF23;
  --leaf-white: #F3F8EF;
  --ink: #0E3D39;
  --ink-soft: #3C625D;
  --link: #00746C;

  --gutter: clamp(1rem, 5vw, 4.5rem);
  --display: "Dosis", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--leaf-white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 82rem;
  margin: 0 auto;
}

.site-header {
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--gutter) 0;
}

.site-header img {
  display: block;
  width: clamp(118px, 13vw, 168px);
  height: auto;
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
}

.copy { max-width: 34rem; }

h1 {
  margin: 0 0 0.35em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4rem, 11vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 span { display: block; }

.copy p {
  margin: 0 0 1.1em;
  max-width: 32em;
}

.copy p.lede {
  font-size: clamp(1.2rem, 1.9vw, 1.4rem);
  line-height: 1.5;
}

.copy p.contact { color: var(--ink-soft); }

.contact a {
  color: var(--link);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.22em;
  border-radius: 4px;
  overflow-wrap: anywhere;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.contact a:hover {
  color: var(--ink);
  text-decoration-color: var(--aqua);
}

a:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

/* The mark: three brand petals plus the fourth, still under construction */
.mark {
  width: clamp(260px, 36vw, 500px);
  height: auto;
  display: block;
  overflow: visible;
}

.petal {
  transform-box: view-box;
  transform-origin: 100px 100px;
  animation: grow 700ms cubic-bezier(.2, .9, .3, 1.15) both;
}
.petal--gold  { fill: var(--gold);  animation-delay: 100ms; }
.petal--green { fill: var(--green); animation-delay: 220ms; }
.petal--aqua  { fill: var(--aqua);  animation-delay: 340ms; }

.petal--new {
  fill: rgba(113, 191, 67, 0.08);
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
  animation:
    appear 600ms ease 700ms both,
    build 2.4s linear 1.3s infinite;
}

@keyframes grow {
  from { transform: scale(0.2); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
@keyframes appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes build {
  to { stroke-dashoffset: -20; }
}

.site-footer {
  padding: 0 var(--gutter) clamp(1.25rem, 3vw, 2rem);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.site-footer p { margin: 0; }

@media (max-width: 760px) {
  main {
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
    gap: 1.75rem;
    padding-top: 1.5rem;
  }
  .mark-wrap { order: -1; justify-self: end; }
  .mark { width: clamp(150px, 46vw, 220px); }
  h1 { font-size: clamp(3.5rem, 19vw, 5.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .petal, .petal--new { animation: none; }
  .contact a { transition: none; }
}
