@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Nanum+Myeongjo:wght@700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #243b36;
  --muted: #75837b;
  --paper: #f7f5ef;
  --white: #fffefa;
  --green: #286956;
  --orange: #df714f;
  --line: #e2e4da;
  --mint: #dcebe1;
  --yellow: #f5e4a1;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Gowun Dodum", "Malgun Gothic", sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1100px) / 2)); border-bottom: 1px solid var(--line); background: #fbfaf6; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-family: "Nanum Myeongjo", serif; }
.top-note { color: var(--muted); font-size: 13px; }
main { width: min(100% - 40px, 960px); margin: 0 auto; }
.intro { position: relative; min-height: 350px; display: flex; flex-direction: column; justify-content: center; padding: 52px 8%; overflow: hidden; }
.eyebrow { margin: 0 0 14px; color: var(--green); font: 800 11px/1.3 "Gowun Dodum", sans-serif; letter-spacing: 1.3px; }
h1, h2, p { margin-top: 0; }
h1 { position: relative; z-index: 1; margin-bottom: 18px; font: 800 clamp(34px, 5.5vw, 58px)/1.32 "Nanum Myeongjo", "Batang", serif; }
h1 span { color: var(--green); }
.intro-copy { position: relative; z-index: 1; margin: 0; color: #62736b; font-size: 16px; line-height: 1.85; }
.tape { position: absolute; width: 225px; height: 142px; border-radius: 3px; opacity: .58; }
.tape-one { right: 8%; top: 74px; background: var(--yellow); transform: rotate(8deg); }
.tape-two { right: 16%; top: 145px; width: 185px; height: 112px; background: var(--mint); transform: rotate(-9deg); }
.write-section { padding: 30px clamp(20px, 5vw, 54px) 28px; border: 1px solid #e4e2d8; border-radius: 5px; background: var(--white); box-shadow: 0 9px 26px #283a3210; }
.section-heading, .wall-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
h2 { margin-bottom: 0; font: 800 26px/1.35 "Nanum Myeongjo", "Batang", serif; }
.section-heading .eyebrow, .wall-heading .eyebrow { margin-bottom: 7px; }
.heading-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #eff3ea; color: var(--green); font-size: 24px; }
form { margin-top: 23px; }
.field-label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.field-label span { color: #8b9790; font-size: 12px; font-weight: 400; }
input, textarea { width: 100%; border: 1px solid #dfe3dc; border-radius: 3px; outline: none; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input { height: 44px; padding: 0 13px; }
textarea { min-height: 118px; padding: 12px 13px; resize: vertical; line-height: 1.7; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px #28695619; }
input::placeholder, textarea::placeholder { color: #a0aaa4; }
.message-label { margin-top: 18px; }
.message-label span { margin-left: auto; font-weight: 400; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.char-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.submit-button { min-height: 43px; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 3px; padding: 0 18px; background: var(--green); color: white; font-size: 14px; font-weight: 800; transition: background .15s, transform .15s; }
.submit-button:hover { background: #1e5947; transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .65; transform: none; }
.submit-button span { font-size: 19px; }
.form-status { min-height: 0; margin: 0; color: var(--green); font-size: 13px; }
.form-status:not(:empty) { margin-top: 12px; }
.form-status.error, .wall-status.error { color: #b74735; }
.wall-section { padding: 58px 0 80px; }
.wall-heading { padding-bottom: 20px; border-bottom: 1px solid #d8ddd4; }
.wall-heading h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.note-count { color: var(--muted); font: 400 12px "Gowun Dodum", sans-serif; }
.refresh-button { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border: 1px solid #dce2db; border-radius: 50%; background: transparent; color: var(--green); font-size: 23px; transition: transform .3s, background .15s; }
.refresh-button:hover { transform: rotate(35deg); background: white; }
.wall-status { padding: 24px 0 0; color: var(--muted); font-size: 14px; }
.note-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 20px; }
.note-card { min-height: 176px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid #e5dfc8; border-radius: 3px; background: #fff8d9; box-shadow: 0 4px 9px #35351b12; transform: rotate(var(--tilt, 0deg)); animation: place-note .35s ease both; }
.note-card:nth-child(4n + 2) { background: #e7f2e9; border-color: #d5e6d7; }
.note-card:nth-child(4n + 3) { background: #fbe6de; border-color: #efd8ce; }
.note-card:nth-child(4n + 4) { background: #e5f0f4; border-color: #d3e3e8; }
.note-message { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; color: #31433c; font-size: 16px; line-height: 1.75; }
.note-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 19px; padding-top: 11px; border-top: 1px solid #263b361c; color: #687770; font-size: 12px; }
.empty-wall { grid-column: 1 / -1; padding: 40px 16px; border: 1px dashed #cbd4cc; color: var(--muted); text-align: center; line-height: 1.8; }
.footer { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(24px, calc((100vw - 960px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@keyframes place-note { from { opacity: 0; transform: translateY(8px) rotate(var(--tilt, 0deg)); } to { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)); } }
@media (max-width: 700px) {
  .topbar { height: 58px; padding: 0 18px; }
  .top-note { max-width: 135px; text-align: right; font-size: 11px; }
  main { width: min(100% - 32px, 540px); }
  .intro { min-height: 300px; padding: 42px 4%; }
  .tape-one { right: -62px; top: 87px; width: 175px; height: 110px; opacity: .43; }
  .tape-two { right: -24px; top: 165px; width: 150px; height: 90px; opacity: .42; }
  .intro-copy { font-size: 14px; }
  .write-section { padding: 24px 18px 20px; }
  h2 { font-size: 23px; }
  .note-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .note-card { min-height: 160px; padding: 15px; }
  .note-message { font-size: 14px; }
  .note-meta { font-size: 11px; }
  .wall-section { padding-top: 44px; }
  .footer { padding: 14px 18px; font-size: 11px; }
}
@media (max-width: 420px) {
  .note-wall { grid-template-columns: 1fr; }
  .note-card { min-height: 130px; }
  .footer span:first-child { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }