@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #f6f1e7;
  --bg-accent: #f3e2cc;
  --card: #ffffff;
  --ink: #1c2430;
  --muted: #5e6a7d;
  --accent: #e36a3d;
  --accent-strong: #c84d21;
  --border: #eadfce;
  --shadow: 0 16px 40px rgba(36, 40, 46, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 20%, #f8ede0 0, transparent 45%),
    radial-gradient(circle at 85% 0%, #e8f0ea 0, transparent 50%),
    linear-gradient(135deg, var(--bg), #f9f5ee 45%, #f2f6f3 100%);
  min-height: 100vh;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 80px;
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--muted);
  font-size: 15px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(227, 106, 61, 0.1);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: floatIn 0.6s ease both;
  animation-delay: var(--delay, 0s);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -40% -80% auto;
  width: 140px;
  height: 140px;
  background: rgba(227, 106, 61, 0.08);
  border-radius: 40px;
  transform: rotate(-12deg);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.form {
  display: grid;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

input,
textarea,
select {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #fff9f2;
  color: var(--ink);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(227, 106, 61, 0.5);
  box-shadow: 0 0 0 3px rgba(227, 106, 61, 0.15);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-family: inherit;
  font-weight: 600;
  background: var(--accent);
  color: #fffaf4;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

button.secondary {
  background: #1f7a8c;
}

button.ghost {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid rgba(227, 106, 61, 0.4);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(227, 106, 61, 0.2);
}

.list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fffdf9;
  font-size: 13px;
}

.list-item a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.notice {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  background: rgba(31, 122, 140, 0.12);
  color: #14505c;
}

.notice.error {
  background: rgba(227, 106, 61, 0.15);
  color: #8f3e1f;
}

.footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }
}
