:root {
  --ink: #271b16;
  --muted: #715d52;
  --paper: #fffaf3;
  --cream: #f5ead8;
  --red: #a62624;
  --green: #1f6b45;
  --gold: #b3832e;
  --line: rgba(60, 37, 24, 0.16);
  --shadow: 0 18px 50px rgba(55, 32, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 250, 243, 0.98)),
    radial-gradient(circle at top left, rgba(166, 38, 36, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(31, 107, 69, 0.16), transparent 32rem),
    var(--paper);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 250, 243, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: white;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--red);
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow,
.count,
.placeholder-band p,
.site-footer span,
.preview-copy p {
  color: var(--muted);
}

.top-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.top-nav a:hover {
  background: rgba(31, 107, 69, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 1.25rem 0 0;
  color: #5d473a;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions,
.preview-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.secondary {
  background: white;
}

.hero-card {
  transform: rotate(2deg);
}

.hero-card img {
  display: block;
  width: 100%;
  border: 10px solid white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.occasion-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 2rem;
  gap: 1rem;
}

.occasion-strip a,
.placeholder-band {
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.occasion-strip span,
.occasion-strip strong {
  display: block;
}

.occasion-strip span {
  color: var(--red);
  font-weight: 900;
}

.catalog,
.placeholder-band,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2,
.placeholder-band h2,
.preview-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.tools {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
}

input,
select {
  width: min(100%, 22rem);
  min-height: 2.8rem;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

select {
  width: 13rem;
}

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

.card-tile {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
  text-align: left;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(55, 32, 20, 0.08);
  cursor: pointer;
}

.card-tile:hover {
  border-color: rgba(31, 107, 69, 0.42);
  transform: translateY(-2px);
}

.card-tile img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  border-radius: 6px;
  background: var(--cream);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.card-meta strong {
  font-size: 0.95rem;
}

.card-meta span {
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 900;
}

.placeholder-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, white, #fbf2e4);
}

.placeholder-band p {
  max-width: 460px;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 3rem;
}

.preview-dialog {
  width: min(960px, calc(100% - 2rem));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-dialog::backdrop {
  background: rgba(26, 17, 13, 0.68);
}

.close-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(240px, 1fr);
  gap: 1.5rem;
  padding: 1rem;
  background: var(--paper);
}

.preview-layout img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  background: white;
}

.preview-copy {
  align-self: center;
  padding: 1rem;
}

@media (max-width: 760px) {
  .site-header,
  .section-heading,
  .placeholder-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero,
  .occasion-strip,
  .preview-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    transform: none;
  }

  .top-nav {
    justify-content: flex-start;
  }

  input,
  select {
    width: 100%;
  }
}
