:root {
  --bg: #faf7f2;
  --ink: #2a2825;
  --muted: #6b6660;
  --rule: #e6dfd5;
  --accent: #4a5a6a;
  --rose: #c9a0a8;
  --sage: #8a9a82;
  --brass: #a37e3a;
  --shadow: 0 1px 3px rgba(42, 40, 37, 0.06), 0 8px 24px rgba(42, 40, 37, 0.08);
  --radius: 4px;
  --max: 1200px;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

header {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--bg) 0%, #f4ede2 100%);
}

header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.subtitle {
  font-style: italic;
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

section { margin-bottom: 4rem; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.intro {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.intro h2 { border: none; padding: 0; margin-bottom: 1rem; }

.section-note {
  color: var(--muted);
  font-style: italic;
  margin: 0.75rem 0 1.5rem;
}

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

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 3px rgba(42, 40, 37, 0.08), 0 16px 32px rgba(42, 40, 37, 0.12);
}

.card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  cursor: default;
}

.card.featured img { aspect-ratio: 3/2; }

@media (max-width: 720px) {
  .card.featured { grid-template-columns: 1fr; }
}

.card-img {
  position: relative;
}

.card img {
  width: 100%;
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
  background: #ece5d8;
}

.id-chip {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(42, 40, 37, 0.12);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(42, 40, 37, 0.18);
  transition: transform 0.12s ease, background 0.15s ease;
  min-width: 44px;
  min-height: 32px;
  z-index: 2;
}

.id-chip::before {
  content: "⧉ ";
  opacity: 0.55;
  font-weight: 400;
}

.id-chip:hover {
  background: var(--brass);
  color: white;
}

.id-chip:active {
  transform: scale(0.94);
}

#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-family: "SF Mono", "Menlo", monospace;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
}

.card .label {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.card .label.pick {
  background: var(--brass);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.shopping ol, .shopping ul {
  background: #fff;
  padding: 1.25rem 1.5rem 1.25rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shopping li { margin-bottom: 0.5rem; }
.shopping ul { margin-top: 0.75rem; }

footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--rule);
}

footer code {
  background: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-size: 0.85rem;
}

dialog#lightbox {
  border: none;
  background: rgba(0, 0, 0, 0.92);
  color: white;
  padding: 0;
  max-width: 95vw;
  max-height: 95vh;
  width: 95vw;
  height: 95vh;
  border-radius: var(--radius);
}

dialog#lightbox::backdrop { background: rgba(0, 0, 0, 0.7); }

dialog#lightbox img {
  width: 100%;
  height: calc(100% - 60px);
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  text-align: center;
  padding: 0.75rem;
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}
