/*
 * Dhaka pages (about, policies, contact): a notice pinned up on the shop's wall. The title is
 * painted white on a red signboard strip; the words sit on a white notice held by two push pins
 * (a red one and a yellow one); a contact form is a yellow message slip under it; a locked page
 * is a black padlocked plate with the password slot.
 */
.page {
  max-width: 52rem;
  margin: 0 auto;
}
.dk-notice-head {
  display: grid;
  justify-items: start;
  gap: 0.2rem;
  margin: 0.5rem 0 1.75rem;
}
.dk-notice-head .dk-tape {
  position: relative;
  z-index: 1;
  margin-left: 0.6rem;
  font-size: 1.05rem;
}
.page .dk-notice-title {
  margin: -0.3rem 0 0;
  padding: 0.55rem clamp(1rem, 3vw, 1.6rem) 0.45rem;
  border: 3px solid var(--dk-asphalt);
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--dk-head);
  font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  box-shadow:
    inset 0 0 0 3px var(--accent),
    inset 0 0 0 5px #fff,
    6px 6px 0 var(--dk-asphalt);
}
.page .dk-notice-title:lang(en) {
  text-transform: uppercase;
}

/* ── The notice ── */
.page-body.dk-notice {
  position: relative;
  padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.15rem, 4vw, 2.5rem) clamp(1.4rem, 3vw, 2.2rem);
  border: 2px solid var(--dk-asphalt);
  border-radius: 2px;
  background:
    radial-gradient(circle at 30% 40%, rgb(0 0 0 / 0.05) 0 0.6px, transparent 1px) 0 0 / 5px 5px,
    #fffdf8;
  box-shadow: 0 14px 22px -14px rgb(0 0 0 / 0.5);
  font-size: 1.05rem;
  line-height: 1.8;
  rotate: -0.4deg;
}
.page-body.dk-notice[hidden] {
  display: none;
}
/* The two push pins. */
.page-body.dk-notice::before,
.page-body.dk-notice::after {
  content: '';
  position: absolute;
  top: 0.55rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--dk-asphalt);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 0.12rem, var(--accent) 0.15rem);
  box-shadow: 2px 3px 0 rgb(0 0 0 / 0.25);
}
.page-body.dk-notice::before {
  left: 0.8rem;
}
.page-body.dk-notice::after {
  right: 0.8rem;
  background: radial-gradient(circle at 35% 35%, #fff 0 0.12rem, var(--dk-yellow) 0.15rem);
}
.dk-notice :is(h2, h3) {
  margin: 1.8rem 0 0.5rem;
  font-family: var(--dk-head);
  font-weight: 800;
  line-height: 1.3;
}
.dk-notice h2 {
  display: inline-block;
  padding: 0 0.3em;
  background: linear-gradient(transparent 55%, rgb(255 212 59 / 0.8) 55%);
}
.dk-notice :is(ul, ol) {
  padding-left: 1.3rem;
}
.dk-notice li::marker {
  color: var(--accent);
  font-weight: 800;
}
.dk-notice img {
  border: 2px solid var(--dk-asphalt);
  border-radius: 0;
}
.dk-notice :is(td, th) {
  border: 2px solid var(--dk-asphalt);
}
.dk-notice th {
  background: var(--dk-paper);
  font-family: var(--dk-head);
}
.dk-notice a {
  color: var(--accent-ink);
  text-decoration-thickness: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .page-body.dk-notice {
    rotate: none;
  }
}

/* ── A contact form: the yellow message slip ── */
.page .contact-form {
  position: relative;
  max-width: 36rem;
  margin: 2.25rem auto 0;
  padding: clamp(1.6rem, 4vw, 2.2rem) clamp(1.1rem, 4vw, 1.9rem) clamp(1.3rem, 3vw, 1.8rem);
  border: 3px solid var(--dk-asphalt);
  border-radius: 4px;
  background: var(--dk-yellow);
  box-shadow: 6px 6px 0 var(--dk-asphalt);
}
.page .contact-form::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  width: 5rem;
  height: 1.4rem;
  translate: -50% 0;
  background: rgb(255 255 255 / 0.75);
  rotate: -3deg;
}
.page .contact-form label {
  color: var(--dk-asphalt);
}
.page .contact-form fieldset legend {
  font-family: var(--dk-head);
  font-size: 0.95rem;
  color: var(--dk-asphalt);
}
.page .contact-form .note:not([hidden]) {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--dk-asphalt);
  background: #fff;
  color: var(--dk-asphalt);
}
.page .contact-form .buy {
  box-shadow: 4px 4px 0 var(--dk-asphalt);
}

/* ── A locked page: the padlocked plate ── */
.page .page-unlock {
  position: relative;
  max-width: 30rem;
  margin: 0 auto;
  padding: 3.6rem clamp(1.1rem, 4vw, 1.9rem) 1.6rem;
  border: 3px solid var(--dk-asphalt);
  border-radius: 10px;
  background:
    repeating-linear-gradient(180deg, transparent 0 0.9rem, rgb(255 255 255 / 0.04) 0.9rem 1.1rem),
    var(--dk-asphalt);
  color: #fff;
  box-shadow: 8px 8px 0 var(--accent);
}
.page .page-unlock::before {
  content: '';
  position: absolute;
  top: -1.4rem;
  left: 50%;
  width: 3.4rem;
  height: 4rem;
  translate: -50% 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 36'%3E%3Cpath d='M8 15V10a7 7 0 0 1 14 0v5' fill='none' stroke='%23151517' stroke-width='3.5'/%3E%3Crect x='3' y='14' width='24' height='19' rx='3' fill='%23ffd43b' stroke='%23151517' stroke-width='2.5'/%3E%3Ccircle cx='15' cy='22' r='2.6' fill='%23151517'/%3E%3Cpath d='M15 23v5' stroke='%23151517' stroke-width='2.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.page .page-unlock > p:first-child {
  margin: 0 0 1rem;
  color: #e7e1d8;
  font-family: var(--dk-head);
  font-size: 1.05rem;
}
.page .page-unlock label {
  color: #fff;
}
.page .page-unlock .problem:not([hidden]) {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  background: #fff;
}
.page .page-unlock .buy {
  background: var(--dk-yellow);
  color: var(--dk-asphalt);
  box-shadow: 4px 4px 0 #fff;
}
