:root {
  --blue: #0d62b8;
  --deep-blue: #071437;
  --sky: #17a7df;
  --orange: #ff842f;
  --warm-orange: #ffb14d;
  --paper: #f7fbff;
  --white: #ffffff;
  --ink: #07111f;
  --muted: #60708a;
  --line: rgba(7, 20, 55, .14);
  --shadow: 0 18px 45px rgba(7, 20, 55, .14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 132, 47, .25), transparent 32%),
    radial-gradient(circle at 92% 4%, rgba(13, 98, 184, .22), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f4f9ff 48%, #fff4e9 100%);
  color: var(--ink);
}

body.wall-body {
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 66px;
  height: auto;
}

.brand-copy strong {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 25px;
  letter-spacing: .08em;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--deep-blue);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(7, 20, 55, .08);
}

.btn {
  padding: 10px 14px;
}

.icon-btn {
  width: 42px;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--warm-orange));
  color: #1b1208;
}

.btn.blue {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #1439af);
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: stretch;
  padding: 10px 0 24px;
}

.word-plant-panel,
.qr-card,
.form-card,
.admin-panel {
  border: 1px solid rgba(13, 98, 184, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.word-plant-panel {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 28px;
}

.word-plant-panel::before {
  content: "";
  position: absolute;
  inset: auto -80px -160px auto;
  width: 420px;
  height: 420px;
  border: 32px solid rgba(255, 132, 47, .34);
  border-radius: 50%;
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--deep-blue);
}

h1 {
  max-width: 720px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(48px, 7vw, 94px);
  line-height: .88;
  letter-spacing: 0;
}

.lede {
  max-width: 690px;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
}

.word-entry {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 520px;
}

.word-entry input,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  outline: 0;
}

.word-entry input {
  min-height: 50px;
  padding: 12px 14px;
  font-size: 18px;
  font-weight: 900;
}

.plant-stage {
  position: relative;
  min-height: 185px;
  margin-top: 22px;
}

.stem {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(var(--sky), var(--blue));
  transform: translateX(-50%);
}

.stem::before,
.stem::after {
  content: "";
  position: absolute;
  bottom: 10px;
  width: 130px;
  height: 42px;
  border-radius: 999px 999px 999px 12px;
  background: linear-gradient(135deg, var(--orange), var(--warm-orange));
}

.stem::before {
  right: 6px;
  transform: rotate(-17deg);
  transform-origin: right center;
}

.stem::after {
  left: 6px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  border-radius: 999px 999px 12px 999px;
  transform: rotate(17deg);
  transform-origin: left center;
}

.word-leaf {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  max-width: 160px;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px 999px 999px 8px;
  background: var(--white);
  border: 2px solid rgba(13, 98, 184, .18);
  color: var(--deep-blue);
  font-size: 13px;
  font-weight: 1000;
  box-shadow: 0 10px 26px rgba(13, 98, 184, .16);
  animation: leafIn .35s ease both;
}

.word-leaf.orange {
  border-color: rgba(255, 132, 47, .28);
  background: #fff2e5;
}

@keyframes leafIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.96);
  }
  to {
    opacity: 1;
  }
}

.qr-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.qr-card h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 34px;
  line-height: .98;
}

.qr-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.qr-frame {
  display: grid;
  place-items: center;
  padding: 14px;
  border: 2px solid rgba(255, 132, 47, .4);
  border-radius: 8px;
  background: var(--white);
}

.qr-frame img {
  width: min(100%, 235px);
  height: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 2px 0 28px;
}

.stat {
  padding: 15px;
  border-radius: 8px;
  background: var(--deep-blue);
  color: var(--white);
}

.stat:nth-child(2) {
  background: var(--blue);
}

.stat:nth-child(3) {
  background: var(--orange);
  color: #201105;
}

.stat strong {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 42px;
  line-height: .9;
}

.stat span {
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 14px;
}

.section-head h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 42px;
  line-height: 1;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 34px;
}

.love-card {
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(7, 20, 55, .08);
}

.love-card.featured {
  grid-column: span 2;
  border-color: rgba(255, 132, 47, .55);
  box-shadow: 0 20px 42px rgba(255, 132, 47, .18);
}

.media {
  background: #edf5ff;
}

.media img,
.media video {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: cover;
  background: #edf5ff;
}

.document-tile {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(13, 98, 184, .10), rgba(255, 132, 47, .14)),
    var(--paper);
  text-align: center;
  font-weight: 1000;
}

.card-copy {
  padding: 15px;
}

.card-copy p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff1e5;
  color: #8a3e06;
}

.page-wrap {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.form-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 8px 0 18px;
  text-align: center;
}

.form-hero img {
  width: 88px;
}

.form-hero h1 {
  font-size: clamp(42px, 12vw, 74px);
}

.form-card,
.admin-panel {
  padding: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--deep-blue);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  min-height: 46px;
  padding: 11px 12px;
  font-weight: 800;
}

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

.hint,
.status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status {
  min-height: 22px;
}

.status.good {
  color: #087044;
}

.status.bad {
  color: #b42318;
}

.admin-shell {
  width: min(1050px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 14px;
}

.admin-item.pending {
  border-color: rgba(255, 132, 47, .65);
}

.admin-item.hidden {
  opacity: .72;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-media {
  max-width: 220px;
  max-height: 140px;
  border-radius: 8px;
  object-fit: cover;
}

.empty {
  padding: 24px;
  border: 1px dashed rgba(13, 98, 184, .35);
  border-radius: 8px;
  background: rgba(255, 255, 255, .65);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

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

  .wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .love-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    width: 56px;
  }

  .word-entry {
    grid-template-columns: 1fr;
  }

  .stats,
  .wall-grid {
    grid-template-columns: 1fr;
  }

  .word-plant-panel {
    min-height: 430px;
    padding: 20px;
  }
}
