/* HFC Berlin Vereinsshop: "flight strip" look. Paper, navy ink, windsock orange. */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --card: #fffdf8;
  --ink: #12213b;
  --ink-soft: #5b6478;
  --line: #d8d1c1;
  --sky: #2f6fb3;
  --sky-soft: #dbe8f5;
  --signal: #e2561b;
  --signal-ink: #ffffff;
  --ok: #2e7d4f;
  --ok-soft: #dcefe3;
  --warn-soft: #fbe7d6;
  --mute-soft: #e7e3da;
}

html { -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper) 0 0),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(18, 33, 59, .035) 31px 32px);
  background-blend-mode: normal, multiply;
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

.font-display { font-family: "Big Shoulders Display", "IBM Plex Sans", sans-serif; font-weight: 800; letter-spacing: .01em; }
.font-mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

#site-header { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 20; }
#site-header .text-ink-soft { color: #9aa6bf; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--signal); color: var(--signal-ink); border-radius: 8px; transform: rotate(-8deg);
}
.nav-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 .75rem; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: #c9d1e2; transition: background .15s, color .15s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-link.is-active { color: #fff; background: rgba(255, 255, 255, .1); }

#site-footer { border-top: 1px dashed var(--line); }
.footer-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.footer-link:hover { color: var(--ink); text-decoration-color: currentColor; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }

/* Product card: a luggage/flight strip with a punched hole */
.strip { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.strip:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(18, 33, 59, .45); }
.strip .media { aspect-ratio: 1 / 1; background: var(--paper-2); display: block; }
.strip .media img { width: 100%; height: 100%; object-fit: cover; }
.strip .meta { border-top: 1px dashed var(--line); }
img.is-fallback { object-fit: contain !important; padding: 18%; opacity: .9; }

.code { font-family: "IBM Plex Mono", monospace; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.badge {
  display: inline-flex; align-items: center; gap: .35rem; font-family: "IBM Plex Mono", monospace;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .28rem .55rem; border-radius: 6px; font-weight: 600;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending { background: var(--sky-soft); color: var(--sky); }
.badge-booked { background: var(--ok-soft); color: var(--ok); }
.badge-cancelled { background: var(--mute-soft); color: var(--ink-soft); }
.badge-out { background: var(--ink); color: var(--paper); }
.badge-low { background: var(--warn-soft); color: var(--signal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.25rem;
  border-radius: 10px; font-weight: 600; transition: transform .1s, background .15s, opacity .15s; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { background: #c94a14; }
.btn-primary:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.chip {
  min-height: 48px; padding: .4rem .9rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card);
  text-align: left; transition: border-color .15s, background .15s;
}
.chip:hover:not(:disabled) { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] .chip-sub { color: #b8c2d6; }
.chip { display: inline-flex; align-items: center; gap: .5rem; }
.chip-size { min-width: 56px; justify-content: center; }
.chip.is-out:not([aria-pressed="true"]) { color: var(--ink-soft); border-style: dashed; }
.chip.is-out:not([aria-pressed="true"]) span:last-child { text-decoration: line-through; }
.chip:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); flex: none; }
.chip-sub { font-size: .72rem; color: var(--ink-soft); font-family: "IBM Plex Mono", monospace; }

.stepper { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.stepper button { width: 48px; height: 48px; font-size: 1.3rem; font-weight: 600; }
.stepper button:disabled { opacity: .3; }
.stepper output { min-width: 48px; display: grid; place-items: center; font-family: "IBM Plex Mono", monospace; font-weight: 600; border-inline: 1.5px solid var(--ink); }

.notice {
  border-left: 4px solid var(--signal); background: var(--warn-soft); border-radius: 0 10px 10px 0; padding: .85rem 1rem;
}

input.field {
  width: 100%; min-height: 52px; padding: 0 1rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card);
  font-size: 1rem;
}
input.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sky-soft); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Page-load reveal */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .reveal, .strip { animation: none; transition: none; } }

/* Runway hero stripe */
.runway {
  background:
    repeating-linear-gradient(90deg, rgba(244,241,234,.55) 0 28px, transparent 28px 56px) left bottom 12px / 100% 3px no-repeat,
    linear-gradient(var(--signal), var(--signal)) left bottom / 100% 4px no-repeat,
    var(--ink);
}
.skeleton { background: linear-gradient(90deg, var(--paper-2), var(--card), var(--paper-2)); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }
