/* ============================================================
   LO'PRIMO — official site styles
   The site is now a single page (index.html): a full-bleed photo
   "save the date" splash. This file only carries what that page
   uses — the old multi-page header/nav/cards/forms/writer-tool
   styles were trimmed out along with the pages that used them.
   Design language: warm, earthy, organic. Soft sand grounds,
   espresso structure, amber gold accent for anything actionable.
   ============================================================ */

:root{
  --sand:#F7F4EF;
  --sand-dim:#F0EBE2;
  --paper:#FFFFFF;

  --espresso:#2C221E;
  --espresso-soft:#6E5F55;
  --line:#DDD3C4;

  --amber:#DCA143;
  --amber-light:#EBBE72;
  --amber-dark:#A9721F;

  --font-display:'Jost', 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  --font-body:'Inter', -apple-system, 'Segoe UI', sans-serif;

  --radius:6px;
  --shadow-md: 0 12px 30px rgba(44,34,30,.12);
}

/* Brand identity is this warm, light palette on purpose — it does not
   flip with the visitor's system dark-mode preference. */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="dark"]){
    --sand:#F7F4EF; --sand-dim:#F0EBE2; --paper:#FFFFFF;
  }
}
:root[data-theme="light"]{
  --sand:#F7F4EF; --sand-dim:#F0EBE2; --paper:#FFFFFF;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--sand);
  color:var(--espresso);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  min-height:100vh;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
h1{
  font-family:var(--font-display);
  font-weight:600;
  letter-spacing:.005em;
  margin:0 0 .4em;
  color:var(--espresso);
}
:focus-visible{
  outline:3px solid var(--amber);
  outline-offset:2px;
}
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
}

/* ---------- splash page: the ENTIRE page is the photo, text
   overlaid, footer pinned at the bottom of the same image — no
   header bar, no other sections. ---------- */
.splash{
  position:relative;
  min-height:100vh;
  background-size:cover;
  background-position:center 40%;
  background-repeat:no-repeat;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:52px 0 26px;
}
.splash-scrim{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(44,34,30,.6) 0%, rgba(44,34,30,.45) 38%, rgba(44,34,30,.85) 100%);
  pointer-events:none;
}
.splash-content{
  position:relative; z-index:2; /* above the footer so the calendar menu is never covered */
  flex:1;
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:40px;
  padding:24px 20px 40px;
}
.splash-footer{
  position:relative; z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-align:center;
  color:var(--sand);
}
.splash-footer .footer-follow-label{
  font-family:var(--font-display);
  font-weight:600;
  font-size:.82rem;
  letter-spacing:.04em;
  color:var(--sand-dim);
}
@media (max-width:640px){
  /* the photo has a dark band baked into its top ~30%; on phones, zoom
     slightly and anchor to the bottom so the band is cropped off and the
     band members fill the screen instead of dead space */
  .splash{ padding:40px 0 22px; background-size:auto 139%; background-position:center bottom; }
  .splash-content{ padding:8px 20px 28px; gap:32px; }
}

.announce-heading{
  font-family:var(--font-display);
  font-weight:700;
  color:var(--amber-light);
  font-size:clamp(2.6rem, 9vw, 5.5rem);
  line-height:1;
  margin:0 0 16px;
  letter-spacing:.01em;
}
.announce-line{
  color:var(--sand);
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(1.3rem, 3.6vw, 2.1rem);
  line-height:1.3;
  margin:0 0 18px;
}
.hero-intro{ text-align:left; }
.hero-intro .announce-line{ margin:0; }

/* ---------- próximo evento: right-aligned block with countdown ---------- */
.next-event{
  align-self:flex-end;
  text-align:right;
  max-width:560px;
  text-shadow:0 2px 14px rgba(20,14,12,.55);
}
.ne-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:.82rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--amber-light);
}
.ne-dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--amber);
  box-shadow:0 0 0 0 rgba(220,161,67,.7);
  animation:ne-pulse 2s ease-out infinite;
}
@keyframes ne-pulse{
  0%{ box-shadow:0 0 0 0 rgba(220,161,67,.7); }
  70%{ box-shadow:0 0 0 9px rgba(220,161,67,0); }
  100%{ box-shadow:0 0 0 0 rgba(220,161,67,0); }
}
@media (prefers-reduced-motion: reduce){ .ne-dot{ animation:none; } }
.ne-name{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2.3rem, 8vw, 4.2rem);
  line-height:1;
  letter-spacing:-.005em;
  color:var(--sand);
  margin:10px 0 12px;
}
.ne-name a{
  border-bottom:3px solid transparent;
  transition:border-color .15s ease, color .15s ease;
}
.ne-name a:hover{ border-bottom-color:var(--amber); }
.ne-meta{
  margin:0;
  color:var(--sand-dim);
  font-size:clamp(1rem, 2.4vw, 1.15rem);
  line-height:1.5;
}
.ne-meta a{
  color:var(--sand);
  font-weight:600;
  text-decoration:underline;
  text-decoration-color:rgba(220,161,67,.7);
  text-underline-offset:4px;
}
.ne-meta a:hover{ color:var(--amber-light); }
.ne-date{ letter-spacing:.06em; }
.ne-cover{
  margin:6px 0 0;
  font-family:var(--font-display);
  font-weight:600;
  letter-spacing:.04em;
  color:var(--amber-light);
}
.ne-countdown{
  display:flex; justify-content:flex-end;
  gap:clamp(16px, 4vw, 30px);
  margin-top:18px;
}
.ne-countdown[hidden]{ display:none; }
.ne-unit{ display:flex; flex-direction:column; align-items:center; min-width:42px; }
.ne-num{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.6rem, 6vw, 2.4rem);
  line-height:1;
  color:var(--sand);
  font-variant-numeric:tabular-nums;
}
.ne-label{
  margin-top:6px;
  font-size:.74rem;
  letter-spacing:.08em;
  color:var(--sand-dim);
  opacity:.85;
}
.ne-done{
  margin:18px 0 0;
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.2rem;
  color:var(--amber-light);
}
.ne-rule{
  height:2px;
  width:min(260px, 70%);
  margin:16px 0 0 auto;
  background:linear-gradient(90deg, transparent, var(--amber));
}

/* short laptop screens: tighten so the footer still fits on one screen */
@media (min-width:641px) and (max-height:820px){
  .splash{ padding:28px 0 18px; }
  .splash-content{ padding:6px 20px 18px; gap:20px; }
  .announce-heading{ font-size:clamp(2.6rem, 7vw, 4.4rem); margin-bottom:10px; }
  .ne-name{ font-size:clamp(2.2rem, 5vw, 3.4rem); margin:6px 0 8px; }
  .ne-countdown{ margin-top:12px; }
  .ne-rule{ margin-top:12px; }
  .ne-cal{ margin-top:10px; }
}

/* add-to-calendar: small outline button + menu (right-aligned) */
.ne-cal{
  position:relative;
  display:flex; justify-content:flex-end;
  margin-top:14px;
}
.ne-cal-btn{
  background:transparent;
  border:1px solid rgba(235,190,114,.65);
  color:var(--amber-light);
  border-radius:999px;
  padding:8px 16px;
  font-size:.82rem;
  font-weight:600;
  cursor:pointer;
  transition:background-color .15s ease, color .15s ease;
}
.ne-cal-btn:hover,
.ne-cal-btn[aria-expanded="true"]{ background:var(--amber); color:var(--espresso); }
.std-menu{
  position:absolute; bottom:calc(100% + 8px); right:0; /* opens upward: it sits near the bottom of the screen */
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-md);
  padding:8px;
  min-width:220px;
  z-index:5;
  text-align:left;
  text-shadow:none;
}
.std-menu-link{
  display:block;
  padding:10px 14px;
  font-family:var(--font-body);
  font-size:.92rem;
  font-weight:600;
  color:var(--espresso);
  border-radius:4px;
  white-space:nowrap;
}
.std-menu-link:hover{ background:var(--sand-dim); }

/* ---------- footer social icons (real logo badges) ---------- */
.social-link{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px;
  border-radius:50%;
  border:1px solid var(--line);
  transition:border-color .15s ease, background-color .15s ease;
}
/* real logo badges (images/social/*.webp) sit on a dark espresso
   disc since the source files are white-on-transparent. */
.social-link-img{
  background:var(--espresso);
  border-color:var(--espresso);
}
.social-link-img img{
  width:17px; height:17px; display:block;
}
.social-link-img:hover{
  background:var(--amber);
  border-color:var(--amber-dark);
}

/* ---------- dev cameo: small floating "buy me a coffee" bubble.
   A cream circle that floats in the corner permanently; a little
   speech-bubble greeting pops up on load and fades itself out,
   leaving just the circle behind. ---------- */
.dev-cameo-wrap{
  /* bottom-right corner, level with the footer's social icons, so it
     never sits on top of the band in the photo */
  position:fixed;
  bottom:calc(18px + env(safe-area-inset-bottom, 0px)); right:16px;
  z-index:50;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
.dev-cameo{
  width:48px; height:48px;
  flex:none;
  border-radius:50%;
  background:var(--sand);
  border:1px solid var(--line);
  box-shadow:var(--shadow-md);
  display:flex; align-items:center; justify-content:center;
  transition:transform .15s ease, box-shadow .15s ease;
}
.dev-cameo:hover{ transform:translateY(-2px); box-shadow:0 14px 34px rgba(44,34,30,.22); }
.dev-cameo img{ width:28px; height:28px; display:block; }
.dev-cameo-bubble{
  background:var(--sand);
  color:var(--espresso);
  border:1px solid var(--line);
  border-radius:10px;
  padding:9px 14px;
  font-family:var(--font-body);
  font-size:.82rem;
  font-weight:600;
  box-shadow:var(--shadow-md);
  white-space:nowrap;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .35s ease, transform .35s ease;
  pointer-events:none;
}
.dev-cameo-bubble.show{
  opacity:1;
  transform:translateY(0);
}
@media (max-width:480px){
  .dev-cameo{ width:42px; height:42px; }
  .dev-cameo img{ width:24px; height:24px; }
  .dev-cameo-bubble{ font-size:.78rem; padding:8px 12px; }
}
