/* ================================================
   The Council — shared stylesheet
   Vintage / occult aesthetic with subtle motion
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  color: #2b2419;
  background: #ede2c7;
  background-image:
    radial-gradient(at 20% 30%, rgba(180, 140, 80, 0.18) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(120, 80, 40, 0.15) 0px, transparent 55%),
    radial-gradient(at 50% 90%, rgba(200, 160, 100, 0.12) 0px, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

/* Paper grain overlay using SVG noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.18 0 0 0 0 0.08 0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(40, 25, 10, 0.35) 100%);
}

main, nav, footer { position: relative; z-index: 1; }

/* ============ Navigation ============ */

nav {
  padding: 28px 24px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  border-bottom: 1px solid rgba(80, 50, 20, 0.25);
  background: rgba(237, 226, 199, 0.4);
  backdrop-filter: blur(2px);
}

nav a {
  color: #5a3d1c;
  text-decoration: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 0;
  position: relative;
  transition: color 0.4s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #5a3d1c;
  transition: width 0.4s ease, left 0.4s ease;
}

nav a:hover { color: #2b1810; }
nav a:hover::after { width: 100%; left: 0; }

nav a.active { color: #2b1810; }
nav a.active::after { width: 100%; left: 0; }

/* ============ Page container ============ */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  animation: fadeIn 1.2s ease;
}

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

/* ============ Headings & typography ============ */

h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 56px;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 0 12px 0;
  color: #2b1810;
}

h1.small {
  font-size: 36px;
  letter-spacing: 0.04em;
}

.subtitle {
  text-align: center;
  font-style: italic;
  color: #6b4a25;
  font-size: 17px;
  margin: 0 0 36px 0;
}

/* Decorative flourish (a small dingbat-style ornament) */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px auto 40px;
  color: #8a6534;
}

.flourish::before,
.flourish::after {
  content: "";
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, #8a6534, transparent);
}

.flourish span {
  font-size: 20px;
  letter-spacing: 0.4em;
}

/* ============ Coming Soon block ============ */

.coming-soon {
  text-align: center;
  margin-top: 60px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  color: #6b4a25;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ============ Form (submissions page) ============ */

label {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5a3d1c;
  margin-bottom: 8px;
  margin-top: 20px;
}

input[type="text"], textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 17px;
  font-family: 'EB Garamond', Georgia, serif;
  background: rgba(252, 244, 224, 0.6);
  border: 1px solid rgba(80, 50, 20, 0.35);
  border-radius: 2px;
  color: #2b1810;
  transition: border-color 0.3s ease, background 0.3s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: #5a3d1c;
  background: rgba(252, 244, 224, 0.85);
}

.meta {
  margin-top: 8px;
  font-size: 14px;
  font-style: italic;
  color: #8a6534;
}

button {
  margin-top: 28px;
  padding: 12px 32px;
  background: #2b1810;
  color: #ede2c7;
  border: 1px solid #2b1810;
  border-radius: 2px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease, letter-spacing 0.4s ease;
}

button:hover:not(:disabled) {
  background: #ede2c7;
  color: #2b1810;
  letter-spacing: 0.3em;
}

button:disabled {
  background: #8a7a5a;
  border-color: #8a7a5a;
  color: #ede2c7;
  cursor: not-allowed;
}

.thanks {
  text-align: center;
  padding: 50px 20px;
}

.hidden { display: none; }

/* ============ Footer ============ */

footer {
  text-align: center;
  padding: 40px 24px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: #6b4a25;
  letter-spacing: 0.1em;
}

/* ============ Mobile ============ */

@media (max-width: 600px) {
  nav { gap: 16px; padding: 20px 16px 12px; }
  nav a { font-size: 14px; letter-spacing: 0.06em; }
  .container { padding: 50px 20px 40px; }
  h1 { font-size: 40px; }
  h1.small { font-size: 28px; }
}
