:root {
  --green-900: #123c2c;
  --green-800: #19543b;
  --green-700: #1f6b49;
  --green-600: #2f8a5f;
  --green-100: #e8f3ed;
  --cream-50: #fbf7ef;
  --cream-100: #f3eadb;
  --ink: #17231d;
  --muted: #65746b;
  --line: rgba(18, 60, 44, 0.14);
  --white: #ffffff;
  --amber: #c9892b;
  --red: #b9463f;
  --shadow: 0 14px 34px rgba(18, 60, 44, 0.08);
  --radius: 8px;
  font-family: "Readex Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream-50);
  color: var(--ink);
  font-family: "Readex Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(18, 60, 44, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 60, 44, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.15));
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

img {
  max-width: 100%;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-900);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 60, 44, 0.28);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn--primary,
.btn.primary {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--white);
}

.btn--secondary {
  background: var(--green-100);
  color: var(--green-900);
}

.btn--danger,
.btn.danger {
  background: #fff2f0;
  border-color: rgba(185, 70, 63, 0.24);
  color: var(--red);
}

.btn--light,
.btn.light {
  background: var(--white);
  color: var(--green-900);
}

.btn--amber,
.btn.yellow {
  background: #fff7e8;
  border-color: rgba(201, 137, 43, 0.28);
  color: #7c541b;
}

.time-value {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.loading-card,
.error-card {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 32px;
}

.loading-card {
  align-content: center;
  gap: 14px;
}

.error-card {
  width: min(720px, calc(100% - 32px));
  margin: 48px auto;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
}

.loader {
  width: 42px;
  height: 42px;
  border: 3px solid var(--green-100);
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.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;
}
