/* Rebel & Bird intranet — visual system mirrors rebelandbird.com:
   warm paper background, near-black ink, pastel accent blocks,
   geometric display type paired with a humanist sans. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #ebe6e6;
  --surface: #ffffff;
  --ink: #1e1e1e;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --line: #1e1e1e;
  --accent: #13bfbf;
  --peach: #ffd9b2;
  --mint: #b2ffff;
  --yellow: #fff2b2;
  --pink: #ffb2d9;

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

/* --- Login page --- */
.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, var(--peach) 0 18vmin, transparent 18vmin),
    radial-gradient(circle at 88% 82%, var(--mint) 0 22vmin, transparent 22vmin),
    var(--bg);
}
.login-card {
  background: var(--surface);
  padding: 56px 44px 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 8px 8px 0 0 var(--ink);
  width: min(440px, 92vw);
  text-align: left;
}
.login-card h1 {
  margin: 0;
  font-size: 40px;
  text-transform: uppercase;
}
.subtitle {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 32px;
}
.hint { color: var(--ink-soft); font-size: 14px; margin: 0 0 20px; }
.error { color: #c0392b; margin-top: 18px; font-size: 14px; }

/* --- App shell --- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.app-header .brand {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 16px;
}
.app-header nav a {
  color: var(--ink);
  margin-right: 22px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.app-header nav a:hover { color: var(--accent); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.user-chip img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); }
.user-chip button {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 7px 14px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.15s, color 0.15s;
}
.user-chip button:hover { background: var(--accent); border-color: var(--accent); }

main.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}
main.page h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 0 0 12px;
  text-transform: uppercase;
}
main.page > p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 8px;
}
main.page h2 {
  margin-top: 56px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--display);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* --- Card grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 22px 28px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 0 var(--ink);
  color: var(--ink);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  text-transform: uppercase;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.card code {
  background: var(--yellow);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 12px;
}

/* Pastel rotation for visual rhythm — mirrors the site's color-block grid. */
.card-grid > .card:nth-child(4n+1) { background: var(--peach); }
.card-grid > .card:nth-child(4n+2) { background: var(--mint); }
.card-grid > .card:nth-child(4n+3) { background: var(--yellow); }
.card-grid > .card:nth-child(4n+4) { background: var(--pink); }

/* Standalone announcement card stays neutral. */
main.page > .card { background: var(--surface); margin-top: 20px; }

/* --- Directory table --- */
table.directory {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
table.directory th, table.directory td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
table.directory th {
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}
table.directory tr:last-child td { border-bottom: none; }
table.directory tbody tr:hover { background: var(--bg); }
