@font-face {
  font-family: DM Sans;
  src: url("/studio/assets/dm-sans-normal-400-latin.woff2");
}
@font-face {
  font-family: DM Sans;
  src: url("/studio/assets/dm-sans-normal-600-latin.woff2");
  font-weight: 700;
}
@font-face {
  font-family: Hedvig Letters Serif;
  src: url("/studio/assets/hedvig-letters-serif-normal-400-latin.woff2");
}
:root {
  --ink: #3c2c29;
  --paper: #fcf3df;
  --line: #dccdb9;
  --green: #456353;
  --muted: #705f5b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    14px "DM Sans",
    Arial,
    sans-serif;
  background: #f7f5f0;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 38px;
  padding: 8px 12px;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.quiet {
  background: transparent;
}
.brand,
h1,
h2,
.guest h1,
.guest h2 {
  font-family: "Hedvig Letters Serif", Georgia, serif;
}
.brand {
  font-size: 28px;
  text-decoration: none;
  color: var(--ink);
}
.eyebrow {
  letter-spacing: 0.11em;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
#studio {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 440px 1fr;
}
.chat {
  background: var(--paper);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--line);
}
.chat h2 {
  font-size: 32px;
  line-height: 1.06;
  margin: 16px 0 0;
}
.chat p {
  line-height: 1.55;
  color: var(--muted);
}
textarea {
  width: 100%;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
  resize: vertical;
}
.upload,
.chat-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.upload span {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.chat-actions {
  margin-top: auto;
}
.notice {
  font-size: 12px;
}
.notice.error {
  color: #9b3d36;
}
.work {
  min-width: 0;
}
nav {
  height: 72px;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
nav span {
  flex: 1;
}
nav button {
  border: 0;
  background: transparent;
}
nav .active {
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
}
.canvas {
  padding: 64px clamp(30px, 6vw, 96px);
  max-width: 1180px;
  margin: auto;
}
.canvas h1 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  margin: 8px 0 12px;
}
.lede {
  font-size: 16px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.5;
}
.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.choice {
  text-align: left;
  padding: 10px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.choice img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 3px;
  background: #eee;
}
.choice strong {
  font-size: 16px;
}
.choice small {
  color: var(--muted);
}
.choice span {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--green);
  color: #fff;
  padding: 4px 7px;
  border-radius: 3px;
  font-size: 11px;
}
.choice.is-selected {
  outline: 2px solid var(--green);
  border-color: var(--green);
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}
.section-list {
  max-width: 670px;
  margin-top: 30px;
}
.section-row {
  display: grid;
  grid-template-columns: 40px 1fr 110px 40px 40px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.section-row span {
  font-size: 12px;
  color: var(--muted);
}
.section-row button {
  min-height: 34px;
  padding: 4px;
}
.tick[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 32px;
  margin-top: 30px;
}
.editor form {
  display: grid;
  gap: 14px;
}
.editor label {
  display: grid;
  gap: 5px;
  font-weight: 700;
}
.editor input,
.editor textarea {
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 4px;
  background: #fff;
}
.live-preview {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 500px;
  overflow: auto;
}
.guest {
  min-height: 560px;
  background: #f6f0e9;
  color: #3c2c29;
  padding: 20px;
}
.guest__hero {
  text-align: center;
  padding: 28px 20px 52px;
}
.guest__hero img {
  width: min(100%, 510px);
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 0 auto 28px;
}
.guest h1 {
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 400;
  margin: 10px;
}
.guest h2 {
  font-size: 28px;
  font-weight: 400;
}
.guest section {
  max-width: 620px;
  margin: 0 auto;
  padding: 30px 0;
  border-top: 1px solid #d7c6bf;
  line-height: 1.6;
}
.guest--immersive .guest__hero {
  background: #3c2c29;
  color: #fff;
}
.guest--dinner .guest__hero {
  background: #456353;
  color: #fff;
}
dialog {
  width: min(1000px, 94vw);
  border: 0;
  padding: 0;
  background: #fff;
  box-shadow: 0 16px 70px #0005;
}
.close {
  position: sticky;
  top: 12px;
  left: calc(100% - 80px);
  z-index: 2;
}
.guest--letterpress {
  max-width: 900px;
  margin: auto;
}
@media (max-width: 800px) {
  #studio {
    display: block;
  }
  .chat {
    min-height: 440px;
    padding: 25px;
  }
  .work nav {
    overflow: auto;
    padding: 10px 14px;
    height: auto;
  }
  .work nav button {
    white-space: nowrap;
  }
  .canvas {
    padding: 38px 20px;
  }
  .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .choice {
    min-height: 210px;
  }
  .choice img {
    height: 110px;
  }
  .section-row {
    grid-template-columns: 34px 1fr 34px 34px;
  }
  .section-row span {
    display: none;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .actions {
    justify-content: stretch;
  }
  .actions button {
    flex: 1;
  }
}
@media (max-width: 390px) {
  .choices {
    grid-template-columns: 1fr;
  }
  .chat h2 {
    font-size: 28px;
  }
}
