@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500&family=DM+Sans:wght@400;500;700&display=swap");

:root {
  --paper: #fffaf6;
  --ink: #3a2926;
  --rose: #9d4949;
  --rose-hover: #833b3b;
  --rose-disabled: #aa9590;
  --muted: #79645e;
  --line: #ead5cd;
  --blush: #f7e8e3;
  --wordmark: #9b5140;
  --status-ok: var(--rose);
  --status-wait: var(--muted);
  --status-fail: #833b3b;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;
  --body-size: 15px;
  --body-line: 1.75;
  --radius: 5px;
  --button-min-h: 55px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--body-size); line-height: var(--body-line); }
h1, h2 { font-family: var(--font-heading); font-weight: 500; color: var(--wordmark); margin: 0 0 8px; }
a { color: var(--rose); }
a:hover { color: var(--rose-hover); }
.banner { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.logo { height: 40px; width: auto; }
.live { color: var(--status-ok); }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--status-ok); margin-right: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--blush); }
.page { padding: 16px; max-width: 1100px; margin: 0 auto; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 16px; margin: 0 0 16px; }
.table-wrap { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; }
.badge { display: inline-block; padding: 0 8px; border-radius: var(--radius); border: 1px solid currentColor; }
.badge-ok { color: var(--status-ok); }
.badge-wait { color: var(--status-wait); }
.badge-fail { color: var(--status-fail); background: var(--blush); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); }
.timeline li { padding: 4px 0 4px 8px; }
.timeline-time, .timeline-gap { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--button-min-h); padding: 0 24px; border-radius: var(--radius); background: var(--rose); color: var(--paper); text-decoration: none; }
.button:hover { background: var(--rose-hover); color: var(--paper); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.frame { width: 100%; min-height: 360px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.pre { white-space: pre-wrap; word-break: break-word; background: var(--blush); border-radius: var(--radius); padding: 12px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.swatch { display: flex; flex-direction: column; gap: 2px; }
.swatch-chip { display: block; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); }
.sample-heading { font-family: var(--font-heading); font-weight: 500; }
.sample-body { font-family: var(--font-body); }
td.time { white-space: nowrap; }
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 8px 12px; margin: 0 0 12px; }
  .table td { display: block; text-align: right; border-bottom: 0; padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .table td::before { content: attr(data-label); float: left; margin-right: 12px; color: var(--muted); }
  .table td:first-child { font-family: var(--font-heading); font-weight: 500; color: var(--wordmark); text-align: left; }
  .table td:first-child::before { content: none; }
}
