/* ===== VARIABLES ===== */
:root {
  --primary: #f69932;
  --primary-dark: #d9821e;
  --secondary: #f66132;
  --secondary-dark: #d94e24;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #acacac;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, sans-serif;
}

/* ===== BASE ===== */
body {
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 71.25rem; /* 1140px */
  margin: 0 auto;
  padding: 0 1.5rem; /* 24px */
}

/* ===== HEADER ===== */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem; /* 64px */
}

.logo {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  color: var(--primary);
  max-width: 100%;
  width: 15.625rem; /* 250px */
  height: 4rem; /* 64px */
  padding: 0.3rem 0;
}

.logo span {
  color: var(--secondary);
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== NAV ===== */
nav ul {
  display: flex;
  gap: 0.25rem; /* 4px */
}

nav a {
  display: block;
  padding: 0.375rem 0.875rem; /* 6px 14px */
  border-radius: 0.375rem; /* 6px */
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: var(--text-muted);
  transition:
    background 0.15s,
    color 0.15s;
}

nav a:hover,
nav a[aria-current="page"] {
  background: var(--bg-light);
  color: var(--primary);
}

/* ===== MAIN ===== */
main {
  min-height: 60vh;
  padding: 4rem 0; /* 64px */
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem; /* 16px */
  color: var(--text);
}

p {
  color: var(--text-muted);
  max-width: 40rem; /* 640px */
}

.text-content {
  color: var(--text);
}

.text-muted {
  color: var(--text-muted);
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

/* ===== SHARED BUTTON STYLES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem; /* 6px */
  padding: 0.5rem 1.125rem; /* 8px 18px */
  border-radius: 0.375rem; /* 6px */
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.btn-outline {
  border-color: var(--text-light) !important;
}
.btn-outline.btn-primary {
  border-color: var(--text-primary) !important;
}

.btn-ghost {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.btn-ghost:hover {
  background: var(--bg-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* ===== UTILITIES ===== */
.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;
}

/* Footer styles live in css/footer.css */

/* Page transition */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: slide-top 400ms ease;
}

::view-transition-new(root) {
  animation: slide-bottom 400ms ease;
}

@keyframes slide-top {
  to {
    transform: translateY(-100%);
  }
}

@keyframes slide-bottom {
  from {
    transform: translateY(100%);
  }
}
