@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  color: #263d38;
  background: #f8f6f0;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --green: #2f6657;
  --deep-green: #21483d;
  --muted: #82918a;
  --line: #e8e7de;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  -webkit-user-select: none;
  user-select: none;
  background:
    radial-gradient(ellipse at 91% 9%, rgba(232, 224, 194, 0.26), transparent 25rem),
    #f8f6f0;
}

button,
input,
textarea {
  font: inherit;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

.page-shell {
  width: min(100% - 48px, 1000px);
  margin: 0 auto;
}

.hero {
  min-height: 337px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 48px 45px 39px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  color: #829188;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow {
  margin: 0 0 20px;
}

.sparkle {
  color: #d29d58;
  margin-right: 7px;
  font-size: 14px;
  vertical-align: -1px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--deep-green);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.3;
}

.title-dot {
  color: #d29d58;
}

.intro {
  margin-bottom: 0;
  color: #7d8981;
  font-size: 14px;
  line-height: 1.9;
}

.mobile-break {
  display: none;
}

.hero-art {
  position: relative;
  width: 235px;
  height: 235px;
  flex: 0 0 235px;
  margin-right: 25px;
  color: #d5aa6b;
}

.sun {
  position: absolute;
  top: 29px;
  left: 79px;
  z-index: 1;
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border-radius: 50%;
  background: #f1dfb8;
  color: #b98542;
  font-size: 53px;
  line-height: 1;
}

.orbit {
  position: absolute;
  left: 34px;
  top: 32px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(184, 155, 101, 0.35);
  border-radius: 50%;
  transform: rotate(-24deg) scaleY(0.52);
}

.orbit-two {
  transform: rotate(38deg) scaleY(0.7);
}

.art-star {
  position: absolute;
  z-index: 2;
  font-size: 25px;
}

.star-one {
  top: 40px;
  right: 33px;
  color: #88a78a;
}

.star-two {
  bottom: 52px;
  left: 35px;
  color: #d49b58;
  font-size: 19px;
}

.art-caption {
  position: absolute;
  right: 12px;
  bottom: 21px;
  color: #94a097;
  font-size: 10px;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-align: center;
  transform: rotate(-8deg);
}

.write-panel {
  width: min(100%, 760px);
  margin: 43px auto 0;
  padding: 27px 31px 24px;
  border: 1px solid #e8e6db;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 9px 28px rgba(48, 65, 53, 0.035);
}

.panel-heading,
.wall-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-kicker {
  margin-bottom: 7px;
  font-size: 9px;
}

h2 {
  margin-bottom: 0;
  color: var(--deep-green);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.paper-icon {
  color: #d3a465;
  font-size: 24px;
  transform: rotate(-10deg);
}

#wish-form {
  margin-top: 21px;
}

textarea {
  display: block;
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 13px 15px;
  border: 1px solid #e8e9e1;
  border-radius: 5px;
  outline: none;
  background: #fcfcf9;
  color: #334940;
  font-size: 13px;
  line-height: 1.7;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea::placeholder,
.name-field input::placeholder {
  color: #a7afa8;
}

textarea:focus,
.name-field input:focus {
  border-color: #9eb7a7;
  box-shadow: 0 0 0 3px rgba(91, 137, 112, 0.1);
}

.form-footer,
.form-meta,
.name-field {
  display: flex;
  align-items: center;
}

.form-footer {
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}

.form-meta {
  gap: 18px;
}

.name-field {
  gap: 8px;
  color: #8d9991;
  font-size: 11px;
}

.name-field input {
  width: 120px;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid #e6e8df;
  outline: 0;
  background: transparent;
  color: #334940;
  font-size: 11px;
}

.char-count {
  color: #a5ada6;
  font-size: 10px;
}

button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 17px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s, transform 0.2s;
}

button:hover {
  background: var(--deep-green);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button-arrow {
  color: #d5c398;
  font-size: 15px;
}

.form-message {
  min-height: 16px;
  margin: 8px 0 -7px;
  color: #b35040;
  font-size: 11px;
}

.form-message.success {
  color: #557a61;
}

.wall-section {
  width: min(100%, 760px);
  margin: 47px auto 0;
}

.wall-heading {
  align-items: end;
  margin-bottom: 22px;
}

.wall-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.wish-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 5px;
  border-radius: 50px;
  background: #e9eee7;
  color: #6a8575;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.wall-note {
  margin-bottom: 2px;
  color: #9aa39c;
  font-size: 11px;
}

.wish-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wish-card {
  position: relative;
  min-height: 158px;
  padding: 20px 19px 16px;
  border: 1px solid rgba(77, 91, 71, 0.08);
  border-radius: 5px;
  background: #fffefa;
  box-shadow: 0 5px 14px rgba(58, 65, 49, 0.045);
  animation: appear 0.35s ease both;
}

.wish-card:nth-child(8n + 1) {
  background: #fff3d8;
}

.wish-card:nth-child(8n + 2) {
  background: #e8f3e7;
}

.wish-card:nth-child(8n + 3) {
  background: #fce8e7;
}

.wish-card:nth-child(8n + 4) {
  background: #e8effb;
}

.wish-card:nth-child(8n + 5) {
  background: #f1eafa;
}

.wish-card:nth-child(8n + 6) {
  background: #e3f2ef;
}

.wish-card:nth-child(8n + 7) {
  background: #f9e9d8;
}

.wish-card:nth-child(8n) {
  background: #f2efdf;
}

.wish-card::before {
  position: absolute;
  top: -5px;
  left: calc(50% - 10px);
  width: 20px;
  height: 9px;
  border-radius: 2px;
  background: rgba(214, 180, 119, 0.5);
  content: "";
  transform: rotate(-4deg);
}

.wish-content {
  min-height: 93.6px;
  margin: 0 0 17px;
  color: #46564c;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.wish-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(95, 109, 91, 0.19);
  color: #8b988c;
  font-size: 10px;
}

.wish-author {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wish-date {
  flex: 0 0 auto;
  color: #a4aaa0;
}

.wish-interactions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.bless-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgba(126, 112, 103, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  color: #806b68;
  font-size: 10px;
  line-height: 1;
}

.bless-button > span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.bless-heart {
  font-size: 12px;
}

.bless-button:hover {
  border-color: rgba(177, 104, 104, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: #b65c64;
}

.bless-button:disabled {
  border-color: rgba(177, 104, 104, 0.18);
  background: rgba(255, 255, 255, 0.42);
  color: #b65c64;
  cursor: default;
  opacity: 1;
}

.blessing-count {
  min-width: 16px;
  height: 16px;
  justify-content: center;
  padding: 0 4px;
  border-radius: 10px;
  background: rgba(128, 107, 104, 0.1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wall-message {
  min-height: 18px;
  margin: 10px 0 0;
  color: #b35040;
  font-size: 11px;
}

.empty-state {
  padding: 44px 20px;
  border: 1px dashed #dedfd4;
  border-radius: 6px;
  color: #8c9890;
  font-size: 13px;
  text-align: center;
}

.empty-state span {
  margin-left: 4px;
  color: #d09b5b;
}

.page-footer {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 58px 0 28px;
  color: #a0a79e;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.footer-flower {
  color: #d09b5b;
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 34px, 520px);
  }

  .hero {
    min-height: 260px;
    padding: 40px 10px 31px;
  }

  .hero-art {
    position: absolute;
    right: -80px;
    bottom: -31px;
    opacity: 0.55;
    transform: scale(0.8);
  }

  .hero-copy {
    max-width: 88%;
  }

  .intro {
    font-size: 13px;
  }

  .mobile-break {
    display: initial;
  }

  .write-panel {
    margin-top: 27px;
    padding: 22px 18px 17px;
  }

  .wall-section {
    margin-top: 38px;
  }

  .wish-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .wish-card {
    min-height: 154px;
    padding: 18px 15px 14px;
  }
}

@media (max-width: 440px) {
  .page-shell {
    width: calc(100% - 28px);
  }

  .hero {
    min-height: 246px;
  }

  .eyebrow {
    font-size: 8px;
  }

  .hero-art {
    right: -104px;
    bottom: -40px;
    transform: scale(0.7);
  }

  .form-meta {
    gap: 10px;
  }

  .name-field {
    gap: 5px;
  }

  .name-field input {
    width: 80px;
  }

  button {
    gap: 8px;
    padding: 0 10px;
  }

  .wall-note {
    max-width: 95px;
    line-height: 1.7;
    text-align: right;
  }

  .wish-wall {
    grid-template-columns: 1fr;
  }

  .wish-card {
    min-height: 135px;
  }

  .wish-content {
    min-height: 54px;
  }
}
