@font-face {
  font-family: TGText;
  src: url('/assets/body.woff');
}
@font-face {
  font-family: TGDisplay;
  src: url('/assets/montserrat.woff');
  font-weight: 100 900;
}
@font-face {
  font-family: VoucherText;
  src: url('./montserrat-print.woff');
}
@font-face {
  font-family: VoucherHeading;
  src: url('./montserrat-heading.woff');
}
:root {
  color-scheme: dark;
  --green: #78ff00;
  --line: #494c45;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: #101110;
  color: #f5f5ee;
  font:
    18px/1.48 TGText,
    Arial,
    sans-serif;
}
header,
main,
footer {
  max-width: 1240px;
  margin: auto;
  padding: 20px clamp(20px, 5vw, 65px);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  margin: 32px 0 42px;
}
.voucher-frame {
  margin: 0;
  min-width: 0;
}
.occasion {
  color: var(--green);
  font-weight: 700;
  margin: 0 0 12px;
}
.gift-action {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 11px 20px;
  border-radius: 3px;
  background: var(--green);
  color: #101110;
  font-weight: 700;
  text-decoration: none;
}
.gift-action:hover { background: #adff65; }
.giving { border-top: 1px solid var(--line); padding: 26px 0; max-width: 720px; }
.giving p { max-width: 62ch; }
#vyber { scroll-margin-top: 18px; }
.voucher-frame figcaption {
  color: #c3c6bd;
  font-size: 0.9rem;
  margin-top: 4px;
}
.voucher-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #c3c6bd;
  text-align: right;
  font-size: 0.95rem;
  cursor: zoom-in;
}
.voucher-zoom canvas {
  display: block;
  background: #f7f8f2;
  width: 100%;
  height: auto;
  box-shadow: 0 10px 24px #0005;
}
.voucher-zoom span {
  display: inline-block;
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.voucher-zoom:disabled {
  opacity: 1;
  cursor: default;
}
#voucher-dialog {
  max-width: min(94vw, 1050px);
  max-height: 94dvh;
  padding: 14px;
  background: #171b17;
  border: 1px solid #51584f;
}
#voucher-dialog::backdrop {
  background: #080b09dc;
}
#voucher-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76dvh;
  object-fit: contain;
}
#close-voucher {
  margin: 0 0 12px auto;
  font-size: 1rem;
  padding: 8px 14px;
}
.intro p {
  max-width: 470px;
}
h1,
h2,
h3 {
  font-family: TGDisplay, Arial, sans-serif;
  line-height: 1.06;
  margin: 0 0 20px;
}
h1 {
  text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}
em {
  color: var(--green);
  font-style: normal;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
h3 {
  font-size: 1.5rem;
}
.order {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  max-width: 720px;
}
label,
dt {
  display: block;
  font-weight: bold;
}
select,
input {
  font: inherit;
  width: 100%;
  max-width: 540px;
  padding: 12px;
  background: #1a1c19;
  border: 1px solid #83877c;
  color: inherit;
  border-radius: 4px;
}
.hint,
dt,
footer {
  color: #c3c6bd;
}
.hint {
  margin: 0.45rem 0 1.4rem;
}
button {
  display: block;
  cursor: pointer;
  background: var(--green);
  color: #101110;
  font:
    700 1rem TGText,
    Arial,
    sans-serif;
  padding: 15px 20px;
  border: 0;
  border-radius: 3px;
  margin: 20px 0;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.transfer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
dl {
  margin: 0;
}
dd {
  margin: 0 0 8px;
  font-size: 1.3rem;
}
footer {
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
@media (max-width: 640px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 18px 0 24px;
  }
  .transfer {
    gap: 12px;
  }
  .order {
    padding: 24px 0;
  }
}
