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

:root {
  --bg:          #f5f2ec;
  --bg-warm:     #ece8de;
  --bg-card:     #faf8f3;
  --bg-deep:     #2c3324;
  --border:      rgba(100,120,70,0.18);
  --border-gold: rgba(140,110,40,0.28);
  --gold:        #8a6a18;
  --gold-soft:   #aa8830;
  --green:       #3a6028;
  --green-soft:  #4e7838;
  --green-pale:  #8aaa70;
  --text:        #1e2018;
  --text-dim:    #4a5038;
  --text-faint:  #7a8868;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  font-size: 17px;
}

/* ── NAV ─────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 242, 236, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 0.62rem;
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--gold-soft); }
.nav-links a.active { color: var(--green); }

@media (max-width: 700px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
}

/* ── PAGE HEADER ─────────────────────────────── */
.page-header {
  background: var(--bg-deep);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.page-header-inner {
  max-width: 620px;
  margin: 0 auto;
}

.page-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-pale);
  opacity: 0.85;
  margin-bottom: 1rem;
}

.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: #f0ead8;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-title em {
  font-style: italic;
  color: #c8d8a0;
}

.page-intro {
  font-size: 1.02rem;
  color: rgba(240, 234, 216, 0.78);
  max-width: 520px;
  margin: 0 auto;
}

/* ── SECTIONS ────────────────────────────────── */
.contact-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.contact-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 1;
  transform: none;
}

.contact-section:last-of-type { border-bottom: none; }

.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 0.65rem;
}

.contact-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  color: #7a7248;
  margin-bottom: 0.85rem;
}

.contact-section h2 em {
  font-style: italic;
  color: var(--green-soft);
}

.contact-section > p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  max-width: 620px;
}

.contact-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--green);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: var(--bg-card);
  margin-bottom: 1.75rem;
}

.contact-direct:hover {
  border-color: var(--border-gold);
  color: var(--gold);
}

/* ── FORM ────────────────────────────────────── */
.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-pale);
  box-shadow: 0 0 0 3px rgba(138, 170, 112, 0.15);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  justify-self: start;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0ead8;
  background: var(--green);
  border: none;
  border-radius: 3px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit:hover { background: var(--green-soft); }

.form-status {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-top: 0.75rem;
}

.form-status[hidden] { display: none; }

/* ── GUESTBOOK ───────────────────────────────── */
.guestbook-setup {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-soft);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}

.guestbook-setup p {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
}

.guestbook-setup p:last-child { margin-bottom: 0; }

.guestbook-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.guestbook-form {
  margin-bottom: 2.5rem;
}

.guestbook-list-wrap {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.guestbook-list-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guestbook-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
}

.guestbook-entry-new {
  animation: guestbook-fade-in 0.4s ease;
}

@keyframes guestbook-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.guestbook-entry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.55rem;
}

.guestbook-entry-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--green);
}

.guestbook-entry-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.guestbook-entry-message {
  font-size: 0.98rem;
  color: var(--text-dim);
  line-height: 1.7;
  white-space: pre-wrap;
}

.guestbook-empty,
.guestbook-loading {
  font-size: 0.95rem;
  color: var(--text-faint);
  font-style: italic;
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--bg-deep);
  padding: 2.5rem 2rem;
  text-align: center;
}

footer p {
  font-size: 0.88rem;
  color: rgba(240, 234, 216, 0.65);
  line-height: 1.6;
}

footer a {
  color: rgba(138, 170, 112, 0.75);
  text-decoration: none;
}

footer a:hover { color: #c8d8a0; }
