/* League Stay — coming soon. A ticket: main body plus a tear-off stub. Written by hand. */

:root {
  --bg: #eef1f7;
  --card: #ffffff;
  --ink: #16203a;
  --muted: #66708c;
  --line: #e2e6f0;
  --navy: #1d2b50;
  --amber: #e0a33e;
  --stub: #1d2b50;
  --on-stub: #f4f6fb;
  --radius: 18px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px); }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 20px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  font-size: .82rem;
}
.brand:hover { text-decoration: none; }
.brand b {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--navy); color: var(--amber);
  display: grid; place-items: center;
  font-size: .74rem; font-weight: 800;
}
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--muted); font-size: .85rem; }
.top nav a:hover, .top nav a.active { color: var(--navy); }

/* the ticket */
.ticket {
  display: grid;
  grid-template-columns: 1fr 128px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 50px rgba(22, 32, 58, .10);
  overflow: hidden;
  margin-bottom: clamp(26px, 4vw, 40px);
}
.body { padding: clamp(24px, 4vw, 46px); }

.stub {
  position: relative;
  background: var(--stub);
  color: var(--on-stub);
  display: flex; align-items: center; justify-content: center;
  padding: 22px 0;
}
.stub::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  border-left: 2px dashed rgba(255, 255, 255, .34);
}
.stub span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
  white-space: nowrap;
}

.chip {
  display: inline-block; margin: 0 0 18px;
  padding: 5px 13px; border-radius: 6px;
  background: #fdf3e2; color: #96631a;
  font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
}
h1 {
  margin: 0 0 18px;
  max-width: 22ch;
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 1.04; letter-spacing: -.042em; font-weight: 820;
}
h1 span { color: var(--navy); box-shadow: inset 0 -.3em 0 #fdf3e2; }
.lede { margin: 0 0 14px; color: #35405e; }
.lede.quiet { color: var(--muted); }

.dash { border: 0; border-top: 2px dashed var(--line); margin: clamp(22px, 3.4vw, 32px) 0; }

/* form */
h2 {
  margin: 0 0 4px;
  font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.hint { margin: 0 0 20px; color: var(--muted); font-size: .89rem; }

.field { margin-bottom: 15px; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: .78rem; font-weight: 620; color: #2d3757;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: .96rem;
  color: var(--ink);
  background: #f8f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(29, 43, 80, .10);
}
.field .invalid { border-color: #b23a2f; background: #fff6f4; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 32px;
  font: inherit; font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: var(--navy);
  border: 0; border-radius: 10px;
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.btn:hover { background: #16223f; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 12px 0 0; min-height: 1.2em; font-size: .88rem; }
.status.ok { color: #1f7a4d; font-weight: 600; }
.status.err { color: #b23a2f; font-weight: 600; }

/* facts row under the ticket */
.rowline {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rowline > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.rowline dt {
  color: var(--muted);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 5px;
}
.rowline dd { margin: 0; font-weight: 700; font-size: .94rem; word-break: break-word; }

/* footer */
.base {
  margin-top: clamp(28px, 4vw, 44px);
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: .83rem;
}
.base nav { display: flex; gap: 20px; }
.base a { color: var(--muted); }
.base a:hover { color: var(--navy); }
.base p { margin: 0; }

/* legal */
.doc { max-width: 820px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px); }
.doc .sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 50px rgba(22, 32, 58, .08);
  padding: clamp(26px, 4.4vw, 44px);
}
.doc h1 { margin: 14px 0 12px; font-size: clamp(1.9rem, 4.6vw, 2.5rem); }
.stamp {
  display: inline-block; margin: 0 0 28px;
  padding: 5px 13px; border-radius: 6px;
  background: #fdf3e2; color: #96631a; font-size: .78rem;
}
.doc h2 {
  margin: 30px 0 10px;
  font-size: 1.04rem; font-weight: 770; letter-spacing: -.015em;
  text-transform: none; color: var(--ink);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: #35405e; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: .5em; }
.doc-actions {
  margin-top: 38px; padding-top: 20px;
  border-top: 2px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.soft { background: #fdf3e2; color: #96631a; }
.soft:hover { background: #f8e7ca; }

@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; }
  .stub { padding: 0 22px; min-height: 64px; }
  .stub::before { left: 0; right: 0; top: 0; bottom: auto; height: 0;
                  border-left: 0; border-top: 2px dashed rgba(255, 255, 255, .34); }
  .stub span { writing-mode: horizontal-tb; transform: none; letter-spacing: .2em; }
  .rowline { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .base { flex-direction: column; }
}
