@font-face {
  font-family: "Dragon Heroes";
  src: url("/assets/Dragon Heroes.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.template-tema-khitan-1 {
  --ink: #321b17;
  --muted: #76544a;
  --paper: #fff6ef;
  --paper-deep: #f0d1c0;
  --accent: #9d5b47;
  --accent-dark: #4a1713;
  --line: rgba(74, 23, 19, 0.16);
  --shadow: 0 18px 42px rgba(74, 23, 19, 0.16);
  background: linear-gradient(180deg, #fff7ef, #efd2c2);
}

.template-tema-khitan-1 .cover-gate__veil {
  background:
    linear-gradient(180deg, rgba(48, 18, 14, 0) 0%, rgba(48, 18, 14, 0.06) 42%, rgba(48, 18, 14, 0.42) 70%, rgba(48, 18, 14, 0.84) 100%),
    radial-gradient(circle at 50% 26%, rgba(255, 235, 222, 0.04), transparent 18rem);
}

.template-tema-khitan-1 .cover-gate__image {
  object-position: center top;
  filter: saturate(1.04) contrast(1.02);
}

.template-tema-khitan-1 .cover-gate h3,
.template-tema-khitan-1 h3 {
  color: #f5cdbf;
  font-family: "Dragon Heroes", "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

.template-tema-khitan-1 .cover-gate {
  place-items: end center;
  padding: 32px 22px 54px;
}

.template-tema-khitan-1 .cover-gate__content {
  display: grid;
  justify-items: center;
  width: min(330px, 100%);
  transform: translateY(0);
}

.template-tema-khitan-1 .cover-gate .script-label {
  margin-bottom: 10px;
  color: #f0c0ac;
  text-shadow: 0 2px 12px rgba(43, 13, 10, 0.58);
}

.template-tema-khitan-1 .cover-gate h3 {
  margin: 0;
  color: #ffe2d6;
  font-size: clamp(27px, 8vw, 36px);
  line-height: 1.02;
  text-shadow:
    0 2px 10px rgba(43, 13, 10, 0.68),
    0 12px 24px rgba(43, 13, 10, 0.34);
}

.template-tema-khitan-1 .guest-text {
  display: grid;
  gap: 6px;
  width: min(280px, 100%);
  margin: 16px auto 0;
  color: #fff4ef;
}

.template-tema-khitan-1 .guest-text span,
.template-tema-khitan-1 .guest-text strong {
  display: block;
  line-height: 1.28;
}

.template-tema-khitan-1 .guest-text span {
  font-size: 13px;
  font-weight: 700;
}

.template-tema-khitan-1 .guest-text strong {
  font-size: 17px;
  font-weight: 900;
}

.template-tema-khitan-1 .cover-gate .button-light {
  margin-top: 24px;
}

.template-tema-khitan-1 .script-label,
.template-tema-khitan-1 .ornament {
  color: #dca68e;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.template-tema-khitan-1 .button {
  border-color: #d8a48e;
  color: #2b0d0a;
  background: #e7c0ad;
  box-shadow: var(--shadow);
}

.template-tema-khitan-1 .button-light {
  color: #4a1713;
  background: rgba(255, 245, 238, 0.94);
}

.template-tema-khitan-1 .khitan-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: end center;
  overflow: hidden;
  color: #fff6ef;
  text-align: center;
}

.template-tema-khitan-1 .khitan-hero__image,
.template-tema-khitan-1 .khitan-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.template-tema-khitan-1 .khitan-hero__image {
  object-fit: cover;
  object-position: center 32%;
  opacity: 1;
  filter: sepia(0.04) saturate(0.98) brightness(1.02);
}

.template-tema-khitan-1 .khitan-hero__shade {
  background:
    linear-gradient(180deg, rgba(43, 13, 10, 0.04) 0%, rgba(43, 13, 10, 0.22) 42%, rgba(43, 13, 10, 0.78) 100%),
    radial-gradient(circle at 50% 72%, rgba(43, 13, 10, 0.34), transparent 14rem);
}

.template-tema-khitan-1 .khitan-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: auto;
  padding: 0 28px 86px;
  background: transparent;
  backdrop-filter: none;
  text-shadow:
    0 2px 10px rgba(43, 13, 10, 0.72),
    0 14px 30px rgba(43, 13, 10, 0.36);
}

.template-tema-khitan-1 .khitan-hero__content::before {
  display: none;
}

.template-tema-khitan-1 .khitan-hero .script-label {
  margin: 0;
  color: #f3c6b4;
}

.template-tema-khitan-1 .khitan-hero h3 {
  max-width: 320px;
  margin: 14px auto 8px;
  color: #fff1ea;
  font-size: clamp(28px, 1vw, 64px);
  line-height: 0.95;
}

.template-tema-khitan-1 .khitan-hero .lead,
.template-tema-khitan-1 .khitan-hero .event-date {
  color: #ffe4d9;
  font-weight: 800;
}

.template-tema-khitan-1 .countdown {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 316px);
  gap: 10px;
  margin-top: 24px;
}

.template-tema-khitan-1 .countdown div {
  border: 0;
  border-radius: 9px;
  color: #fff8f3;
  background: rgba(74, 23, 19, 0.58);
  box-shadow: 0 10px 24px rgba(43, 13, 10, 0.2);
  backdrop-filter: blur(8px);
}

.template-tema-khitan-1 .countdown span {
  color: #ffd8c8;
}

.template-tema-khitan-1 .khitan-hero .event-date {
  margin-top: 18px;
}

.template-tema-khitan-1 .khitan-hero .button {
  margin-top: 16px;
}

.template-tema-khitan-1 .section {
  padding: 64px 24px 76px;
}

.template-tema-khitan-1 .section::before {
  border-color: rgba(74, 23, 19, 0.13);
}

.template-tema-khitan-1 .khitan-greeting,
.template-tema-khitan-1 .story-section,
.template-tema-khitan-1 .gallery-section {
  color: #f8ded4;
  background:
    radial-gradient(circle at 96% 16%, rgba(226, 151, 125, 0.18), transparent 8rem),
    radial-gradient(circle at 8% 86%, rgba(226, 151, 125, 0.12), transparent 9rem),
    linear-gradient(180deg, #4a1713, #2b0d0a);
}

.template-tema-khitan-1 .khitan-greeting .lead,
.template-tema-khitan-1 .story-section .lead,
.template-tema-khitan-1 .gallery-section .lead {
  color: #efc8ba;
}

.template-tema-khitan-1 .khitan-greeting h3,
.template-tema-khitan-1 .story-section h3,
.template-tema-khitan-1 .gallery-section h3 {
  color: #f8f3f1;
  font-size: clamp(32px, 9vw, 50px);
}

.template-tema-khitan-1 .khitan-greeting h3 {
  margin: 22px auto 18px;
  line-height: 1.05;
}

.template-tema-khitan-1 .khitan-greeting .lead {
  margin-top: 0;
}

.template-tema-khitan-1 .khitan-child-card {
  display: grid;
  gap: 18px;
  max-width: 320px;
  margin: 30px auto 0;
}

.template-tema-khitan-1 .khitan-child-card img,
.template-tema-khitan-1 .story-cover-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #f0c3b2;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(20, 4, 3, 0.24);
}

.template-tema-khitan-1 .khitan-child-card span {
  display: block;
  color: #dca68e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.template-tema-khitan-1 .khitan-child-card strong {
  display: block;
  margin-top: 6px;
  color: #f8ded4;
  font-size: 20px;
}

.template-tema-khitan-1 .khitan-date {
  background: linear-gradient(180deg, #f8ded4, #dfad9f);
}

.template-tema-khitan-1 .khitan-date h3,
.template-tema-khitan-1 .gift-section h3,
.template-tema-khitan-1 .rsvp-section h3 {
  color: #4a1713;
}

.template-tema-khitan-1 .khitan-event-card {
  max-width: 370px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 18px;
  color: #f9e7df;
  background: #2b0d0a;
  box-shadow: var(--shadow);
}

.template-tema-khitan-1 .khitan-event-card img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
  object-position: center top;
}

.template-tema-khitan-1 .khitan-event-card div {
  padding: 30px 24px 32px;
}

.template-tema-khitan-1 .khitan-event-card strong,
.template-tema-khitan-1 .khitan-event-card p,
.template-tema-khitan-1 .khitan-event-card small {
  display: block;
  color: #f9e7df;
}

.template-tema-khitan-1 .gift-section,
.template-tema-khitan-1 .rsvp-section {
  background: #fff6ef;
}

.template-tema-khitan-1 .gift-section {
  padding: 72px 20px 84px;
  background:
    radial-gradient(circle at 78% 62%, rgba(232, 189, 168, 0.24), transparent 12rem),
    radial-gradient(circle at 18% 28%, rgba(74, 23, 19, 0.06), transparent 11rem),
    linear-gradient(180deg, #fff6ef, #f1d5c6);
}

.template-tema-khitan-1 .gift-section::before {
  display: none;
}

.template-tema-khitan-1 .gift-section .ornament {
  color: #633028;
}

.template-tema-khitan-1 .gift-section .lead {
  max-width: 430px;
  margin-top: 10px;
  color: #6b473d;
  font-size: 15px;
  line-height: 1.5;
}

.template-tema-khitan-1 .gift-grid {
  grid-template-columns: 1fr;
  max-width: 320px;
  gap: 18px;
  margin-top: 35px;
}

.template-tema-khitan-1 .gift-grid article {
  position: relative;
  min-height: 152px;
  overflow: hidden;
  padding: 66px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 17px;
  background:
    radial-gradient(circle at 78% 36%, rgba(255, 255, 255, 0.9) 0 11%, transparent 12%),
    radial-gradient(circle at 88% 60%, rgba(255, 255, 255, 0.78) 0 15%, transparent 16%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(226, 216, 210, 0.92));
  box-shadow:
    inset -16px -12px 30px rgba(160, 132, 120, 0.22),
    0 10px 22px rgba(74, 23, 19, 0.13);
  text-align: left;
}

.template-tema-khitan-1 .gift-grid article::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 18px;
  width: 29px;
  height: 23px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(151, 119, 49, 0.55) 49% 51%, transparent 52%),
    linear-gradient(180deg, transparent 48%, rgba(151, 119, 49, 0.45) 49% 51%, transparent 52%),
    linear-gradient(135deg, #e1c46d, #f6dda0);
  box-shadow: inset 0 0 0 1px rgba(151, 119, 49, 0.36);
}

.template-tema-khitan-1 .gift-grid article::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 158px;
  height: 110px;
  border-radius: 50%;
  border: 24px solid rgba(255, 255, 255, 0.34);
}

.template-tema-khitan-1 .gift-grid span {
  position: absolute;
  top: 19px;
  right: 18px;
  color: #8d4535;
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0;
  text-transform: uppercase;
}

.template-tema-khitan-1 .gift-grid strong {
  position: relative;
  z-index: 1;
  margin-top: 0;
  color: #3f2620;
  font-family: "Courier New", monospace;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.template-tema-khitan-1 .gift-grid p {
  position: relative;
  z-index: 1;
  margin: 2px 0 0 !important;
  color: #3f2620;
  font-family: "Courier New", monospace;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.template-tema-khitan-1 .gift-grid .copy-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  min-height: 28px;
  margin-top: 0;
  padding: 4px 10px;
  border: 0;
  border-radius: 4px;
  color: #fff6ef;
  background: #9d5b47;
  box-shadow: 0 4px 10px rgba(70, 34, 27, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.template-tema-khitan-1 .gift-grid .copy-button::before {
  content: "\f0c5";
  margin-right: 4px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.template-tema-khitan-1 .gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-tema-khitan-1 .gallery-grid img {
  height: 190px;
}

.template-tema-khitan-1 .gallery-grid img:nth-child(1),
.template-tema-khitan-1 .gallery-grid img:nth-child(6) {
  height: 388px;
}

.template-tema-khitan-1 .story-cover-photo {
  width: min(330px, 100%);
  margin: 26px auto 34px;
}

.template-tema-khitan-1 .story-list article {
  color: #f4d1c5;
  border-color: rgba(248, 222, 212, 0.2);
  background: rgba(255, 246, 239, 0.06);
}

.template-tema-khitan-1 .story-list p {
  color: #efc8ba;
}

.template-tema-khitan-1 .bottom-nav {
  border-color: rgba(74, 23, 19, 0.16);
  background: rgba(255, 246, 239, 0.92);
}

.template-tema-khitan-1 .bottom-nav a {
  color: #4a1713;
}

.template-tema-khitan-1 .invitation-footer {
  background: #4a1713;
}

.template-tema-khitan-1 .closing-section .khitan-closing-family {
  max-width: 300px;
  margin: 0 auto 18px;
  color: #fff1ea;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 6vw, 31px);
  font-weight: 700;
  line-height: 1.08;
  text-shadow:
    0 2px 10px rgba(43, 13, 10, 0.72),
    0 12px 26px rgba(43, 13, 10, 0.34);
}
