/**
 * Template 6: The Heritage / Barakah — Vintage Wine (Photo-Free Cream, Tan, Wine, & Ink)
 * Double Ornamental Borders, Corner Ornaments, Libre Baskerville & Lato Typography
 */

:root {
  --cream: #F4EDE3;
  --tan: #C9A68C;
  --wine: #793B46;
  --ink: #39272B;
}

body.theme-barakah {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.theme-barakah.locked,
body.theme-barakah.cover-locked {
  overflow: hidden;
  height: 100dvh;
}

body.theme-barakah h1,
body.theme-barakah h2,
body.theme-barakah h3,
body.theme-barakah .serif {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
}

.label {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Bingkai ornamental: garis ganda + sudut hias */
.dbl {
  border: 4px double var(--wine);
  outline: 1px solid var(--tan);
  outline-offset: 5px;
  position: relative;
}

.dbl-l {
  border: 4px double var(--tan);
  outline: 1px solid rgba(201, 166, 140, .5);
  outline-offset: 5px;
  position: relative;
}

.cf {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23793B46' stroke-width='1.2'%3E%3Cpath d='M2 28V9Q2 2 9 2h19'/%3E%3Cpath d='M8 16V8h8'/%3E%3Ccircle cx='16' cy='16' r='1.8' fill='%23793B46' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23793B46' stroke-width='1.2' transform='scale(-1 1) translate(-30 0)'%3E%3Cpath d='M2 28V9Q2 2 9 2h19'/%3E%3Cpath d='M8 16V8h8'/%3E%3Ccircle cx='16' cy='16' r='1.8' fill='%23793B46' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23793B46' stroke-width='1.2' transform='scale(1 -1) translate(0 -30)'%3E%3Cpath d='M2 28V9Q2 2 9 2h19'/%3E%3Cpath d='M8 16V8h8'/%3E%3Ccircle cx='16' cy='16' r='1.8' fill='%23793B46' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23793B46' stroke-width='1.2' transform='scale(-1 -1) translate(-30 -30)'%3E%3Cpath d='M2 28V9Q2 2 9 2h19'/%3E%3Cpath d='M8 16V8h8'/%3E%3Ccircle cx='16' cy='16' r='1.8' fill='%23793B46' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 30px;
  background-position: left 8px top 8px, right 8px top 8px, left 8px bottom 8px, right 8px bottom 8px;
}

.cf-l {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23F4EDE3' stroke-width='1.2'%3E%3Cpath d='M2 28V9Q2 2 9 2h19'/%3E%3Cpath d='M8 16V8h8'/%3E%3Ccircle cx='16' cy='16' r='1.8' fill='%23F4EDE3' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23F4EDE3' stroke-width='1.2' transform='scale(-1 1) translate(-30 0)'%3E%3Cpath d='M2 28V9Q2 2 9 2h19'/%3E%3Cpath d='M8 16V8h8'/%3E%3Ccircle cx='16' cy='16' r='1.8' fill='%23F4EDE3' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23F4EDE3' stroke-width='1.2' transform='scale(1 -1) translate(0 -30)'%3E%3Cpath d='M2 28V9Q2 2 9 2h19'/%3E%3Cpath d='M8 16V8h8'/%3E%3Ccircle cx='16' cy='16' r='1.8' fill='%23F4EDE3' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23F4EDE3' stroke-width='1.2' transform='scale(-1 -1) translate(-30 -30)'%3E%3Cpath d='M2 28V9Q2 2 9 2h19'/%3E%3Cpath d='M8 16V8h8'/%3E%3Ccircle cx='16' cy='16' r='1.8' fill='%23F4EDE3' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 30px;
  background-position: left 8px top 8px, right 8px top 8px, left 8px bottom 8px, right 8px bottom 8px;
}

.cf-t {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23C9A68C' stroke-width='1.2'%3E%3Cpath d='M2 28V9Q2 2 9 2h19'/%3E%3Cpath d='M8 16V8h8'/%3E%3Ccircle cx='16' cy='16' r='1.8' fill='%23C9A68C' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23C9A68C' stroke-width='1.2' transform='scale(-1 1) translate(-30 0)'%3E%3Cpath d='M2 28V9Q2 2 9 2h19'/%3E%3Cpath d='M8 16V8h8'/%3E%3Ccircle cx='16' cy='16' r='1.8' fill='%23C9A68C' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23C9A68C' stroke-width='1.2' transform='scale(1 -1) translate(0 -30)'%3E%3Cpath d='M2 28V9Q2 2 9 2h19'/%3E%3Cpath d='M8 16V8h8'/%3E%3Ccircle cx='16' cy='16' r='1.8' fill='%23C9A68C' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23C9A68C' stroke-width='1.2' transform='scale(-1 -1) translate(-30 -30)'%3E%3Cpath d='M2 28V9Q2 2 9 2h19'/%3E%3Cpath d='M8 16V8h8'/%3E%3Ccircle cx='16' cy='16' r='1.8' fill='%23C9A68C' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 30px;
  background-position: left 8px top 8px, right 8px top 8px, left 8px bottom 8px, right 8px bottom 8px;
}

.rule3 {
  height: 7px;
  border-top: 3px solid var(--wine);
  border-bottom: 1px solid var(--wine);
}

.rule3-t {
  height: 7px;
  border-top: 3px solid var(--tan);
  border-bottom: 1px solid var(--tan);
}

.leader {
  flex: 1;
  border-bottom: 2px dotted rgba(121, 59, 70, .55);
  margin: 0 .6rem .45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 2.2rem;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  transition: all .4s;
  border: 1px solid transparent;
}

.btn-wine {
  background: var(--wine);
  color: var(--cream);
  border-color: var(--wine);
  box-shadow: inset 0 0 0 3px var(--wine), inset 0 0 0 4px rgba(244, 237, 227, .55);
}
.btn-wine:hover {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(244, 237, 227, .55);
}

.btn-cream {
  background: var(--cream);
  color: var(--wine);
  box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 4px var(--wine);
}
.btn-cream:hover {
  background: var(--tan);
  box-shadow: inset 0 0 0 3px var(--tan), inset 0 0 0 4px var(--wine);
}

.btn-line {
  border-color: var(--wine);
  color: var(--wine);
}
.btn-line:hover {
  background: var(--wine);
  color: var(--cream);
}

.field-barakah {
  width: 100%;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(121, 59, 70, .6);
  padding: .75rem .9rem;
  font-size: .95rem;
  color: var(--ink);
  border-radius: 0;
}
.field-barakah:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(121, 59, 70, .18);
}

.ico {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#cover {
  transition: opacity 1s ease, visibility 1s, transform 1.2s cubic-bezier(.77, 0, .18, 1);
}
#cover.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.06);
}

body.theme-barakah:not(.locked) .rev,
body.theme-barakah:not(.cover-locked) .rev {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease, transform 1s ease;
}
body.theme-barakah:not(.locked) .rev.on,
body.theme-barakah:not(.locked) .rev.reveal-visible,
body.theme-barakah:not(.cover-locked) .rev.on,
body.theme-barakah:not(.cover-locked) .rev.reveal-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-barakah .rev {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
