:root {
  --bg: #0e1410;
  --bg-2: #151c17;
  --ink: #f3efe6;
  --muted: #b7b3a8;
  --line: rgba(243, 239, 230, 0.12);
  --copper: #c9864a;
  --green: #7d9a6a;
  --card: rgba(21, 28, 23, 0.72);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 6vw;
  background: rgba(14, 20, 16, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 12vh 6vw 8vh;
  overflow: hidden;
}

.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,20,16,0.15) 0%, rgba(14,20,16,0.55) 45%, rgba(14,20,16,0.96) 100%);
}

.hero-copy { position: relative; max-width: 42rem; }
.kicker {
  color: var(--copper);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
}
h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}
.lede {
  font-size: 1.15rem;
  color: #ddd8cd;
  max-width: 36rem;
}

.wrap { padding: 4rem 6vw 6rem; }
.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
}
.section-sub { color: var(--muted); margin: 0 0 2rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: -5rem 6vw 0;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card .label {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card .value {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.35rem 0 0.15rem;
}
.card .meta { color: var(--muted); font-size: 0.92rem; }
.tag {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--green);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
}

.chart-card img {
  width: 100%;
  border-radius: 12px;
  display: block;
  background: #fff;
}

.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.info-list strong { color: var(--ink); font-weight: 600; }

.note {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 46rem;
}

.cop-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.cop-number {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.cop-number .value {
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.9;
  margin: 0.2rem 0;
}

.cop-number .value small {
  font-size: 0.28em;
  color: var(--muted);
  margin-left: 0.15em;
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.days {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: fixed;
}

table.days th,
table.days td {
  text-align: right;
  padding: 0.4rem 0.22rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.days th:first-child,
table.days td:first-child { text-align: left; }

table.days th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  table.days { font-size: 0.78rem; }
  table.days th,
  table.days td { padding: 0.32rem 0.12rem; }
  table.days th { font-size: 0.65rem; letter-spacing: 0; }
}

@media (max-width: 800px) {
  .cop-hero { grid-template-columns: 1fr; }
}

footer {
  padding: 2rem 6vw 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(14,20,16,0.72), rgba(14,20,16,0.92)),
    url("assets/hero.jpg") center/cover;
}

.login-box {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.8rem 1.7rem 1.6rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-box h1 {
  font-size: 2rem;
  margin: 0.2rem 0 0.4rem;
}

.login-box p { color: var(--muted); margin: 0 0 1.2rem; }

.login-box label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.7rem 0 0.35rem;
}

.login-box input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(14,20,16,0.55);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  font: inherit;
}

.login-box button {
  width: 100%;
  margin-top: 1.2rem;
  border: 0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 600;
  background: var(--copper);
  color: #1a120b;
  cursor: pointer;
}

.err {
  background: rgba(180, 70, 50, 0.18);
  color: #f0c2b6;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}

.btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  background: var(--copper);
  color: #1a120b;
  text-decoration: none;
  font-weight: 600;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  margin-left: 0.6rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
}

.prose p { color: #ddd8cd; max-width: 42rem; }
.prose h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  margin: 2rem 0 0.5rem;
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { margin-top: -3rem; }
}
