/* InterfaceX26 shared design system — tokens, canvas, panels, buttons, focus */

:root {
  color-scheme: light;
  --panel: rgba(246, 240, 230, 0.9);
  --card: rgba(8, 56, 74, 0.95);
  --line: rgba(134, 106, 69, 0.22);
  --text: #1b2b35;
  --muted: #736756;
  --muted-strong: #453b31;
  --screen-text: #f6efe5;
  --screen-muted: #cde4e7;
  --accent: #e88020;
  --accent-strong: #f49a3e;
  --teal: #74d9e1;
  --teal-strong: #0f5067;
  --shadow: 0 22px 56px rgba(128, 96, 54, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --display: "Notable", "Trebuchet MS", sans-serif;
  --card-title: var(--mono);
  /* Shared orange fill for .button.primary and .tag-pill */
  --ix-accent-fill: linear-gradient(
      180deg,
      rgba(248, 163, 74, 0.96),
      rgba(228, 123, 28, 0.98)
    ),
    var(--accent);
  --page-background-image: url("/interfacex26-store-background-blank.png");
  --hero-banner-image: url("/interfacex26-event-header.png");
  --ix-focus: 2px solid rgba(15, 80, 103, 0.55);
  --ix-focus-offset: 3px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--body);
  color: var(--text);
  line-height: 1.45;
  background:
    linear-gradient(180deg, rgba(248, 245, 239, 0.9), rgba(230, 222, 209, 0.96)),
    var(--page-background-image),
    linear-gradient(180deg, #f5f0e8 0%, #e4dbce 100%);
  background-repeat: no-repeat, repeat, no-repeat;
  background-size: auto, 560px auto, auto;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(146, 116, 76, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 116, 76, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 96%);
}

body::after {
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 154, 62, 0.16), transparent 30%),
    radial-gradient(circle at 88% 36%, rgba(116, 217, 225, 0.14), transparent 22%);
  filter: blur(36px);
}

button,
input,
select,
textarea,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Main content width */
.ix-shell {
  width: min(1240px, calc(100% - 24px));
  margin: 24px auto 80px;
}

.ix-panel,
.panel {
  position: relative;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.08)),
    var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.ix-panel::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.22),
    transparent 36%,
    transparent 70%,
    rgba(116, 217, 225, 0.08)
  );
  pointer-events: none;
}

.tag-pill {
  display: inline-block;
  padding: 0.08em 0.48em;
  border-radius: 999px;
  background: var(--ix-accent-fill);
  box-shadow:
    inset 0 -1px 0 rgba(116, 62, 13, 0.18),
    0 4px 10px rgba(232, 128, 32, 0.12);
  color: #2f1b09;
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: var(--ix-accent-fill);
  color: #2f1b09;
  box-shadow:
    inset 0 -2px 0 rgba(116, 62, 13, 0.18),
    0 12px 24px rgba(232, 128, 32, 0.18);
}

.button.primary-dark {
  background:
    linear-gradient(
      180deg,
      rgba(214, 118, 38, 0.98),
      rgba(168, 78, 14, 0.99)
    ),
    #9a4a0c;
  color: #fff5e8;
  box-shadow:
    inset 0 -2px 0 rgba(62, 28, 6, 0.28),
    0 10px 22px rgba(140, 62, 12, 0.24);
}

.button.secondary {
  border-color: rgba(16, 94, 122, 0.22);
  background:
    linear-gradient(180deg, rgba(20, 99, 125, 0.9), rgba(12, 72, 94, 0.94)),
    rgba(15, 80, 103, 0.92);
  color: var(--screen-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(68, 51, 29, 0.12);
}

.button.ghost {
  border-color: rgba(214, 194, 161, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--screen-text);
}

.button.done {
  border-color: rgba(116, 217, 225, 0.28);
  background: rgba(116, 217, 225, 0.14);
  color: #dff8fb;
}

/* Default visible focus (overridden by more specific rules on tag/key pages) */
:where(button, input:not([type="hidden"]), select, textarea):focus-visible {
  outline: var(--ix-focus);
  outline-offset: var(--ix-focus-offset);
}

a:focus-visible {
  outline: var(--ix-focus);
  outline-offset: var(--ix-focus-offset);
}

@media (prefers-reduced-motion: reduce) {
  .button:hover,
  .button:active {
    transform: none;
  }

  .button {
    transition-duration: 0.01ms;
  }
}
