/* ==========================================================================
   A Weekend in the Mountains — wedding site theme
   Palette: warm ivory paper, forest green, charcoal, burnt autumn accents
   ========================================================================== */

:root {
  --ivory: #f6f1e5;
  --paper: #efe7d3;
  --paper-dark: #e6dcc3;
  --forest: #2f4a3c;
  --forest-deep: #22382d;
  --charcoal: #2b2a24;
  --rust: #b75c2e;
  --gold: #c29a4b;
  --ink-soft: #5a5648;
  --line: rgba(47, 74, 60, 0.25);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Lora", "Georgia", serif;
  --font-hand: "Caveat", cursive;

  --max-width: 60rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--forest-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

a {
  color: var(--rust);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--forest);
}

/* Small-caps letterpress eyebrow above headings */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.9rem;
}

.handwritten {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--forest);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--tinted {
  background-color: var(--paper);
}

.center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  background-color: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0 0.9rem;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--forest);
}

.site-nav a[aria-current="page"] {
  color: var(--forest);
  border-bottom-color: var(--rust);
}

/* --------------------------------------------------------------------------
   Hero (home page)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  background-color: var(--paper);
}

.hero__topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  position: relative;
}

/* --------------------------------------------------------------------------
   Postcard component
   -------------------------------------------------------------------------- */

.postcard {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  background-color: var(--ivory);
  border: 1px solid var(--paper-dark);
  outline: 1px solid var(--line);
  outline-offset: -8px;
  box-shadow: 0 14px 40px rgba(43, 42, 36, 0.18);
  padding: 2.75rem 2.5rem 2.5rem;
  text-align: center;
  transform: rotate(-0.6deg);
}

.postcard__stamp {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 4.2rem;
  transform: rotate(3deg);
}

.postcard__postmark {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.postcard h1 {
  margin-bottom: 0.2em;
}

.postcard__amp {
  font-family: var(--font-hand);
  color: var(--rust);
}

.postcard__rule {
  width: 5rem;
  border: none;
  border-top: 2px solid var(--rust);
  margin: 1.4rem auto;
}

.postcard__details {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0.15rem 0;
}

.postcard__note {
  margin-top: 1.6rem;
}

/* --------------------------------------------------------------------------
   Topographic divider band
   -------------------------------------------------------------------------- */

.topo-divider {
  display: block;
  width: 100%;
  height: 90px;
  background-image: url("../assets/topo-band.svg");
  background-repeat: repeat-x;
  background-size: auto 100%;
}

/* --------------------------------------------------------------------------
   Cards & schedule
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--ivory);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
}

.card--tinted {
  background-color: var(--paper);
}

.card .day-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 0.4rem;
}

.card h3 {
  margin-bottom: 0.3rem;
}

.card p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

/* Schedule timeline */
.timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 1.6rem 1.75rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.5em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--rust);
  border: 2px solid var(--ivory);
}

.timeline .time {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
}

.timeline .what {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--forest-deep);
}

.timeline p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest-deep);
  cursor: pointer;
  list-style-position: outside;
}

.faq summary:hover {
  color: var(--rust);
}

.faq details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Forms (RSVP placeholder)
   -------------------------------------------------------------------------- */

.form-card {
  max-width: 34rem;
  margin: 2rem auto 0;
  background-color: var(--ivory);
  border: 1px solid var(--line);
  padding: 2rem;
}

.form-field {
  margin-bottom: 1.4rem;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.4rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background-color: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.radio-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--charcoal);
}

.button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  background-color: var(--forest);
  border: none;
  padding: 0.85rem 2.2rem;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  background-color: var(--forest-deep);
  color: var(--ivory);
}

.button[disabled] {
  background-color: var(--ink-soft);
  cursor: not-allowed;
  opacity: 0.6;
}

.notice {
  background-color: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--forest-deep);
  color: var(--paper);
  padding: 2.5rem 0 2.75rem;
  text-align: center;
}

.site-footer .handwritten {
  color: var(--gold);
  font-size: 1.6rem;
}

.site-footer p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 241, 229, 0.75);
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.placeholder {
  color: var(--rust);
  font-style: italic;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 44rem) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .postcard {
    padding: 2.25rem 1.5rem 2rem;
  }
}
