/* The Jumpers: shared tokens and components.
   Black and white. A black room, white type set wide and light, hairline
   rules, and white paper for the things you hold: tickets, forms, cards.
   Emphasis is inversion, never colour. */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Sans Myanmar';
  src: url('../fonts/noto-sans-myanmar.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+1000-109F, U+200C-200D, U+25CC, U+A92E, U+A9E0-A9FE, U+AA60-AA7F, U+116D0-116E3;
}

:root {
  /* The room */
  --bg: #0b0b0b;
  --surface: #141414;
  --surface-hi: #1f1f1f;
  --surface-lo: #101010;
  --line: rgba(244, 244, 241, 0.16);
  --line-strong: rgba(244, 244, 241, 0.42);
  /* Type on black */
  --fg: #f4f4f1;
  --muted: #a8a8a4;
  --muted-2: #8e8e8a;
  --faint: #5c5c59;
  /* The one bright thing, and attention: both are white on black */
  --accent: #f4f4f1;
  --accent-hi: #ffffff;
  --alert: #f4f4f1;
  --alert-ink: #0b0b0b;
  /* Paper */
  --paper: #f4f4f1;
  --paper-hi: #ffffff;
  --paper-lo: #e3e3df;
  --ink: #0b0b0b;
  --ink-2: #555553;
  --ink-3: #6d6d6a;
  --hair: rgba(11, 11, 11, 0.14);
  /* The logo keeps its own colours, so it always sits on its own cream */
  --logo-cream: #fcf3e2;

  --f-text: 'Archivo', 'Noto Sans Myanmar', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: var(--f-text);

  --u: 8px;
  --gap: 20px;
  --r: 2px;
  --lift: 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 36px -22px rgba(0, 0, 0, 0.95);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 140ms;
  --t: 260ms;

  color-scheme: dark;
  scrollbar-color: var(--surface-hi) var(--bg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

/* Controls answer a tap straight away and never select their label on a long press. */
button,
summary,
[role='tab'],
.btn,
.chip {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}

input,
textarea {
  caret-color: var(--accent);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-hi);
  border: 3px solid var(--bg);
  border-radius: 8px;
}

[hidden] {
  display: none !important;
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ */
/* Type                                                                */

/* Display: Archivo at its widest and lightest, in capitals, spaced. */
.letter {
  font-family: var(--f-display);
  font-weight: 300;
  font-stretch: 125%;
  line-height: 1.04;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.letter--white {
  color: var(--fg);
}
.letter--ink {
  color: var(--ink);
}
.letter--xl {
  font-size: clamp(2.3rem, 9.6vw, 4.4rem);
}
.letter--l {
  font-size: clamp(1.8rem, 7.4vw, 3rem);
}
.letter--m {
  font-size: clamp(1.45rem, 5.4vw, 2.05rem);
}
.letter--s {
  font-size: 1.15rem;
  line-height: 1.1;
}

.gothic {
  font-family: var(--f-text);
  font-weight: 600;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  line-height: 1.3;
}

/* ------------------------------------------------------------------ */
/* Surfaces                                                            */

/* A panel on the black: a hairline frame inside a hairline edge. */
.board {
  position: relative;
  isolation: isolate;
  background-color: var(--surface);
  border-radius: var(--r);
  padding: 32px 26px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.board::before {
  content: '';
  position: absolute;
  inset: 7px;
  z-index: -1;
  border: 1px solid rgba(244, 244, 241, 0.08);
  pointer-events: none;
}

.paper {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  border-radius: var(--r);
  box-shadow: var(--lift);
}
.paper ::selection {
  background: var(--ink);
  color: var(--paper);
}
.paper :focus-visible {
  outline-color: var(--ink);
}
.paper input,
.paper textarea {
  caret-color: var(--ink);
}

.edge-code {
  font-family: var(--f-text);
  font-weight: 600;
  font-stretch: 112%;
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */

/* The primary action: a white bar with black capitals. */
.sign {
  display: inline-flex;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: none;
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out);
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.sign__face {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  min-height: 54px;
  padding: 0 1.6rem;
  background: var(--accent);
  font-family: var(--f-text);
  font-weight: 620;
  font-stretch: 118%;
  font-size: 0.86rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: background var(--t-fast);
}
@media (hover: hover) and (pointer: fine) {
  .sign:hover .sign__face {
    background: var(--accent-hi);
  }
}
.sign:active {
  transform: translateY(1px);
}
.sign:focus-visible {
  outline-color: var(--accent);
  outline-offset: 4px;
}
.sign[disabled],
.sign[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.4;
}
.sign--block {
  width: 100%;
}
.sign--block .sign__face {
  width: 100%;
  justify-content: center;
}
.sign .i {
  width: 1.15em;
  height: 1.15em;
}
.paper .sign__face {
  background: var(--ink);
  color: var(--paper);
}
@media (hover: hover) and (pointer: fine) {
  .paper .sign:hover .sign__face {
    background: var(--surface-hi);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: transparent;
  color: var(--fg);
  font-family: var(--f-text);
  font-weight: 600;
  font-stretch: 112%;
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast) var(--ease-out);
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    border-color: var(--fg);
    background: rgba(244, 244, 241, 0.06);
  }
}
.btn:active {
  transform: translateY(1px);
}
.paper .btn,
.btn--ink {
  color: var(--ink);
  border-color: rgba(11, 11, 11, 0.4);
}
@media (hover: hover) and (pointer: fine) {
  .paper .btn:hover,
  .btn--ink:hover {
    border-color: var(--ink);
    background: rgba(11, 11, 11, 0.05);
  }
}
.btn--solid,
.btn--accent {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover,
  .btn--accent:hover {
    background: #fff;
    border-color: #fff;
  }
}
.paper .btn--solid,
.btn--ink.btn--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
@media (hover: hover) and (pointer: fine) {
  .paper .btn--solid:hover {
    background: #2a2a28;
  }
}
/* Destructive confirms: solid and heavy, with the word saying what happens. */
.btn--danger,
.paper .btn--danger {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
@media (hover: hover) and (pointer: fine) {
  .btn--danger:hover,
  .paper .btn--danger:hover {
    background: #2a2a28;
  }
}
.btn--quiet {
  border-color: transparent;
}
.btn--sm {
  min-height: 36px;
  padding: 0 0.8rem;
  font-size: 0.7rem;
}
.btn--icon {
  width: 44px;
  padding: 0;
}
.btn .i {
  width: 17px;
  height: 17px;
}
.btn[disabled],
.btn[aria-busy='true'] {
  opacity: 0.45;
  pointer-events: none;
}
@media (pointer: coarse) {
  .btn--sm {
    min-height: 44px;
  }
}

.linkbtn {
  display: inline;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Forms (on paper)                                                    */

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.label {
  font-family: var(--f-text);
  font-weight: 600;
  font-stretch: 112%;
  font-size: 0.6875rem;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(11, 11, 11, 0.45);
  border-radius: var(--r);
  background: var(--paper-hi);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  transition: border-color var(--t-fast);
}
.textarea {
  min-height: 96px;
  resize: vertical;
}
.select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--ink-3);
  opacity: 1;
}
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
}
.input[aria-invalid='true'],
.select[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.hint {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.35;
  font-weight: 650;
  color: var(--ink);
}
.error .i {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  line-height: 1.4;
}
.check input {
  appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper-hi);
  cursor: pointer;
}
.check input::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--paper);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transition: transform 140ms var(--ease-out);
}
.check input:checked {
  background: var(--ink);
}
.check input:checked::before {
  transform: scale(1);
}

.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Messages                                                            */

.toasts {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(var(--toast-bottom, 16px) + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(calc(100vw - 32px), 420px);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r);
  font-weight: 560;
  line-height: 1.35;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9);
  animation: toast-in 320ms var(--ease-out);
}
.toast .i {
  width: 19px;
  height: 19px;
  margin-top: 1px;
}
/* Errors read heavier: a black bar down the card's edge. */
.toast--error {
  box-shadow:
    inset 5px 0 0 var(--ink),
    0 18px 40px -16px rgba(0, 0, 0, 0.9);
  padding-left: 20px;
  font-weight: 650;
}
.toast.is-leaving {
  animation: toast-out 200ms var(--ease-in-out) forwards;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.demo-strip {
  position: relative;
  z-index: 5;
  padding: 8px 16px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  font-family: var(--f-text);
  font-weight: 600;
  font-stretch: 112%;
  font-size: 0.6875rem;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
