/* Hallmark · redesign: Vesparion Intranet · genre: modern-minimal (corporate)
 * macrostructure: Workbench (unchanged) · theme: custom "Oxblood Masthead"
 * vibe: dated hospitality-brand corporate intranet, warm + light, serif logotype
 * paper: light (L 97%) · display: serif (Charter) · accent: warm oxblood (hue 24)
 */

:root {
  /* Paper & Base — warm parchment, IT never updated it past the brand refresh */
  --color-paper-base: oklch(97% 0.010 75);
  --color-paper-2: oklch(94% 0.012 70);
  --color-paper-3: oklch(90% 0.013 66);
  --color-paper-4: oklch(85% 0.015 62);

  /* Text */
  --color-text-primary: oklch(24% 0.020 30);
  --color-text-secondary: oklch(41% 0.018 30);
  --color-text-tertiary: oklch(55% 0.014 32);
  --color-text-muted: oklch(67% 0.010 34);

  /* Accent — oxblood (the resort brand colour, reused on the internal tools) */
  --color-accent: oklch(38% 0.15 24);
  --color-accent-dim: oklch(90% 0.028 24);
  --color-accent-light: oklch(46% 0.16 24);
  --color-accent-on: oklch(98% 0.006 75);

  /* Secondary accent — brass, used only for the pinned badge */
  --color-gold: oklch(60% 0.12 78);
  --color-gold-dim: oklch(92% 0.03 78);

  /* Semantic */
  --color-success: oklch(45% 0.12 145);
  --color-error: oklch(48% 0.18 22);
  --color-warning: oklch(58% 0.13 75);
  --color-info: oklch(52% 0.08 224);

  /* Borders & Dividers */
  --color-border: oklch(80% 0.013 60);
  --color-border-dim: oklch(89% 0.011 65);

  /* Typography — a legacy corporate pairing: serif logotype, plain OS sans body */
  --font-display: "Charter", "Bitstream Charter", "Sitka Text", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Consolas, "Roboto Mono", monospace;

  /* Spacing (4pt scale) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  /* Text Sizes */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 15px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 20px;
  --text-3xl: 24px;
  --text-4xl: 30px;

  /* Line Heights */
  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* Durations & Easing */
  --dur-instant: 100ms;
  --dur-quick: 150ms;
  --dur-standard: 200ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);

  /* Radius — tighter, boxier than a modern SaaS product */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
}

/* Base reset */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  background: var(--color-paper-base);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease-out);
}

a:hover {
  color: var(--color-accent-light);
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: var(--lh-tight);
  font-family: var(--font-body);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* Button base */
button, input[type="submit"] {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Input base */
input, select, textarea {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-paper-base);
  color: var(--color-text-primary);
  padding: var(--space-md) var(--space-lg);
  transition: border-color var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-dim);
}

input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

/* Code/mono text */
code, kbd, samp {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background: var(--color-paper-3);
  color: var(--color-accent);
  padding: 2px 6px;
  border-radius: 3px;
}

pre {
  background: var(--color-paper-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

table th {
  background: var(--color-paper-2);
  color: var(--color-text-secondary);
  font-weight: 600;
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-xs);
}

table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-dim);
}

table tr:hover {
  background: var(--color-paper-2);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-paper-2);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}
