:root {
  --pico-primary: #2f6fa8;
  --pico-primary-hover: #245b8d;
  --pico-primary-focus: rgba(47, 111, 168, 0.22);
  --pico-primary-inverse: #fff;
  --pico-form-element-border-color: #c9d9e8;
  --pico-form-element-focus-color: rgba(47, 111, 168, 0.22);
  --pico-muted-color: #5d748c;
}


:root {
  --bg: #eaf2fb;        
  --panel: #ffffff;    
  --panel2: #f4f8fd;    
  --ink: #123b63;     
  --soft: #5d748c;     
  --accent: #4f86bd;   
  --card: #ffffff;      
  --line: #d2dfec;   

  --serif: 'Cormorant Garamond', Georgia, serif;  
  --sans: 'Jost', system-ui, sans-serif; 
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;          
  font-weight: 300;         
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
}

h2 {
  font-size: 2.3rem;
  text-align: center;
  margin-bottom: 0.4rem;
  color: #123b63;
}

h3 {
  color: #2f6fa8;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
}

h3 ~ p {
  color: #365f82;
  font-weight: 400;
}

section {
  padding: 3.5rem 1.5rem;
  max-width: 960px;
  width: calc(100% - 2rem);      
  margin: 1.5rem auto;           

  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 8px 28px rgba(18, 59, 99, 0.10);  
}

section:nth-of-type(even) {
  background: var(--panel2);
}

.sub {
  text-align: center;
  color: var(--soft);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;    
  font: 400 0.95rem var(--sans);
  cursor: pointer;
  text-decoration: none;
}

.btn.alt {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#cover {
  position: fixed;           
  inset: 0;                  
  z-index: 50;              

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  color: #fff;
  padding: 2rem;

  background:
    linear-gradient(rgba(8, 38, 72, 0.68), rgba(8, 38, 72, 0.78)),
    url('https://picsum.photos/id/1040/12001800') center/cover;

  transition: transform 0.9s ease;   
}

#cover.open {
  transform: translateY(-100%);
}

#cover h1 {
  font-size: clamp(3rem, 12vw, 5.5rem);   
  margin: 0.5rem 0 1.5rem;
}

#cover .to {
  margin: 1rem 0 1.8rem;
  font-size: 1.05rem;
}

#cover .to b {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

#cover .btn {
  background: #fff;
  color: var(--ink);
}

#hero {
  max-width: none;           
  min-height: 100vh;        

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;

  background:
    linear-gradient(rgba(8, 38, 72, 0.54), rgba(8, 38, 72, 0.70)),
    url('latar_biru_tua.png') center/cover;
}

#hero h1 {
  font-size: clamp(3rem, 11vw, 6rem);
}

#count {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

#count div {
  min-width: 70px;
  padding: 0.8rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

#count b {
  display: block;
  font: 600 1.8rem var(--serif);
}


#intro {
  text-align: center;
  max-width: 640px;     
}

#intro blockquote {
  font: italic 500 1.35rem var(--serif);
  color: var(--accent);
  margin: 1.5rem 0 0;
}

.couple {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.person {
  text-align: center;
}

.person img {
  width: 230px;
  height: 300px;
  object-fit: cover;

  border-radius:
    120px 120px
    12px 12px;

  border: 3px solid #0b1f33;

  margin: 0 auto 1.2rem;

  box-shadow:
    0 10px 25px
    rgba(18, 59, 99, 0.15);
}

.person h3 {
  font-size: 2rem;
}

.person p {
  color: var(--soft);
}

.amp {
  font: italic 500 3.5rem var(--serif);
  color: var(--accent);
  text-align: center;
}

@media (min-width: 760px) {
  .couple {
    grid-template-columns: 1fr auto 1fr;
  }
}

#gambar {
    max-width: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #5c716f;

    background: url('latar_biru_tua.png') center/cover;
}

.events {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .events {
    grid-template-columns: 1fr 1fr;
  }
}

.event {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.event h3 {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}

.event .date {
  font-weight: 500;
}

.event p {
  margin-bottom: 0.3rem;
}

.event .btn {
  margin-top: 1.2rem;
}

.gallery {
  columns: 2;
  column-gap: 0.7rem;
}

@media (min-width: 760px) {
  .gallery {
    columns: 3;
  }
}

.gallery img {
  width: 100%;
  margin-bottom: 0.7rem;
  border-radius: 8px;
  cursor: zoom-in;          
}

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;            
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 1rem;
  cursor: zoom-out;
}

#lightbox.on {
  display: flex;
}

#lightbox img {
  max-height: 92vh;
  border-radius: 8px;
}

.story {
  position: relative;
  max-width: 640px;
  margin: auto;
  padding-left: 2rem;
  border-left: 2px solid var(--line);
}

.story article {
  position: relative;
  margin-bottom: 2.5rem;
}

.story article::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 6px);
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;       
  background: var(--accent);
}

.story time {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
}

.story h3 {
  font-size: 1.6rem;
  margin: 0.1rem 0 0.3rem;
}

.story article p {
  color: #ffffff;
}

.gift {
  max-width: 440px;
  margin: auto;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.gift b {
  display: block;
  font: 600 1.6rem var(--serif);
  letter-spacing: 0.05em;
  margin: 0.4rem 0;
}

.gift .btn {
  background: #fff;
  color: var(--ink);
  margin-top: 1rem;
}

form {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  display: grid;
  gap: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 300 1rem var(--sans);
  background: #fff;
  color: var(--ink);
}

.wishes {
  max-width: 520px;
  margin: auto;
  display: grid;
  gap: 0.8rem;
}

.wish {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}

.wish b {
  font-weight: 500;
}

.tag {
  font-size: 0.75rem;
  color: var(--accent);
  margin-left: 0.4rem;
}

.empty {
  text-align: center;
  color: var(--soft);
}


footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--soft);

  max-width: 960px;
  width: calc(100% - 2rem);
  margin: 1.5rem auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
}

footer h3 {
  font-size: 2rem;
  color: var(--ink);
}

footer a {
  color: var(--soft);
}


#dash {
  display: none;            
  min-height: 100vh;
  padding: 2rem 1.25rem;
  max-width: 960px;
  margin: auto;
}

body.dashmode #dash {
  display: block;
}

body.dashmode #site,
body.dashmode #cover {
  display: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

#dashBody .btn.alt {
  background: #ffffff;
  color: #123b63;
  border: 1px solid #123b63;

  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

#dashBody .btn.alt:hover {
  background: #123b63;
  color: #ffffff;
}

@media (min-width: 760px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
}

.stat b {
  display: block;
  font: 600 2.4rem var(--serif);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.panel h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.row input {
  flex: 1;
  min-width: 180px;
}

#linkOut {
  margin-top: 0.8rem;
  word-break: break-all;      
  color: var(--soft);
}

body {
  background: var(--bg);
}

.btn:hover {
  background: #245b8d;
  color: #fff;
}

.btn.alt:hover {
  background: var(--ink);
  color: #fff;
}

#cover .btn:hover,
.gift .btn:hover {
  background: #eaf2fb;
  color: var(--ink);
}

.gallery img:hover {
  box-shadow: 0 8px 24px rgba(18, 59, 99, 0.18);
}

.gift {
  background: linear-gradient(135deg, #123b63, #2f6fa8);
}

.story article::before {
  box-shadow: 0 0 0 4px #eaf2fb;
}
/* =========================================
   VENUE / TEMPAT ACARA
   ========================================= */

#events {
  max-width: 1100px;
  background: #ffffff;
  overflow: hidden;
}

/* Layout utama */
.venue-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 520px;
  position: relative;
}

/* Ornamen garis sederhana */
.venue-layout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 130px;
  height: 80px;
  border-top: 2px solid #2f6fa8;
  border-left: 2px solid #2f6fa8;
  opacity: 0.35;
}

/* =========================
   VENUE
   ========================= */

.venue-info {
  text-align: center;
  position: relative;
  z-index: 2;
}

.venue-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #123b63;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.venue-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: #123b63;
  margin-bottom: 1.2rem;
}

.venue-address {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  color: #365f82;
}

/* =========================
   FOTO VENUE
   ========================= */

.venue-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.heart-frame {
  width: 330px;
  height: 330px;
  position: relative;
  overflow: hidden;

  transform: rotate(-45deg);

  border: 5px solid #2f6fa8;
  border-radius: 50% 50% 0 50%;

  box-shadow:
    0 12px 30px rgba(18, 59, 99, 0.18);
}

.heart-frame::before,
.heart-frame::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 50%;
}

.heart-frame::before {
  top: -50%;
  left: 0;
}

.heart-frame::after {
  top: 0;
  left: 50%;
}

.heart-frame img {
  width: 141%;
  height: 141%;
  object-fit: cover;

  position: absolute;
  top: -20.5%;
  left: -20.5%;

  transform: rotate(45deg);
}

/* =========================
   FACILITY
   ========================= */

.facility {
  text-align: left;
  position: relative;
  z-index: 2;
}

.facility-list {
  display: grid;
  gap: 1.3rem;
  margin-top: 1.2rem;
}

.facility-item {
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;

  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;

  color: #365f82;
}

.facility-icon {
  font-family: Georgia, serif;
  font-size: 1.8rem;
  color: #2f6fa8;
  text-align: center;
}

/* =========================
   PEMISAH
   ========================= */

.event-details {
  position: relative;

  margin-top: 3rem;
  padding-top: 3rem;

  border-top: 1px solid #c9d9e8;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.event-box {
  text-align: center;

  background: #f4f8fd;
  border: 1px solid #d2dfec;
  border-radius: 18px;

  padding: 1.5rem;
}

.event-box h3 {
  color: #123b63;
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.event-box p {
  color: #5d748c;
  margin-bottom: 0.25rem;
}

.event-box .date {
  color: #2f6fa8;
  font-weight: 500;
}

.event-details > .btn {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 0.5rem;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 759px) {

  #events {
    padding: 2.5rem 1rem;
  }

  .venue-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
  }

  .venue-layout::before {
    width: 80px;
    height: 55px;
  }

  .venue-label {
    font-size: 1.8rem;
  }

  .venue-name {
    font-size: 2.7rem;
  }

  .venue-address {
    font-size: 1.05rem;
  }

  .venue-photo {
    order: 2;
  }

  .venue-info {
    order: 1;
  }

  .facility {
    order: 3;
    text-align: center;
  }

  .facility-list {
    max-width: 280px;
    margin: 1.2rem auto 0;
  }

  .facility-item {
    text-align: left;
    font-size: 1.05rem;
  }

  .heart-frame {
    width: 260px;
    height: 260px;
  }

  .event-details {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .event-details > .btn {
    grid-column: auto;
  }

}
/* Bingkai foto venue */
.venue-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  overflow: visible;
}

.heart-frame {
  width: 300px;
  aspect-ratio: 1;
  position: relative;
  transform: rotate(-45deg);
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}

/* Foto dipotong mengikuti bentuk hati */
.heart-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: rotate(45deg) scale(1.12);
  clip-path: polygon(
    50% 92%,
    8% 52%,
    5% 40%,
    7% 28%,
    15% 17%,
    28% 12%,
    40% 16%,
    50% 28%,
    60% 16%,
    72% 12%,
    85% 17%,
    93% 28%,
    95% 40%,
    92% 52%
  );
}

/* Bingkai hati biru */
.heart-frame::before {
  content: "♥";
  position: absolute;
  inset: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 330px;
  line-height: 1;
  color: #2f6fa8;
  z-index: -1;
  transform: rotate(45deg);
  text-shadow: 0 8px 20px rgba(18, 59, 99, 0.12);
}

/* Tampilan HP */
@media (max-width: 759px) {
  .heart-frame {
    width: 240px;
  }

  .heart-frame::before {
    font-size: 265px;
  }
}

/* =====================================
   ANIMASI OUR STORY
   ===================================== */

#story .story article {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

#story .story article.show {
  opacity: 1;
  transform: translateY(0);
}

/* Garis timeline */
#story .story {
  border-left: 2px solid #c9d9e8;
}

#story .story article::before {
  background: #2f6fa8;
  box-shadow: 0 0 0 5px #eaf2fb;
}

/* Judul dan tanggal */
#story .story time {
  display: inline-block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

#story .story h3 {
  margin-bottom: 0.7rem;
  color: #123b63;
}

#story .story article p {
  color: #5d748c;
  line-height: 1.9;
}

/* Mengurangi animasi jika diminta pengguna */
@media (prefers-reduced-motion: reduce) {
  #story .story article {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================================
   ANIMASI OUR GALLERY
   ===================================== */

#gallery .gallery img {
  opacity: 0;
  transform: translateY(25px) scale(0.97);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    box-shadow 0.3s ease;
}

#gallery .gallery img.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#gallery .gallery img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(18, 59, 99, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  #gallery .gallery img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================================
   KARTU ATM - AMPLOP DIGITAL
   ===================================== */

#gift {
  background: #ffffff;
}

.atm-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 800px;
  min-height: 335px;
  margin: 2rem auto;
  padding: 24px 28px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  overflow: hidden;
  border-radius: 22px;

  background:
    radial-gradient(
      circle at 28% 82%,
      rgba(255, 255, 255, 0.8) 0 15%,
      transparent 15.2%
    ),
    linear-gradient(
      145deg,
      #f5f7f7 0%,
      #e5ecef 48%,
      #d4e0e3 100%
    );

  box-shadow: 0 10px 30px rgba(18, 59, 99, 0.10);
}

/* Ornamen diagonal pada kartu */
.atm-decoration {
  position: absolute;
  z-index: -1;
  top: -100px;
  right: -100px;
  width: 65%;
  height: 500px;

  transform: rotate(45deg);

  background: linear-gradient(
    90deg,
    rgba(157, 174, 179, 0.12) 0 28%,
    rgba(255, 255, 255, 0.4) 28% 48%,
    rgba(150, 169, 174, 0.24) 48% 70%,
    transparent 70%
  );

  border-radius: 60px;
}

/* Nama bank */
.atm-bank {
  align-self: flex-end;
  color: #111111;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}

/* Chip kartu */
.atm-chip {
  position: relative;
  width: 112px;
  height: 92px;
  margin-top: 14px;
  margin-bottom: 24px;

  overflow: hidden;
  border: 1.5px solid #8b8a72;
  border-radius: 22px;

  background: linear-gradient(
    135deg,
    #f7e9a9,
    #d8b66d 60%,
    #c6a052
  );
}

.atm-chip::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      transparent 32%,
      #9d8b59 32.5%,
      #9d8b59 33.5%,
      transparent 34%
    ),
    linear-gradient(
      0deg,
      transparent 32%,
      #9d8b59 32.5%,
      #9d8b59 33.5%,
      transparent 34%
    );
}

.atm-chip span {
  position: absolute;
  inset: 25% 30%;
  border: 1px solid #9d8b59;
  border-radius: 5px;
}

/* Nama dan nomor rekening */
.atm-details {
  width: 100%;
  margin-top: auto;
  padding-bottom: 42px;
  color: #111111;
}

.atm-owner {
  margin: 0 0 8px;
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.atm-number {
  margin: 0;
  font-size: clamp(1rem, 2.7vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Tombol salin */
.atm-copy {
  position: absolute;
  right: 16px;
  bottom: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-width: 137px;
  padding: 12px 20px;

  border: none;
  border-radius: 5px;
  background: #050505;
  color: #ffffff;

  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.atm-copy:hover {
  background: #263746;
}

.atm-copy svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tampilan HP */
@media (max-width: 480px) {
  .atm-card {
    min-height: 285px;
    padding: 20px;
    border-radius: 18px;
  }

  .atm-chip {
    width: 85px;
    height: 70px;
    border-radius: 16px;
    margin-top: 18px;
    margin-bottom: 20px;
  }

  .atm-details {
    padding-bottom: 48px;
  }

  .atm-copy {
    right: 12px;
    bottom: 12px;
    min-width: 112px;
    padding: 9px 14px;
  }
}

.music-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;

  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;

  background: #123b63;
  color: white;
  font-size: 25px;

  cursor: pointer;
  box-shadow: 0 4px 14px rgba(18, 59, 99, 0.25);
}

.music-btn.playing {
  animation: musicSpin 4s linear infinite;
}

@keyframes musicSpin {
  to {
    transform: rotate(360deg);
  }
}