/* The Paper Plane Project: float-glass greens, ink, and one blue for "yours". */
:root {
  --glass: #e7eeeb;      /* page: pale float-glass */
  --pane: #f6f9f8;       /* raised surfaces */
  --edge: #4d786e;       /* the green you see on a glass edge */
  --ink: #15211f;
  --muted: #56655f;
  --faint: #c4d3ce;      /* unsold dots, hairlines */
  --yours: #2a38c4;      /* signature-ink blue: your plane */
  --alert: #a5321f;
  --display: "Gloock", "Iowan Old Style", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --glass: #101a18; --pane: #17231f; --edge: #86b3a8; --ink: #e6efec; --muted: #9db0aa; --faint: #2c3d38; --yours: #8f9bff; --alert: #f08a76;
  }
}
:root[data-theme="dark"] { --glass: #101a18; --pane: #17231f; --edge: #86b3a8; --ink: #e6efec; --muted: #9db0aa; --faint: #2c3d38; --yours: #8f9bff; --alert: #f08a76; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--glass); color: var(--ink);
  font: 400 17px/1.55 var(--text);
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--yours); outline-offset: 3px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 28px 16px 80px; }
.masthead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; color: var(--muted); }
.masthead a { text-decoration: none; }
.masthead a:hover { text-decoration: underline; }
@media (max-width: 560px) { .masthead span { display: none; } }

h1 {
  font: 400 clamp(44px, 9vw, 92px)/0.95 var(--display);
  letter-spacing: -0.01em; margin: 56px 0 20px; max-width: 11ch;
}
.lede { max-width: 34em; font-size: 19px; margin: 0 0 8px; }
.small { font-size: 15px; color: var(--muted); max-width: 40em; }

/* The edition: 500 dots, one per plane. */
.edition { margin: 48px 0 12px; }
.dots {
  display: grid; grid-template-columns: repeat(25, 1fr); gap: 7px;
  list-style: none; padding: 0; margin: 0; max-width: 720px;
}
.dots li { aspect-ratio: 1; border-radius: 50%; background: var(--faint); }
.dots li.sold { background: var(--ink); }
.dots li.held { background: transparent; box-shadow: inset 0 0 0 2px var(--edge); }
.dots li.mine { background: var(--yours); box-shadow: none; }
.dots li.mine.arrive { animation: arrive 900ms cubic-bezier(.2,.7,.2,1) 1; }
@keyframes arrive { 0% { transform: scale(2.6); opacity: 0; } 60% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1); } }
@media (max-width: 560px) { .dots { grid-template-columns: repeat(20, 1fr); gap: 5px; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); margin: 14px 0 0; padding: 0; list-style: none; }
.legend span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }

/* Steps */
.panel { margin-top: 40px; max-width: 560px; }
.panel h2 { font: 400 28px/1.15 var(--display); margin: 0 0 10px; }
label { display: block; font-weight: 600; font-size: 15px; margin: 18px 0 6px; }
input[type=email], input[type=text], input[type=tel], input[type=search], input[type=number] {
  width: 100%; font: inherit; padding: 12px 14px; color: var(--ink);
  background: var(--pane); border: 1.5px solid var(--faint); border-radius: 6px;
}
input:focus { border-color: var(--edge); outline: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
button {
  font: 600 17px/1 var(--text); padding: 15px 22px; border-radius: 6px; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--glass);
}
button.quiet { background: transparent; color: var(--ink); border-color: var(--faint); font-weight: 500; }
button:disabled { opacity: .5; cursor: progress; }
.error { color: var(--alert); font-size: 15px; margin: 12px 0 0; min-height: 1em; }

/* Your plane */
.yours { margin-top: 40px; }
.ticket { display: grid; grid-template-columns: auto 1fr; gap: 4px 28px; align-items: end; }
.ticket .no { font: 400 clamp(28px, 5vw, 40px)/1 var(--display); color: var(--yours); }
.ticket .price { font: 400 clamp(84px, 20vw, 200px)/0.82 var(--display); color: var(--yours); letter-spacing: -0.02em; grid-row: span 2; }
.ticket .of { color: var(--muted); font-size: 15px; }
.clock { margin: 28px 0 0; max-width: 560px; }
.clock .bar { height: 4px; background: var(--faint); border-radius: 2px; overflow: hidden; }
.clock .bar i { display: block; height: 100%; background: var(--yours); transform-origin: left; }
.clock p { margin: 8px 0 0; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.clock.low .bar i { background: var(--alert); }
.clock.low p { color: var(--alert); }

fieldset { border: 0; padding: 0; margin: 26px 0 0; }
legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--faint); font-weight: 400; margin: 0; cursor: pointer; }
.choice:last-child { border-bottom: 1px solid var(--faint); }
.choice input { margin-top: 5px; accent-color: var(--yours); width: 18px; height: 18px; flex: none; }
.choice b { font-weight: 600; }
.choice .amt { margin-left: auto; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.total { display: flex; justify-content: space-between; margin-top: 18px; font-size: 19px; font-variant-numeric: tabular-nums; }

#pay { margin-top: 28px; min-height: 120px; }
.mockpay { background: var(--pane); border: 1.5px dashed var(--edge); border-radius: 8px; padding: 20px; }
.mockpay p { margin: 0 0 6px; }

.notice { margin-top: 40px; max-width: 560px; padding: 20px 0; border-top: 2px solid var(--ink); }
.notice h2 { font: 400 28px/1.15 var(--display); margin: 0 0 8px; }

footer { margin-top: 80px; font-size: 14px; color: var(--muted); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .dots li.mine.arrive { animation: none; } }

/* Photos of the planes */
.planes { margin: 40px 0 0; display: grid; gap: 12px; max-width: 720px; }
.planes.many { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: none; }
.planes img { width: 100%; height: auto; display: block; border-radius: 4px; background: var(--faint); }

/* Coming-soon message */
.soon { font: 400 clamp(24px, 3.4vw, 32px)/1.25 var(--display); margin: 0; max-width: 24em; }
