:root {
  --bg: #111318;
  --panel: #181c24;
  --ink: #f4f0e8;
  --muted: #aeb7c4;
  --line: #2d3440;
  --accent: #43b894;
  --note: #eeb45a;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 75% 12%, rgb(67 184 148 / 16%), transparent 28rem), var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app {
  display: grid;
  width: min(960px, calc(100% - 32px));
  gap: 18px;
  margin: 0 auto;
  padding: 28px 0;
}

header,
form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
}

a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

input,
button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

input {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  padding: 0 14px;
}

button {
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  font-weight: 850;
  padding: 0 18px;
}

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}

.note {
  display: grid;
  min-height: 150px;
  gap: 18px;
  border-radius: 8px;
  background: var(--note);
  color: var(--bg);
  padding: 18px;
}

.note p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.1rem;
  font-weight: 760;
}

.note footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  gap: 12px;
}

.note time {
  opacity: 0.68;
  font-size: 0.85rem;
  font-weight: 800;
}

.note button {
  min-height: 34px;
  border-color: rgb(17 19 24 / 20%);
  background: rgb(17 19 24 / 10%);
  color: var(--bg);
  padding: 0 10px;
}

.empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  padding: 24px;
}

@media (max-width: 560px) {
  header,
  form {
    align-items: stretch;
    flex-direction: column;
  }
}
