/* ——— Yogyakarta ——— */
/* Fluid layout tuned at --layout-ref-w (798px); card ornament keeps intrinsic ratio via <img>. */

.jogja {
  position: relative;
  width: 100%;
  aspect-ratio: var(--jogja-aspect-w) / var(--jogja-aspect-h);
  overflow: hidden;
  container-type: inline-size;
}

.jogja__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--asset-jogja-bg) center / 100% 100% no-repeat;
}

.jogja__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.jogja__title {
  position: absolute;
  top: calc(82 * 100cqw / var(--layout-ref-w));
  left: calc(46 * 100cqw / var(--layout-ref-w));
  margin: 0;
  font-family: var(--font-serif);
  font-size: calc(42 * 100cqw / var(--layout-ref-w));
  font-weight: 400;
  line-height: 1.05;
  color: #1e2a3a;
}

.jogja__sign {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  width: calc(270 * 100cqw / var(--layout-ref-w));
  line-height: 0;
}

.jogja__sign img {
  display: block;
  width: 100%;
  height: auto;
}

.jogja__card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(500 * 100cqw / var(--layout-ref-w));
  margin: 0;
  container-type: inline-size;
}

.jogja__card-frame {
  display: block;
  width: 100%;
  height: auto;
}

.jogja__card-stamp-wrap {
  display: contents;
}

.jogja__card-stamp-frame {
  display: none;
}

.jogja__card-body {
  position: absolute;
  inset: 0;
}

.jogja__card-stamp {
  position: absolute;
  top: 12%;
  left: 5.25%;
  width: 35%;
  bottom: 34%;
  overflow: hidden;
  box-sizing: border-box;
  padding:
    calc(5 * 100cqw / var(--jogja-card-ref-w))
    calc(2 * 100cqw / var(--jogja-card-ref-w))
    calc(4 * 100cqw / var(--jogja-card-ref-w));
  text-align: center;
  font-family: var(--font-sans);
  font-size: calc(9 * 100cqw / var(--jogja-card-ref-w));
  font-weight: 400;
  line-height: 1.42;
  color: var(--color-ink);
}

.jogja__card-stamp p {
  margin: 0 0 calc(8.5 * 100cqw / var(--jogja-card-ref-w));
}

.jogja__card-stamp p:last-child {
  margin-bottom: 0;
}

.jogja__card-stamp-lead {
  font-style: italic;
}

.jogja__card-panel {
  position: absolute;
  top: 20%;
  left: 47%;
  width: 47%;
  bottom: 4%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  box-sizing: border-box;
  padding:
    calc(6 * 100cqw / var(--jogja-card-ref-w))
    0
    calc(6 * 100cqw / var(--jogja-card-ref-w));
}

.jogja__card-panel-copy {
  flex: 0 1 auto;
  width: 100%;
  overflow: visible;
  font-family: var(--font-sans);
  font-size: calc(9.5 * 100cqw / var(--jogja-card-ref-w));
  font-weight: 400;
  font-style: italic;
  line-height: 1.42;
  text-align: center;
  color: var(--color-ink);
}

.jogja__card-panel-copy p {
  margin: 0 0 calc(9.5 * 100cqw / var(--jogja-card-ref-w));
}

.jogja__card-panel-copy p:last-child {
  margin-bottom: 0;
}

.jogja__card-tagline {
  position: absolute;
  left: 16.5%;
  bottom: 3.5%;
  margin: 0;
  font-family: var(--font-script);
  font-size: calc(18 * 100cqw / var(--jogja-card-ref-w));
  font-weight: 400;
  font-stretch: normal;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: left;
  color: #1e2a3a;
}

.jogja__card-tagline-indent {
  display: block;
  padding-left: calc(40 * 100cqw / var(--jogja-card-ref-w));
}

@media (max-width: 1023px) {
  .jogja {
    aspect-ratio: unset;
    overflow: hidden;
  }

  .jogja__bg {
    background-image: var(--asset-jogja-bg-mobile);
    background-position: center top;
    background-size: cover;
  }

  .jogja__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 2.5rem 1.25rem 2.75rem;
    text-align: center;
  }

  .jogja__title {
    position: static;
    order: 1;
    margin: 0 0 1.5rem;
    font-size: clamp(2.25rem, 10vw, 3rem);
    line-height: 1.05;
    color: #1e2a3a;
  }

  .jogja__sign {
    display: none;
  }

  .jogja__card {
    position: relative;
    order: 2;
    --jogja-stamp-w: min(21.5rem, 92vw);
    --jogja-stamp-ref-w: 344;
    display: grid;
    grid-template-areas:
      "stamp"
      "panel"
      "tagline";
    justify-items: center;
    gap: 1.25rem;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    container-type: normal;
  }

  .jogja__card-frame {
    display: none;
  }

  .jogja__card-body {
    display: contents;
  }

  /* Stamp image defines the box; copy is locked inside it (fixes Z Fold / wide mobile). */
  .jogja__card-stamp-wrap {
    display: block;
    grid-area: stamp;
    position: relative;
    width: var(--jogja-stamp-w);
    line-height: 0;
    container-type: inline-size;
  }

  .jogja__card-stamp-frame {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
  }

  .jogja__card-stamp {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 1;
    width: 68%;
    margin: 0;
    padding: 13% 1.5% 12%;
    overflow: hidden;
    box-sizing: border-box;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: calc(12 * 100cqw / var(--jogja-stamp-ref-w));
    line-height: 1.34;
    text-align: center;
  }

  .jogja__card-stamp p {
    margin: 0 0 0.65em;
  }

  .jogja__card-stamp p:last-child {
    margin-bottom: 0;
  }

  .jogja__card-panel {
    position: static;
    grid-area: panel;
    width: 100%;
    padding: 0;
    overflow: visible;
  }

  .jogja__card-panel-copy {
    width: 100%;
    padding: 1.125rem 1rem;
    border: none;
    border-radius: 0.25rem;
    background: var(--asset-things-to-know-paper) center / cover no-repeat;
    box-shadow: 0 8px 24px rgba(30, 42, 58, 0.08);
    font-size: 0.8125rem;
    line-height: 1.55;
    text-align: center;
  }

  .jogja__card-panel-copy p {
    margin: 0 0 0.875rem;
  }

  .jogja__card-panel-copy p:last-child {
    margin-bottom: 0;
  }

  .jogja__card-tagline {
    position: static;
    grid-area: tagline;
    width: 100%;
    margin: 0;
    font-size: clamp(1.625rem, 8vw, 2.25rem);
    line-height: 1.15;
    text-align: center;
    color: #1e2a3a;
  }

  .jogja__card-tagline-indent {
    display: block;
    padding-left: 0;
    margin-top: 0.125rem;
  }
}
