/* Editorial layout. Extracted from the published single-page invitation designs (theme "editorial").
   Fonts: see /static/layouts/_fonts/fonts.css (self-hosted). */

[data-theme="editorial"]{
  --bg:#FBF6EE;--outer:#CDB894;--surface:#FFFDF9;--ink:#3F3326;--muted:#7A6A55;
  --accent:#3F3326;--accent2:#A9824F;--line:#E6D8C1;--on-accent:#FFFFFF;
  --f-display:'Antic Didone',Didot,'Bodoni 72',serif;--f-body:'Jost','Helvetica Neue',Arial,sans-serif;--f-script:'Mrs Saint Delafield',cursive;
  --radius:999px;--base:1rem;
  color-scheme:light;
}

/* ===== Base ===== */
*{box-sizing:border-box;margin:0;padding:0}
:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-behavior:smooth}
body{background:var(--outer);color:var(--ink);font-family:var(--f-body);font-size:var(--base);line-height:1.6;transition:background .4s;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.inv{max-width:480px;margin:0 auto;background:var(--bg);min-height:100vh;position:relative;overflow:hidden;padding-bottom:120px;box-shadow:0 0 60px rgba(0,0,0,.25)}
.sec{padding:60px 28px;text-align:center;position:relative}
.sec h2{font-family:var(--f-display);font-weight:400;font-size:2.1rem;line-height:1.15;color:var(--accent);margin-bottom:28px}
.sec p{max-width:34ch;margin-left:auto;margin-right:auto}
.muted{color:var(--muted)}
.photo{position:relative;overflow:hidden;background:var(--line)}
.photo img{width:100%;height:100%;object-fit:cover}
.photo .mono{display:none;position:absolute;inset:0;align-items:center;justify-content:center;font-family:var(--f-script);font-size:3rem;color:var(--accent)}
.photo.nophoto img{display:none}
.photo.nophoto .mono{display:flex}
.verse-text{font-family:var(--f-display);font-style:italic;font-size:1.55rem;line-height:1.4}
.verse-ref{margin-top:12px;color:var(--muted);font-size:.95rem}
.cal{max-width:320px;margin:0 auto 36px}
.cal-title{font-family:var(--f-display);font-size:1.3rem;margin-bottom:14px}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px 0;font-size:.95rem}
.cal-grid .dow{font-size:.75rem;color:var(--muted);padding-bottom:6px}
.cal-grid .d{height:36px;display:flex;align-items:center;justify-content:center;position:relative;isolation:isolate}
.cal-grid .d.on{color:var(--on-accent);font-weight:600}
.cal-grid .d.on::before{content:"";position:absolute;width:36px;height:36px;border-radius:50%;background:var(--accent);z-index:-1}
.count{display:flex;justify-content:center;gap:10px}
.count div{min-width:66px;padding:12px 4px;border:1px solid var(--line);border-radius:min(var(--radius),12px);background:var(--surface)}
.count b{display:block;font-family:var(--f-display);font-weight:400;font-size:2rem;line-height:1;color:var(--accent)}
.count span{font-size:.75rem;color:var(--muted)}
.count-done{font-family:var(--f-display);font-size:1.4rem;color:var(--accent)}
.events{display:grid;gap:22px}
.event{padding:30px 22px;background:var(--surface);border:1px solid var(--line);border-radius:min(var(--radius),20px)}
.event h3{font-family:var(--f-display);font-weight:400;font-size:1.6rem;color:var(--ink)}
.event .time{font-family:var(--f-display);font-size:2.4rem;color:var(--accent);line-height:1.2;margin:6px 0}
.event .place{font-weight:500}
.event .addr{color:var(--muted);font-size:.95rem;margin-bottom:18px}
.btn{display:inline-block;padding:12px 26px;border-radius:var(--radius);background:var(--accent);color:var(--on-accent);text-decoration:none;font-family:var(--f-body);font-size:.95rem;letter-spacing:.03em;border:1px solid var(--accent);cursor:pointer}
.btn.ghost{background:transparent;color:var(--accent)}
.timeline{list-style:none;max-width:320px;margin:0 auto;text-align:left}
.timeline li{display:grid;grid-template-columns:62px 1fr;gap:16px}
.timeline .t{font-family:var(--f-display);color:var(--accent);text-align:right;padding-top:1px;font-size:1.05rem}
.timeline .x{position:relative;padding:0 0 18px 18px;border-left:1px solid var(--line)}
.timeline .x::before{content:"";position:absolute;left:-5px;top:9px;width:9px;height:9px;border-radius:50%;background:var(--accent2)}
.timeline li:last-child .x{border-left-color:transparent}
.swatches{display:flex;justify-content:center;gap:12px;margin:22px 0}
.swatches i{width:38px;height:38px;border-radius:50%;border:2px solid var(--surface);box-shadow:0 0 0 1px var(--line)}
.swatches i.no{background:#000;position:relative}
.swatches i.no::after{content:"";position:absolute;left:50%;top:-4px;bottom:-4px;width:2px;background:var(--accent);transform:rotate(45deg)}
.notice{margin-top:22px;padding:14px 18px;border:1px dashed var(--accent2);border-radius:min(var(--radius),12px);display:inline-block}
.qr{width:180px;margin:22px auto 0;background:#fff;padding:10px;border-radius:min(var(--radius),12px)}
.notes{list-style:none;margin-top:28px;display:grid;gap:8px;color:var(--muted)}
.thanks{padding-bottom:30px}
.thanks .big{font-family:var(--f-script);font-size:2.8rem;color:var(--accent);line-height:1.2}

/* ============================================================
   EDITORIAL — champaña, fotos recortadas y tipografía condensada
   ============================================================ */
[data-theme="editorial"] .inv{background:#FBF6EE;padding-bottom:0}
.ed{font-family:'Jost','Helvetica Neue',Arial,sans-serif;color:#3F3326}
.ed p{max-width:none}
.ed h2{font-family:'Antic Didone',Didot,'Bodoni 72',serif;font-weight:400;text-transform:uppercase;font-size:2.15rem;line-height:1;letter-spacing:-.01em}
.ed .gs{overflow:hidden;background:#D9C6A5}
.ed .gs img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) sepia(.45) saturate(1.15) contrast(1.02) brightness(1.04)}
.ed-hero{position:relative;padding:12px 12px 0}
.ed-hp{position:relative;height:440px;border-radius:0 0 150px 0 / 0 0 180px 0}
.ed-hp::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(63,51,38,.62),rgba(63,51,38,0) 48%)}
.ed-hp h1{position:absolute;left:18px;top:44px;z-index:1;color:#FBF3E4;font-family:'Antic Didone',Didot,serif;font-weight:400;font-size:2.8rem;line-height:1;text-transform:uppercase;letter-spacing:-.01em}
.ed-amor{font-family:'Mrs Saint Delafield',cursive;font-size:1.35rem;line-height:.85;text-align:right;color:#8C6E45}
.ed-hero .ed-amor{position:absolute;right:14px;bottom:-34px}
.ed-intro{display:grid;grid-template-columns:1fr auto;gap:14px;padding:50px 16px 0;align-items:center}
.ed-intro p{font-size:.85rem;line-height:1.35;color:#5E4E3B;margin-top:8px}
.ed-date{font-family:'Antic Didone',Didot,serif;font-size:2.9rem;line-height:1;text-align:center;min-width:70px}
.ed-date span{display:block;padding:5px 0}
.ed-date span+span{border-top:1.5px solid #A9824F}
.ed-blob{width:70%;aspect-ratio:4/3;margin:22px 0 0 6%;border-radius:62% 38% 55% 45% / 58% 48% 52% 42%}
.ed-right{text-align:right;padding:16px 16px 12px}
.ed-cal{margin:0 12px;background:#9E7D50;border-radius:18px;padding:12px 12px 18px;color:#FFFDF8;text-align:center}
.ed-cal .t{font-family:'Mrs Saint Delafield',cursive;font-size:2.8rem;line-height:1.15}
.ed-calgrid{display:grid;grid-template-columns:repeat(7,1fr);row-gap:10px;font-size:.92rem}
.ed-calgrid .hdr{grid-column:1/-1;display:grid;grid-template-columns:repeat(7,1fr);background:#FBF3E4;color:#5E4E3B;font-size:.62rem;font-weight:500;padding:3px 0;margin-bottom:4px}
.ed-calgrid .on{position:relative}
.ed-calgrid .on::before{content:"";position:absolute;left:50%;top:50%;width:30px;height:30px;border:2px solid #FFFDF8;background:rgba(255,253,248,.18);border-radius:50%;transform:translate(-50%,-50%)}
.ed .ed-cd{color:#FFFDF8;display:flex;justify-content:center;gap:16px;margin-top:16px;border-top:1px solid rgba(255,253,248,.45);padding-top:12px}
.ed-cd b{display:block;font-family:'Antic Didone',Didot,serif;font-weight:400;font-size:1.8rem;line-height:1}
.ed-cd span{font-size:.58rem;letter-spacing:.08em;text-transform:uppercase}
.ed-cdh{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;margin-top:14px}
.ed-doodle{display:block;width:190px;height:56px;margin:22px 0 0 12px;fill:none;stroke:#A9824F;stroke-width:1.4;stroke-linecap:round}
.ed-dress{text-align:center;padding:8px 22px 40px}
.ed-dress p{font-size:.86rem;line-height:1.35;color:#5E4E3B;margin:10px auto 0;max-width:30ch}
.ed-dress h3{font-family:'Antic Didone',Didot,serif;font-weight:400;font-size:1.25rem;text-transform:uppercase;margin-top:20px}
.ed-sw{display:flex;justify-content:center;gap:16px;margin-top:10px}
.ed-sw i{width:58px;height:28px;border:1px solid #A9824F}
.ed-horario{position:relative;padding:20px 16px 50px}
.ed-horario h2{text-align:center}
.ed-horario ol{list-style:none;position:relative;width:62%;margin-top:18px}
.ed-horario ol::before{content:"";position:absolute;left:19px;top:0;bottom:0;width:1.4px;background:#A9824F}
.ed-horario li{display:grid;grid-template-columns:40px 1fr;column-gap:10px;align-items:center;padding:8px 0}
.ed-horario .ic{background:#FBF6EE;position:relative;padding:3px 0}
.ed-horario .ic svg{display:block;width:34px;height:34px;margin:0 auto;fill:none;stroke:#8C6E45;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}
.ed-horario .tx{font-size:.78rem;line-height:1.2}
.ed-horario .tx b{display:block;font-size:.95rem;font-weight:500}
.ed-blob2{position:absolute;right:-28px;top:120px;width:44%;aspect-ratio:3/4;border-radius:52% 40% 45% 58% / 44% 52% 48% 56%}
.ed-wave{display:block;width:100%;height:46px}
.ed-lugar{background:#EFE3CF;padding:6px 0 40px}
.ed-lugar h2{padding:0 16px 14px}
.ed-lugar .gs{height:210px}
.ed-ev{text-align:center;padding:18px 16px 4px}
.ed-ev .k{font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:#8C6E45}
.ed-ev .ad{font-size:.8rem;margin-top:2px}
.ed-ev .nm{display:inline-block;font-size:.98rem;font-weight:500;border-bottom:1.5px solid #A9824F;padding:0 10px 2px;margin-top:2px}
.ed-map{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:12px;font-size:1.2rem}
.ed-map a{background:#A9824F;color:#FFFDF8;border-radius:999px;padding:8px 28px;font-size:.78rem;text-decoration:none}
.ed-amorrow{display:grid;grid-template-columns:64% 1fr;gap:10px;padding:30px 0 10px;align-items:start}
.ed-amorrow .gs{aspect-ratio:1/0.92}
.ed-amorrow .ed-amor{text-align:left;font-size:1.7rem;padding-top:22px}
.ed-form{padding:24px 16px 30px;text-align:center}
.ed-box{border:1.4px solid #A9824F;background:#FFFDF9;padding:16px 16px 18px;text-align:left;margin-top:18px}
.ed-box label{display:block;font-size:.82rem}
.ed-box input[type=text]{width:100%;height:34px;border:1px solid #D2BE9C;background:#FFFFFF;margin:6px 0 16px;padding:0 8px;font:inherit;font-size:.9rem}
.ed-box .opt{display:flex;align-items:center;gap:8px;font-size:.82rem;margin-top:6px}
.ed-box input[type=radio]{appearance:none;-webkit-appearance:none;width:14px;height:14px;border:1px solid #A9824F;margin:0;flex:none}
.ed-box input[type=radio]:checked{background:#A9824F;box-shadow:inset 0 0 0 2px #fff}
.ed-send{display:block;margin:16px auto 0;background:#A9824F;color:#FFFDF8;border:0;border-radius:999px;padding:9px 30px;font:500 .8rem 'Jost',Arial,sans-serif;cursor:pointer}
.ed-msg{font-size:.82rem;text-align:center;margin-top:10px;min-height:1em}
.ed-note{font-size:.78rem;color:#7A6A55;margin-top:10px}
.ed-regalo{text-align:center;padding:10px 22px 30px}
.ed-regalo p{font-size:.86rem;line-height:1.35;color:#5E4E3B;margin:10px auto 0;max-width:30ch}
.ed-regalo img{width:140px;margin:14px auto 0}
.ed-end{position:relative;padding:10px 16px 150px;text-align:center}
.ed-end .gs{width:72%;aspect-ratio:4/5;margin-left:auto;border-radius:48% 52% 8% 8% / 30% 30% 6% 6%}
.ed-hearts{position:absolute;left:10px;top:330px;width:120px;height:70px;fill:none;stroke:#A9824F;stroke-width:1.3;stroke-linecap:round}
.ed-end h2{font-size:2.6rem;margin-top:26px}
.ed-end p{font-size:.84rem;color:#5E4E3B;margin-top:8px}

/* Countdown base rules: unscoped in the source (they live in the lacre block) but they apply to .ed-cd too */
.cd{display:flex;justify-content:center;align-items:flex-start;gap:2px;color:#4A3A2A}
.cd div{min-width:60px}
.cd b{display:block;font-family:var(--f-display);font-weight:500;font-size:2.6rem;line-height:1.1}
.cd span{font-size:.62rem;letter-spacing:.08em;text-transform:uppercase}
.cd i{font-style:normal;font-family:var(--f-display);font-size:2.3rem;line-height:1.1}

/* Native RSVP additions (the original form had name and radio fields) */
.ed-box a.ed-send{display:table;text-decoration:none}
.ed-sw{flex-wrap:wrap}
.ed-box form label{display:block;font-size:.82rem}
.ed-send:focus-visible{outline:2px solid #3F3326;outline-offset:3px}
