/* Direction: Coastal Brokerage — ivory stock, warm bronze, Playfair titles */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #faf7f1;
  --surface: #fffdf9;
  --surface-2: #f0eade;
  --border: #e0d8c7;
  --border-strong: #b5b1ab;
  --ink: #1b1a16;
  --muted: #645c4e;
  --accent: #8d6a2a;
  --accent-hover: #785a24;
  --accent-ink: #ffffff;
  --accent-text: #7a5b22;
  --accent-strong: #523d12;
  --accent-soft: #f2e8d5;
  --accent-border: #c9b897;
  --success: #1c6f4a;
  --success-ink: #ffffff;
  --success-soft: #dfe7dd;
  --success-strong: #1c6f4a;
  --warning: #96620f;
  --warning-ink: #ffffff;
  --warning-soft: #eee5d6;
  --warning-strong: #8a5a0e;
  --danger: #ad3030;
  --danger-ink: #ffffff;
  --danger-soft: #f1dfda;
  --danger-strong: #ad3030;
  --chart-1: #8d6a2a;
  --chart-2: #5e9e4f;
  --chart-3: #02676b;
  --chart-4: #5485d3;
  --chart-5: #763b84;
  --chart-6: #cb6468;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 600;
  --display-tracking: -0.015em;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-input: 8px;
  --card-pad: 1.5rem;
  --x-on-dark: #faf7f1;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #140f06;
  --surface: #2c271f;
  --surface-2: #201b12;
  --border: #353129;
  --border-strong: #5b5751;
  --ink: #faf7f1;
  --muted: #9e9a93;
  --accent: #8d6a2a;
  --accent-hover: #9e804a;
  --accent-ink: #ffffff;
  --accent-text: #a68b59;
  --accent-strong: #a68b59;
  --accent-soft: #2f230e;
  --accent-border: #4a3816;
  --success: #1c6f4a;
  --success-ink: #ffffff;
  --success-soft: #162415;
  --success-strong: #5c997c;
  --warning: #96620f;
  --warning-ink: #ffffff;
  --warning-soft: #312108;
  --warning-strong: #ad8644;
  --danger: #ad3030;
  --danger-ink: #ffffff;
  --danger-soft: #36160f;
  --danger-strong: #ca7777;
  --chart-1: #937030;
  --chart-2: #64a455;
  --chart-3: #059298;
  --chart-4: #5b8bd9;
  --chart-5: #a264b0;
  --chart-6: #d26b6d;
}

/* Invoice ledger: tabular numerals, paper sheet, print rules. */

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.paper {
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border), 0 24px 50px -32px rgba(0, 0, 0, 0.4);
}

.rule-band {
  height: 4px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--accent) 0 14px,
    transparent 14px 24px
  );
  opacity: 0.5;
}

@keyframes sheet-in {
  from {
    transform: translateY(14px);
  }
  to {
    transform: translateY(0);
  }
}

.sheet-in {
  animation: sheet-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

html.reduced-motion .sheet-in {
  animation: none;
}

@media print {
  .no-print {
    display: none !important;
  }
  .paper {
    box-shadow: none;
    border: 0;
  }
}
