:root {
  --deep-blue: #1b4965;
  --seafoam: #5fa8d3;
  --sand: #f5efe6;
  --ink: #2f3e46;
  --muted: #6c757d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink);
  background: linear-gradient(120deg, #f5efe6 0%, #e9f0f5 100%);
}

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

.site-header {
  background: var(--deep-blue);
  color: #fff;
  padding: 1.5rem 0;
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.header-content h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

main {
  padding: 2rem 0 3rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(27, 73, 101, 0.08);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--seafoam);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.chart-wrap {
  margin-top: 1rem;
}

.projection-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.value {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

.form-row {
  display: grid;
  gap: 0.75rem;
}

input[type="number"] {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #cfd8dc;
  font-size: 1rem;
}

.error {
  color: #b02a37;
  font-weight: 600;
}

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

.site-footer {
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 700px) {
  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .card-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .form-row {
    grid-template-columns: 1fr 2fr auto;
    align-items: end;
  }
}
