:root { color-scheme: light; --paper: #f7f7f2; --ink: #252820; --muted: #6b6e63; --line: #dcded4; --accent: #ce4423; --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.page-shell { max-width: 1120px; margin: auto; padding: 0 48px; }
.skip-link { position: absolute; left: 16px; top: -100px; background: var(--ink); color: white; padding: 14px; z-index: 5; }
.skip-link:focus { top: 16px; }
.site-header { display: flex; align-items: center; justify-content: space-between; height: 100px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; letter-spacing: -.6px; }
.brand-icon { display: grid; place-items: center; height: 28px; width: 28px; background: var(--accent); color: white; font-size: 22px; }
.api-link { font: 12px var(--mono); }
.api-link span { margin-left: 15px; color: var(--accent); }
.time-section { padding: 48px 0 46px; }
.section-label { font: 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 1.1px; color: var(--muted); }
div.section-label { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.tag { border: 1px solid var(--line); padding: 3px 8px; white-space: nowrap; font-size: 9px; }
h1 { margin: 24px 0 14px; font-size: clamp(42px, 5vw, 64px); font-weight: 400; line-height: 1.06; letter-spacing: -3px; }
h1 span { color: var(--muted); }
.intro { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
.clock-panel { padding: 32px 0 0; margin-top: 32px; border-top: 1px solid var(--line); }
.clock-meta { display: flex; justify-content: space-between; font: 10px var(--mono); letter-spacing: 1px; color: var(--muted); }
.clock { font: clamp(54px, 10vw, 118px)/1.2 var(--mono); letter-spacing: -.075em; font-variant-numeric: tabular-nums; margin: 17px 0 3px; white-space: nowrap; }
.milliseconds { font-size: .45em; letter-spacing: -.07em; color: var(--accent); }
.date { font: 12px/1.8 var(--mono); color: var(--muted); }
.fetch-row { display: flex; align-items: center; gap: 24px; margin-top: 26px; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 50px; background: var(--accent); color: white; border: 0; padding: 16px 20px; font-size: 13px; min-width: 177px; }
.primary-button:hover { background: #b6371b; }
.primary-button span { font-size: 19px; }
.fetch-row p { font: 11px/1.8 var(--mono); color: var(--muted); margin: 0; }
.feedback { font: 11px/1.5 var(--mono); margin: 14px 0 0; min-height: 17px; color: var(--muted); }
.feedback.error { color: #b62e17; }
.ledger-section { border-top: 1px solid var(--ink); padding: 26px 0 34px; }
.ledger-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.ledger-heading .section-label { margin: 0 0 9px; }
h2 { font-size: 25px; font-weight: 400; letter-spacing: -.8px; margin: 0; }
.count { display: inline-block; vertical-align: middle; margin-left: 9px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font: 11px var(--mono); letter-spacing: 0; }
.connection { font: 10px var(--mono); color: var(--muted); display: flex; align-items: center; gap: 7px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #96998e; }
.connection[data-state="live"] .status-dot { background: #5e8058; box-shadow: 0 0 0 3px #5e805814; }
.connection[data-state="error"] .status-dot { background: var(--accent); }
.ledger-caption { display: flex; justify-content: space-between; gap: 20px; margin: 18px 0 14px; font-size: 12px; color: var(--muted); }
.ledger-caption p { margin: 0; }
.ledger-caption p:last-child { font: 10px/1.5 var(--mono); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; text-align: left; font: 11px/1.5 var(--mono); }
th { background: #eeefe8; font-size: 9px; font-weight: 400; letter-spacing: .6px; color: var(--muted); padding: 13px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
th span { color: var(--muted); font-size: 8px; }
td { padding: 17px 16px; border-bottom: 1px solid var(--line); }
td:first-child { color: var(--muted); width: 12%; }
td time span { color: var(--muted); margin-right: 12px; }
td:last-child { color: var(--muted); }
.method { color: #476742; font-size: 9px; margin-right: 9px; }
tr.new-record { animation: appear 1.6s ease-out; }
.empty { text-align: center; padding: 45px 20px; color: var(--muted); font: 12px/1.8 var(--mono); white-space: normal; }
.ledger-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; }
.ledger-bottom p { font: 10px/1.7 var(--mono); color: var(--muted); margin: 0; }
.text-button { background: none; border: 0; padding: 6px 0; color: var(--ink); font: 10px/1.4 var(--mono); white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover, .api-link:hover { color: var(--accent); }
.api-section { display: grid; grid-template-columns: .9fr 1.1fr; column-gap: 60px; padding: 32px 0 40px; border-top: 1px solid var(--line); }
.api-section .section-label { margin-top: 0; margin-bottom: 14px; }
.api-section h2 { font-size: 23px; }
.api-section p:not(.section-label) { color: var(--muted); font-size: 12px; line-height: 1.8; }
.api-example { min-width: 0; background: #eeefe8; border: 1px solid var(--line); padding: 14px 18px; }
.code-heading { display: flex; align-items: center; justify-content: space-between; font: 8px var(--mono); letter-spacing: .5px; color: var(--muted); }
pre { font: 11px/1.8 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: var(--mono); }
.api-example .example-label { font: 8px var(--mono) !important; margin: 20px 0 6px; letter-spacing: .7px; }
.response { color: #58684c; margin: 0; }
#copy-status:empty { display: none; }
.api-details { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
summary { cursor: pointer; font: 11px var(--mono); }
summary span { float: right; }
.api-details > div { max-width: 760px; }
.api-details pre { background: #eeefe8; padding: 14px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; border-top: 1px solid var(--line); font: 9px/1.6 var(--mono); color: var(--muted); }
.footer-mark { color: var(--accent); font-size: 20px; }
@keyframes appear { from { background: #e3533015; } to { background: transparent; } }
@media (max-width: 700px) {
  .page-shell { padding: 0 24px; }
  .site-header { height: 80px; }
  .time-section { padding: 32px 0; }
  h1 { letter-spacing: -2px; }
  .clock { font-size: 11.6vw; }
  .api-section { grid-template-columns: 1fr; gap: 20px; }
  .api-details { margin-top: 0; }
  .ledger-caption { flex-direction: column; gap: 8px; }
  td, th { padding-left: 12px; padding-right: 12px; }
  .fetch-row { gap: 16px; flex-wrap: wrap; }
  .tag { display: none; }
  .ledger-bottom { flex-wrap: wrap; }
  footer { flex-wrap: wrap; font-size: 8px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } tr.new-record { animation: none; } }
