@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&display=swap");

:root {
  --bg: #f4efe6;
  --ink: #2a2724;
  --paper: #fff3cf;
  --accent: #f08a5d;
  --accent-dark: #d46a3d;
  --edge: #e3d7c7;
  --soft: #f8e6d1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR", serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 15%, #fff6d6, var(--bg) 55%);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffd7b8, transparent 70%);
  filter: blur(2px);
  opacity: 0.5;
  z-index: -1;
}

body::before {
  top: -40px;
  right: -60px;
}

body::after {
  bottom: -60px;
  left: -40px;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.hero {
  margin-bottom: 28px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 16px;
}

.hero-text h1 {
  font-size: 42px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.hero-text p {
  margin: 0;
  color: #5b5148;
}

.hero-art {
  position: relative;
  height: 160px;
}

.bubble {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--soft));
  box-shadow: inset 0 0 0 2px rgba(227, 215, 199, 0.8), 6px 6px 18px rgba(0, 0, 0, 0.08);
}

.bubble-lg {
  width: 150px;
  height: 150px;
  right: 0;
  top: 0;
}

.bubble-md {
  width: 90px;
  height: 90px;
  right: 110px;
  top: 40px;
}

.bubble-sm {
  width: 50px;
  height: 50px;
  right: 70px;
  top: 10px;
}

.panel {
  background: white;
  border: 2px solid var(--edge);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 6px 8px 0 #efe4d4;
}

#note-input {
  width: 100%;
  min-height: 120px;
  border: 2px dashed var(--edge);
  border-radius: 18px;
  padding: 12px;
  font-size: 16px;
  background: var(--paper);
  resize: vertical;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(240, 138, 93, 0.3);
}

button:hover {
  transform: translateY(-1px);
}

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.note {
  background: var(--paper);
  border: 2px solid var(--edge);
  border-radius: 20px;
  padding: 12px;
  min-height: 90px;
  box-shadow: 4px 6px 0 #efe4d4;
  white-space: pre-wrap;
}

.error {
  color: #b00020;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-art {
    height: 120px;
    margin: 0 auto;
  }
}
