/* =============================================
   Manitou Springs Commons — Coming Soon
   ============================================= */

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

:root {
  --green:       #2d6a4f;
  --green-mid:   #40916c;
  --green-light: #74c69d;
  --gold:        #c9a84c;
  --cream:       #f8f5ef;
  --text:        #1e1e1e;
  --text-muted:  #6b6b6b;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Source Sans 3', system-ui, sans-serif;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Page shell: full-height, centred column --- */

html, body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  /* Subtle topographic-style radial gradient for depth */
  background-image:
    radial-gradient(ellipse 120% 80% at 50% 0%,   rgba(45,106,79,.12) 0%, transparent 60%),
    radial-gradient(ellipse 80%  60% at 50% 100%, rgba(45,106,79,.08) 0%, transparent 70%);
  min-height: 100%;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header / Wordmark --- */

header {
  padding: 2.25rem 0 0;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.wordmark-main {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.01em;
}

.wordmark-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Thin gold rule under header */
header::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-top: 1.25rem;
}

/* --- Main Content --- */

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.12;
  color: var(--green);
  margin-bottom: 1.5rem;
}

h1 em {
  font-style: italic;
  color: var(--green-mid);
}

.body-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* --- Interest Cards --- */

.form-prompt {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  max-width: 480px;
  margin-bottom: 1.75rem;
}

.interest-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid #d4cfc7;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.15s;
}

.interest-card:hover {
  border-color: var(--green);
  background: #f0faf4;
  box-shadow: 0 3px 12px rgba(45,106,79,.13);
  transform: translateY(-1px);
}

.interest-card:active {
  transform: translateY(0);
}

.interest-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.interest-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green);
}

.interest-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 440px) {
  .interest-grid { grid-template-columns: 1fr; }
}

/* --- Modal --- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 30, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.22s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  z-index: 1;
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: var(--text);
  background: #f0f0f0;
}

.modal-frame {
  width: 100%;
  flex: 1;
  min-height: 520px;
  border: none;
  display: block;
}

/* --- Contact line --- */

.contact {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact a {
  color: var(--green-mid);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact a:hover {
  border-color: var(--green-mid);
}

/* --- Footer --- */

footer {
  padding: 1.5rem 0 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid #ddd8cf;
}
