/* styles.css
   Shared styling for Alex & Ben's wedding site.
   Use on every page with:
   <link rel="stylesheet" href="styles.css">
*/

/* ===== Shared palette / variables ===== */
:root{
  --sage-900:#2f3b33;
  --sage-700:#4f6a5b;
  --sage-500:#7c9a88;
  --sage-200:#dfe9e2;
  --cream:#fbfaf7;
  --ink:#1f2722;
  --card: rgba(255,255,255,.70);
  --shadow: 0 18px 45px rgba(12,18,15,.12);
  --radius: 22px;

  --floral-tl: none;
  --floral-tr: none;
  --floral-br: none;
  --floral-bl: none;
  --floral-opacity: 0.60;
  --floral-size: 640px;
  --floral-offset-x: -60px;
  --floral-offset-y: -50px;
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  min-height:100vh;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  color:var(--ink);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(124,154,136,.35), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(223,233,226,.7), transparent 60%),
    linear-gradient(180deg, var(--cream), #f3f5f1 55%, #eef2ee);
}

a{
  color:var(--sage-700);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

/* ===== Page wrapper ===== */
.wrap{
  max-width:1050px;
  margin:0 auto;
  padding:26px 18px 70px;
  position:relative;
  z-index:2;
}

/* ===== Shared header / brand ===== */
header{
  backdrop-filter: blur(10px);
  background: rgba(251,250,247,.65);
  border: 1px solid rgba(79,106,91,.15);
  border-radius: 999px;
  padding: 10px 14px;
  margin: 10px auto 24px;
  box-shadow: 0 8px 30px rgba(12,18,15,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.header-sticky{
  position:sticky;
  top:0;
  z-index:10;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family: ui-serif, Georgia, serif;
  letter-spacing:.3px;
}

.monogram{
  width:34px;
  height:34px;
  border-radius:50%;
  background: linear-gradient(145deg, rgba(124,154,136,.35), rgba(223,233,226,.95));
  border: 1px solid rgba(79,106,91,.25);
  display:grid;
  place-items:center;
  font-weight:700;
  color:var(--sage-900);
}

.monogram span{
  transform: translateX(-2px);
}

/* ===== Nav ===== */
nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:14px;
}

nav a{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
}

nav a:hover{
  border-color: rgba(79,106,91,.20);
  background: rgba(223,233,226,.45);
  text-decoration:none;
}

/* ===== Shared panels/cards ===== */
.panel{
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid rgba(79,106,91,.18);
  background:var(--card);
  overflow:hidden;
}

.card{
  border-radius:18px;
  border:1px solid rgba(79,106,91,.16);
  background:rgba(255,255,255,.65);
  padding:16px 16px 14px;
}

.card h3{
  margin:0 0 8px;
  font-size:14px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:rgba(47,59,51,.75);
}

.card p{
  margin:0;
  line-height:1.55;
}

section{
  margin-top:18px;
  padding:22px;
  scroll-margin-top:80px;
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

/* ===== Text styles ===== */
h1{
  margin:10px 0 6px;
  font-size:clamp(40px, 6vw, 64px);
  line-height:1.04;
  color:var(--sage-900);
  letter-spacing:-0.02em;
}

.section-title{
  margin:0 0 10px;
  font-size:22px;
  color:var(--sage-900);
}

.sub{
  margin:0 0 18px;
  font-size:18px;
  line-height:1.55;
  color:rgba(31,39,34,.85);
  max-width:52ch;
}

.fine{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:13px;
  color:rgba(31,39,34,.72);
  line-height:1.6;
}

.muted{
  color:rgba(31,39,34,.72);
}

.intro{
  margin:0 0 20px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color:rgba(31,39,34,.72);
}

.divider{
  height:1px;
  background:rgba(79,106,91,.14);
  margin:16px 0;
}

/* ===== Buttons / actions ===== */
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.btn{
  border-radius:999px;
  padding:11px 14px;
  border:1px solid rgba(79,106,91,.25);
  background:rgba(255,255,255,.70);
  box-shadow:0 10px 25px rgba(12,18,15,.08);
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
}

.btn.primary{
  background:linear-gradient(135deg, rgba(79,106,91,.98), rgba(124,154,136,.92));
  color:#fff;
  border-color:rgba(47,59,51,.35);
}

.btn.primary:hover{
  filter:brightness(1.03);
  text-decoration:none;
}

.btn:hover{
  text-decoration:none;
}

button{
  border-radius:999px;
  padding:11px 16px;
  border:1px solid rgba(79,106,91,.25);
  background:rgba(255,255,255,.75);
  color:var(--sage-900);
  cursor:pointer;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size:14px;
}

button.primary{
  background:linear-gradient(135deg, rgba(79,106,91,.98), rgba(124,154,136,.92));
  color:#fff;
}

/* ===== Invite pages ===== */
.hero{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
  align-items:stretch;
  margin-top:12px;
}

.hero-left{
  padding:34px 28px 30px;
  position:relative;
  background:
    radial-gradient(700px 300px at 35% 0%, rgba(124,154,136,.25), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.60));
}

.hero-right{
  padding:26px 22px;
  display:grid;
  gap:12px;
  background:
    radial-gradient(400px 250px at 70% 0%, rgba(124,154,136,.22), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.58));
}

.kicker{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:12px;
  color:rgba(47,59,51,.72);
}

.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.pill{
  display:flex;
  gap:8px;
  align-items:center;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:14px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(79,106,91,.22);
  background:rgba(223,233,226,.55);
}

.dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--sage-500);
  box-shadow:0 0 0 3px rgba(124,154,136,.20);
}

/* ===== Gallery page ===== */
.gallery-panel{
  padding:22px;
}

.slideshow{
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(79,106,91,.18);
  box-shadow:var(--shadow);
}

.slideshow img{
  width:100%;
  height:min(70vh, 680px);
  object-fit:contain;
  display:block;
  background:rgba(255,255,255,.45);
}

.controls{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:16px;
  flex-wrap:wrap;
}

.counter{
  text-align:center;
  margin-top:10px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color:rgba(31,39,34,.65);
  font-size:13px;
}

.thumbs{
  margin-top:20px;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(110px, 1fr));
  gap:10px;
}

.thumbs img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(79,106,91,.18);
  cursor:pointer;
  opacity:.75;
}

.thumbs img.active{
  opacity:1;
  outline:3px solid rgba(124,154,136,.45);
}

.empty-gallery{
  display:none;
  text-align:center;
  padding:24px 24px 8px;
}

.empty-gallery .photo-frame{
  max-width:420px;
  margin:0 auto 18px;
}

.empty-gallery h2{
  margin:18px 0 10px;
  color:var(--sage-900);
  font-size:32px;
}

.empty-gallery p{
  margin:0;
  font-family:ui-sans-serif, system-ui, sans-serif;
  color:rgba(31,39,34,.68);
}

.empty-gallery a{
  color:var(--sage-700);
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid rgba(79,106,91,.25);
  transition:all .18s ease;
}

.empty-gallery a:hover{
  color:var(--sage-900);
  border-bottom-color:rgba(79,106,91,.55);
}

/* ===== Upload / framed photo ===== */
.photo-frame{
  margin:4px auto 18px;
  max-width:420px;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(79,106,91,.18);
  background:rgba(255,255,255,.55);
  box-shadow:0 12px 30px rgba(12,18,15,.10);
  backdrop-filter:blur(8px);
}

.photo-frame img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
}

/* ===== Auth / coming soon page ===== */
body.auth-page{
  display:flex;
  align-items:center;
  justify-content:center;
}

.bg-monogram{
  position:fixed;
  inset:0;
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:0;
  opacity:.07;
  transform:translateY(-2%);
}

.bg-monogram span{
  font-weight:700;
  letter-spacing:-0.04em;
  color:var(--sage-700);
  font-size:min(65vw, 650px);
  line-height:1;
  user-select:none;
}

.auth-panel{
  position:relative;
  z-index:2;
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid rgba(79,106,91,.18);
  padding:40px 36px;
  width:min(92%, 520px);
  text-align:center;
  backdrop-filter:blur(10px);
}

.auth-panel .brand{
  justify-content:center;
  gap:12px;
  margin-bottom:10px;
}

.auth-panel .monogram{
  width:44px;
  height:44px;
}

.auth-panel .monogram span{
  transform:translateX(0);
}

.auth-panel h1{
  margin:0 0 10px;
  font-size:clamp(30px, 5vw, 46px);
}

input{
  width:100%;
  padding:14px 16px;
  border-radius:999px;
  border:1px solid rgba(79,106,91,.25);
  background:rgba(255,255,255,.78);
  font-size:15px;
  text-align:center;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin-bottom:12px;
}

.auth-panel button{
  width:100%;
  padding:14px 16px;
  border:1px solid rgba(47,59,51,.35);
  background:linear-gradient(135deg, rgba(79,106,91,.98), rgba(124,154,136,.92));
  color:#fff;
  font-size:15px;
}

.auth-panel button:hover{
  filter:brightness(1.05);
}

.error{
  margin-top:12px;
  font-size:14px;
  color:#a33;
  display:none;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.note{
  margin-top:14px;
  font-size:13px;
  color:rgba(31,39,34,.62);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ===== Floral corners ===== */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:var(--floral-opacity);
  z-index:0;
  background-image:var(--floral-tl), var(--floral-tr);
  background-repeat:no-repeat, no-repeat;
  background-size:
    var(--floral-size) var(--floral-size),
    var(--floral-size) var(--floral-size);
  background-position:
    var(--floral-offset-x) var(--floral-offset-y),
    calc(100% - var(--floral-offset-x)) var(--floral-offset-y);
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:var(--floral-opacity);
  z-index:0;
  background-image:var(--floral-bl), var(--floral-br);
  background-repeat:no-repeat, no-repeat;
  background-size:
    var(--floral-size) var(--floral-size),
    var(--floral-size) var(--floral-size);
  background-position:
	  var(--floral-offset-x) calc(100% - var(--floral-offset-y) + 40px),
	  calc(100% - var(--floral-offset-x)) calc(100% - var(--floral-offset-y) + 40px);
}

/* On phones, use only top-left and bottom-right to avoid visual clutter */
@media (max-width:700px), (max-height:500px){

  :root{
    --floral-opacity:0.6 !important;
    --floral-size:340px !important;
    --floral-offset-x:-20px !important;
    --floral-offset-y:-20px !important;
  }

  body::before{
    background-image:var(--floral-tl);
    background-repeat:no-repeat;
    background-size:var(--floral-size) var(--floral-size);
    background-position:var(--floral-offset-x) var(--floral-offset-y);
  }

  body::after{
    background-image:var(--floral-br);
    background-repeat:no-repeat;
    background-size:var(--floral-size) var(--floral-size);
    background-position:
      calc(100% - var(--floral-offset-x))
      calc(100% - var(--floral-offset-y));
  }
}

/* ===== Footer ===== */
footer{
  margin-top:18px;
  text-align:center;
  color:rgba(31,39,34,.65);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:13px;
  padding:10px 0 0;
}

/* ===== General responsive behavior ===== */
@media (max-width:860px){
  .hero{
    grid-template-columns:1fr;
  }

  header{
    position:static;
    border-radius:var(--radius);
  }

  .grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:600px){
  .auth-panel{
    padding:34px 22px;
  }

  .auth-panel .monogram{
    width:40px;
    height:40px;
  }
}
