:root {
  --ink: #17251d;
  --green: #214f3f;
  --paper: #f8f5ef;
  --line: rgba(23, 37, 29, .14);
  --muted: #667066;
  --pink: #bd6370;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

.sheet {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.back-to-admin {
  position: absolute;
  left: 16px;
  top: 10px;
  z-index: 5;
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255,255,255,.92);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.editor,
.poster {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  box-shadow: 0 24px 70px rgba(23, 37, 29, .1);
}

.editor {
  padding: 24px;
}

.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 7px 0 8px;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.05;
}

p,
small {
  color: var(--muted);
  line-height: 1.5;
}

label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

input {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  font: 800 16px Inter, "Segoe UI", Arial, sans-serif;
  outline: 0;
}

input:focus {
  border-color: rgba(33, 79, 63, .5);
  box-shadow: 0 0 0 4px rgba(33, 79, 63, .12);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

button {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  color: white;
  background: var(--green);
  font: 900 14px Inter, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

button.secondary {
  color: var(--green);
  border: 1px solid var(--line);
  background: white;
}

.poster {
  min-height: 720px;
  padding: 34px;
  display: grid;
  justify-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.poster:before {
  content: "";
  position: absolute;
  inset: -40px -80px auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(189, 99, 112, .13);
}

.poster-top,
.poster h2,
.poster p,
.qr-box,
.poster strong,
.poster code,
.poster small {
  position: relative;
}

.poster-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
}

.brand b {
  color: var(--pink);
}

.brand-tm {
  display: inline-block;
  margin-left: 2px;
  color: var(--pink);
  font-size: .34em;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  transform: translateY(-.55em);
}

.poster-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--pink);
  background: #f7e1e4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.poster h2 {
  max-width: 560px;
  margin: 52px 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(40px, 6vw, 62px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -2px;
}

.poster p {
  max-width: 470px;
  margin-bottom: 28px;
  font-size: 18px;
}

.qr-box {
  width: min(440px, 100%);
  aspect-ratio: 1;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
}

.qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.poster strong {
  margin-top: 24px;
  font-size: 24px;
}

.poster code {
  max-width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 15px;
  color: var(--green);
  background: #e6f3ec;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.poster small {
  max-width: 430px;
  margin-top: 18px;
}

@media (max-width: 820px) {
  .sheet {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: white;
  }

  .sheet {
    width: 100%;
    padding: 0;
    display: block;
  }

  .no-print {
    display: none;
  }

  .poster {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
