/* HarfBuzz World — site styles, modeled on behdad.org with a
 * gold accent in place of the coral/pink. */

@font-face {
  font-family: "AdobeBlank";
  src: url("../fonts/AdobeBlank.otf") format("opentype");
}

:root {
  --bg-page:   #faf6ea;
  --bg-card:   #fff;
  --fg:        #333;
  --muted:     #666;
  --accent:    #c89426;   /* gold */
  --accent-hi: #9a7218;   /* darker gold for hover */
  --accent-lo: #8a7c4d;   /* muted gold for visited */
  --rule:      #e8e2cc;
  --soft:      #f5edd6;   /* code / pre background */
  --highlight: #fcf4dc;
  --shadow:    0 0 12px rgba(0,0,0,0.06);
  --render-bg: #fff;
  --render-fg: #000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page:   #1a1814;
    --bg-card:   #23201a;
    --fg:        #f0ead8;
    --muted:     #aaa090;
    --accent:    #e0b048;
    --accent-hi: #f0c060;
    --accent-lo: #b09850;
    --rule:      #3a3528;
    --soft:      #2c2820;
    --highlight: #2e2a1f;
    --shadow:    0 0 12px rgba(0,0,0,0.4);
    --render-bg: #222;
    --render-fg: #fff;
  }
}
:root[data-theme="dark"] {
  --bg-page:   #1a1814;
  --bg-card:   #23201a;
  --fg:        #f0ead8;
  --muted:     #aaa090;
  --accent:    #e0b048;
  --accent-hi: #f0c060;
  --accent-lo: #b09850;
  --rule:      #3a3528;
  --soft:      #2c2820;
  --highlight: #2e2a1f;
  --shadow:    0 0 12px rgba(0,0,0,0.4);
  --render-bg: #222;
  --render-fg: #fff;
}

* { box-sizing: border-box; }
html {
  background-color: var(--bg-page);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  /* Reserve scrollbar gutter so the card doesn't shift
   * sideways between short tabs (no scrollbar) and long
   * tabs (scrollbar present). */
  scrollbar-gutter: stable;
}
body {
  hyphens: auto;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--bg-card);
  color: var(--fg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-family: "PT Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

header {
  margin-bottom: 1rem;
  position: relative;
}
.attribution {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
  background: var(--bg-card);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  box-shadow: var(--shadow);
  z-index: 10;
}
.attribution em { font-style: italic; }

.logo-corner {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  line-height: 0;
  width: 96px;
  height: 96px;
}
.logo-corner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
  display: block;
  border-radius: 16px;
  background: #e8c870;
  transition: opacity 0.3s ease;
}
.logo-corner img.logo-out { opacity: 0; }
#theme-toggle {
  margin-left: auto;
  align-self: center;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
#theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--highlight);
}
header h1 {
  font-family: "Anton", "Impact", sans-serif;
  font-weight: 400;
  font-size: 2.6rem;
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.01em;
}
header h1 a,
header h1 a:visited,
header h1 a:hover,
header h1 a:active {
  color: var(--accent);
  text-decoration: none;
}
header h1 code {
  font-family: "JetBrains Mono", "Roboto Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 1em;
  background: none;
  color: var(--accent);
  opacity: 0.55;
  padding: 0;
  margin-left: 0.12em;
}
.tagline {
  color: var(--muted);
  font-size: 1.2rem;
  margin: -0.2rem 0 0;
}

h2 {
  font-family: "PT Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.005em;
  margin: 2rem 0 1rem;
  color: var(--accent);
}
h3 {
  font-family: "PT Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--fg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hi);
  text-decoration: underline;
}
a:visited { color: var(--accent-lo); }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem .5rem 1.5rem .5rem;
}

/* Tab nav */

nav.tabs {
  display: flex;
  gap: 0.25rem;
  margin: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
  /* Wrap to multiple rows on narrow viewports; individual
   * tab labels don't break mid-word. */
  flex-wrap: wrap;
}
nav.tabs .tab {
  font-family: "PT Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-bottom: 3px solid transparent;
  border-radius: 12px 12px 0 0;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
nav.tabs .tab:hover {
  color: var(--fg);
  text-decoration: none;
}
nav.tabs .tab.active {
  color: var(--accent);
  background: var(--highlight);
  border-bottom-color: var(--accent);
}
nav.tabs .tab:visited { color: var(--muted); }
nav.tabs .tab.active:visited { color: var(--accent); }

/* Controls */

/* On the embed/welcome tab the shared controls and presets
 * aren't driving anything visible, so hide them. */
body[data-active="embed"] #shared-controls,
body[data-active="embed"] .controls-row2,
body[data-active="embed"] .script-warning,
body[data-active="embed"] .presets { display: none; }

/* GPU has no font-size concept -- zoom is a user gesture
 * on the canvas -- so hide the Size input on the gpu tab. */
body[data-active="gpu"] .size-label { display: none; }

.controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.5rem;
}
.controls-row2 { margin-bottom: 0.5rem; }
.script-warning {
  text-align: center;
  color: #a03030;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  padding: 0.5rem 1rem;
  background: #fde8e8;
  border: 1px solid #e8a0a0;
  border-radius: 6px;
}
.script-warning[hidden] { display: none; }
:root[data-theme="dark"] .script-warning,
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .script-warning {
  color: #f0a0a0;
  background: #3a2020;
  border-color: #5a3030;
} }
.demo-controls { margin: 1rem 0 0; justify-content: center; }

.var-picker { position: relative; }
.var-picker[hidden] { visibility: hidden; }
.var-button {
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--accent);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  color: var(--accent);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 0.15s, background 0.15s;
}
.var-button:hover {
  border-color: var(--accent-hi);
  background: var(--highlight);
}
.var-button.has-changes {
  background: var(--highlight);
  font-weight: 600;
}
.var-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  margin-top: 0.35rem;
  width: min(28rem, 90vw);
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 0.5rem;
}
.var-panel[hidden] { display: none; }
.feat-picker { position: relative; }
.feat-picker[hidden] { visibility: hidden; }
.feat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.25rem;
}
.feat-toggle {
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--muted);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.feat-toggle[data-state="on"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--highlight);
}
.feat-toggle[data-state="off"] {
  border-color: var(--rule);
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.6;
}
.feat-toggle:hover { border-color: var(--accent); }
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.35rem;
}
.learn-link {
  margin: 0.25rem 0 0;
  color: var(--accent);
}
.learn-link a { color: var(--accent); }
.panel-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}
.panel-reset {
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--muted);
}
.panel-reset:hover { border-color: var(--accent); color: var(--accent); }
.text-wrap {
  position: relative;
  display: inline-block;
}
.text-wrap input { padding-right: 1.8rem; }
.text-reset {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  line-height: 1;
}
.text-reset:hover { color: var(--accent); }
.text-reset[hidden] { display: none; }
.axes {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.axes td {
  padding: 0.3rem 0.5rem;
}
.axes td:nth-child(2) { width: 100%; }
.axes td:nth-child(2) input[type="range"] { width: 100%; }
.axis-caption {
  color: var(--fg);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.axis-value {
  font-family: "JetBrains Mono", "Roboto Mono", ui-monospace, monospace;
  color: var(--accent);
  font-size: 0.9rem;
  text-align: right;
  min-width: 3.5em;
  white-space: nowrap;
}
.axes input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin: 0;
}
.axes-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
}

.presets {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  margin: -0.25rem 0 1.25rem;
}
.presets-label {
  color: var(--muted);
  font-size: 0.9rem;
}
.preset {
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--fg);
  transition: border-color 0.15s, background 0.15s;
}
.preset:hover {
  border-color: var(--accent);
  background: var(--highlight);
}
.preset.active {
  border-color: var(--accent);
  background: var(--highlight);
  color: var(--accent);
  font-weight: 700;
}
.controls label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.controls label[hidden] { display: none; }
.controls input[type="text"],
.controls input[type="number"],
.controls select {
  font: inherit;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--fg);
  transition: border-color 0.15s;
}
.controls input[type="number"] { width: 5rem; }
.controls input:focus,
.controls select:focus {
  outline: none;
  border-color: var(--accent);
}
.controls a {
  border: 1px solid var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  color: var(--accent);
  cursor: pointer;
}
.controls a:hover {
  background: var(--highlight);
  text-decoration: none;
}

/* Font picker: button + dropdown menu with three sources. */
.font-picker { position: relative; display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.font-label { color: var(--muted); font-size: 0.95rem; }
.font-button {
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--accent);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  color: var(--accent);
  background: var(--bg-card);
  min-width: 14rem;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
}
.font-button:hover {
  border-color: var(--accent-hi);
  background: var(--highlight);
}
.font-prefix { color: var(--muted); margin-right: 0.25rem; }
.font-arrow { margin-left: auto; font-size: 0.8em; }

.font-full-load[hidden] { display: none; }
.font-full-load {
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px dashed var(--accent);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  color: var(--accent);
  background: var(--bg-card);
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.font-full-load:hover:not(:disabled) {
  border-style: solid;
  background: var(--highlight);
}
.font-full-load:disabled { cursor: progress; opacity: 0.75; }

.font-menu[hidden] { display: none; }
.font-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 50;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 0.75rem;
  min-width: 22rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.font-menu-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.font-menu-row label {
  color: var(--muted);
  font-size: 0.9rem;
  width: 6.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.font-menu-row select,
.font-menu-row input[type="url"],
.font-menu-row input[type="text"] {
  font: inherit;
  flex: 1;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--fg);
}
.font-menu-row input[type="file"] {
  font: inherit;
  flex: 1;
  font-size: 0.85rem;
  color: var(--muted);
}
.font-menu-row input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--accent);
  margin-right: 0.5rem;
}
.font-menu-row button {
  font: inherit;
  cursor: pointer;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--accent);
  background: var(--bg-card);
  color: var(--accent);
  border-radius: 4px;
}
.font-menu-row button:hover { background: var(--highlight); }
.font-menu-hint {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Drag-and-drop overlay */
#drop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-family: "PT Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}
#drop-overlay.active { display: flex; }

/* Demo render stage */

.render {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem;
  min-height: 8rem;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--render-bg);
  color: var(--render-fg);
}
.render svg {
  display: block;
  max-width: 100%;
  height: auto;
}
#subset-render {
  overflow: visible;
}
#subset-preview {
  display: block;
  white-space: nowrap;
  overflow-x: auto;
}
.render canvas {
  /* Display at native pixel-buffer size; .render's min-height
   * must not stretch the canvas. */
  display: block;
}
iframe.render {
  display: block;
  width: 100%;
  height: 360px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0;
  background: #000;
}

/* Prose / code blocks (embed tab) */

.demo p { margin: 1rem 0; }
/* Pin the intro paragraph height so switching between demos
 * whose descriptions run different lengths doesn't bounce
 * the render stage up/down. */
.demo > p:first-child {
  min-height: calc(3em * 1.6);
}
.demo ul { margin: 1rem 0 1rem 1.5rem; padding: 0; }
.demo li { margin-bottom: 0.4rem; }
.demo code {
  font-family: "JetBrains Mono", "Roboto Mono", ui-monospace, monospace;
  background: var(--soft);
  color: var(--accent-hi);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.92em;
}
pre.code {
  font-family: "JetBrains Mono", "Roboto Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  background: var(--soft);
  padding: 1rem;
  border-radius: 6px;
  overflow: auto;
  line-height: 1.45;
}
.resources li { margin-bottom: 0.5rem; }

/* Shape tab: glyph-stream table.  Cluster boundaries get a
 * faint top-border so consecutive glyphs from the same input
 * codepoint visually clump together. */
.glyph-table {
  font-family: "JetBrains Mono", "Roboto Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  border-collapse: collapse;
  margin: 0 auto;
  background: var(--soft);
  border: 1px solid var(--rule);
}
.glyph-table th,
.glyph-table td {
  padding: 0.4rem 1.1rem;
  text-align: center;
  border: 1px solid var(--rule);
}
.glyph-table th {
  font-weight: 600;
  color: var(--muted);
  background: var(--soft);
  border-bottom: 3px solid var(--accent);
}
.glyph-table tbody tr.cluster-break td {
  border-top: 2px solid var(--accent);
}
.shape-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}
.shape-controls {
  margin: 0.75rem 0 1rem;
  text-align: center;
}
.glyph-id-toggle,
.cluster-level-toggle {
  font-size: 1rem;
  font-weight: normal;
  color: var(--muted);
  margin-right: 1rem;
  cursor: help;
}
.glyph-id-toggle input { margin-right: 0.25rem; vertical-align: middle; }
.cluster-level-toggle select {
  font: inherit;
  font-size: 0.92rem;
  margin-left: 0.35rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--fg);
  cursor: pointer;
}

/* Subset tab: visual savings indicator. */
.subset-stats {
  margin: 1rem 0;
}
.subset-bar {
  height: 1.4rem;
  background: var(--soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.subset-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}
.subset-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--muted);
}
.subset-bar-labels strong { color: var(--fg); font-weight: 600; }
.subset-bar-saved { color: var(--accent-hi); }
.subset-bar-saved strong { color: var(--accent-hi); }
.subset-hint {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}
.subset-instantiate {
  display: block;
  margin: 0.75rem 0 0.25rem;
  text-align: center;
  font-size: 1rem;
  font-weight: normal;
  color: var(--muted);
  cursor: help;
}
.subset-instantiate[hidden] { display: none; }
.subset-instantiate input { margin-right: 0.25rem; vertical-align: middle; }
.subset-counts {
  margin: 0.75rem 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}
.subset-tables { margin-top: 1rem; }
.subset-tables h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-hi);
}
.subset-table { margin-top: 0; }

/* Raster tab pixel-buffer caption. */
.raster-stats {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* Code snippet disclosure under each demo. */
.snippet {
  margin-top: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg-card);
}
.snippet > summary {
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  color: var(--accent-hi);
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
}
.snippet > summary::-webkit-details-marker { display: none; }
.snippet > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.4rem;
  transition: transform 0.15s ease;
}
.snippet[open] > summary::before { transform: rotate(90deg); }
.snippet-actions {
  margin-left: auto;
  display: none;
  gap: 0.25rem;
}
.snippet[open] > summary .snippet-actions { display: inline-flex; }
.snippet-actions button {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1;
}
.snippet-actions button:hover {
  background: var(--soft);
  border-color: var(--rule);
}
.snippet-body {
  padding: 0.5rem 1rem;
}
.snippet pre {
  margin: 0;
  padding: 0.55rem 1rem;
  border-top: 1px solid var(--rule);
  background: var(--soft);
  font-size: 0.85rem;
  line-height: 1.5;
  overflow: auto;
  border-radius: 0 0 6px 6px;
}
.snippet pre code,
.snippet pre code.hljs {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
}
.snippet code a {
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.snippet code a:hover { border-bottom-style: solid; }
.snippet code strong a { font-weight: 700; }
/* highlight.js themes set their own bg + padding; override to
 * blend with our card / soft backgrounds. */
pre code.hljs { background: transparent !important; padding: 0 !important; }
pre.code code.hljs { background: transparent !important; padding: 0 !important; }

/* Inline byte-size tag next to the Vector tab download links. */
.size-tag {
  font-size: 0.85em;
  color: var(--muted);
  font-weight: normal;
  margin-left: 0.25rem;
}
.subset-table tr.subset-grew td { color: var(--danger, #c0392b); }
.subset-table tr.subset-same td { color: var(--muted); }

.placeholder {
  color: var(--muted);
  font-style: italic;
  padding: 1.5rem;
  border: 1px dashed var(--rule);
  border-radius: 6px;
}

.size-table {
  border-collapse: collapse;
  margin: 1rem 0;
  font-variant-numeric: tabular-nums;
}
.size-table th {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  padding: 0.3rem 1.25rem 0.3rem 0;
}
.size-table td {
  font-family: "JetBrains Mono", "Roboto Mono", ui-monospace, monospace;
  padding: 0.3rem 0;
}

/* Glyph data */

#shape-glyphs {
  text-align: center;
  overflow: auto;
}

@media (max-width: 900px) {
  body {
    margin: 0;
    border-radius: 0;
    padding: 1.25rem;
  }
  header h1 { font-size: 2rem; }
  .var-panel {
    left: auto;
    right: 0;
    width: min(28rem, calc(100vw - 2.5rem));
  }
  .attribution {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    text-align: center;
    background: none;
    box-shadow: none;
    padding: 1.25rem 0 0;
    margin: 1.5rem 0 0;
    border-top: 1px solid var(--rule);
  }
}
