/* Theme from the Aavishkar logo: deep maroon on warm cream, with zari gold. */
:root {
  --maroon: #541c1d;
  --maroon-deep: #3a1213;
  --gold: #b8862b;
  --gold-soft: #e9d3a1;
  --bg: #faf6f0;
  --card: #fffdf9;
  --text: #2b1a1a;
  --muted: #7b6a64;
  --line: #e8ddd0;
  --accent: #541c1d;
  --done: #541c1d;
  --bad: #a4262c;
  --on-maroon: #fbf3ea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --maroon: #6b2527;
    --maroon-deep: #4a181a;
    --gold: #e0b25a;
    --gold-soft: #5a4520;
    --bg: #1a1011;
    --card: #251718;
    --text: #f3e9e4;
    --muted: #b3a099;
    --line: #3a2a2b;
    --accent: #e6a9ab;
    --done: #e6a9ab;
    --bad: #f08a8f;
  }
  .logo, .splash-logo, .brandfoot .mark-logo { filter: invert(0.88) sepia(0.2) hue-rotate(-10deg) brightness(1.1); }
}
* { box-sizing: border-box; }
body {
  -webkit-touch-callout: none;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: var(--card);
  border-bottom: 3px solid var(--gold);
}
.logo { height: 64px; width: auto; display: block; user-select: none; pointer-events: none; }
.tag { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
main { max-width: 680px; margin: 0 auto; padding: 16px; }
.cols { display: block; }
.note { color: var(--muted); }
.splash { text-align: center; padding: 56px 0; }
.splash-logo { width: 224px; max-width: 70%; height: auto; display: block; margin: 0 auto 8px; opacity: 0.9; user-select: none; pointer-events: none; }
.brandfoot {
  text-align: center; padding: 18px 0 8px; margin-top: 6px;
  border-top: 1px solid var(--line);
}
.brandfoot .mark-logo {
  width: 150px; height: 100px; margin: 0 auto 4px;
  background: url("logo.png") no-repeat center / contain;
  user-select: none; -webkit-user-select: none;
}
.brandfoot p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.brandfoot .gold { color: var(--gold); letter-spacing: 0.14em; font-size: 0.72rem; text-transform: uppercase; font-weight: 700; }

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  color: var(--on-maroon);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}
/* The logo as a light watermark in the corner, behind the text. */
.hero::after {
  content: ""; position: absolute; right: -14px; bottom: -22px;
  width: 190px; height: 128px; pointer-events: none;
  background: url("logo.png") no-repeat center / contain;
  filter: brightness(0) invert(1); opacity: 0.1;
}
.hero > * { position: relative; z-index: 1; }
.hero .no { font-size: 0.8rem; opacity: 0.8; letter-spacing: 0.06em; }
.hero h1 { font-size: 1.35rem; margin: 2px 0 10px; }
.chip-status {
  display: inline-block; background: var(--gold); color: #2b1a1a;
  font-weight: 700; border-radius: 999px; padding: 4px 12px; font-size: 0.9rem;
}
.chip-status.bad { background: #f3c4c6; color: #6b1216; }
.hero .eta { margin-top: 12px; font-size: 0.95rem; }
.hero .eta small { display: block; opacity: 0.8; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.card > h2 { font-size: 0.8rem; margin: 0 0 8px; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 12px; padding: 0 0 14px; position: relative; color: var(--muted); }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: ""; position: absolute; left: 10px; top: 22px; bottom: -2px;
  width: 2px; background: var(--line);
}
.steps li:last-child::before { display: none; }
.steps li.done::before { background: var(--done); }
.steps .dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); background: var(--card);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; z-index: 1;
}
.steps li.done { color: var(--text); }
.steps li.done .dot { background: var(--done); border-color: var(--done); color: var(--card); }
.steps li.now { color: var(--text); font-weight: 700; }
.steps li.now .dot { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
.steps .when { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { text-align: right; font-weight: 600; }

.item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.item:first-of-type { padding-top: 4px; }
/* Design pictures are display only: not links, not images, nothing to click,
   drag or select. The picture is a background, with a clear layer on top. */
.pic {
  position: relative; flex: none; width: 104px; height: 130px;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background-color: var(--line); background-size: cover; background-position: center;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.pic::after { content: ""; position: absolute; inset: 0; }
.pic.placeholder {
  background-color: var(--card);
  background-image: url("logo.png");
  background-size: 74% auto; background-repeat: no-repeat;
}
.pic.placeholder::before {
  content: ""; position: absolute; inset: 0; background: var(--card); opacity: 0.35;
}
.item h3 { font-size: 1.02rem; margin: 0; }
.item .meta { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; background: var(--bg); }
.chip.extra { border-color: var(--gold); color: var(--gold); background: transparent; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.btn {
  appearance: none; border: 1px solid var(--maroon); background: var(--maroon); color: var(--on-maroon);
  border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn.small { padding: 6px 14px; font-size: 0.88rem; font-weight: 600; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.privacy { color: var(--muted); font-size: 0.8rem; text-align: center; padding: 4px 0 28px; }
.banner { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-weight: 600; background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }

@media (max-width: 380px) {
  .pic { width: 84px; height: 108px; }
  .tag { display: none; }
}
/* Desktop: two columns, a larger header, larger pictures. */
@media (min-width: 960px) {
  .top { padding: 12px max(24px, calc((100vw - 1080px) / 2)); }
  .logo { height: 84px; }
  main { max-width: 1128px; padding: 28px 24px 8px; }
  .cols {
    display: grid; grid-template-columns: minmax(320px, 400px) 1fr;
    gap: 0 24px; align-items: start;
  }
  .hero { padding: 22px; }
  .hero h1 { font-size: 1.6rem; }
  .pic { width: 132px; height: 165px; }
  .hero::after { width: 240px; height: 160px; }
  .item h3 { font-size: 1.12rem; }
  .privacy { padding-bottom: 36px; }
}

/* Need something? */
[hidden] { display: none !important; }
.ask { display: flex; flex-wrap: wrap; gap: 8px; }
.reqform { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.reqform h3 { margin: 0 0 8px; font-size: 1rem; }
.field { display: block; margin-bottom: 10px; }
.field span { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 0 0 6px; }
.opt { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; background: var(--bg); }
.optrow, .chip.pick { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.optrow span { font-weight: 600; font-size: 0.95rem; }
.optrow input, .chip.pick input { width: 18px; height: 18px; accent-color: var(--maroon); flex: none; }
.optmore { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.chip.pick { padding: 4px 10px 4px 8px; font-size: 0.85rem; }
.formmsg { min-height: 1.2em; margin: 0 0 6px; color: var(--bad); font-size: 0.9rem; }
.thanks { margin: 0; font-weight: 600; color: var(--accent); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* Capture deterrents (see app.js): a faint trace mark, hidden when away. */
.mark { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 50; }
.mark-inner {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 54px 40px;
  transform: rotate(-24deg); opacity: 0.075; color: var(--text);
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
  user-select: none;
}
.away main, .away .top { visibility: hidden; }

/* Printing is switched off. */
@media print {
  body > * { display: none !important; }
  body::before { content: "Printing is turned off for this page."; display: block; padding: 24px; color: #000; }
}
