/* Restaurant POS Guide by KwickPOS: a practical buyer's reference.
   One family (Public Sans), one accent (ledger green), one decorated element (the receipt-strip quick answer). */

@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/static/fonts/public-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/static/fonts/public-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("/static/fonts/public-sans-800.woff2") format("woff2"); }

:root {
  --paper: #FFFFFF;
  --ink: #17202A;
  --muted: #5B6773;
  --rule: #DCE1E6;
  --green: #0F6B57;
  --green-dark: #0B4F41;
  --tint: #FFF6D6;
  --warn: #9A3412;
  --measure: 68ch;
  --wide: 60rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  /* 1.25 ratio scale */
  --s-1: 0.85rem; --s0: 1.0625rem; --s1: 1.33rem; --s2: 1.66rem; --s3: 2.07rem; --s4: 2.6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--s0)/1.65 "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  padding: 0 var(--gutter);
}
img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(var(--s3), 5vw, var(--s4)); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--s2); font-weight: 800; margin-top: 2.4rem; margin-bottom: 0.6rem; }
h3 { font-size: var(--s1); font-weight: 600; margin-top: 1.6rem; margin-bottom: 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; }
.skip:focus { left: var(--gutter); z-index: 10; }

/* Header: wordmark left, sections as plain text links that wrap under it on small screens */
.site-header {
  max-width: var(--wide); margin: 0 auto; padding: 1.1rem 0 0.9rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2rem;
  border-bottom: 2px solid var(--ink);
}
.wordmark { color: var(--ink); text-decoration: none; font-weight: 800; font-size: var(--s1); letter-spacing: -0.015em; }
.wordmark span { font-weight: 400; color: var(--muted); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: var(--s-1); }
.site-header nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover { color: var(--green); text-decoration: underline; }

.crumbs { max-width: var(--wide); margin: 0.9rem auto 0; font-size: var(--s-1); color: var(--muted); }
.crumbs a { color: var(--muted); }

main { max-width: var(--wide); margin: 0 auto; padding: 2rem 0 3rem; }
main > *, .article > *:not(.table-wrap):not(.hero-img) { max-width: var(--measure); }
.lede { font-size: var(--s1); line-height: 1.5; color: var(--ink); margin-top: 0.75rem; }

/* Article head: title, then the disclosure as a quiet ruled note, then the byline */
.article-head h1 { margin-bottom: 1rem; }
.disclosure {
  font-size: var(--s-1); color: var(--muted); border-top: 1px solid var(--rule);
  padding-top: 0.6rem; margin-bottom: 0.4rem;
}
.byline { font-size: var(--s-1); color: var(--muted); margin-bottom: 1.25rem; }
.byline a { color: var(--ink); font-weight: 600; }
.hero-img { width: 100%; max-width: var(--wide); aspect-ratio: 1200 / 630; object-fit: cover; margin: 0.5rem 0 0; }

/* The signature: the quick answer printed on a strip of receipt paper */
.quick-answer {
  --z: 10px;
  background: var(--tint); padding: calc(1.1rem + var(--z)) 1.4rem; margin: 1.75rem 0 2rem;
  font-size: clamp(var(--s0), 2.2vw + 0.5rem, var(--s1)); line-height: 1.5; font-weight: 600;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x;
          mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x;
}
.quick-answer p { margin: 0; }

.example { background: var(--tint); padding: 0.9rem 1.1rem; border-left: 3px solid var(--ink); }
.example::before { content: "Example. "; font-weight: 800; }

/* Tables: facts, not decoration. Scroll inside their own box on narrow screens. */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; max-width: var(--wide); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--rule); }
thead th { border-bottom: 2px solid var(--ink); font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 600; }
/* Wide comparison tables keep readable columns on phones and scroll inside .table-wrap instead of crushing text. */
.table-wrap table:has(th:nth-child(4)) { min-width: 46rem; }

.faq details { border-bottom: 1px solid var(--rule); padding: 0.7rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 0.5rem 0 0; }

.sources { font-size: 0.9rem; color: var(--muted); margin-top: 2.5rem; }
.sources h2 { font-size: var(--s1); color: var(--ink); }
.sources li { margin-bottom: 0.5rem; }

.cta { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.cta a {
  display: inline-block; background: var(--green); color: var(--paper); text-decoration: none;
  font-weight: 600; padding: 0.7rem 1.1rem; border-radius: 4px;
}
.cta a:hover { background: var(--green-dark); color: var(--paper); }
.cta p { font-size: var(--s-1); color: var(--muted); margin: 0.6rem 0 0; }

.draft-banner { color: var(--warn); font-weight: 800; border: 2px solid var(--warn); padding: 0.5rem 0.8rem; }

/* Home and hubs: sections as plain lists, title then a one-line summary */
.home-intro { margin-bottom: 1rem; }
.home-section h2 a { color: var(--ink); text-decoration: none; }
.home-section h2 a:hover { color: var(--green); text-decoration: underline; }
.hub-list { list-style: none; padding: 0; }
.hub-list li { border-top: 1px solid var(--rule); padding: 0.75rem 0; margin: 0; }
.hub-list a { font-weight: 600; font-size: var(--s1); }
.hub-list span { display: block; color: var(--muted); font-size: 0.95rem; }

.site-footer {
  max-width: var(--wide); margin: 0 auto; padding: 1.5rem 0 2.5rem; border-top: 2px solid var(--ink);
  font-size: var(--s-1); color: var(--muted);
}
.site-footer p { max-width: var(--measure); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0 0 1rem; }
.site-footer a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header nav, .cta, .skip { display: none; } }
