/* Pandragone Popup - front-end styles. */
.pt-popup{
	/* Brand palette: cream, wine, gold rule. */
	--pt-wine:        #991b1b;
	--pt-wine-mid:    #7f1d1d;
	--pt-wine-deep:   #631616;
	--pt-wine-ink:    #4a1010;
	--pt-gold:        #d97706;
	--pt-gold-light:  #fcd34d;
	--pt-cream:       #fef3c7;
	--pt-text:        rgba(254,243,199,.86);
	--pt-radius:      18px;

	position:fixed; inset:0;
	width:100%; max-width:100%;
	height:100%; max-height:100%;
	margin:0; padding:20px;
	border:0; background:transparent;
	overflow-y:auto; overscroll-behavior:contain;
	color:var(--pt-cream);
	font-family:'Cormorant Garamond',Georgia,serif;
}
.pt-popup[open]{ display:flex; align-items:center; align-items:safe center; justify-content:center; }
.pt-popup::backdrop{ background:rgba(28,9,9,.82); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }

/* Fallback for browsers without <dialog> */
.pt-popup.pt-nodialog[open]{ z-index:1000001; background:rgba(28,9,9,.82); }

.pt-popup__box{
	position:relative;
	width:100%; max-width:560px;
	background:radial-gradient(130% 150% at 50% 42%, var(--pt-wine) 0%, var(--pt-wine-mid) 48%, var(--pt-wine-deep) 100%);
	border:2px solid var(--pt-gold);
	border-radius:var(--pt-radius);
	box-shadow:0 28px 64px -18px rgba(56,14,14,.6);
	overflow:hidden;
}
.pt-popup[open] .pt-popup__box{ animation:pt-popup-in .3s cubic-bezier(.2,.7,.3,1) both; }
@keyframes pt-popup-in{ from{ opacity:0; transform:translateY(14px) scale(.98); } to{ opacity:1; transform:none; } }

.pt-popup__close{
	position:absolute; top:12px; right:12px; z-index:2;
	width:34px; height:34px; padding:0;
	display:flex; align-items:center; justify-content:center;
	background:rgba(74,16,16,.45); color:var(--pt-cream);
	border:1px solid rgba(217,119,6,.65); border-radius:50%;
	cursor:pointer; line-height:0;
	transition:background .18s ease, color .18s ease, transform .18s ease;
}
.pt-popup__close:hover{ background:var(--pt-gold); color:var(--pt-wine-ink); transform:rotate(90deg); }
.pt-popup__close:focus-visible{ outline:2px solid var(--pt-gold-light); outline-offset:2px; }

.pt-popup__media{ margin:0; line-height:0; background:var(--pt-wine-deep); }
.pt-popup__media img{ display:block; width:100%; height:auto; }

.pt-popup__body{ padding:34px 36px 36px; text-align:center; }

.pt-popup__eyebrow{
	margin:0 0 12px;
	padding:0 30px;                 /* keeps clear of the close button */
	font-family:'Cinzel',Georgia,serif;
	font-size:11px; font-weight:600; line-height:1.5;
	letter-spacing:.22em; text-transform:uppercase;
	color:var(--pt-gold-light);
}
.pt-popup__title{
	margin:0 0 16px;
	font-family:'Cinzel',Georgia,serif;
	font-size:clamp(22px,4.2vw,30px); font-weight:600; line-height:1.25;
	color:var(--pt-cream);
	text-wrap:balance;
}
.pt-popup__text{
	margin:0 0 28px;
	font-size:18px; line-height:1.6;
	color:var(--pt-text);
}
.pt-popup__cta{
	display:inline-block;
	padding:13px 34px;
	font-family:'Cinzel',Georgia,serif;
	font-size:13px; font-weight:600;
	letter-spacing:.12em; text-transform:uppercase; text-decoration:none;
	color:var(--pt-wine-ink);
	background:linear-gradient(135deg,var(--pt-gold-light) 0%,var(--pt-gold) 100%);
	border:0; border-radius:4px;
	box-shadow:0 6px 18px -6px rgba(74,16,16,.6);
	transition:filter .18s ease, transform .18s ease;
}
.pt-popup__cta:hover{ filter:brightness(1.08); transform:translateY(-1px); color:var(--pt-wine-ink); }
.pt-popup__cta:focus-visible{ outline:2px solid var(--pt-gold-light); outline-offset:3px; }

.pt-popup__never{
	display:block; margin:18px auto 0; padding:4px 6px;
	background:none; border:0; cursor:pointer;
	font-family:inherit; font-size:14px;
	color:rgba(254,243,199,.5);
	text-decoration:underline; text-underline-offset:3px;
	transition:color .18s ease;
}
.pt-popup__never:hover{ color:var(--pt-cream); }
.pt-popup__never:focus-visible{ outline:2px solid var(--pt-gold-light); outline-offset:2px; }

/* Scroll lock */
body.pt-popup-open{ overflow:hidden; }

@media (max-width:480px){
	.pt-popup{ padding:12px; }
	.pt-popup__body{ padding:28px 22px 30px; }
	.pt-popup__eyebrow{ padding:0 26px; letter-spacing:.16em; }
	.pt-popup__text{ font-size:17px; }
	.pt-popup__cta{ display:block; padding:14px 20px; }
}
@media (prefers-reduced-motion:reduce){
	.pt-popup[open] .pt-popup__box{ animation:none; }
	.pt-popup__close:hover{ transform:none; }
	.pt-popup__cta:hover{ transform:none; }
}
