:root {
  color-scheme: light;
  --ink: #26352e;
  --muted: #778078;
  --paper: #fbfaf6;
  --ground: #e8e3d6;
  --green: #315e4b;
  --line: #dcd9cd;
  --font-body: "Gowun Dodum", "Malgun Gothic", sans-serif;
  --font-note: "Nanum Pen Script", "Malgun Gothic", cursive;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--ground);
  background-image: radial-gradient(#a8a18d 0.6px, transparent 0.6px), linear-gradient(135deg, rgba(255,255,255,.28), transparent 45%);
  background-size: 9px 9px, 100% 100%;
  color: var(--ink);
  font-family: var(--font-body);
}

button, input, textarea { font: inherit; }
button { color: inherit; }

.page-shell {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
}

.masthead {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(49, 63, 53, .18);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.wordmark-mark { color: #d27d52; font-size: 22px; }
.masthead-note { color: #68736a; font-size: 12px; }

.intro {
  min-height: 263px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 3.5% 36px;
}

.eyebrow, .section-kicker {
  margin: 0;
  color: #66756a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow { display: flex; align-items: center; gap: 8px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #d27d52; }

h1 {
  margin: 17px 0 11px;
  font-size: 42px;
  line-height: 1.32;
  letter-spacing: 0;
}

h1 span { color: var(--green); }
.intro-copy { margin: 0; color: #667067; font-size: 13px; line-height: 1.9; }

.intro-stamp {
  width: 112px;
  height: 112px;
  margin: 0 7% 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(49, 94, 75, .48);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--font-note);
  font-size: 20px;
  line-height: 1.1;
  text-align: center;
  transform: rotate(8deg);
}

.stamp-spark { position: absolute; top: 7px; right: 6px; color: #d27d52; font-family: var(--font-body); font-size: 18px; }

.workspace {
  display: grid;
  grid-template-columns: minmax(280px,  .78fr) minmax(0, 1.55fr);
  align-items: start;
  gap: 45px;
  padding: 31px 3.5% 45px;
  border-top: 1px solid rgba(49, 63, 53, .18);
}

.compose-panel { padding: 2px 0 0; }
.section-kicker { display: flex; align-items: center; gap: 9px; color: #7b827a; font-size: 9px; }
.section-kicker span { color: #c2744b; font-size: 10px; }
h2 { margin: 12px 0 5px; font-size: 20px; line-height: 1.4; }
.compose-hint { margin: 0; color: var(--muted); font-size: 12px; }

form { margin-top: 23px; }
.field-label { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 700; }
.field-label span { margin-left: 4px; color: #999b92; font-size: 10px; font-weight: 400; }
input, textarea {
  width: 100%;
  border: 1px solid #d8d9cf;
  border-radius: 3px;
  outline: none;
  background: rgba(255,255,255,.65);
  color: var(--ink);
  font-size: 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input { height: 39px; padding: 0 11px; }
textarea { min-height: 145px; padding: 11px; resize: vertical; line-height: 1.75; }
input:focus, textarea:focus { border-color: #608571; box-shadow: 0 0 0 3px rgba(49,94,75,.1); }
input::placeholder, textarea::placeholder { color: #a3a59d; }
.message-label { margin-top: 17px; }

.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.character-count { color: #8c9289; font-size: 10px; }
.submit-button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 13px;
  border: 0;
  border-radius: 3px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-size: 12px;
  transition: background .18s ease, transform .18s ease;
}
.submit-button:hover { background: #244b39; transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .6; transform: none; }
.submit-button span:last-child { font-size: 16px; }
.form-status { min-height: 18px; margin: 8px 0 0; color: #a44d36; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.form-status.success { color: var(--green); }
.privacy-note { margin: 14px 0 0; color: #899087; font-size: 10px; }
.privacy-note span { margin-right: 5px; color: #c2744b; }

.wall-panel { min-width: 0; }
.wall-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(49, 63, 53, .18); }
.wall-heading h2 { margin: 10px 0 0; }
.wall-count { margin-left: 4px; color: #858d82; font-size: 12px; font-weight: 400; }
.sort-label { flex: 0 0 auto; color: #778078; font-size: 10px; }
.sort-label span { color: #c2744b; font-size: 14px; }
.wall-status { margin: 18px 0; color: #788078; font-size: 12px; line-height: 1.7; }
.wall-status:empty { display: none; }
.wall-status.error { padding: 12px 13px; border-left: 3px solid #bc6847; background: rgba(255, 247, 239, .8); color: #783f2d; }

.note-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 17px;
  padding: 19px 2px 4px;
}

.note {
  min-height: 167px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 23px 19px 16px;
  box-shadow: 0 4px 11px rgba(49, 53, 43, .12), 0 1px 2px rgba(49, 53, 43, .08);
  animation: note-in .35s ease both;
}
.note::before {
  width: 42px;
  height: 10px;
  position: absolute;
  top: -5px;
  left: calc(50% - 21px);
  background: rgba(250, 247, 223, .72);
  content: "";
  transform: rotate(-2deg);
}
.note:nth-child(4n + 1) { background: #f5e8a9; transform: rotate(-1deg); }
.note:nth-child(4n + 2) { background: #dce9d1; transform: rotate(1.1deg); }
.note:nth-child(4n + 3) { background: #f3d7c7; transform: rotate(.7deg); }
.note:nth-child(4n) { background: #d8e7e6; transform: rotate(-.8deg); }
.note-message { margin: 0; color: #354139; font-family: var(--font-note); font-size: 21px; line-height: 1.3; overflow-wrap: anywhere; white-space: pre-wrap; }
.note-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 19px; color: rgba(45, 57, 48, .65); font-size: 9px; }
.note-author { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-wall { grid-column: 1 / -1; padding: 33px 15px; border: 1px dashed rgba(49, 63, 53, .28); color: #788078; font-size: 12px; text-align: center; }

.page-footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 3.5%;
  border-top: 1px solid rgba(49, 63, 53, .18);
  color: #7e867d;
  font-size: 10px;
}

@keyframes note-in { from { opacity: 0; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 34px, 560px); }
  .masthead { height: 62px; }
  .intro { min-height: 238px; padding: 34px 0; }
  .intro-stamp { width: 82px; height: 82px; margin-right: 2px; }
  .workspace { grid-template-columns: 1fr; gap: 37px; padding: 28px 0 35px; }
  .compose-panel { max-width: none; }
  textarea { min-height: 120px; }
  .note { min-height: 155px; }
}

@media (max-width: 420px) {
  .page-shell { width: calc(100% - 28px); }
  .intro { align-items: flex-start; }
  .intro-stamp { flex: 0 0 72px; width: 72px; height: 72px; margin: 35px 0 0 10px; font-size: 14px; }
  h1 { font-size: 31px; }
  .intro-copy { font-size: 11px; }
  .note-list { gap: 12px; }
  .note { min-height: 150px; padding: 21px 13px 13px; }
  .note-message { font-size: 19px; }
  .page-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}