:root {
  --cream: #fffaf1;
  --paper: #fffdf8;
  --ink: #183f32;
  --muted: #65786d;
  --green: #24523e;
  --pink: #f493b5;
  --gold: #ffca4c;
  --line: rgba(36, 82, 62, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 16% 12%, rgba(244, 147, 181, 0.18), transparent 18rem),
    radial-gradient(circle at 92% 8%, rgba(255, 202, 76, 0.18), transparent 16rem),
    var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.studio-shell {
  min-height: 100svh;
}

.studio-card {
  width: min(calc(100% - 1.6rem), 28rem);
  margin: 0 auto;
  transform: translateY(clamp(2rem, 12svh, 6rem));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 24px 80px rgba(24, 63, 50, 0.14);
  padding: clamp(1.1rem, 5vw, 1.6rem);
}

.studio-logo {
  width: 4rem;
  height: 4rem;
  border-radius: 8px;
  object-fit: cover;
}

.kicker {
  margin: 1rem 0 0.45rem;
  color: #27677f;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 10vw, 3.4rem);
  line-height: 1;
}

h2 {
  font-size: clamp(1.35rem, 6vw, 2rem);
}

.login-form,
.editor-form,
.editor-section,
label {
  display: grid;
}

.login-form {
  gap: 0.9rem;
  margin-top: 1.2rem;
}

label {
  gap: 0.35rem;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0.78rem 0.85rem;
}

textarea {
  min-height: 3rem;
  resize: vertical;
}

button,
.sticky-save a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-weight: 950;
  text-decoration: none;
}

.note,
.save-note {
  min-height: 1.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.studio-workspace {
  padding-bottom: 6rem;
}

.studio-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem clamp(0.8rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.92);
  backdrop-filter: blur(18px);
}

.studio-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.55rem;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  text-decoration: none;
}

.studio-brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  object-fit: cover;
}

.studio-topbar button {
  min-height: 2.35rem;
  padding: 0 0.8rem;
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
}

.studio-hero,
.editor-form {
  width: min(100% - 1.6rem, 58rem);
  margin: 0 auto;
}

.studio-hero {
  padding: clamp(1.4rem, 7vw, 3rem) 0 1rem;
}

.studio-hero p:not(.kicker):not(.save-note) {
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.55;
}

.editor-form {
  gap: 1rem;
}

.editor-section {
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  padding: clamp(0.9rem, 4vw, 1.2rem);
}

.card-editor-grid {
  display: grid;
  gap: 0.85rem;
}

.mini-card {
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(36, 82, 62, 0.1);
  border-radius: 8px;
  background: white;
  padding: 0.85rem;
}

.mini-card h3 {
  margin: 0;
  color: var(--green);
  font-size: 0.92rem;
}

.mini-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.remove-card,
.add-card {
  min-height: 2.2rem;
  padding: 0 0.85rem;
  font-size: 0.78rem;
}

.remove-card {
  background: white;
  color: #b3493b;
  border: 1px solid rgba(179, 73, 59, 0.35);
}

.add-card {
  justify-self: start;
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
}

.sticky-save {
  position: sticky;
  bottom: 0.7rem;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0.65rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 16px 40px rgba(24, 63, 50, 0.12);
  backdrop-filter: blur(16px);
}

.sticky-save a {
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
}

@media (min-width: 780px) {
  .card-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
