/*
Theme Name: Mangalam Luxe
Description: A bright ivory, maroon and gold theme for the Mangalam Invitation Studio, with gilt hairlines, an animated filigree header band, arch and corner line art, fully responsive. Activate together with the Mangalam Invitation Studio plugin and your studio page becomes the homepage.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
Author: Mangalam
License: GPL-2.0-or-later
Text Domain: mangalam-luxe
*/
:root{--bg:#FFFBF4;--bg2:#FFFFFF;--line:rgba(194,154,69,.32);--line2:rgba(194,154,69,.55);--text:#3A1A1C;--muted:#80655B;--gold:#C29A45;--gold-2:#8C1D35;--on-gold:#4A1A10;
  --gold-grad:linear-gradient(135deg,#FBEBB9 0%,#DDB25A 40%,#B8862F 65%,#F4DA92 100%);--display:'Marcellus',Georgia,serif;--caps:'Marcellus',Georgia,serif;--ui:'EB Garamond',Georgia,serif;color-scheme:light}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--ui);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:var(--gold-2)}
img{max-width:100%;height:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.skip-link:focus{position:fixed;left:12px;top:12px;z-index:100;width:auto;height:auto;clip:auto;background:var(--gold);color:var(--on-gold);padding:10px 14px;border-radius:8px}
:focus-visible{outline:2px solid var(--gold-2);outline-offset:3px;border-radius:4px}
.lx-wrap{max-width:1200px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:60;background:var(--bg)}
/* header */
.lx-head{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;background:rgba(255,251,244,.9);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.admin-bar .lx-head{top:32px}@media (max-width:782px){.admin-bar .lx-head{top:46px}}@media (max-width:600px){.admin-bar .lx-head{top:0}}
.lx-head .lx-wrap{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:66px}
.lx-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);min-width:0}
.lx-brand svg{width:38px;height:38px;color:var(--gold);flex:none}
.lx-brand span{display:flex;flex-direction:column;line-height:1.05}
.lx-brand b{font-family:var(--display);font-style:italic;font-weight:500;font-size:24px}
.lx-brand small{font-family:var(--caps);font-size:9.5px;letter-spacing:.3em;text-transform:uppercase;color:var(--muted);margin-top:3px}
.custom-logo{max-height:46px;width:auto}
.lx-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:4px;align-items:center}
.lx-nav a{display:block;color:var(--muted);text-decoration:none;font-size:14.5px;padding:10px 12px;border-radius:8px}
.lx-nav a:hover,.lx-nav .current-menu-item>a{color:var(--text)}
.lx-cta{display:inline-flex;align-items:center;min-height:42px;padding:8px 18px;border-radius:999px;background:var(--gold-grad);color:var(--on-gold)!important;font-weight:500;text-decoration:none;font-size:14px;white-space:nowrap;box-shadow:0 8px 24px -10px rgba(217,182,112,.6)}
.lx-toggle{display:none;width:46px;height:46px;border-radius:50%;border:1px solid var(--line2);background:transparent;color:var(--text);cursor:pointer}
.lx-toggle svg{width:18px;height:18px}
@media (max-width:820px){
  .lx-toggle{display:grid;place-items:center}
  .lx-nav{position:absolute;left:0;right:0;top:100%;background:#FFF6EA;border-bottom:1px solid var(--line);display:none;padding:8px max(16px,env(safe-area-inset-left,0px)) 16px}
  .lx-nav.open{display:block}
  .lx-nav ul{flex-direction:column;align-items:stretch}
  .lx-nav a{padding:13px 6px;border-bottom:1px solid rgba(217,182,112,.1);font-size:16px}
  .lx-head .lx-cta{display:none}
}
/* content */
.lx-main{min-height:60vh}
.lx-page{max-width:780px;margin:0 auto;padding-block:56px 72px}
.lx-page h1,.lx-page h2,.lx-page h3{font-family:var(--display);font-weight:500;line-height:1.1;color:var(--text);text-wrap:balance}
.lx-page h1{font-size:clamp(36px,7vw,58px);margin:10px 0 18px}
.lx-page h2{font-size:clamp(28px,5vw,38px);margin:40px 0 12px}
.lx-eyebrow{font-family:var(--caps);font-size:11.5px;letter-spacing:.28em;text-transform:uppercase;color:var(--gold)}
.lx-page blockquote{margin:28px 0;padding:6px 0 6px 22px;border-left:2px solid var(--gold);font-family:var(--display);font-size:24px;font-style:italic}
.lx-orn{display:block;width:min(320px,70%);height:24px;margin:28px auto;color:var(--gold);opacity:.85}
.lx-list article{padding:26px 0;border-bottom:1px solid var(--line)}
.lx-list h2{margin:4px 0 8px}.lx-list h2 a{color:var(--text);text-decoration:none}
.lx-meta{color:var(--muted);font-size:13.5px}
.entry-content>*{max-width:100%}
.entry-content input,.entry-content textarea,.entry-content select{background:var(--bg2);color:var(--text);border:1px solid var(--line2);border-radius:10px;padding:10px 12px;font:inherit}
.lx-studio .entry-content{max-width:none}
.alignwide{max-width:1200px}.alignfull{width:100vw;margin-left:calc(50% - 50vw)}
/* footer */
.lx-foot{border-top:1px solid var(--line);padding-block:30px calc(34px + env(safe-area-inset-bottom,0px));color:var(--muted);font-size:13.5px;text-align:center}
.lx-foot ul{list-style:none;display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:center;margin:0 0 10px;padding:0}
.lx-foot a{color:var(--muted);text-decoration:none}.lx-foot a:hover{color:var(--text)}

/* ---------- luxury line art (v2) ---------- */
.lx-band{height:14px;background:repeat-x center/56px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 14' fill='none' stroke='%23C29A45' stroke-width='.9'%3E%3Cpath d='M0 7h14M42 7h14'/%3E%3Cpath d='M14 7c4-6 10-6 14 0 4-6 10-6 14 0-4 6-10 6-14 0-4 6-10 6-14 0z'/%3E%3Ccircle cx='28' cy='7' r='1.5' fill='%23C29A45'/%3E%3C/svg%3E");opacity:.7;border-bottom:1px solid var(--line)}
.lx-head{box-shadow:0 1px 0 rgba(255,255,255,.8) inset}
.lx-head::after{content:"";position:absolute;left:50%;bottom:-7px;width:34px;height:14px;transform:translateX(-50%);background:var(--bg) no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14' fill='none' stroke='%23C29A45' stroke-width='1'%3E%3Cpath d='M2 7h8M24 7h8'/%3E%3Crect x='13' y='3' width='8' height='8' transform='rotate(45 17 7)'/%3E%3C/svg%3E")}
.lx-nav a{position:relative}
.lx-nav a::after{content:"";position:absolute;left:12px;right:12px;bottom:4px;height:1px;background:var(--gold-grad);transform:scaleX(0);transition:transform .3s ease}
.lx-nav a:hover::after,.lx-nav .current-menu-item>a::after{transform:scaleX(1)}
.lx-cta{position:relative;transition:transform .2s ease,box-shadow .2s ease}
.lx-cta:hover{transform:translateY(-1px);box-shadow:0 12px 28px -10px rgba(194,154,69,.75)}
.lx-page{position:relative}
.lx-page::before,.lx-page::after{content:"";position:absolute;top:30px;width:70px;height:70px;opacity:.55;pointer-events:none;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23C29A45' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M2 58V20C2 10 10 2 20 2h38'/%3E%3Cpath d='M8 58V24c0-9 7-16 16-16h34' stroke-width='.6'/%3E%3Cpath d='M14 30c8 0 14-6 14-14M20 36c-2-6 2-12 8-12M36 20c-6-2-12 2-12 8'/%3E%3Ccircle cx='24' cy='24' r='2.2' fill='%23C29A45' stroke='none'/%3E%3C/svg%3E")}
.lx-page::before{left:-6px}.lx-page::after{right:-6px;transform:scaleX(-1)}
@media (max-width:700px){.lx-page::before,.lx-page::after{width:44px;height:44px;top:18px}}
.lx-page h1::after{content:"";display:block;width:150px;height:16px;margin-top:12px;background:no-repeat left center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' fill='none' stroke='%23C29A45' stroke-width='1'%3E%3Cpath d='M0 7h44M76 7h44'/%3E%3Cpath d='M48 7c4-6 10-6 12 0 2-6 8-6 12 0-4 6-10 6-12 0-2 6-8 6-12 0z'/%3E%3Ccircle cx='60' cy='7' r='1.6' fill='%23C29A45'/%3E%3C/svg%3E")}
.lx-page .wp-block-image img,.lx-page figure img{border-radius:14px;outline:1px solid var(--line);outline-offset:6px}
.lx-foot{position:relative;background:linear-gradient(#FFFBF4,#FFF3E2);padding-top:46px}
.lx-foot::before{content:"";position:absolute;left:0;right:0;top:0;height:14px;background:inherit;background:repeat-x center/56px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 14' fill='none' stroke='%23C29A45' stroke-width='.9'%3E%3Cpath d='M0 7h14M42 7h14'/%3E%3Cpath d='M14 7c4-6 10-6 14 0 4-6 10-6 14 0-4 6-10 6-14 0-4 6-10 6-14 0z'/%3E%3Ccircle cx='28' cy='7' r='1.5' fill='%23C29A45'/%3E%3C/svg%3E");opacity:.55}
.lx-foot-arch{display:block;width:min(220px,60%);height:auto;margin:0 auto 10px;color:var(--gold)}
.lx-foot-brand{font-family:var(--display);font-style:italic;font-size:26px;color:var(--text);margin:0 0 4px}
.lx-foot .lx-orn{margin:16px auto}
@media (prefers-reduced-motion:no-preference){.lx-foot-arch path{stroke-dasharray:600;animation:lxDraw 3s ease both}}
@keyframes lxDraw{from{stroke-dashoffset:600}}
