:root {
  --paper: #f5f1ec;
  --olive: #6c7458;
  --moss: #7f8766;
  --terracotta: #9f6254;
  --ink: #3e4038;
  --white: #fffdf9;
  --card: rgba(255, 253, 249, 0.86);
  --border: rgba(151, 127, 112, 0.2);
  --shadow: 0 28px 55px rgba(70, 58, 50, 0.17);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, #f2e8de 0%, transparent 38%),
    radial-gradient(circle at 85% 20%, #dce2d0 0%, transparent 34%),
    radial-gradient(circle at 65% 75%, #efe0d2 0%, transparent 30%),
    linear-gradient(145deg, #f7f4ef 0%, #f0ebe3 40%, #ece6dc 100%);
  padding: clamp(1.1rem, 2.5vw, 2.4rem);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(58, 54, 50, 0.25) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.topbar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 0.55rem 0.9rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}

.brand {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--olive);
  text-decoration: none;
  white-space: nowrap;
}

.menu {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  text-decoration: none;
  color: #53574d;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.menu a.active,
.menu a:hover {
  background: #ece5db;
  color: #3b3d36;
}

.hero {
  text-align: center;
  margin-top: 1.25rem;
  animation: rise 760ms ease-out;
}

.kicker {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: var(--terracotta);
}

h1 {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 1;
  color: var(--olive);
  font-weight: 400;
}

h1 span {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.5em;
  font-weight: 600;
  margin: 0 0.12em;
  vertical-align: middle;
  text-transform: lowercase;
}

.subtitle {
  margin-top: 0.7rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.8vw, 1.85rem);
}

.page-card {
  width: 100%;
  margin-top: 1.3rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 30px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  animation: rise 900ms ease-out;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.image-wrap {
  padding: clamp(0.85rem, 1.7vw, 1.25rem);
}

.image-wrap img {
  width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(74, 63, 54, 0.2);
}

.content {
  padding: clamp(1.3rem, 3.8vw, 2.8rem);
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 0;
  color: var(--terracotta);
}

p,
li {
  color: #4e5249;
  line-height: 1.7;
  font-size: 1.02rem;
}

.list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.block {
  padding: clamp(1.4rem, 3.6vw, 2.7rem);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tile {
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1rem;
}

.tile h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--olive);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  background: linear-gradient(135deg, #86916f 0%, #707a5b 100%);
  color: var(--white);
  font-size: 0.94rem;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #cbc1b3;
  background: #fffdfa;
  font: inherit;
}

.textarea {
  min-height: 90px;
  resize: vertical;
}

.field {
  margin-top: 0.8rem;
}

.label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.93rem;
  color: #4f5349;
}

.search-results {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.45rem;
}

.search-item {
  width: 100%;
  text-align: left;
  border: 1px solid #d6ccbf;
  background: #fffcf7;
  border-radius: 10px;
  padding: 0.6rem 0.72rem;
  cursor: pointer;
}

.search-item:hover,
.search-item.active {
  border-color: #9aa287;
  background: #f4f3eb;
}

.notice {
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  font-size: 0.94rem;
}

.notice.ok {
  background: #edf5e6;
  color: #3a5a2f;
  border: 1px solid #b5d0a0;
}

.notice.error {
  background: #fbe8e8;
  color: #7a3131;
  border: 1px solid #e7b1b1;
}

footer {
  text-align: center;
  margin-top: 1rem;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
  color: #686a62;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .split,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .menu {
    width: 100%;
    justify-content: flex-start;
  }
}

.row-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-alt {
  background: linear-gradient(135deg, #a08a74 0%, #866f5c 100%);
}

.stats-grid {
  margin-top: 1rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.7rem;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #ded5c8;
  text-align: left;
  padding: 0.65rem 0.5rem;
  font-size: 0.95rem;
}

.admin-table th {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: #4f5349;
}

.btn-danger {
  background: linear-gradient(135deg, #b56f66 0%, #9b4f45 100%);
}

.cell-input,
.cell-select {
  min-width: 160px;
  font-size: 0.9rem;
  padding: 0.5rem 0.6rem;
}

.thanks-card {
  text-align: center;
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.thanks-card h2 {
  margin-bottom: 0.5rem;
}

.thanks-card p {
  margin: 0.5rem 0;
}

.map-tile {
  margin-top: 1rem;
}

.map-embed iframe {
  width: 100%;
  min-height: 360px;
  border-radius: 14px;
}
