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

:root {
  --ink: #2f3b2f;
  --sage: #6b7f5e;
  --sage-dark: #4a5c40;
  --clay: #b9714e;
  --cream: #f7f4ec;
  --line: #dcd6c4;
  --white: #fffdf8;
  --radius: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Karla', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

header.hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--white), var(--cream));
}

header.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--sage-dark);
  margin-bottom: 1rem;
}

header.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 0.6rem;
  color: var(--sage-dark);
}

header.hero p.date {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--clay);
  margin: 0;
}

header.hero .rule {
  width: 60px;
  height: 2px;
  background: var(--clay);
  margin: 1.4rem auto;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
  color: #5b6355;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,92,64,0.08); }

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--line);
}

.card .body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card h3 { margin: 0; font-size: 1.35rem; color: var(--ink); }
.card p.desc { margin: 0; font-size: 0.9rem; color: #6b7264; line-height: 1.45; flex: 1; }
.card .price { font-weight: 700; color: var(--sage-dark); font-size: 1rem; }

.status-pill {
  align-self: flex-start;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.status-available { background: #e8efdf; color: var(--sage-dark); }
.status-reserved, .status-purchased { background: #f1e3da; color: var(--clay); }

button, .btn {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  cursor: pointer;
  background: var(--sage);
  color: white;
  transition: background 0.15s ease;
}
button:hover { background: var(--sage-dark); }
button:disabled { background: #cfd6c6; cursor: not-allowed; }

button.secondary { background: transparent; color: var(--clay); border: 1px solid var(--clay); }
button.secondary:hover { background: var(--clay); color: white; }

button.danger { background: #a5473a; }
button.danger:hover { background: #833327; }

input, textarea {
  font-family: 'Karla', sans-serif;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(47,59,47,0.45);
  display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 50;
}
.modal {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem; width: 100%; max-width: 400px;
}
.modal h3 { margin-top: 0; }
.modal .actions { display: flex; gap: 0.6rem; margin-top: 1.2rem; }

.pix-box {
  max-width: 480px;
  margin: 3.5rem auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.pix-box .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  color: var(--sage-dark);
  margin-bottom: 0.6rem;
}
.pix-box h3 { margin: 0 0 0.6rem; color: var(--sage-dark); font-size: 1.6rem; }
.pix-box p.pix-msg { color: #6b7264; font-size: 0.9rem; margin: 0 0 1.2rem; line-height: 1.5; }
.pix-box img.qrcode { width: 180px; height: 180px; object-fit: contain; margin: 0 auto 1.2rem; display: block; border: 1px solid var(--line); border-radius: var(--radius); }
.pix-key-row {
  display: flex; gap: 0.5rem; align-items: stretch;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.6rem 0.8rem; margin-bottom: 0.4rem;
}
.pix-key-row code { flex: 1; text-align: left; overflow-wrap: anywhere; font-size: 0.9rem; color: var(--ink); background: none; }
.pix-key-row button { padding: 0.4rem 0.8rem; font-size: 0.8rem; flex-shrink: 0; }
.pix-recipient { font-size: 0.8rem; color: #8a9080; margin-top: 0.3rem; }

.footer-note {
  text-align: center;
  margin-top: 3rem;
  color: #8a9080;
  font-size: 0.85rem;
}

.msg { padding: 0.6rem 0.8rem; border-radius: var(--radius); font-size: 0.85rem; margin-bottom: 1rem; }
.msg.error { background: #fbe4e0; color: #8a3626; }
.msg.success { background: #e5f0dc; color: var(--sage-dark); }

/* Admin */
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); background: var(--white);
}
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.login-box {
  max-width: 360px; margin: 6rem auto; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem;
}
table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
th { background: var(--cream); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--sage-dark); }
.row-actions { display: flex; gap: 0.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.78rem; color: #6b7264; margin-bottom: 0.3rem; font-weight: 700; }
