/* Unpack — The Caravan of Souls
   Light reading zone (Dec 2026): the page is warm paper with navy ink.
   The header band and the "objects" (cards, luggage tag, claim ticket)
   stay show-navy — see "dark objects" below. */
:root {
  --ground: #F5F2EC;      /* paper */
  --ground-2: #ECE7DF;    /* paper, one step down */
  --panel: #FBF9F5;       /* fields, letter, doors */
  --panel-2: #ECE7DF;
  --blue: #2A5F92;        /* deep blue: 6:1 on paper (show blue #6DA8E3 is too faint here) */
  --steel: #4E6A82;       /* dark steel: 5:1 on paper */
  --text: #1B2733;        /* navy ink */
  --muted: #3E5A73;
  --line: rgba(27, 39, 51, 0.16);
  --navy: #121E2B;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--text);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- dark objects + header band: show navy ---------- */
.site-head, .card, .ticket, .luggage-tag {
  --panel: #182838; --panel-2: #1D3044; --blue: #6DA8E3; --steel: #7A9BB5;
  --text: #EEF2F6; --muted: #A9BCCD; --line: rgba(122, 155, 181, 0.28);
  color: var(--text);
}

/* ---------- header ---------- */
.site-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 24px max(28px, calc((100% - 1180px) / 2 + 28px));
  background: var(--navy); border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: 0.02em; color: var(--text); text-decoration: none;
}
.wordmark em { font-style: italic; color: var(--steel); }
/* Shared sub-page header: Free tools menu (assets/menu.css) + Home, as on The Twelve Stages */
.site-head { align-items: center; --white: #FFFFFF; --bg: #121E2B; }
.wordmark { font-size: 28px; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.nav-tools { display: flex; align-items: center; gap: 32px; }
.nav-back {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel); text-decoration: none; transition: color .2s;
}
.nav-back::before { content: "← "; }
.nav-back:hover { color: var(--text); }

/* ---------- layout ---------- */
#app { max-width: 1180px; margin: 0 auto; padding: 40px 28px 96px; }
.screen { max-width: 720px; margin: 0 auto; }
.screen.enter { animation: rise .45s ease both; }
.screen.home, .screen.draw { max-width: 1060px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.kicker, .step, .door-meta, .card-head, .ticket-head, .ticket h3, .ticket-q h3, .arrives span, .item-n, .tag-no, .back, .exit-link, legend {
  font-family: var(--mono); font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
}
.kicker, .step { font-size: 12px; color: var(--steel); margin: 0 0 18px; }

.title {
  font-size: clamp(84px, 13vw, 168px); line-height: 0.9; font-weight: 500;
  letter-spacing: -0.01em; margin: 0 0 32px;
}
.screen-title { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; font-weight: 500; margin: 0 0 16px; }
.lede { max-width: 620px; font-size: 24px; color: var(--text); }
.lede p { margin: 0 0 14px; }
.sub { color: var(--muted); font-size: 21px; margin: 0 0 28px; max-width: 640px; }
.sub.center { text-align: center; margin: 32px auto; }
.fine { font-family: var(--serif); font-size: 17px; color: var(--steel); margin: 14px 0 0; font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border: 1px solid var(--blue); border-radius: var(--radius);
  background: var(--blue); color: var(--ground);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, opacity .15s;
}
.btn:hover { transform: translateY(-1px); background: #234F7A; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: rgba(42, 95, 146, 0.08); }
.link {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--blue);
  font-family: var(--serif); font-size: 20px; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(42, 95, 146, 0.4);
}
.back {
  background: none; border: 0; padding: 6px 0; margin: 0 0 22px; cursor: pointer;
  color: var(--steel); font-size: 12px;
}
.back:hover { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }

/* ---------- home ---------- */
.home { padding-top: 24px; }
.doors { display: grid; grid-template-columns: 1fr; gap: 22px; margin: 56px 0 8px; }
@media (min-width: 860px) { .doors { grid-template-columns: 1fr 1fr; gap: 28px; } }
.door {
  position: relative; padding: 34px 34px 36px; border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
}
.door h2 { font-size: 38px; font-weight: 500; line-height: 1.1; margin: 6px 0 12px; }
.door p { color: var(--muted); margin: 0 0 26px; }
.door-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--steel); margin: 0 0 8px !important; }
.door--tag {
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  background: var(--panel-2);
}
.door--tag::after {
  content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px;
  background: linear-gradient(225deg, transparent 50%, var(--line) 50%, var(--line) calc(50% + 1px), transparent calc(50% + 1px));
}
.tag-hole {
  position: absolute; top: 26px; right: 58px; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--steel); background: var(--ground);
}
.door--tag .door-meta { padding-right: 72px; }

/* ---------- draw ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 8px 0 0; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.card {
  display: flex; flex-direction: column; min-height: 300px; padding: 26px 26px 30px;
  border: 1px solid var(--line); border-radius: 10px;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -22px rgba(18, 30, 43, 0.55);
}
.enter .card { animation: deal .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 120ms); }
.card:nth-child(1) { --tilt: -1deg; }
.card:nth-child(2) { --tilt: 0.6deg; }
.card:nth-child(3) { --tilt: -0.4deg; }
@keyframes deal { from { opacity: 0; transform: translateY(24px) rotate(var(--tilt, 0)); } to { opacity: 1; transform: none; } }
.card-head { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--blue); }
.card-head span:last-child { color: var(--steel); white-space: nowrap; }
.card-q { margin: auto 0 0; padding-top: 40px; font-size: 30px; line-height: 1.22; font-weight: 500; }
.deeper { margin-top: 26px; color: var(--muted); }

/* ---------- bag: naming ---------- */
.starters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.starter {
  border: 1px dashed var(--line); background: transparent; border-radius: 999px;
  padding: 6px 14px; font-size: 17px; font-style: italic; color: var(--muted); cursor: pointer;
}
.starter:hover { border-color: var(--steel); color: var(--text); }
.items { list-style: none; padding: 0; margin: 0 0 10px; }
.item-row { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); }
.item-n { font-size: 12px; color: var(--steel); width: 22px; flex: none; }
.item-input {
  flex: 1; border: 0; background: transparent; padding: 16px 0; font-size: 24px; font-weight: 500;
  line-height: 1.3; resize: none; overflow: hidden; display: block;
}
.item-input::placeholder { color: rgba(62, 90, 115, 0.6); font-style: italic; }
.item-input:focus { outline: none; }
.item-row:focus-within { border-bottom-color: var(--blue); }
.add { margin-top: 14px; font-size: 18px; }

/* ---------- bag: one piece ---------- */
.luggage-tag {
  position: relative; margin: 6px 0 34px; padding: 26px 60px 26px 30px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
}
.luggage-tag .tag-hole { top: 50%; right: 34px; transform: translateY(-50%); }
.luggage-tag p { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 500; }
.tag-no { display: block; font-size: 11px; color: var(--steel); margin-bottom: 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 30px; }
legend { font-size: 12px; color: var(--blue); margin-bottom: 12px; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  min-height: 46px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 19px;
  transition: border-color .15s, background .15s;
}
.pill:hover { border-color: var(--steel); }
.pill.is-on { background: var(--blue); border-color: var(--blue); color: var(--ground); }

/* ---------- claim ticket ---------- */
.ticket {
  position: relative; margin: 12px 0 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.ticket-head {
  display: flex; justify-content: space-between; padding: 18px 28px; font-size: 11px; color: var(--steel);
  border-bottom: 1px solid var(--line);
}
.ticket-body { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 26px 28px 30px; }
@media (min-width: 640px) { .ticket-body { grid-template-columns: repeat(3, 1fr); } }
.ticket h3 { font-size: 11px; color: var(--blue); margin: 0 0 10px; font-weight: 400; }
.ticket ul { margin: 0; padding: 0; list-style: none; }
.ticket li { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
.ticket .empty { margin: 0; color: var(--steel); font-style: italic; font-size: 18px; }
.ticket-q {
  position: relative; padding: 30px 28px 32px; border-top: 2px dashed rgba(122, 155, 181, 0.45);
  background: var(--panel-2);
}
.ticket-q::before, .ticket-q::after {
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--ground);
}
.ticket-q::before { left: -12px; } .ticket-q::after { right: -12px; }
.ticket-q p { margin: 0; font-size: 32px; line-height: 1.2; font-style: italic; font-weight: 500; }
.ticket-foot {
  padding: 14px 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--steel); text-transform: uppercase; border-top: 1px solid var(--line);
}

/* ---------- letter ---------- */
.paper { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.paper textarea {
  display: block; width: 100%; border: 0; background:
    repeating-linear-gradient(transparent 0 37px, rgba(27, 39, 51, 0.1) 37px 38px);
  padding: 18px 24px; font-size: 22px; line-height: 38px; resize: vertical; font-weight: 500;
}
.paper textarea:focus { outline: none; }
.paper:focus-within { border-color: var(--blue); }
.arrives { color: var(--muted); margin: 16px 0 26px; }
.arrives span { font-size: 11px; color: var(--blue); margin-right: 10px; }
.field { display: block; margin: 0 0 18px; }
.field span { display: block; color: var(--muted); margin-bottom: 8px; }
.field input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); font-size: 20px;
}
.field input:focus { outline: none; border-color: var(--blue); }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 19px; cursor: pointer; }
.check input { margin-top: 7px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.form-error { min-height: 1em; color: #A8322D; margin: 14px 0 0; font-size: 19px; }
.preview-note { color: var(--blue); }

/* ---------- privacy at the top of Baggage Claim ---------- */
.privacy-top { max-width: 620px; margin: 8px 0 36px; padding: 18px 22px; border: 1px solid var(--blue); border-left-width: 3px; background: rgba(42,95,146,.05); }
.privacy-top h2 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.privacy-top p { margin: 0; color: var(--text); font-size: 19px; line-height: 1.5; }
.privacy-top details { margin-top: 10px; }
.privacy-top summary { cursor: pointer; color: var(--blue); font-size: 17px; list-style: none; width: fit-content; }
.privacy-top summary::-webkit-details-marker { display: none; }
.privacy-top details[open] summary { margin-bottom: 8px; }
.privacy-top ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 17px; }
.privacy-top li { margin-bottom: 6px; }

/* ---------- private ---------- */
.private { max-width: 620px; margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.private h2 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.private p { margin: 0; color: var(--text); font-size: 20px; }
.private details { margin-top: 12px; }
.private summary { cursor: pointer; color: var(--blue); font-size: 18px; list-style: none; width: fit-content; }
.private summary::-webkit-details-marker { display: none; }
.private details[open] summary { margin-bottom: 8px; }
.private ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 18px; }
.private li { margin-bottom: 8px; }
.private--small { margin: 22px 0 0; padding-top: 18px; }
.private--small p { color: var(--muted); font-size: 18px; }
.private-note { margin: 0; color: var(--steel); font-size: 16px; font-style: italic; }
.ticket + .private-note { margin-top: 12px; text-align: center; }

/* ---------- safety ---------- */
.safety .sub { color: var(--text); font-size: 23px; }

/* ---------- exit ---------- */
.exit {
  margin: 72px 0 0; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: baseline;
}
.exit p { margin: 0; color: var(--muted); font-size: 19px; max-width: 620px; }
.exit strong { color: var(--text); font-weight: 600; }
.exit-link { font-size: 12px; text-decoration: none; white-space: nowrap; }

.noscript { max-width: 640px; margin: 40px auto; padding: 0 28px; color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 20px; }
  #app { padding: 28px 20px 80px; }
  .site-head { padding: 18px 20px; }
  .wordmark { font-size: 17px; }
  .nav-tools { gap: 16px; }
  .nav-back { font-size: 11.5px; letter-spacing: .08em; }
  .door { padding: 28px 24px 30px; }
  .card { min-height: 220px; }
  .card-q { font-size: 27px; padding-top: 28px; }
  .luggage-tag p { font-size: 26px; }
  .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
