:root {
  --bg-cream: #fff7e8;
  --paper: #fffdf7;
  --ink: #2f2926;
  --orange: #f28c28;
  --coral: #ef6f51;
  --sky: #89d6fb;
  --leaf: #8ebf71;
  --shadow: 0 18px 45px rgba(82, 47, 18, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Baloo 2", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(137, 214, 251, 0.4), transparent 18%),
    linear-gradient(180deg, #ffe8b9 0%, #fff8ec 28%, #fff7e8 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

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

.brand strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
}

.brand small {
  font-size: 0.95rem;
  color: rgba(47, 41, 38, 0.72);
}

.brand-badge {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  color: white;
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 1.3rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
}

.inline-form {
  margin: 0;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
}

.nav-link {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

.nav-link.is-active {
  background: rgba(47, 41, 38, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--coral));
  color: white;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(242, 140, 40, 0.25);
  cursor: pointer;
}

.button-outline {
  background: white;
  color: var(--ink);
  border: 2px solid rgba(47, 41, 38, 0.1);
  box-shadow: none;
}

.button-outline.is-active {
  border-color: rgba(242, 140, 40, 0.55);
  box-shadow: 0 10px 24px rgba(242, 140, 40, 0.15);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.hero-copy,
.panel-card,
.feature-card,
.art-card,
.story-card,
.info-card,
.contact-card {
  background: rgba(255, 253, 247, 0.9);
  border: 3px solid rgba(47, 41, 38, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -60px -70px auto;
  width: 190px;
  height: 190px;
  border-radius: 35% 65% 60% 40%;
  background: rgba(137, 214, 251, 0.26);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--coral);
  font-family: "Patrick Hand", cursive;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0;
  line-height: 1.45;
  font-size: 1.05rem;
}

.hero-text {
  max-width: 62ch;
  margin-top: 1rem;
  font-size: 1.15rem;
}

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

.hero-points {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.2rem;
  margin: 1.3rem 0 0;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.panel-card {
  padding: 1.4rem;
}

.sticker-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 238, 204, 0.95)),
    white;
}

.sticker {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.palette {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.palette span {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(47, 41, 38, 0.1);
  border-radius: 14px;
  background: var(--swatch);
}

.stat-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  color: rgba(47, 41, 38, 0.7);
}

.section {
  margin-top: 2.5rem;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section-heading p:last-child {
  margin-top: 0.7rem;
  max-width: 62ch;
}

.section-actions {
  margin-top: 1.2rem;
}

.page-intro {
  margin-bottom: 1.5rem;
}

.page-lead {
  max-width: 64ch;
  margin-top: 0.85rem;
  font-size: 1.1rem;
}

.feature-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  padding: 1.3rem;
}

.feature-card p,
.info-card p {
  margin-top: 0.6rem;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.art-card {
  overflow: hidden;
}

.art-preview {
  position: relative;
  background: linear-gradient(180deg, #ffd373, #fff0c9);
}

.art-preview-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.art-preview img {
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
}

.art-badge {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(47, 41, 38, 0.82);
  color: white;
  font-size: 0.9rem;
}

.art-copy {
  padding: 1rem 1rem 1.1rem;
}

.art-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  color: rgba(47, 41, 38, 0.72);
  font-size: 0.98rem;
}

.art-description {
  margin-top: 0.65rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.tag {
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: #fff1d8;
  border: 2px solid rgba(242, 140, 40, 0.16);
  font-size: 0.9rem;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.story-card,
.info-card,
.contact-card {
  padding: 1.5rem;
}

.info-stack {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-layout {
  display: grid;
  gap: 1rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 1rem;
}

.upload-form,
.admin-preview {
  display: grid;
  gap: 1rem;
}

.form-heading p {
  margin-top: 0.4rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid rgba(47, 41, 38, 0.12);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

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

.checkbox-label {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-weight: 700;
}

.checkbox-label input {
  width: 20px;
  height: 20px;
  padding: 0;
}

.form-note {
  color: rgba(47, 41, 38, 0.72);
}

.admin-list {
  display: grid;
  gap: 0.85rem;
}

.form-panel {
  max-width: 760px;
  padding: 1.5rem;
  background: rgba(255, 253, 247, 0.92);
  border: 3px solid rgba(47, 41, 38, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.status-banner {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  font-weight: 700;
}

.hidden {
  display: none;
}

.status-success {
  background: rgba(142, 191, 113, 0.2);
  border: 2px solid rgba(142, 191, 113, 0.35);
}

.status-error {
  background: rgba(239, 111, 81, 0.12);
  border: 2px solid rgba(239, 111, 81, 0.3);
}

.field-validation {
  color: #b0412d;
  font-size: 0.95rem;
}

.admin-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(255, 241, 216, 0.55);
}

.admin-preview.flash {
  outline: 3px solid rgba(142, 191, 113, 0.45);
  outline-offset: 4px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 12, 0.82);
  backdrop-filter: blur(4px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.lightbox-figure {
  margin: 0;
  width: min(96vw, 1200px);
  max-height: 92vh;
  display: grid;
  gap: 0.75rem;
}

.lightbox-figure img {
  width: 100%;
  max-height: calc(92vh - 90px);
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}

.lightbox-caption {
  display: grid;
  gap: 0.2rem;
  color: white;
  text-align: center;
}

.lightbox-caption strong {
  font-size: 1.2rem;
}

.lightbox-caption span {
  color: rgba(255, 255, 255, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-item img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
  background: #ffe6b3;
}

.admin-actions {
  margin-top: 0.8rem;
}

.button-small {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
}

.edit-preview-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #fff8ec;
}

.validation-summary-errors ul {
  margin: 0;
}

.validation-summary-errors {
  color: #8f2e1f;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .admin-grid,
  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1200px);
  }

  .hero-copy,
  .panel-card,
  .story-card,
  .info-card,
  .contact-card {
    padding: 1.2rem;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .lightbox-dialog {
    padding: 0.75rem;
  }

  .lightbox-figure {
    width: 100%;
  }
}
