/* Avant Events client portal: ivory paper, ink, champagne gold, wax seals in the event colour. */
:root {
  --paper: #F6F1E8;
  --card: #FBF8F2;
  --ink: #2B2622;
  --quiet: #6E655C;
  --rule: #E2D8C6;
  --gold: #C8A96A;
  --gold-deep: #A8884A;
  --olive: #4E5B3A;
  --rose: #A4573D;
  --seal: #A07B2C;                       /* replaced by the event colour */
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 400 16px/1.55 "Jost", system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.6rem; margin-top: 1.6em; }
h3 { font-size: 1.25rem; }
a { color: var(--ink); }
.quiet { color: var(--quiet); }
.small { font-size: .88rem; }

.masthead { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--rule); }
.masthead img { height: 44px; width: auto; }
.studio { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; font-weight: 600; flex: 1; }
main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 28px 22px 60px; }
.foot { text-align: center; color: var(--quiet); font-size: .8rem; padding: 18px; border-top: 1px solid var(--rule); }

button, .button {
  font: 500 15px "Jost", sans-serif; border-radius: 999px; padding: 10px 20px; cursor: pointer;
  border: 1px solid var(--gold); background: #fff; color: var(--ink);
}
button.primary, a.button.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); text-decoration: none; display: inline-block; }
button.approve { background: var(--olive); color: #fff; border-color: var(--olive); }
button.link { border: none; background: none; padding: 4px; color: var(--quiet); text-decoration: underline; }
button:disabled { opacity: .5; cursor: default; }
input, textarea {
  font: 400 16px "Jost", sans-serif; width: 100%; padding: 11px 13px; border: 1px solid var(--rule);
  border-radius: 8px; background: #fff; color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
label { display: block; font-weight: 500; margin: 14px 0 6px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }

.paper { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 0 rgba(43,38,34,.04); }
.signin { max-width: 440px; margin: 40px auto; }
.event-head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.event-meta { color: var(--quiet); }

.seal {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--seal) 70%, #fff) 0, var(--seal) 55%, color-mix(in srgb, var(--seal) 70%, #000) 100%);
  color: #fff; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.05rem; white-space: nowrap; letter-spacing: .02em;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.seal.small { width: 30px; height: 30px; font-size: .8rem; }

.waiting { border-left: 3px solid var(--gold); padding: 6px 0 6px 14px; margin: 18px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { text-align: left; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; cursor: pointer; }
.card:hover { border-color: var(--gold); }
.card .kind { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--quiet); }
.card .title { font-family: "Cormorant Garamond", serif; font-size: 1.3rem; font-weight: 600; margin: 4px 0 8px; }

.status { display: inline-block; font-size: .8rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; }
.status.approved { border-color: var(--olive); color: var(--olive); }
.status.changes_requested { border-color: var(--rose); color: var(--rose); }
.status.awaiting { border-color: var(--gold-deep); color: var(--gold-deep); }

.preview { margin: 16px 0; }
.preview img { max-width: 100%; border-radius: 6px; border: 1px solid var(--rule); background: #fff; }
.preview iframe { width: 100%; height: 70vh; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
table.lines { width: 100%; border-collapse: collapse; margin: 12px 0; }
table.lines td { padding: 8px 4px; border-bottom: 1px dotted var(--rule); }
table.lines td.amount { text-align: right; white-space: nowrap; }
table.lines tr.total td { font-weight: 600; border-bottom: none; border-top: 1px solid var(--ink); }

.thread { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.note { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; max-width: 85%; }
.note.mine { align-self: flex-end; background: #FFFDF8; border-color: var(--gold); }
.note .who { font-size: .8rem; color: var(--quiet); margin-bottom: 4px; }
.back { margin-bottom: 14px; }
.error { color: var(--rose); }
@media (max-width: 560px) { h1 { font-size: 1.9rem; } .note { max-width: 100%; } }

/* letters from the planner */
.note .body { white-space: pre-line; line-height: 1.55; }
.note.letter { max-width: 100%; background: var(--card, #FBF8F2); border-color: var(--gold); padding: 18px 20px; }
.note.letter .body { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.15rem; }
.note .subject { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 600; margin: 2px 0 10px; }
.attachment { display: inline-block; margin: 10px 8px 0 0; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; cursor: pointer; font: inherit; font-size: .9rem; }
.attachment:hover { border-color: var(--gold); }
.letter-alert { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; margin: 18px 0;
  padding: 16px 18px; border: 2px solid var(--gold); border-radius: var(--radius); background: #FFF8E8; cursor: pointer; font: inherit; color: inherit; }
.letter-alert .kind { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-deep); }
.letter-alert .title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.4rem; font-weight: 600; }
.letter-alert .go { font-size: .9rem; color: var(--quiet); }

/* after asking for a sign-in link: where to look if it doesn't arrive */
.junk-note { margin: 18px 0 10px; padding: 14px 16px; border: 2px solid var(--gold); border-radius: 8px; background: #FFF8E8; line-height: 1.5; }

/* back to the event: a real button, easy to find */
.back-button { border: 1px solid var(--gold); background: #fff; color: inherit; border-radius: 999px; padding: 10px 18px; font-size: 15px; }
.back-button:hover { background: #faf6ee; }
/* what's waiting: each a button that opens it */
.waiting-items { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.waiting-item { display: flex; gap: 14px; align-items: baseline; border: 1px solid var(--gold); background: #fff; border-radius: 10px; padding: 12px 18px; text-align: left; color: inherit; }
.waiting-item .title { font-size: 18px; }
.waiting-item .go { font-size: 14px; color: var(--quiet); }
.waiting-item:hover { background: #faf6ee; }

/* the client's payments, beside the approved proposal */
.payments { border: 1px solid var(--gold); border-radius: 10px; padding: 6px 18px 12px; margin: 18px 0; background: #fff; }
.payments .pay-next { font-size: 17px; }
.payments tr.paid td { color: var(--quiet); }

/* signing a contract in place */
.signwell { width: 100%; min-height: 820px; border: 1px solid var(--gold); border-radius: 10px; overflow: hidden; background: #fff; margin: 12px 0; }
.signwell iframe { width: 100%; min-height: 820px; border: 0; }
.test-note { color: #8a5a00; }

/* Pay now beside a payment that's due */
button.pay { padding: 6px 14px; font-size: 14px; }
.payments td:last-child { text-align: right; width: 1%; white-space: nowrap; }

/* a shared item's note keeps its line breaks (the paper, then the wording) */
.item-note { white-space: pre-line; }
