:root {
  --bg-cream: #f3ece0;
  --bg-sage: #dbe6d4;
  --panel: rgba(255, 252, 247, 0.88);
  --ink: #1e271f;
  --muted: #5c665b;
  --accent: #8f341c;
  --accent-dark: #6d2412;
  --line: rgba(30, 39, 31, 0.12);
  --success: #2f6a3f;
  --shadow: 0 24px 60px rgba(57, 45, 22, 0.12);
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(143, 52, 28, 0.10), transparent 30%),
    radial-gradient(circle at top right, rgba(101, 132, 96, 0.14), transparent 24%),
    linear-gradient(160deg, var(--bg-cream), var(--bg-sage));
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
}

.site-header,
.site-footer {
  padding: 1.1rem 1.25rem;
}

.site-header-inner,
.site-footer-inner,
.page-content {
  width: min(1100px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header-inner,
.site-footer-inner,
.section-head,
.line-item,
.totals-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-link,
.primary-link {
  text-decoration: none;
}

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

.page-content {
  padding: 1rem 0 3rem;
}

.hero-panel,
.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-panel {
  padding: 2rem;
  border-radius: 28px;
  margin-bottom: 1.5rem;
}

.hero-panel.compact {
  max-width: 760px;
}

.hero-panel h1 {
  margin: 0.2rem 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.03;
}

.hero-panel p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.primary-link {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
}

.summary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.info-card {
  padding: 1.35rem;
  border-radius: 22px;
  margin-bottom: 1rem;
}

.info-card h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.data-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.data-list div {
  display: grid;
  gap: 0.18rem;
}

.data-list dt {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-list dd {
  margin: 0;
  font-size: 1rem;
}

.address-block {
  margin: 0;
  font-style: normal;
  line-height: 1.65;
}

.totals-badge,
.status-pill {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
}

.totals-badge {
  background: rgba(143, 52, 28, 0.10);
  color: var(--accent-dark);
}

.status-pill {
  background: rgba(30, 39, 31, 0.08);
}

.status-pill.success {
  background: rgba(47, 106, 63, 0.14);
  color: var(--success);
}

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

.line-items {
  display: grid;
  gap: 0.85rem;
}

.line-item {
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.line-item:first-child {
  border-top: 0;
  padding-top: 0.2rem;
}

.line-item-main h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.meta-line {
  color: var(--muted);
  font-size: 0.94rem;
}

.line-item-side {
  text-align: right;
  min-width: 9rem;
}

.qty {
  color: var(--muted);
  font-size: 0.92rem;
}

.money {
  font-size: 1.05rem;
  font-weight: 700;
}

.totals-grid {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.totals-grid span {
  color: var(--muted);
}

.totals-grid strong {
  font-weight: 700;
}

.total-row {
  font-size: 1.06rem;
}

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

code {
  color: var(--accent-dark);
}

@media (max-width: 900px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-content,
  .site-header-inner,
  .site-footer-inner {
    width: min(100vw - 1.25rem, 1100px);
  }

  .hero-panel,
  .info-card {
    border-radius: 20px;
  }

  .site-header-inner,
  .site-footer-inner,
  .section-head,
  .line-item,
  .totals-grid div {
    display: block;
  }

  .line-item-side {
    text-align: left;
    min-width: 0;
    margin-top: 0.6rem;
  }
}
