/* emberheir.com: one stylesheet for every page. Dark, coal and ember. No web fonts, no scripts. */
:root {
  color-scheme: dark;
  --coal: #121010;
  --coal-raised: #1b1715;
  --line: #2f2723;
  --text: #ede5d9;
  --muted: #b3a697;
  --ember: #ee8a52;
  --ember-deep: #c8582a;
  --mark-bg: #3a1f12;
  --mark-text: #ffd2b3;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--coal);
  color: var(--text);
  font: 17px/1.6 Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}

a { color: var(--ember); text-underline-offset: 0.15em; }
a:hover, a:focus-visible { color: #ffb184; }
a:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--coal-raised); padding: 0.4rem 0.7rem; z-index: 1; }

header.site {
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--ember-deep);
  background: var(--coal-raised);
}
header.site .bar {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.75rem 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.25rem;
}
header.site .name {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
header.site .name span { color: var(--ember); }
nav.links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.95rem; }
nav.links a { color: var(--muted); text-decoration: none; padding: 0.2rem 0; }
nav.links a:hover, nav.links a:focus-visible { color: var(--text); }
nav.links a[aria-current="page"] { color: var(--ember); }

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 16px 3rem;
  overflow-wrap: break-word;
}
main a { overflow-wrap: anywhere; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.4rem; }
h2 { font-size: 1.2rem; line-height: 1.3; margin: 2.2rem 0 0.4rem; color: var(--ember); }
h3 { font-size: 1.02rem; margin: 1.4rem 0 0.3rem; }
p, li { margin: 0.5rem 0; }
ul, ol { padding-left: 1.3rem; }
code { font-size: 0.9em; overflow-wrap: anywhere; }

.meta { color: var(--muted); font-size: 0.95rem; }
.lead { font-size: 1.15rem; }

.box {
  background: var(--coal-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember-deep);
  border-radius: 4px;
  padding: 0.6rem 1rem;
  margin: 1rem 0;
}

mark.tbc {
  background: var(--mark-bg);
  color: var(--mark-text);
  border: 1px dashed var(--ember);
  border-radius: 3px;
  padding: 0 0.25em;
}

table { border-collapse: collapse; width: 100%; margin: 0.8rem 0; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: normal; }
.scroll { overflow-x: auto; }

.hero { padding: 1.5rem 0 0.5rem; }
.hero h1 { font-size: 2.6rem; letter-spacing: 0.03em; margin-bottom: 0.2rem; }
.hero .tag { color: var(--muted); margin-top: 0; }
.ember-rule { width: 4rem; height: 3px; background: linear-gradient(90deg, var(--ember-deep), var(--ember)); border: 0; margin: 1.2rem 0; }

ul.cards { list-style: none; padding: 0; display: grid; gap: 0.6rem; margin: 1.5rem 0; }
ul.cards li { margin: 0; }
ul.cards a {
  display: block;
  background: var(--coal-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--text);
}
ul.cards a strong { color: var(--ember); display: block; }
ul.cards a span { color: var(--muted); font-size: 0.95rem; }
ul.cards a:hover, ul.cards a:focus-visible { border-color: var(--ember-deep); }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .bar { max-width: 44rem; margin: 0 auto; padding: 1.2rem 16px 2rem; }
footer.site p { margin: 0.3rem 0; }
footer.site a { color: var(--muted); }

@media (min-width: 40rem) {
  main { padding-top: 2.5rem; }
  h1 { font-size: 2.1rem; }
  ul.cards { grid-template-columns: 1fr 1fr; }
}

@media print {
  body { background: #fff; color: #000; }
  header.site, footer.site, nav.links { display: none; }
  a { color: #000; }
  h2 { color: #000; }
}
