:root {
  color-scheme: light;
  --cream: #faf8f1;
  --maroon: #9e2a2b;
  --line: #d7c4b9;
  --ink: #513332;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--maroon); font: 400 16px/1.65 Archivo, sans-serif; }
:lang(ar) body { font-family: "IBM Plex Sans Arabic", sans-serif; line-height: 1.9; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--maroon); outline-offset: 4px; }
.skip, .sr { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); }
.skip:focus { z-index: 5; inset: 10px auto auto 10px; padding: .6em 1em; width: auto; height: auto; clip-path: none; background: var(--cream); }
header, footer { border-block: 1px solid var(--line); }
.bar, article { width: min(100% - 40px, 1080px); margin: auto; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 12px; }
.bar img { width: 88px; height: auto; display: block; }
.bar nav { display: flex; gap: clamp(10px, 3vw, 30px); }
.bar a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: 14px; }
.bar a:hover { text-decoration: underline; }
.crumbs { display: flex; align-items: center; gap: .65em; flex-wrap: wrap; font-size: 13px; padding-block: clamp(18px, 4vw, 40px) 13px; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.038em; line-height: 1.12; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2 { line-height: 1.4; letter-spacing: 0; }
h1 { font-size: clamp(42px, 8vw, 92px); }
h2 { font-size: clamp(25px, 3.5vw, 42px); }
.intro { max-width: 65ch; margin-block: 17px 32px; color: var(--ink); font-size: clamp(17px, 2vw, 21px); }
.scales, .notes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(13px,3vw,38px); }
figure { margin: 0; }
figure a { display: block; background: white; }
figure img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; }
figcaption { font-size: 13px; margin-block-start: 6px; }
section { margin-block: clamp(32px,5vw,66px); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 18px; text-align: start; }
th, td { text-align: start; padding: 12px 8px; border-bottom: 1px solid var(--line); line-height: 1.5; vertical-align: top; overflow-wrap: anywhere; }
thead th { border-top: 1px solid var(--maroon); font-weight: 600; }
tbody th { font-weight: 400; color: var(--ink); }
.notes { border-top: 1px solid var(--line); padding-top: 30px; }
.notes p, .last p { color: var(--ink); margin-top: 14px; max-width: 68ch; }
.last { border-top: 1px solid var(--line); padding-top: 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.tool-link { display: inline-flex; gap: 1.2em; padding: 10px 18px; min-height: 44px; color: var(--cream); background: var(--maroon); text-decoration: none; }
@media (max-width: 600px) {
  .bar, article { width: calc(100% - 32px); }
  .notes { grid-template-columns: 1fr; gap: 28px; }
  .bar img { width: 66px; }
  th, td { padding: 10px 4px; font-size: 14px; }
  figcaption { font-size: 12px; }
}
