/* Pleat & Steam site. System fonts only, no scripts, no external requests.
   Palette from DESIGN.md §11 (dough ivory, bench flour, ticket paper, ink navy, tile teal, bamboo).
   Text pairs are 4.5:1 or better in both schemes; the teal used for text is darkened from #3F7B73. */
:root {
  --paper: #FBF5EA;   /* dough ivory */
  --bench: #F3E9D8;   /* bench flour cream */
  --card: #FFFDF6;    /* ticket paper */
  --ink: #263650;     /* ink navy */
  --muted: #55607A;
  --accent: #2F6159;  /* tile teal, darkened for links */
  --tile: #2F6159;    /* masthead */
  --on-tile: #FBF5EA;
  --bamboo: #D8B06A;
  --rule: #E2D6C1;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #18202C; --bench: #1F2836; --card: #222C3B; --ink: #F3E9D8; --muted: #B9C0CC;
    --accent: #8CCFC4; --tile: #2F6159; --on-tile: #FBF5EA; --bamboo: #A9813F; --rule: #34405A;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3, .brand, dt { font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.skip { position: absolute; left: -999px; top: 0; padding: .6rem 1rem; background: var(--accent); color: var(--paper); z-index: 1; }
.skip:focus { left: 1rem; }
a { color: var(--accent); text-underline-offset: .15em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

header.masthead { background: var(--tile); color: var(--on-tile); border-bottom: 4px solid var(--bamboo); }
header.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .7rem; padding-bottom: .7rem; }
header.masthead a { color: var(--on-tile); }
header.masthead a:focus-visible { outline-color: var(--on-tile); }
.brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
nav.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
nav.tabs a { display: inline-block; padding: .6rem .8rem; min-height: 44px; text-decoration: none; border-bottom: 3px solid transparent; }
nav.tabs a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--on-tile); }

main { padding: 1.5rem 0 3rem; }
h1 { font-size: 2.1rem; line-height: 1.2; margin: .6rem 0 .8rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; padding-top: .7rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.08rem; margin: 1.4rem 0 .4rem; }
.lede { font-size: 1.18rem; }
.muted, .small { color: var(--muted); font-size: .92rem; }
.toc { columns: 2; padding-left: 1.1rem; }
.toc a { display: inline-block; min-height: 32px; padding: .15rem 0; }
.card { background: var(--card); border: 2px dashed var(--bamboo); border-radius: 1rem; padding: 1rem 1.2rem; margin: 1.2rem 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.facts { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.facts li { background: var(--bench); border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .85rem; font-size: .95rem; }
.poses { margin: 0; }
.poses dt { font-weight: 700; margin-top: 1rem; }
.poses dt:first-child { margin-top: 0; }
table { border-collapse: collapse; width: 100%; margin: .8rem 0; font-size: .95rem; background: var(--card); }
caption { text-align: left; font-weight: 600; padding: 0 0 .4rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .65rem; border-bottom: 1px solid var(--rule); }
thead th { background: var(--bench); }
tbody th { font-weight: 600; }
dt { font-weight: 600; margin-top: 1rem; }
dd { margin: .25rem 0 0; }
dd p { margin: .4rem 0; }
ul.tight li, ol.tight li { margin: .2rem 0; }
.badge-slot { display: inline-block; min-height: 44px; padding: .7rem 1rem; border: 1px dashed var(--muted); border-radius: .6rem; color: var(--muted); }
footer { border-top: 1px solid var(--rule); background: var(--bench); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .88rem; }
footer a { display: inline-block; min-height: 32px; padding: .2rem 0; }
@media (max-width: 34rem) {
  .toc { columns: 1; }
  h1 { font-size: 1.75rem; }
  th, td { padding: .5rem .45rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
