:root {
  color-scheme: light;
  font-family: system-ui, "Malgun Gothic", sans-serif;
  color: #232641;
  background: #f5f5fb;
  line-height: 1.6;
}
.public-card { width: min(100% - 2rem, 32rem); margin: 3rem auto; }
.share-box, .saved { margin-top: 1.5rem; }
.saved button { display: block; width: 100%; text-align: left; margin: .5rem 0; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
button:disabled { opacity: .55; cursor: wait; }
#status { margin-top: 1rem; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
input, textarea, button { font: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
.shell { width: min(100% - 2rem, 65rem); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid #e0dfee; }
.brand { display: flex; align-items: center; gap: .75rem; min-height: 4.25rem; font-weight: 700; }
.mark {
  display: inline-grid;
  place-items: center;
  width: 2.55rem;
  aspect-ratio: 1;
  border-radius: .6rem;
  background: #4c3caa;
  color: #fff;
}
.introduction { margin-block: clamp(2rem, 6vw, 4.5rem) 1.65rem; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.15; letter-spacing: -.06em; }
.introduction p { margin-top: .7rem; color: #545672; }
.workspace { display: grid; grid-template-columns: 1.08fr 1fr; gap: 1rem; margin-bottom: 3rem; }
.editor, .preview { min-width: 0; padding: clamp(1rem, 4vw, 2rem); border: 1px solid #e0dfee; border-radius: 1.1rem; background: #fff; }
h2 { margin-bottom: 1.15rem; font-size: 1.13rem; }
.fields { display: grid; gap: .38rem; }
.fields label { margin-top: .6rem; font-size: .93rem; font-weight: 650; }
.fields label:first-child { margin-top: 0; }
input, textarea {
  min-width: 0;
  width: 100%;
  padding: .64rem .78rem;
  border: 1px solid #cbcadd;
  border-radius: .55rem;
  background: #fcfcff;
  color: inherit;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible { outline: .15rem solid #5747bb; outline-offset: .13rem; }
.editor-footer { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; justify-content: space-between; margin-top: 1rem; }
.editor-footer p { font-size: .88rem; color: #545672; }
button { border: 1px solid #cbc6e9; border-radius: .55rem; background: #f3f0ff; color: #3c2d84; cursor: pointer; padding: .48rem .82rem; }
button:hover { background: #e9e3ff; }
.invitation {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: .85rem;
  border: 1px solid #e5def7;
  background: radial-gradient(ellipse at 50% 0, #e7e2ff, transparent 72%), #f8f6ff;
  text-align: center;
  overflow-wrap: anywhere;
}
.motif { font-size: 2.3rem; color: #5943ad; line-height: 1.25; }
.invitation-label { margin-top: .75rem; color: #53428e; font-size: .9rem; letter-spacing: .12em; }
h3 { margin-top: .55rem; font-size: clamp(1.55rem, 4.6vw, 2.3rem); line-height: 1.25; }
.message { margin-block: .8rem 1.5rem; white-space: pre-wrap; }
.details { display: grid; border-top: 1px solid #d8cfef; text-align: start; }
.details div { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .55rem; padding-top: .65rem; }
dt { color: #53428e; font-weight: 650; }

@media (max-width: 47rem) {
  .workspace { grid-template-columns: 1fr; }
}
