/* ====== Base / Theme ====== */
:root{
  --bg: #fbfaf6;              /* warm parchment */
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #4b4b4b;

  --green: #2f5d3a;           /* nature green */
  --burgundy: #6b1f2b;        /* tudor burgundy */
  --gold: #b08d57;            /* antique gold accent */

  --border: #e6e0d6;

  --radius: 14px;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);

  --max: 980px;
}

/* Make sizing predictable */
* { box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);

  /* Readable fonts */
  font-family: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

/* Make content nicely centred */
main, .container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px;
}

/* ====== Headings ====== */
h1{
  font-family: Georgia, "Times New Roman", serif; /* Tudor-ish feel */
  line-height: 1.2;
  margin: 0.6em 0 0.3em;
  color: var(--gold);
}

h2, h3{
  font-family: Georgia, "Times New Roman", serif; /* Tudor-ish feel */
  line-height: 1.2;
  margin: 0.6em 0 0.3em;
}

h1{
  font-size: 2rem;
  color: var(--burgundy);
}

h2{
  font-size: 1.35rem;
  color: var(--green);
}

p{
  margin: 0.6em 0;
  color: var(--text);
}

/* ====== Links ====== */
a{
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover{
  color: var(--burgundy);
}

a:focus{
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ====== Cards / Sections ====== */
section, .card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
  margin: 16px 0;
}

/* ====== Navbar (top-right on desktop) ====== */
nav{
  background: var(--card);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

nav .nav-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between; /* left title, right menu */
  gap: 16px;
}

nav .site-title{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  color: var(--burgundy);
  text-decoration: none;
  font-weight: bold;
}

nav ul{
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav li{
  margin: 0;
  padding: 0;
}

nav a{
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;

  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
}

nav a:hover{
  background: rgba(47, 93, 58, 0.08);
  border-color: rgba(47, 93, 58, 0.25);
  color: var(--green);
}

nav a:focus{
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Optional: highlight current page link by giving it a class="active" */
nav a.active{
  background: rgba(107, 31, 43, 0.1);
  border: 1px solid rgba(107, 31, 43, 0.35);
  color: var(--burgundy);
  font-weight: 600;
}

/* ====== FAQ (details/summary) ====== */
details{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  margin: 10px 0;
}

summary{
  cursor: pointer;
  font-weight: 700;
  color: var(--burgundy);
}

details[open]{
  border-color: rgba(107, 31, 43, 0.35);
}

/* ====== Tables ====== */
table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}

th, td{
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th{
  background: rgba(176, 141, 87, 0.18); /* soft gold */
  font-weight: 700;
}

tr:last-child td{
  border-bottom: none;
}

/* ====== Forms (Guest book / RSVP) ====== */
label{
  font-weight: 600;
  display: block;
  margin: 12px 0 6px;
}

input[type="text"],
textarea{
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
}

textarea{
  min-height: 140px;
  resize: vertical;
}

input:focus, textarea:focus{
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: rgba(176, 141, 87, 0.6);
}

button, input[type="submit"]{
  background: var(--green);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
}

button:hover, input[type="submit"]:hover{
  background: var(--burgundy);
}

/* ====== Horizontal rule ====== */
hr{
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ====== Mobile tweaks ====== */
@media (max-width: 700px){
  body{
    font-size: 17px;
  }

  nav .nav-inner{
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul{
    justify-content: flex-start;
    width: 100%;
  }

  nav a{
    width: 100%;
  }
}
