/**
 * Template 10: The Nusantara — Songket & Tradisi (Photo-Free Gading, Emas, Merah, & Sogan)
 * Motif Songket Belah Ketupat, Bingkai Ganda Emas–Merah, Cormorant Garamond & Lato Typography
 */

:root {
  --gading: #FBF6EF;
  --emas: #C59B27;
  --merah: #9E3339;
  --sogan: #361113;
}

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

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

body.theme-nusantara h1,
body.theme-nusantara h2,
body.theme-nusantara h3,
body.theme-nusantara .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Pita songket: deret belah ketupat emas di atas dasar merah */
.songket-band {
  height: 14px;
  background-color: var(--merah);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14' viewBox='0 0 16 14'%3E%3Cpath d='M8 1l6 6-6 6-6-6z' fill='none' stroke='%23C59B27' stroke-width='1.2'/%3E%3Cpath d='M8 5l2 2-2 2-2-2z' fill='%23C59B27'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  border-top: 2px solid var(--emas);
  border-bottom: 2px solid var(--emas);
}

/* Latar motif songket halus untuk bidang lebar */
.songket-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23C59B27' stroke-opacity='.22' stroke-width='1'%3E%3Cpath d='M20 2l18 18-18 18L2 20z'/%3E%3Cpath d='M20 12l8 8-8 8-8-8z'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='1.6' fill='%23C59B27' fill-opacity='.35'/%3E%3C/svg%3E");
}

.songket-bg-dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23C59B27' stroke-opacity='.3' stroke-width='1'%3E%3Cpath d='M20 2l18 18-18 18L2 20z'/%3E%3Cpath d='M20 12l8 8-8 8-8-8z'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='1.6' fill='%23C59B27' fill-opacity='.5'/%3E%3C/svg%3E");
}

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

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

.dbl-l {
  border: 4px double var(--emas);
  outline: 1px solid rgba(197, 155, 39, .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='%239E3339' 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='%239E3339' 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='%239E3339' 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='%239E3339' 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='%239E3339' 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='%239E3339' 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='%239E3339' 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='%239E3339' 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='%23FBF6EF' 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='%23FBF6EF' 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='%23FBF6EF' 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='%23FBF6EF' 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='%23FBF6EF' 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='%23FBF6EF' 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='%23FBF6EF' 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='%23FBF6EF' 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='%23C59B27' 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='%23C59B27' 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='%23C59B27' 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='%23C59B27' 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='%23C59B27' 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='%23C59B27' 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='%23C59B27' 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='%23C59B27' 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(--merah);
  border-bottom: 1px solid var(--merah);
}

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

.leader {
  flex: 1;
  border-bottom: 2px dotted rgba(158, 51, 57, .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-merah {
  background: var(--merah);
  color: var(--gading);
  border-color: var(--merah);
  box-shadow: inset 0 0 0 3px var(--merah), inset 0 0 0 4px rgba(251, 246, 239, .55);
}
.btn-merah:hover {
  background: var(--sogan);
  border-color: var(--sogan);
  box-shadow: inset 0 0 0 3px var(--sogan), inset 0 0 0 4px rgba(251, 246, 239, .55);
}

.btn-gading {
  background: var(--gading);
  color: var(--merah);
  box-shadow: inset 0 0 0 3px var(--gading), inset 0 0 0 4px var(--merah);
}
.btn-gading:hover {
  background: var(--emas);
  box-shadow: inset 0 0 0 3px var(--emas), inset 0 0 0 4px var(--merah);
}

.btn-line {
  border-color: var(--merah);
  color: var(--merah);
}
.btn-line:hover {
  background: var(--merah);
  color: var(--gading);
}

.field-nusantara {
  width: 100%;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(158, 51, 57, .6);
  padding: .75rem .9rem;
  font-size: .95rem;
  color: var(--sogan);
  border-radius: 0;
}
.field-nusantara:focus {
  outline: none;
  border-color: var(--merah);
  box-shadow: 0 0 0 3px rgba(158, 51, 57, .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-nusantara:not(.locked) .rev,
body.theme-nusantara:not(.cover-locked) .rev {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease, transform 1s ease;
}
body.theme-nusantara:not(.locked) .rev.on,
body.theme-nusantara:not(.locked) .rev.reveal-visible,
body.theme-nusantara:not(.cover-locked) .rev.on,
body.theme-nusantara:not(.cover-locked) .rev.reveal-visible {
  opacity: 1;
  transform: none;
}

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