:root {
  --bg: #faf7f4;
  --card: #ffffff;
  --accent: #ff7a18;
  --accent-2: #ff973c;
  --muted: #6b7280;
  --radius: 12px;
  --max-width: 1100px;
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

.body,
body {
  font-family: Inter, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui;
  margin: 0;
  background: var(--bg);
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  height: 100%;
}

body {
  line-height: 1.6;
  font-size: 16px;
}

h1,
h2,
h3 {
  color: #0b1720;
  line-height: 1.15;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem;
}

.site-header {
  background: var(--card);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  position: static;
  z-index: 50;
  min-height: var(--header-h);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.brand {
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.125rem;
}

.nav {
  display: flex;
  gap: 0.75rem;
  margin-left: 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-weight: 600;
}

.nav a:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.03);
}

.actions {
  margin-left: auto;
}

.btn {
  border: 0;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 122, 24, 0.12);
  min-width: 160px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 122, 24, 0.14);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--accent);
}

.btn:focus {
  outline: 3px solid rgba(255, 122, 24, 0.18);
  outline-offset: 2px;
}

.btn:hover,
.btn:active {
  opacity: 0.98;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.02);
}

.action-link {
  color: var(--accent);
  font-weight: 600;
}

a.action-link:hover {
  text-decoration: underline;
  color: var(--accent-2);
}

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

.no-underline {
  text-decoration: none;
}

.label {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.input,
input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #e6e9eb;
  margin-bottom: 0.75rem;
  background: #fff;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
}

.site-footer {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  margin-top: 2.5rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

/* Media queries moved to bottom by clean_css.py */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
}

@media (max-width: 700px) {
  .site-header .container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .actions {
    margin-left: 0;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .site-footer .container {
    flex-direction: column;
  }
}
