/* ==========================================================
   Adam & Chris Wedding Site
   Palette: creams + sage greens, soft & pastel.
   ========================================================== */

:root {
  --cream: #faf6ee;
  --cream-deep: #f1e9d8;
  --sage: #7c8c6d;
  --sage-dark: #54614a;
  --sage-light: #c9d4bd;
  --ink: #3d3b34;
  --max-width: 980px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(61, 59, 52, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Snell Roundhand", "Brush Script MT", "Palatino Linotype", Georgia, serif;
  color: var(--sage-dark);
  font-weight: normal;
  letter-spacing: 0.5px;
}

h1 { font-size: 2.6rem; margin: 0.2em 0; }
h2 { font-size: 1.9rem; margin-top: 0.2em; }
h3 { font-size: 1.4rem; }

a { color: var(--sage-dark); text-decoration: none; border-bottom: 1px solid var(--sage-light); }
a:hover { color: var(--sage); }

.site-header {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--sage-light);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.6rem;
  color: var(--sage-dark);
}

.site-title a {
  border-bottom: none;
  color: var(--sage-dark);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 8px 0 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  border-bottom: none;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--sage-dark);
  padding-bottom: 2px;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom: 2px solid var(--sage);
}

.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero img {
  width: 100%;
  display: block;
  max-height: 560px;
  object-fit: cover;
}

.hero-fallback {
  background: linear-gradient(135deg, var(--sage-light), var(--cream-deep));
  padding: 80px 20px;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.lead {
  font-size: 1.15rem;
  color: var(--sage-dark);
}

.card {
  background: #fff;
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 28px;
}

.card + .card { margin-top: 0; }

.pill {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage-dark);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

table.itinerary {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 30px;
}

table.itinerary th, table.itinerary td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--sage-light);
}

table.itinerary th {
  background: var(--cream-deep);
  color: var(--sage-dark);
  font-family: Georgia, serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.faq dt {
  font-weight: bold;
  color: var(--sage-dark);
  margin-top: 22px;
  font-size: 1.1rem;
}

.faq dd {
  margin: 6px 0 0;
}

form {
  display: grid;
  gap: 18px;
}

fieldset {
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  padding: 18px 20px;
}

legend {
  font-family: Georgia, serif;
  color: var(--sage-dark);
  padding: 0 6px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: var(--ink);
}

.field { margin-bottom: 14px; }

input[type=text], input[type=date], input[type=time], input[type=email], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--sage-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--sage);
}

.radio-group label, .checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  margin-right: 18px;
}

button, .button {
  background: var(--sage);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  width: fit-content;
  font-family: Georgia, serif;
}

button:hover, .button:hover {
  background: var(--sage-dark);
}

.notice {
  background: var(--sage-light);
  color: var(--sage-dark);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.notice.error {
  background: #f6dede;
  color: #7a3b3b;
}

.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--sage-dark);
  font-size: 0.9rem;
  border-top: 1px solid var(--sage-light);
}

.conditional { display: none; }
.conditional.visible { display: block; }
