/* AI Decorator — deliberately a single, pure-white surface in every theme.
   Ported 1:1 from the original artifact pages (fonts served locally).
   Sections marked "addition" extend the design language for the Django flow
   (email step, result page) and have no counterpart in the original. */

:root{
  --bg:#FFFFFF;
  --ink:#141414;
  --muted:#8A8A8A;
  --faint:#9C9A96;
  --line:#E6E3DE;      /* hairline, a touch warm so it reads chosen */
  --line-hover:#141414;
  --field:#FAFAF9;
  color-scheme:light;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Hanken Grotesk",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
  min-height:100svh;
}
a{color:inherit}
:focus-visible{outline:1.5px solid var(--ink);outline-offset:3px;border-radius:2px}

/* ---- landing & result: two grid rows (maker / centre stage) ---- */
body.stage{
  display:grid;
  grid-template-rows:auto 1fr;
}

/* ---- privacy page ---- */
body.privacy-body{line-height:1.65}

/* made by MD Maison */
.maker{
  justify-self:center;
  display:inline-flex;
  align-items:baseline;
  gap:.5em;
  margin:34px 0 0;
  padding:6px 4px;
  text-decoration:none;
  font-size:11px;
  letter-spacing:.06em;
  color:var(--faint);
}
.maker .wm{
  /* swap for the real MD Maison logo SVG when available */
  /* nowrap keeps the brand on one line now that the text comes from the admin */
  white-space:nowrap;
  font-size:12px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--ink);
}
.maker:hover .wm{opacity:.6}

/* centre stage */
main{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:32px 24px 96px;
  gap:44px;
}
.headline{max-width:600px}
.eyebrow{
  margin:0 0 18px;
  font-size:12px;
  font-weight:500;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--muted);
}
h1{
  margin:0;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:500;
  font-size:clamp(2rem,5.4vw,3.25rem);
  line-height:1.16;
  letter-spacing:-.005em;
  text-wrap:balance;
}

/* upload */
form{width:min(720px,100%);margin:0}
.drop{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  width:100%;
  min-height:264px;
  padding:40px;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:16px;
  cursor:pointer;
  transition:border-color .2s ease, background .2s ease;
}
.drop:hover,.drop.drag{border-color:var(--line-hover);background:var(--field)}
.drop .mark{
  width:22px;height:22px;margin-bottom:6px;
  border:1px solid var(--ink);border-radius:50%;
  display:grid;place-items:center;font-size:13px;line-height:1;color:var(--ink);
}
.drop .lead{font-size:15px;color:var(--ink)}
.drop .hint{font-size:11.5px;color:var(--faint)}

.promise{
  margin:14px 0 0;
  font-size:13px;
  color:var(--faint);
  text-align:center;
}

.drop.has-image{padding:16px;min-height:0}
#preview{
  max-height:340px;width:auto;max-width:100%;
  border-radius:10px;display:none;
}
.drop.has-image .prompt{display:none}
.drop.has-image #preview{display:block}

/* loading — a place setting turning slowly */
.loader-wrap{
  display:flex;flex-direction:column;align-items:center;gap:13px;
  margin:24px 0 0;
}
.loader{
  width:60px;height:60px;color:var(--ink);
  transform-origin:50% 50%;
  animation:turn 2.6s linear infinite;
}
@keyframes turn{to{transform:rotate(1turn)}}
.loader-cap{
  margin:0;font-size:11px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--faint);
}

#status{
  margin:16px 0 0;
  font-size:12px;
  letter-spacing:.02em;
  color:var(--faint);
  min-height:1em;
}
#status .status-error{color:#B3261E}

/* privacy — quiet, bottom right */
.privacy{
  position:fixed;
  right:20px;bottom:16px;
  font-size:11px;
  letter-spacing:.06em;
  color:var(--faint);
  text-decoration:none;
}
.privacy:hover{color:var(--ink)}

/* ---- email step (addition: the artifact preview had no backend) ---- */
.email-step{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin:18px 0 0;
}
.email{
  width:100%;
  padding:13px 16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--field);
  color:var(--ink);
  font:inherit;
  font-size:14px;
  text-align:center;
  transition:border-color .2s ease, background .2s ease;
}
.email::placeholder{color:var(--faint)}
.email:focus{
  outline:none;
  border-color:var(--line-hover);
  background:var(--bg);
}
.submit{
  padding:13px 30px;
  border:0;
  border-radius:999px;
  background:var(--ink);
  color:#FFFFFF;
  font:inherit;
  font-size:11px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  cursor:pointer;
}
.submit:hover{opacity:.85}

/* ---- result page (addition, same design language) ---- */
.result-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:min(720px,100%);
}
.result-photo{
  max-height:70svh;
  width:auto;
  max-width:100%;
  border:1px solid var(--line);
  border-radius:10px;
}
.result-note{
  margin:8px 0 0;
  font-size:13px;
  color:var(--faint);
  max-width:440px;
}
.action{
  display:inline-block;
  margin-top:22px;
  padding:13px 30px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:11px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ink);
  text-decoration:none;
  transition:border-color .2s ease;
}
.action:hover{border-color:var(--line-hover)}

/* ---- privacy page (ported 1:1) ---- */
.privacy-body .page{
  max-width:560px;
  margin:0 auto;
  padding:96px 28px 120px;
}
.privacy-body .back{
  display:inline-block;
  margin-bottom:56px;
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--faint);
  text-decoration:none;
}
.privacy-body .back:hover{color:var(--ink)}

.privacy-body h1{
  margin:0 0 8px;
  font-size:clamp(2rem,5vw,2.9rem);
  line-height:1.12;
}
.privacy-body .sub{
  margin:0 0 44px;
  font-size:13px;
  letter-spacing:.02em;
  color:var(--faint);
}

.privacy-body h2{
  margin:40px 0 10px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:500;
  font-size:1.4rem;
  letter-spacing:-.005em;
}
.privacy-body p{margin:0 0 16px;font-size:15px}
.privacy-body .fine{
  margin-top:56px;
  padding-top:24px;
  border-top:1px solid var(--line);
  font-size:12.5px;
  color:var(--faint);
}
.privacy-body .fine a{text-decoration:underline;text-underline-offset:2px}

@media (prefers-reduced-motion:reduce){
  *{transition-duration:.001s!important}
  .loader{animation:none}
}
