/**
 * Template 8: The Oasis — Islamic Geometric (Photo-Free Sand, Sage, Teal, & Deep)
 * Mihrab Arches, Chamfer Corners, Repeating Geometric Star Patterns, Cinzel & DM Sans Typography
 */

:root {
  --sand: #F0E9DA;
  --sage: #B6C9BD;
  --teal: #397F7B;
  --deep: #1F4547;
}

body.theme-oasis {
  background: var(--sand);
  color: var(--deep);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

body.theme-oasis h1,
body.theme-oasis h2,
body.theme-oasis h3,
body.theme-oasis .serif {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 500;
  letter-spacing: .04em;
}

.tag {
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
}

.pat {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23397F7B' stroke-opacity='.17' stroke-width='1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M32 12.2V0M32 51.8V64M12.2 32H0M51.8 32H64'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px;
}

.pat-d {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23B6C9BD' stroke-opacity='.15' stroke-width='1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M32 12.2V0M32 51.8V64M12.2 32H0M51.8 32H64'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px;
}

/* Sudut terpotong (chamfer) dengan garis tepi */
.cb {
  background: var(--teal);
  padding: 1.5px;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
}

.cb > .ci {
  height: 100%;
  clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px);
}

.cham {
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 2.1rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .3s, color .3s, transform .3s;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.btn-deep {
  background: var(--deep);
  color: var(--sand);
}
.btn-deep:hover {
  background: #2B6461;
  transform: translateY(-1px);
}

.btn-sand {
  background: var(--sand);
  color: var(--deep);
}
.btn-sand:hover {
  background: var(--sage);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}
.btn-teal:hover {
  background: var(--deep);
}

.field,
.field-oasis {
  width: 100%;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(31, 69, 71, .45);
  padding: .75rem 1rem;
  font-size: .95rem;
  color: var(--deep);
  border-radius: 0;
}
.field:focus,
.field-oasis:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(57, 127, 123, .25);
  background: #fff;
}

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

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.dk :focus-visible {
  outline-color: var(--sage);
}

.arch-box {
  position: relative;
}
.arch-box > svg.ln {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#cover {
  transition: opacity 1s ease, visibility 1s, clip-path 1.2s cubic-bezier(.77, 0, .18, 1);
  clip-path: circle(150% at 50% 100%);
}
#cover.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: circle(0% at 50% 100%);
}

.spin {
  animation: spin 120s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@media (prefers-reduced-motion: reduce) {
  body.theme-oasis .rev {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .spin {
    animation: none;
  }
  html {
    scroll-behavior: auto !important;
  }
}

::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--sand);
}
::-webkit-scrollbar-thumb {
  background: var(--sage);
}
