@layer site {
  * { box-sizing: border-box; }
  body {
    margin: 0;
    padding: 1.25rem 1rem 2rem;
    background: #f4f4f5;
    color: #17181a;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    font-size: 1.125rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  h1 { font-size: 1.8rem; margin: 0.3rem 0; max-width: 18ch; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  p, dd { max-width: 68ch; }
  a { color: #17181a; }
  a:hover { background: #f59e0b; }
  .site-name { font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }
  .crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; }
  .plate {
    display: inline-block;
    margin: 0.3rem 0;
    padding: 0.15rem 0.45rem;
    background: #f59e0b;
    color: #17181a;
    font-variant-numeric: tabular-nums;
    font-size: clamp(3.2rem, 12vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
  }
  .tiles { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
  .tiles b { font-variant-numeric: tabular-nums; font-size: 1.8rem; }
  .calc { display: grid; gap: 0.6rem; max-width: 22rem; }
  input { font: inherit; padding: 0.45rem; border: 2px solid #17181a; background: #f4f4f5; width: 100%; }
  button {
    font: inherit;
    background: #17181a;
    color: #f4f4f5;
    border: 0;
    padding: 0.7rem;
  }
  button:hover { outline: 3px solid #f59e0b; }
  .table-frame { overflow-x: auto; max-width: 100%; margin-top: 1.5rem; }
  table { border-collapse: collapse; width: 100%; }
  th, td { padding: 0.45rem 0; border-bottom: 1px solid #d4d4d8; text-align: left; }
  .chart img { width: 320px; max-width: 100%; height: auto; }
  .chart-labels { font-size: 1rem; }
  footer a { display: inline-block; margin: 0.2rem 0.8rem 0.2rem 0; }
  @media (prefers-reduced-motion: reduce) {
    * { transition: none; }
  }
}
