* { box-sizing: border-box; }

:root {
  --forest: #16241c;
  --forest-dark: #0e1813;
  --gold: #d4af37;
  --gold-light: #e8cd72;
  --cream: #f7f3ea;
  --ink: #20281f;
  --danger: #b00020;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--forest);
}

.navbar {
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--cream);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 3px solid var(--gold);
}

.navbar .brand {
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold));
  color: var(--forest-dark);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.brand-text small {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.85;
}

.nav-links a:hover {
  color: var(--gold-light);
  opacity: 1;
}

.nav-user {
  margin-left: auto;
  color: var(--gold-light);
  font-size: 0.85rem;
}

.container {
  max-width: 980px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 420px;
  background: #fff;
  padding: 1.75rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 16px rgba(22, 36, 28, 0.08);
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--forest);
  font-size: 0.92rem;
}

.form input,
.form select {
  padding: 0.55rem 0.7rem;
  border: 1px solid #d8d2c2;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

button,
.link-button {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--forest-dark);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.05s ease, box-shadow 0.15s ease;
}

button:hover,
.link-button:hover {
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.45);
}

button:active,
.link-button:active {
  transform: translateY(1px);
}

.link-button {
  text-decoration: none;
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
}

.inline-form {
  display: inline;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(22, 36, 28, 0.06);
}

thead tr {
  background: var(--forest);
}

th {
  text-align: left;
  padding: 0.65rem 0.9rem;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #f0ece0;
}

tbody tr:hover {
  background: #fbf8f0;
}

tfoot td {
  background: #fbf3da;
  font-weight: 700;
  color: var(--forest);
}

.error {
  color: var(--danger);
  font-weight: 600;
  background: #fdecee;
  border: 1px solid #f6c6cc;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
}

.variance {
  color: var(--danger);
  font-weight: 700;
}

.cards {
  display: flex;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card {
  background: linear-gradient(165deg, #fff, #fdf9ee);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 16px rgba(22, 36, 28, 0.07);
  text-align: center;
  flex: 1;
}

.card h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--gold);
}

.card p {
  margin: 0.35rem 0 0;
  color: var(--forest);
  font-size: 0.9rem;
}

a {
  color: #8a6d1f;
}

p a {
  font-weight: 600;
}
