:root {
  --ink: #1b2a4a;
  --paper: #f7f5f2;
  --accent: #c8532b;
  --line: #ddd8d2;
  --muted: #5a5f6b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  font-size: 1.9rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

h2 { font-size: 1.25rem; }

form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 26rem;
}

input {
  font: inherit;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

button {
  font: inherit;
  margin-top: 0.6rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

button:hover { background: #a84523; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.greeting { margin: 0; color: var(--muted); }
.topbar button { margin-top: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

tbody tr:last-child td { border-bottom: none; }

.status {
  display: inline-block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #ece7e1;
  color: var(--ink);
}

.status-delivered { background: #dcead8; color: #24401e; }
.status-shipped   { background: #e3e9f4; color: #1b2a4a; }
.status-processing{ background: #f4e6d8; color: #5c3a12; }
.status-cancelled { background: #f3dcd7; color: #6d2418; }

.empty-title { font-size: 1.15rem; margin-bottom: 0.25rem; }

.error {
  color: #8c2f16;
  background: #f6e3dc;
  border: 1px solid #dcb2a4;
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .shell { padding: 1.25rem 0.75rem 3rem; }
  h1 { font-size: 1.5rem; }
  th, td { padding: 0.55rem 0.5rem; }
}
